Skip to the article
Crypto Docket

Crypto news and comparative analysis

How Does Pool Depth Affect a DEX Swap Price?

How liquidity depth affects a DEX swap price: deeper reserves usually mean less price impact, so a swap’s quote stays closer to the pre-trade rate.

By Crypto Docket Newsroom#4c77b74 min read

How Does Pool Depth Affect a DEX Swap Price?

A 1 ETH swap returns about 1,980 USDC from a pool holding 100 ETH and 200,000 USDC, below its pre-trade rate of 2,000 USDC per ETH. Liquidity depth affects a DEX swap price because deeper reserves usually absorb the same trade with a smaller price shift.

  • Depth describes how much a pool can trade near its current price.
  • A swap changes the reserve ratio, moving execution along the pool’s curve.
  • Each pool in a route has its own depth and fees.

The gap in the example comes from the trade changing the pool’s balance, even before fees. To see how reserves set the rate you compare, read KyberSwap’s automated market maker price formula. KyberSwap Aggregator can source liquidity across pools and networks, so the depth of each route matters too.

Reserves determine how far a swap moves the price

In a constant-product AMM, a swap changes the pool’s reserves while keeping their product constant. For reserves labeled x and y, the relationship is x × y = k; after a trade, the ratio between the reserves changes, which changes the pool’s marginal price.

Take the 100 ETH and 200,000 USDC pool. Its starting rate is 2,000 USDC per ETH. A trader adds 1 ETH, taking the ETH reserve to 101. To keep x × y at 20 million, the USDC reserve falls to about 198,020, so the pool sends out about 1,980 USDC before fees.

The trader receives slightly less than the starting spot rate because the trade pushes the pool along its curve. The rate of the next trade also changes: after this swap, the pool’s marginal price is about 1,961 USDC per ETH, before fees. The average price paid for this trade and the pool’s new marginal price are related, but they are not the same number.

Now compare a pool with 1,000 ETH and 2 million USDC, at the same starting rate of 2,000 USDC per ETH. A 1 ETH swap returns about 1,998 USDC before fees. The starting price and trade size are unchanged; the reserves are ten times larger. That extra depth means the same trade shifts the reserve ratio less, leaving the received amount closer to the starting rate.

Price impact describes the price change caused by the trade itself. Pool fees also affect how much a trader receives, but they are a separate cost. Slippage tolerance is separate again: it is the user’s limit for how much execution may worsen before the transaction reverts. A larger tolerance does not make a pool deeper or reduce the trade’s price impact.

Route depth matters at every hop

A route’s price impact depends on the liquidity available at each pool it uses. One shallow token pair can have an outsized effect on the final amount, even when other pools along the route are deep. The route’s fees also contribute to the amount received, so depth alone does not tell the whole story.

KyberSwap Aggregator can compare routes across available pools and networks. A route split across pools may reduce price impact when those pools have enough liquidity for the trade. But a split is not automatically better: limited depth on one hop or extra fees along a route can change the result.

For a fair comparison, look at the amount each route quotes for the same swap and consider the pools it passes through. The quoted amount reflects more than the displayed spot rate: it accounts for the path through available liquidity, the reserve changes, and fees. A shallow hop can pull the result away from the starting market price even if the other hops barely move.

Related

Why does a large swap move a pool’s price more?

A large swap moves a pool’s price more because it is larger relative to the reserves. As the trade consumes more of one token and adds more of the other, the reserve ratio shifts farther along the constant-product curve. The effect is therefore tied to trade size compared with available depth, not just the number of tokens in the swap.

Can a DEX aggregator reduce price impact?

A DEX aggregator can reduce price impact when it finds a route with deeper available liquidity or splits a trade across suitable pools. The outcome depends on the depth and fees at every hop; the route with the best starting spot rate may not produce the highest final amount. Comparing the route’s quoted output gives a clearer picture of those trade-offs.

Next, compare the quoted output and route for the swap you have in mind. That shows how the pools’ depth and fees shape the amount you would receive, instead of relying on the displayed market price alone.