๐ Liquidity Pool Liquidity Pool
A shared stash of two crypto tokens locked in a smart contract. Instead of waiting for someone to take the other side of your trade, you swap directly against the pool โ anytime, day or night.
๐ช The simple version โ a self-service exchange kiosk
Picture a self-service currency-exchange kiosk that two travelers stocked with equal piles of dollars and euros. Anyone can walk up and swap at any hour โ no teller, no waiting for a matching customer. As one pile shrinks, that currency gets a little pricier. The travelers who stocked the kiosk earn a small fee on every swap. A liquidity pool is that kiosk, built from two crypto tokens locked in a smart contract.
๐ค Who fills the pool, and what do they get?
The people who stock it are called liquidity providers (LPs). They deposit a token pair, usually equal value of each (for example ETH plus a stablecoin like USDC). In return they receive LP tokens โ a receipt that proves their share of the pool and entitles them to a cut of the trading fees. Burn the receipt later and you redeem your share of whatever is in the pool.
โ๏ธ How a price exists with no order book
A normal exchange uses an order book: it matches a buyer to a seller. A pool has neither. Instead an Automated Market Maker (AMM) runs a formula. The most common one is the constant product rule:
| Piece | What it means |
|---|---|
๐ x ยท y = k | x and y are the amounts of the two tokens; k must stay constant |
| ๐ You buy token X | You remove some X, so y must grow โ you put in more of token Y |
| ๐ Price moves | As X drains from the pool, each remaining X costs more. The math reprices automatically. |
๐ This is why a big trade in a small pool causes heavy slippage: you're draining one side fast, and the formula pushes the price hard against you.
๐ Why pools matter
Liquidity pools are the engine behind decentralized exchanges (DEXs) and much of DeFi, from token swaps to lending and yield farming. They run 24/7 with no central middleman, and anyone with crypto can supply liquidity and earn fees. The flagship example is Uniswap, whose pools popularized the x ยท y = k design and the common 0.3% fee.
๐จ Things beginners should know
- ๐ป Impermanent loss โ Arbitrage traders rebalance the pool, so your position can be worth less than if you had just held the two tokens
- ๐ It can turn permanent โ Withdraw while the ratio is still skewed and that loss is locked in for real
- ๐ Smart-contract risk โ The pool is code; bugs or exploits can drain it, no matter how the price behaves
- ๐งฎ Fees aren't a guarantee โ Fee income can offset impermanent loss, but it doesn't promise you come out ahead
โ FAQ
- Where does the price come from if there's no buyer on the other side?
- A formula sets it. Most pools use a constant product rule, x * y = k, where x and y are the amounts of the two tokens. When you buy one token, you drain that side of the pool, so its price automatically rises. No human or order book is matching you โ the math does it.
- How do liquidity providers actually earn money?
- Every swap pays a small trading fee (on Uniswap, commonly 0.3%). That fee is split among everyone who supplied tokens to the pool, in proportion to their share. The more trading the pool sees, the more fees flow to providers.
- Is impermanent loss really only temporary?
- Only on paper. The loss is 'impermanent' while the price ratio can still drift back to where you deposited. The moment you withdraw with the ratio still skewed, that loss becomes permanent and real. Fees you earned can offset it, but they don't guarantee you come out ahead of simply holding the two tokens.