crypto · published
Liquidity Pools
Automated Market Making
Constant-product liquidity curve
FigureLiquidity pools are smart contracts that hold token pairs and enable automated market making.
Traditional exchanges rely on well-capitalized market makers quoting bids and offers into an order book. A pool replaces those quotes with a formula: anyone can deposit the two assets, and the contract prices every trade against its reserves, permissionlessly, at all hours of the day.
Pools don't eliminate order books—they're a different venue design. Centralized exchanges still run order books, and so do some on-chain protocols. What pools changed is who gets to be the market maker.
A Worked Trade
Take a pool holding 10 ETH and 30,000 USDC. The constant product formula x * y = k gives k = 300,000, and the implied price is 3,000 USDC per ETH.
Say a trader wants to buy 1 ETH:
- The ETH reserve must fall to 9, so the USDC reserve must rise to 300,000 / 9 ≈ 33,333.
- The trader therefore pays about 3,333 USDC—roughly 11% above the quoted price. That gap is price impact, and it's the direct consequence of trade size relative to pool depth. The same trade in a pool 100x deeper would move the price by roughly 0.1%.
- On top of that, the pool charges a trading fee (0.3% on many early pools, about 10 USDC here), which accrues to liquidity providers.
- Slippage is the difference between the price you saw and the price you settle at, which is why interfaces let you set a slippage limit that reverts the trade if the pool moves first.
After the trade, the pool quotes ETH at about 3,704 USDC—out of line with every other venue. Arbitrageurs close that gap by selling ETH into the pool until its price matches the wider market. Those arbitrage trades are what keep pool prices honest, and they generate more fee income for the pool—but they're also, by definition, trades where the pool sells low or buys high against better-informed flow.
What LPs Actually Earn
A liquidity provider's return is fees earned, plus any token incentives, minus what the price moves cost them:
- Impermanent loss: when the two assets' prices diverge, the pool automatically sells the appreciating asset and accumulates the depreciating one, so the LP position underperforms simply holding the same assets. The loss becomes permanent if you withdraw after the divergence.
- Loss-versus-rebalancing (LVR): the arbitrage flow described above is a systematic cost—the pool always trades with arbitrageurs at slightly stale prices.
In calm markets with heavy trading volume, fees can outrun these costs. In trending or volatile markets, they often don't.
Key Components
| Component | Function | Impact |
|---|---|---|
| Token Pairs | Trading Assets | Market Creation |
| LP Tokens | Ownership Proof | Anyone can provide liquidity |
| Trading Fees | Incentives | Liquidity Providers earn fees |
| Smart Contract | Pool Logic | Automated Trading takes place 24/7 |
Other Risks
- Smart contract risk: pool contracts hold the funds; a bug or exploit can drain them, and audits reduce but don't remove that risk.
- MEV: large trades can be sandwiched—front-run and back-run by bots—which is another reason slippage limits exist.
- Oracle risk: protocols that price collateral or synthetic assets off pool prices inherit the pool's manipulability; thin pools make cheap oracle attacks.
- Concentrated liquidity: newer pool designs let LPs supply liquidity within chosen price ranges. Fee income per dollar deposited rises, but the position now needs active management, and impermanent loss inside the range is amplified. It's a professional tool, not a set-and-forget upgrade.
Innovations
| Innovation | Description | Trade-off |
|---|---|---|
| Concentrated Liquidity | Liquidity focused within price ranges | More fees per dollar, more management and sharper IL |
| Multi-Token Pools | Pools supporting up to 8 tokens | Broader exposure, more complex risk |
| Dynamic Fee Structures | Fees adjusting to volatility | Better compensation in volatile markets |
Where This Is Heading
As of early 2022, the visible directions are real-world assets in pools, private transactions, better impermanent-loss mitigation, and cross-chain liquidity. Each extends the same core idea: replace quoted markets with formula-priced reserves, and let anyone fund them.