Why static routing struggles
- Routes are computed offchain and locked into the transaction at quote time.
- Prop AMM prices can move between signing and execution.
- The trade either fills at a worse price or fails on slippage.
How JIT routing works
- Quote time. DFlow computes an initial route from current market data and embeds it in a transaction built so the route can be updated onchain.
- Execution time. JIT routing re-checks prop AMM prices just before executing each leg onchain. If a better path exists, it reroutes inside the same transaction.
When JIT routing engages
No builder configuration or extra parameters required. JIT routing engages when both of the following are true:- The trade goes through the Trading API (
/orderor/quote). - The route includes a prop AMM leg. Routes without one execute as static paths.
What builders get
- Lower realized slippage. Trades fill against current onchain prices, not stale quotes.
- Higher success rates. Fewer transactions fail because the market moved between signing and execution.
- Tighter slippage limits. Less need for wide buffers to absorb pre-execution drift.