Skip to the article
Blocktide

Crypto markets, chains and policy

How split routes can improve a large swap’s fill

A DEX aggregator splits a trade across pools when better prices beat extra gas, balancing price impact across routes to improve the amount you receive.

By The Blocktide Editors4 min read

How split routes can improve a large swap’s fill

A DEX aggregator splits a trade across pools by sending slices where they face similar marginal prices, but keeps a split only when the extra output beats the added gas. That trade-off matters because a large order can move a pool’s price, while every additional route leg costs more to execute.

Take an illustrative swap of 200 ETH to USDC. One pool might offer a good price for the first part of the order, then a worse one as the trade changes its reserves. An aggregator can compare that route with other pools and paths before choosing how much ETH to send along each.

A lifi bridge is a cross-chain bridge aggregator; when you move assets between chains, its swap choices affect the source-side fill and fees that feed into the route. It can source swap legs from aggregators such as 1inch and 0x, so the split logic can carry into a cross-chain transaction.

How does a DEX aggregator find the best price for a swap?

A DEX aggregator compares available pool routes and estimates the output for different trade sizes, including the price movement each size causes. The best route is the one that leaves the most value after accounting for execution costs.

In a constant-product pool, the reserves follow x·y=k. A trade takes one token out and puts another in, changing the reserve balance and therefore the price. The larger the trade is relative to the pool’s reserves, the farther it pushes the price from where it started. That worsening price is the trade’s price impact.

Suppose the 200 ETH order goes entirely through Uniswap v3. The first ETH may swap at a better marginal price than the last ETH, because the pool’s price moves as the order executes. A second pool, such as Curve, may have room to take another slice at a more attractive marginal price. Routing some of the order there can reduce the price impact on both pools.

For illustration, the aggregator might route 60% through Uniswap v3, 30% through Curve, and 10% along a WETH–DAI–USDC hop. Those percentages are a sample route, not a standard allocation. The router compares the expected output from each allocation and path, then adjusts the slices to find a better overall result.

A multi-hop route trades through an intermediate token before reaching the destination token. In the sample, ETH becomes WETH, then DAI, then USDC. That path can reach liquidity unavailable in a direct ETH-to-USDC pool, but it adds trades and therefore gas. 1inch Pathfinder and 0x can route one order across several protocols; a split can also combine direct and multi-hop paths.

When does splitting a trade pay off?

A split pays when its improvement in output is worth more than the gas required for its extra legs. The router measures that comparison in the output token, so it can weigh the additional USDC against the estimated cost of executing another pool or hop.

That calculation changes the answer for small and large orders. On Ethereum mainnet, small swaps usually stay in one pool because a modest price improvement can be outweighed by the cost of another leg. Larger orders have more price impact to recover, making additional liquidity more valuable. On layer 2 networks, lower gas costs mean splits can pay off at smaller trade sizes.

More routes do not automatically mean a better fill. A second pool might have a less favorable price, or the output improvement might be too small to cover its gas. A hop also adds another pool trade and its associated costs. The aggregator’s job is to keep only the legs that improve the net result, rather than divide the order evenly for its own sake.

For a swapper, compare the quoted output after costs, not just the headline rate or the number of pools. A split is useful when it raises the amount you receive after gas; when it does not, a single-pool route can be the better choice.

Related

Do DEX aggregators charge their own fee?

There is no single fee rule across aggregators. A quote can reflect pool trading fees and network gas, and a route may include a service or integrator fee. Check the quote breakdown to see which costs apply and whether the displayed output already accounts for them.

Why does an aggregator quote change between refreshes?

A quote can change when pool prices or available liquidity move, when gas estimates change, or when the router finds a different route. Since each route has its own price impact and execution cost, a small change in those inputs can alter both the chosen pools and the estimated output.