Glossary
Oct 2, 2026

What Is a DEX Aggregator? How Swap Routing Works

A DEX aggregator searches many decentralized exchanges and routes or splits your swap to get the best price after fees. How routing works, with a worked example.

What Is a DEX Aggregator? How Swap Routing Works

A DEX aggregator is a service that checks prices across many decentralized exchanges and routes, or splits, your swap through the combination of pools that returns the most tokens after fees. It saves you from comparing DEXs by hand and often beats any single pool on large trades.

DEX aggregator definition

Liquidity for the same pair is usually spread across several DEXs and fee tiers. Each pool quotes a different price depending on its depth. An aggregator reads them all, works out the best route, and executes it in one transaction.

A route can be a split (part of the trade through pool A, part through pool B) or multi-hop (token X to token Y to token Z when there is no deep X/Z pool). Most aggregators are non-custodial: they never hold your tokens beyond the swap transaction.

Some newer aggregators also accept signed orders, often called intents, and let professional solvers compete to fill them, sometimes from their own inventory rather than a public pool. The goal is the same: the most output tokens for your input.

How a DEX aggregator works

  1. You enter the tokens and amount.
  2. The aggregator queries pool states across the DEXs it supports.
  3. A routing algorithm simulates splits and hops, net of each pool's fee and the extra gas each hop costs.
  4. It returns a quote and a minimum-received amount based on your slippage setting.
  5. You sign one transaction; its router contract runs every leg and reverts if the minimum is not met.

The same "aggregate and optimise" idea applies to yield: a yield aggregator routes deposits across farms rather than swaps across pools.

DEX aggregator example

Say ETH trades at 3,000 USDC on two hypothetical constant-product pools: pool A holds 100 ETH and 300,000 USDC, pool B holds 60 ETH and 180,000 USDC. You want to swap 50,000 USDC (fees ignored for simplicity).

  • All through pool A: you receive about 14.29 ETH.
  • Split 31,250 USDC to A and 18,750 USDC to B: about 9.43 ETH + 5.66 ETH = 15.09 ETH.

The split returns about 0.8 more ETH, worth around 2,400 USDC, because each pool moves less. On a 500 USDC swap the difference would be cents, and extra gas for a second leg might cancel it.

Why a DEX aggregator matters

  • Better execution on larger or less liquid trades, with less price impact.
  • Quote is not fill: prices move between quote and execution. Your slippage limit is the real protection.
  • Router risk: you grant token approvals to the aggregator's contract. Approve only what you need and revoke old approvals.
  • Fees and MEV: some aggregators add a fee or positive-slippage capture; some offer MEV protection, some do not.
  • Check the source: an aggregator's off-chain quoting API can be stale or wrong. If something looks too good, simulate it or compare with the DEX directly.

On Sui, liquidity is split between several AMMs, which is why aggregators are widely used there. Our Sui DEX comparison covers the main venues they route through.

Learn more on the JewelSwap blog

Frequently asked questions

What is a DEX aggregator in crypto?

A DEX aggregator is a tool that compares prices across many decentralized exchanges and routes your swap through the best combination of pools in a single transaction.

DEX aggregator vs DEX: what is the difference?

A DEX holds liquidity pools that you trade against. An aggregator holds no liquidity of its own; it searches many DEXs and routes your trade through them to improve the price.

Are DEX aggregators safe?

Reputable ones are non-custodial, but you approve their router contract to spend your tokens, so a bug or a malicious router could cause losses. Use well-known aggregators, set a slippage limit and limit approvals.

JewelSwap Crypto Glossary · educational, not financial advice. Updated 2 October 2026. Browse the full glossary.

About the author.

Co-Founder at JewelSwap & CMO at iDenfy. Viktor brings his successful track record of superb development & project management.