Liquidity Pools Explained
Master x*y=k formula, Uniswap V2 vs V3 concentrated liquidity, Curve StableSwap, impermanent loss calculations, and LP yields (10-25% APY).
What Are Liquidity Pools?
Liquidity pools are smart contracts holding equal value of two tokens enabling peer-to-peer trading without order books. Liquidity Providers (LPs) deposit both tokens, receive LP tokens representing ownership share. Traders swap by depositing one token, receiving another based on pool ratio. LPs earn trading fees (0.01%-1% per swap) and governance incentives.
This is one of those topics where surface-level understanding is dangerous. We've seen traders lose significant capital from misconceptions covered in this guide.
2026 DeFi liquidity: $180B TVL across all DEXs. Uniswap ($5.2B), Curve ($2.1B), Balancer ($1.8B). Risks: impermanent loss, smart contract bugs, MEV sandwich attacks. Returns: 10-25% APY depending on pair volatility and incentives.
AMM & Constant Product Formula (x*y=k)
Constant product formula: x * y = k. When you swap token A for B, pool receives A (x increases), sends B (y decreases), maintaining product. Price = pool ratio (x/y).
Example: ETH-USDC Pool
Pool: 10 ETH + $30,000 USDC. k = 10 × 30,000 = 300,000. Price = $3,000/ETH. Trader swaps 1 ETH: (10 + 1) × y = 300,000. y = 27,272.7. Trader receives $2,727 USDC (9.1% slippage).
Uniswap V2 vs V3 Concentrated Liquidity
Uniswap V2 (Full-Range)
Liquidity spread across 0 to infinity price range. Capital inefficient but maximum IL protection. Best for volatile pairs, passive LPs.
Uniswap V3 (Concentrated)
Concentrate liquidity in narrow range. 20-100x capital efficiency. Higher fees in-range, risk if price exits range. Best for stablecoins, active management.
| Feature | V2 | V3 |
|---|---|---|
| Range | 0 to ∞ | Custom (e.g., $1.9-$2.1K) |
| Capital Efficiency | 1x | 20-100x |
| IL Risk | High (spread everywhere) | Very high (if out-of-range) |
Impermanent Loss: Definition & Calculation
Impermanent Loss (IL): when price moves from entry, LP position underperforms hodling. Called "impermanent" because IL reverses if price returns to entry point.
IL Calculation Example
Entry: $5K ETH @ $2K + $5K USDC. Price moves: ETH = $4K (2x). Hold: 2.5 ETH = $15K total. LP: 1.76 ETH + $7,050 USDC = $10,090. IL = ~$5K relative to hodling (50% of upside foregone).
Fee earnings can offset IL. High-volume pair: ETH-USDC 0.05% earns 1-2% monthly fees. If ETH 2x moves (5.7% IL), fees recover it within 3-6 months.
Yield Farming & MEV Impact
Yield Farming Incentives
Protocols distribute tokens to LPs. Aave LM: ETH-GHO pool earns AAVE + fees = 25% APY. Strategy: farm early, exit within 3-4 months. Expect 50% token depreciation post-launch.
MEV Impact on LPs
Sandwich attacks: bots insert transactions before/after yours. LP loses 0.5-5% per trade. Defense: use L2 with MEV ordering, Flashbots Protect.
FAQ
Educational disclaimer: This guide is for informational purposes only and does not constitute financial advice. Crypto involves significant risk — do your own research before making any decisions. Learn more about our team.
Educational disclaimer: This guide is for informational purposes only and does not constitute financial advice. Crypto involves significant risk — do your own research before making any decisions. Learn more about our team.
Sources & further reading
These are primary sources, established data vendors, or canonical specifications we referenced or cross-checked while writing this page.