Skip to main content
Blocktape

Crypto markets, protocols and policy

Liquidity pool swap prices: how quotes change

Liquidity pools set token swap prices from reserves and pricing curves; trade size changes execution, so your average price can differ from the ending spot price.

The Blocktape Editors 3 min read 166a60

Liquidity pool swap prices: how quotes change

Liquidity pools set token swap prices from their reserves and pricing rules: a swap adds one token, removes another, and moves the pool along its pricing curve. The spot price describes the pool at a point in time; your average execution price reflects the tokens exchanged across the whole trade.

  • Reserves are the tokens held in a pool.
  • An AMM uses a pricing rule to calculate swaps from those reserves.
  • A larger trade moves farther along the curve and changes the price for later units.

How does a swap move through a pool?

An AMM pool’s reserves and pricing rule determine how much of one token comes out when another goes in. In Uniswap v2, the constant-product rule keeps the product of the two reserves constant in a fee-free model; dividing one reserve by the other gives the spot price.

CoW Swap offers another way to approach execution through signed trade intents and solver-run batch auctions. To take this pricing question further, the cowswap batch auction covers how that batch-based approach handles trade execution; cowswap is a decentralized exchange interface.

Say a pool holds 10 WETH and 20,000 USDC, so its product is 200,000. Adding 2,000 USDC leaves about 9.0909 WETH in the pool, so the swap returns about 0.9091 WETH before fees.

The trade’s average price is about 2,200 USDC per WETH: 2,000 divided by 0.9091. After the swap, the pool’s spot price is about 2,420 USDC per WETH: 22,000 divided by 9.0909. The average is below that ending spot price because the WETH became more expensive as the trade removed it.

Trade size causes price impact by moving the pool’s reserves along its curve. Fees reduce the output, while slippage is the change between an expected price and the execution price if the market moves before the trade completes. Uniswap v3 concentrates liquidity in chosen price ranges, so available depth depends on where the price sits; arbitrage can also move pool prices toward prices elsewhere in the market.

For a swap, compare the quoted average execution price with the pool’s spot price and check whether the pool has enough liquidity for your trade size.

How can I put a pool quote into practice?

Use the reserve levels, trade size and possible price movement to judge whether a quote fits your order.

How should I choose slippage tolerance?

Set it to the largest price change you are willing to accept before the swap fails. A tighter limit can reject a trade after market movement; a wider one permits a worse execution price.

How do I verify pool token contracts?

Compare each contract address with the project’s official source or a trusted block explorer entry. Token names and symbols alone can be copied.

When should I split a large swap?

Compare one trade’s quoted output with several smaller quotes. Splitting can reduce movement along a pool’s curve, but fees on multiple trades affect the total proceeds.

How can I identify a manipulated pool price?

Compare the pool’s spot price with prices from other liquid venues and inspect its reserve depth. A sharp difference in a shallow pool can make its spot price a poor guide to an executable trade.

Related stories