Skip to content

DEX Aggregators: Slippage and Price Impact, With Examples

How DEX aggregators route your swap, and how slippage and price impact decide what you receive, with worked numbers, a slippage table and a fair-swap checklist.

Written by Lucas Bennett

7 min read

Swap card with slippage settings and a route split across pools, showing how a DEX aggregator builds a trade

A DEX aggregator is a service that checks many decentralized exchanges and liquidity sources at once and routes your swap through the path that returns the most tokens after fees. It finds a strong quote, but two numbers decide what you actually receive: price impact, set by your trade size, and slippage tolerance, set by you.

Key takeaways

  • Price impact is how far your own trade moves the price. In our example pool, a 10,000 USDC trade receives 1.28% less than the spot price including the fee, and a 100,000 USDC trade 9.34% less.
  • Slippage tolerance is the extra movement you accept before the swap cancels. Your minimum received is the quote minus that percentage.
  • Aggregators cut price impact by splitting trades. In the example, splitting a 100,000 USDC trade across two pools nearly halves the shortfall.
  • Loose slippage invites sandwich bots, while slippage that is too tight fails and still costs the network fee.
  • Judge every swap by its minimum received, not its headline rate.

Below is a worked example with real numbers, a slippage table by pair type and a checklist to run before every swap.

How a DEX aggregator finds your price

Most decentralized exchanges price tokens with automated market makers: pools of two tokens whose price comes from the ratio of what they hold. The classic formula, used by Uniswap v2, keeps the product of the two reserves constant (x times y equals k), so each unit you buy makes the next one dearer.

One pool rarely gives the best result. An aggregator queries many pools and venues, then builds a route that may split your order across several pools or hop through an intermediate token such as wrapped ETH. 0x, which Terra Wallet uses for swaps on seven EVM networks, says its Swap API draws on more than 150 liquidity sources.

A quote is a snapshot. Prices move between the moment you see it and the moment your transaction lands in a block, and that gap is what slippage settings are for.

Price impact, with real numbers

Here is what one pool does to trades of different sizes. The example pool holds 1,000,000 USDC and 1,000,000 of a token called XYZ, so the spot price is 1 USDC, and it charges a 0.30% fee like a Uniswap v2 pool.

You pay (USDC)You receive (XYZ)Shortfall vs. spot price
1,000996.010.40%
10,0009,871.581.28%
50,00047,482.975.03%
100,00090,661.099.34%
100,000, split across two such pools94,965.955.03%

Three lessons fall out of the numbers:

  • Fees are fixed, impact grows. The 0.30% fee is the same slice at any size. Price impact is the part that balloons.
  • Losses grow faster than the trade. The percentage lost to impact rises roughly in step with size, so the amount lost rises much faster: the 10,000 trade gives up nearly 100 tokens to impact, the 1,000 trade about 1.
  • Splitting works. Sending half of a 100,000 trade through each of two equally deep pools cuts the shortfall from 9.34% to 5.03%. That is exactly the job an aggregator does.

Real pools are messier. Uniswap v3 introduced concentrated liquidity, where providers place funds in chosen price ranges, so depth varies by token and by moment. The shape is the same, though: the thinner the liquidity, the faster your price slips.

Slippage tolerance and your minimum received

Slippage tolerance is the worst extra price movement you will accept, as a percentage of the quote. The router turns it into a minimum amount out, and if the swap would deliver less, it reverts instead of filling.

Using the table: a quote of 9,871.58 XYZ with 0.5% slippage gives a minimum received of 9,822.22 XYZ, and at 1% it is 9,772.86 XYZ. That minimum is the number to judge.

Pair typeStarting slippage we would useWhy
Stablecoin to stablecoin, such as USDC to USDT0.1% to 0.3%Prices barely move, so a tight limit costs little
Major tokens, such as ETH or wrapped BTC0.3% to 0.5%Deep liquidity and moderate volatility
Smaller or volatile tokens0.5% to 1%Thinner pools move more between quote and block
Tokens with transfer taxesOnly what the tax requires, after reading the contractHigh settings are where bad fills hide

Setting slippage is a trade-off. Too tight and the swap fails in a fast market, and on EVM networks a failed transaction still pays its network fee. Too loose and you hand the difference to whoever can capture it.

Sandwich attacks: why loose slippage costs money

