Liquidity Pools Explained
When you trade on a decentralized exchange (DEX), you're not trading with another person. You're trading against a liquidity pool — a smart contract holding reserves of two or more tokens.
Liquidity pools are one of the most important innovations in DeFi, enabling permissionless trading without order books or market makers.
The Problem They Solve
Traditional exchanges match buyers and sellers through an order book. For this to work efficiently, you need market makers — professional traders who continuously post buy and sell orders to provide liquidity.
Decentralized exchanges can't rely on traditional market makers. Instead, DeFi invented the Automated Market Maker (AMM) — a mathematical formula that prices assets based on the ratio of tokens in a pool.
How Liquidity Pools Work
Here's the basic mechanics:
- Liquidity providers (LPs) deposit an equal value of two tokens into a pool (e.g., ETH and USDC)
- The pool smart contract holds these reserves and uses a formula to set prices
- Traders swap one token for another by interacting with the pool
- The pool automatically adjusts prices based on supply and demand
- LPs earn fees from every trade that passes through the pool
The Constant Product Formula
The most common AMM model (used by Uniswap v2) uses:
x × y = k
Where x and y are the quantities of each token, and k is a constant. When you buy ETH from a pool, you reduce the ETH supply and increase the USDC supply — the price adjusts automatically to maintain the equation.
Becoming a Liquidity Provider
Anyone can provide liquidity and earn fees. Here's the general process:
- Choose a pool on a DEX like Uniswap, Curve, or Balancer
- Deposit an equal value of both tokens
- Receive LP tokens representing your share of the pool
- Earn a percentage of all trading fees proportional to your share
- Withdraw anytime by burning your LP tokens
Typical fee rates: 0.05% to 1% per trade, depending on the pool.
Types of Liquidity Pools
Standard AMM Pools (Uniswap v2 style)
Two tokens, equal value, constant product formula. Works for any token pair but less capital efficient.
Concentrated Liquidity (Uniswap v3)
LPs specify a price range in which their liquidity is active. More capital efficient — you earn more fees per dollar if the price stays in your range — but requires active management.
Stable Pools (Curve Finance)
Optimized for assets that should trade at near-equal value (e.g., USDC/USDT/DAI). Much lower slippage for stablecoin swaps.
Weighted Pools (Balancer)
Pools with more than two tokens and custom weightings (e.g., 80% ETH / 20% USDC). Useful for portfolio-like exposure.
The Key Risk: Impermanent Loss
Impermanent loss is the most important concept for liquidity providers to understand.
When the price of tokens in a pool diverges, the AMM rebalances them automatically. This means LPs end up holding more of the token that dropped in price and less of the one that rose — compared to simply holding the tokens.
Example: You deposit ETH + USDC when ETH = $2,000. ETH rises to $4,000. The AMM sold some of your ETH as it rose. You end up with less ETH than if you'd just held it — the difference is impermanent loss.
It's called "impermanent" because if prices return to their original ratio, the loss disappears. But if you withdraw while there's divergence, the loss is realized.
Impermanent loss is minimized when:
- Paired tokens are correlated (e.g., ETH/stETH)
- Prices remain relatively stable
- Trading fees are high enough to offset the loss
LP Tokens and Composability
LP tokens aren't just receipts — they're fully functional tokens that can be used in other DeFi protocols:
- Stake LP tokens to earn additional rewards (yield farming)
- Use them as collateral in lending protocols
- Trade them on secondary markets
This composability is what makes DeFi so powerful — and so complex.
Continue Learning
- DEXs — the exchanges that use liquidity pools
- Yield Farming — how to maximize returns from LP positions
- Stablecoins — a key component of most liquidity pools
- DeFi Risks — impermanent loss and smart contract risk in detail
For a comprehensive guide to DeFi mechanics, read Understanding DeFi from the Mastering Crypto series.