Intent Router
Signed off-chain trading intents filled by a competing solver network, with the minimum output enforced on-chain at settlement
Abstract
The Intent Router enables intent-based trading on Lux. Users sign an off-chain intent specifying what they want to trade and their minimum acceptable output. Solvers compete to fill the intent, sourcing liquidity from AMMs, private market makers, or their own inventory. The protocol ensures users always receive at least their specified minimum through on-chain settlement verification.
Motivation
A swap transaction tells the chain how to trade, which is why it can be front-run: the route is public before it executes. An intent states only the outcome the user will accept. Everything about how that outcome is reached — routing, inventory, gas — becomes the solver's problem and the solver's competition, and the only thing the chain checks is whether the user got at least what they signed for.
Specification
Intent Format
Intent {
maker address // user signing the intent
inputToken address
outputToken address
inputAmount uint256 // exact amount to sell
minOutput uint256 // minimum acceptable output
deadline uint256 // expiry timestamp
nonce uint256 // replay protection
signature bytes // EIP-712 signature
}
Intents are broadcast off-chain to the solver network. They are not on-chain transactions until filled.
Solver Network
Solvers are registered participants who fill intents:
- Registration: stake 100 LUX to become a solver
- Discovery: solvers subscribe to an intent mempool (off-chain P2P network)
- Competition: first solver to submit a valid fill transaction wins
- Sources: solvers can route through constant-product (LP-9200), concentrated-liquidity (LP-9201) or StableSwap (LP-9202) pools, the D-Chain order book (LP-9000), private OTC, or own inventory
Fill Execution
A solver submits a fill transaction:
function fill(Intent calldata intent, bytes calldata solverData) external {
// 1. Verify intent signature
// 2. Transfer inputToken from maker to solver (via permit2)
// 3. Execute solver's routing strategy (solverData)
// 4. Verify outputToken received by maker >= minOutput
// 5. Solver keeps any surplus (profit)
}
The contract guarantees maker receives at least minOutput. The solver captures the difference as profit.
Limit Orders
A limit order is an intent with a specific price:
minOutput = inputAmount * limitPrice
deadline = goodTilCancelled ? type(uint256).max : specificTime
Solvers monitor limit orders and fill them when the market price crosses the limit.
RFQ (Request for Quote)
For large trades, makers can request private quotes:
- Maker broadcasts RFQ to selected market makers
- Market makers respond with signed quotes (off-chain)
- Maker selects best quote and submits settlement transaction
- Settlement is atomic -- quote is either fully filled or reverted
Fee Structure
| Fee | Rate | Recipient |
|---|---|---|
| Protocol fee | 0.01% of input | Treasury |
| Solver profit | variable (market-determined) | Solver |
| Gas | paid by solver | Network |
Solvers pay gas, incentivizing them to optimize routing for gas efficiency.
Rationale
The solver keeps the surplus above minOutput rather than returning it, because a surplus-refund rule gives every solver the same payoff and removes the incentive to find a better route. Competition on minOutput at quote time is what pushes price improvement back to the user; competition after the fill would not.
Security Considerations
- MEV protection: intents are signed off-chain and filled atomically. Solvers compete on output, not on transaction ordering. See LP-9025.
- Solver collusion: multiple solvers must be active to ensure competitive pricing. Monopoly risk exists if solver count is low.
- Permit2 approval: users grant approval once to the Permit2 contract, reducing per-trade approval transactions.
Reference
| Resource | Location |
|---|---|
| Intent router contracts | github.com/luxfi/standard/contracts/intent/ |
| Router | IntentRouter.sol |
| Permit2 | github.com/luxfi/standard/contracts/permit2/ |
Related LPs
- LP-0119 — order authorization signature format
- LP-9025 — MEV protection across DEX surfaces
- LP-9013 — cross-chain routing
Copyright
Copyright (C) 2024-2026, Lux Industries Inc. All rights reserved.
Licensed under the MIT License.