On a public mempool, bots watch for large pending swaps. In a sandwich, a bot buys just before your trade, lets your trade push the price up, then sells right after. ethereum.org's MEV documentation notes that sandwiched users get more slippage and worse execution.

Your slippage tolerance is the bot's budget. Allow 3% and a bot can push your fill to just inside 3% and pocket much of the gap. Practical defenses:

  • Keep slippage as tight as the pair allows.
  • Split very large trades, or wait for deeper liquidity.
  • Prefer routes that submit transactions privately instead of through the public mempool, where your wallet or aggregator offers that.
  • Be wary of thin, newly launched tokens, where both impact and sandwich profits run highest.

The full cost of a swap

CostWhat drives itHow to keep it down
Pool feeSet per pool: 0.30% on Uniswap v2, standard tiers of 0.05%, 0.30% and 1% on v3, any level on v4Liquid pairs can route through low-fee pools
Price impactYour trade size against pool depthSmaller trades, deeper pools, split routes
Slippage usedPrice moves and bots between quote and blockA tight tolerance
Network feeNetwork demand and route complexityA layer 2 for smaller trades
Token approvalYour first swap of an ERC-20 through a contractUsually needed once per token and contract; revoke unused ones later
Service feeCharged by some providers or walletsRead the quote breakdown

On Ethereum mainnet the network fee can swallow a small trade, while on a layer 2 it is usually minor. Our guide to Ethereum gas fees shows how that fee is set, and our explainer on EIP-7702 smart accounts, live on Ethereum since the Pectra upgrade on May 7, 2025, shows how batching can fold the approval and the swap into one step.

A fair-swap checklist

  1. Confirm the token contract, not just the symbol. Copycat tokens reuse names.
  2. Read the minimum received and the price impact before the rate.
  3. If price impact is above about 1%, try a smaller amount or a different pair.
  4. Set slippage for the pair type, not the most the app allows.
  5. Keep enough of the network's coin for the fee, plus the approval on a first swap.
  6. Refresh a stale quote instead of confirming it.
  7. Review your approvals now and then and revoke the ones you no longer use.

Swapping in Terra Wallet

Terra Wallet gets quotes from 0x on Ethereum, BNB Smart Chain, Polygon, Avalanche, Arbitrum, Optimism and Base, from Jupiter on Solana and from SunSwap on Tron. The swap is signed on your device and settles from your own address, and the quote refreshes while the Swap screen is open.

In the Android app you choose 0.1%, 0.5% (the default) or 1.0% slippage, and the browser extension also accepts a custom value. On Solana, Jupiter sets slippage for each order itself. The screen shows price impact when the route reports it and highlights a high value.

The Android app also simulates EVM swaps right before sending, so a swap that is sure to fail is stopped before it costs a fee, and the first swap of a token uses a single Approve & Swap confirmation. The features page describes swaps and bridging, the chains page shows where swaps are available, and the swap FAQ covers quotes and failed swaps.

Frequently asked questions

What is the difference between slippage and price impact?

Price impact is the price change your own trade causes, and it is already in the quote. Slippage is any further movement between the quote and execution, which your tolerance caps. A large trade in a thin pool has high price impact even when slippage is zero.

What slippage should I set?

Start low and raise it only when swaps fail for a clear reason. Roughly 0.1% to 0.3% suits stablecoin pairs, 0.3% to 0.5% major tokens, and 0.5% to 1% smaller or volatile ones. A token that only trades at 10% or more deserves a hard look at its contract.

Is a DEX aggregator better than swapping on one DEX?

Usually, for anything beyond small trades in the most liquid pairs. An aggregator compares many pools and can split your order, while a single DEX offers only its own liquidity. Check the quote anyway, because the best route can change by the second.

Why did my swap fail when the quote looked fine?

Most often the price moved past your slippage limit before the transaction confirmed, your balance of the network's coin was too low for the fee, or a token approval was still pending. On EVM networks the failed attempt still costs gas, so refresh the quote before retrying.

This article is for education only and is not financial, investment, tax or legal advice.

Sources

  1. developers.uniswap.org: How Uniswap works (opens in a new tab)
  2. developers.uniswap.org: Fees (opens in a new tab)
  3. docs.0x.org (opens in a new tab)
  4. ethereum.org: MEV (opens in a new tab)
  5. ethereum.org: Gas (opens in a new tab)
  6. eips.ethereum.org: EIP-7702 (opens in a new tab)
  7. ethereum.org: Pectra (opens in a new tab)

Keep reading

All articles