How Swap Routing Finds a Better Path
Routing is an optimization problem. The best path depends on available liquidity, fees and trade size, so the most direct pool is not always the cheapest route.
Key idea
A route is useful only if the final output, fees and minimum received are better for your specific trade size.
In this guide
Related workflow
On-Chain Trading →One pool is not always enough
Price impact grows as a trade consumes a pool. Splitting size across deeper venues can improve the combined result even when one pool has the best headline price.
Intermediate assets can help
A route may pass through a liquid intermediary when two smaller steps produce a better output than a thin direct pair.
Judge the finished route
Compare expected output, fees, price impact and minimum received. The path itself is secondary to what the complete transaction gives you.
Put it in context
Tools connected to this topic
Use the concepts above to understand what these tools show or ask you to approve.
Keep going
Related guides
The closest concepts to read next.
Trading · 4 min
Slippage Tolerance, Explained
The most useful number is minimum received: it shows the actual downside your slippage setting permits.
Read next →Trading · 5 min
Read DEX Liquidity Before You Swap
For a real trade, depth near the current price matters more than a headline volume number.
Read next →Wallets & safety · 5 min
ERC-20 Approvals, Explained
Check the spender and allowance amount, not just the app name shown beside them.
Read next →