Smart order routing on DEXs: split versus single route
Smart routing means deciding how one order crosses the market: one route through the deepest pool, or several routes through several pools at once. The right answer depends on three costs that move in opposite directions: gas, price impact, and MEV exposure.
The single route
One route means one transaction, one pool or one chain of pools, one signature. It is simple, fast to approve, and easy to audit afterward.
It wins when:
- The order is small relative to pool depth, so impact is negligible anyway
- Gas is expensive relative to trade size, because one transaction costs less than two
- The pair is liquid enough that the best route is obvious
It loses when the order is large: the single pool's curve eats your size, and impact grows faster than any fee saving.
The split route
Splitting divides the order across pools or venues, each piece paying less impact. Aggregators do this automatically, and sometimes the split crosses chains through bridging legs.
The costs of splitting:
- More transactions, or one more complex transaction with more failure modes
- Partial fills: one leg executes, another reverts, and you hold half a position
- Wider MEV exposure surface: more legs means more points where a sandwich can bite
- Bridging legs add settlement time and bridge risk
The gas tradeoff
On cheap networks, splitting is nearly free: five small swaps cost less in gas than the impact they avoid. On expensive networks, the math flips: gas on each leg can exceed the impact saved, and the single route wins by default.
The break-even is computable: estimate impact savings from splitting, subtract the extra gas and protocol fees, and compare. Do it at your real size, because the answer changes with size.
The MEV angle
Every route you expose is surface for searchers. A single deep-pool swap in a quiet pair can pass almost unnoticed. A split order across thin venues broadcasts your intent through multiple pools, and each crossing is a candidate for front-running.
Private routing options exist on some venues: transactions sent direct to block builders, skipping the public mempool. When the trade is large and the pair is thin, that privacy is worth more than the last basis point of route optimization.
The takeaway
Split when impact savings exceed gas and complexity, single when they do not. On cheap chains, split aggressively at size. On expensive chains, stay single. And for large orders in thin pairs, value private execution more than the best theoretical price.