DEX Aggregator
Synonym for swap aggregator — a router across multiple DEX venues.
DEX aggregator is the canonical industry term for a router that splits trades across DEX venues for best execution. See Swap Aggregator.
Practical Example & Calculation
Hypothetical scenario
Hypothetical numbers: a trader swaps 100,000 USDC for ETH when the reference price is 2,500 USDC per ETH. At that reference price, a frictionless trade would return 40 ETH. A direct DEX pool quote returns 39.68 ETH after its pool fee and price impact, with an estimated network fee equivalent to 20 USDC. A DEX aggregator proposes splitting 60,000 USDC through Pool X and 40,000 USDC through Pool Y. The combined route returns 39.82 ETH before gas, but its extra calls raise estimated network cost to 35 USDC. These labeled amounts are illustrative; a live quote must be checked immediately before execution.
Formula
Net output in quote currency = token output × reference price − gas cost. Effective cost = input value − net output value. Effective cost percentage = effective cost ÷ input value × 100.
Calculation
Direct route net value is 39.68 ETH × 2,500 = 99,200 USDC, minus 20 USDC gas = 99,180 USDC. Its effective cost is 100,000 − 99,180 = 820 USDC, or 0.82%. The split route output value is 39.82 × 2,500 = 99,550 USDC, minus 35 USDC gas = 99,515 USDC. Its effective cost is 485 USDC, or 0.485%. The aggregator’s net improvement is 99,515 − 99,180 = 335 USDC. The split remains better even though it consumes 15 USDC more gas.
What the result means
The calculation must use executable output, not the mid-market price alone. Pool fees, price impact, gas, aggregator fees, and any positive or negative MEV effects all influence realized execution. For a smaller 500 USDC trade, the extra 15 USDC gas could overwhelm the split route’s price improvement, which is why the best path changes with size and chain conditions. Minimum received also matters: with a 0.5% slippage setting, the 39.82 ETH quote could permit execution down to 39.6209 ETH. That tolerance is protection against a revert, not an expected fee, but loose settings widen the possible outcome. Check allowance targets, route complexity, private-order-flow or MEV protections, and whether an RFQ leg can fail independently. An aggregator optimizes across available liquidity at quote time; it cannot guarantee the reference price or prevent market movement before inclusion.