Liquidity pool
Also called: liquidity pools, AMM pool, automated market maker, LP, DEX pool
A liquidity pool replaces the order book on a decentralized exchange such as Uniswap. Instead of buyers and sellers leaving orders at prices, liquidity providers deposit two tokens into a smart contract, and traders swap against those balances. The contract is called an automated market maker (AMM) because it always quotes a price, set by a formula, to anyone who wants to trade. Pools are why a DEX can work without a company in the middle, and why the size of the pool, not the number of traders, decides how much a swap costs.
How a constant-product pool sets the price
In the simplest pools (constant product, as on Uniswap v2), the two balances multiplied together must stay the same after every trade:
token A in the pool × token B in the pool = constant
The price is the ratio of the two balances. When you buy token B, you add token A and take token B out. Token B gets scarcer in the pool, so every next unit costs more.
Example. A pool holds 100 ETH and 300,000 USDC. The price is 300,000 / 100 = 3,000 USDC per ETH, and the constant is 100 × 300,000 = 30,000,000. You swap 3,000 USDC for ETH (pool fee ignored). The pool now holds 303,000 USDC, so it must hold 30,000,000 / 303,000 = 99.0099 ETH. You receive 100 − 99.0099 = 0.9901 ETH, an average price of about 3,030 USDC, 1% worse than the starting price. Your trade was 1% of the pool’s USDC side, and it cost about 1% in price impact.
In a pool ten times deeper, the same 3,000 USDC would cost about 0.1%.
How pool size changes the cost
The course measured real Uniswap v2 pools on Ethereum with reserves from 11 October 2026. A 10,000 dollar swap, including the 0.3% pool fee, cost about 0.4% in a 20.3 million dollar USDC/WETH pool, 1.6% in a 1.5 million dollar LINK/WETH pool, and 15% in a 114 thousand dollar CRV/WETH pool. Same trade, same formula; only the depth differed.
Liquidity providers and their risk
Anyone can deposit both tokens in the right ratio and become a liquidity provider. In return they earn a share of the swap fees. Their main risk is impermanent loss: when the price of the two tokens moves apart, the pool rebalances against them, and they end up with more of the token that fell. Newer designs, such as concentrated liquidity in Uniswap v3, let providers place their tokens in a chosen price range, which deepens the pool near the current price.
Pools vs order books
| Order book | Liquidity pool | |
|---|---|---|
| Who quotes the price | Traders, with limit orders | A formula |
| Depth comes from | Orders near the price | Size of the two balances |
| Your cost | Spread plus walking the book | Pool fee plus price impact |
Liquidity pools in the course
Pools matter to a level trader for one reason: the cost of entry. Before a swap, read the price impact, keep the slippage tolerance tight to avoid a sandwich attack, and use a deep pool or an aggregator. The lesson what slippage is works through the real pools above.
Questions about liquidity pool
How does a liquidity pool work?
A pool holds two tokens. A trader swaps one for the other by adding the first to the pool and taking the second out. A formula, most simply that the two balances multiplied together stay constant, decides how much comes out, so each next unit costs a little more.
Who provides the tokens in a liquidity pool?
Liquidity providers (LPs) deposit both tokens in the pool and receive LP tokens that record their share. They earn the fees traders pay on each swap, for example 0.3% in Uniswap v2 pools, and can withdraw their share later.
What is impermanent loss?
Impermanent loss is what a liquidity provider gives up when the price of the two tokens moves apart, compared with simply holding them. The pool keeps selling the token that rises and buying the one that falls. If the price returns, the loss disappears, hence the name; if the provider withdraws first, it is real.
Is a liquidity pool the same as liquidity on an exchange?
No. On a centralised exchange, liquidity means orders waiting in an order book at chosen prices. A pool has no orders, only two balances and a formula. The deeper the pool, the less a trade of a given size moves the price.