Solver Registry (M0) - #772
Open
mel0ndev wants to merge 6 commits into
Open
Conversation
Greptile SummaryThe PR introduces an authenticated, route-specific solver registry and integrates it into M0 limit-order validation while preserving already-approved orders across solver rotation.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the registry now rejects zero-address assignments and refuses removal or overwrite of unset routes, resolving the previously reported sentinel-state ambiguity. Important Files Changed
Sequence DiagramsequenceDiagram
participant Admin
participant Registry as M0SolverRegistry
participant Swapper as BoringSwapper
participant Adapter as M0Adapter
participant OrderBook as M0 OrderBook
Admin->>Registry: setSolver(tokenIn, tokenOut, solver)
Swapper->>Adapter: verifyLimitOrder(config, swapper)
Adapter->>Registry: getSolver(tokenIn, tokenOut)
Registry-->>Adapter: registered solver
Adapter->>Swapper: approvedHashes(protocolHash)
Adapter-->>Swapper: validated OrderInfo
Swapper->>OrderBook: openOrder(order)
Admin->>Registry: overwriteSolver(oldSolver, newSolver)
Swapper->>Adapter: verify existing order for cancellation
Adapter->>Swapper: approvedHashes(protocolHash)
Swapper->>OrderBook: cancelOrder(existing order)
Reviews (3): Last reviewed commit: "fix: allow cancelling orders with old so..." | Re-trigger Greptile |
RadioJulius
previously approved these changes
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.