What does “liquidity pool” mean?
Also called: AMM pool, DeFi liquidity pool
Two tokens locked in a smart contract that anyone can swap for one another. A common constant-product pool keeps the product of the two amounts unchanged, and price = the amount on one side ÷ the amount on the other.
In detail
An order book needs some people posting orders and others taking them, and obscure tokens often have nobody posting. A liquidity pool works differently: people first deposit equal values of two tokens into a smart contract, anyone can then swap one for the other, and the contract sets the price by formula. The depositors are called liquidity providers, and the fees traders pay are shared among them according to their stake.
The most common is the constant-product pool: the product of the two token amounts stays the same before and after a trade (ignoring fees), and price = the amount on one side ÷ the amount on the other. When you take one token out and put the other in, the ratio changes, and so does the price. So the deeper the pool, the less a trade of a given size moves the price; the shallower the pool, the bigger the price impact.
A pool's price is set only by its internal ratio; when it drifts away from the outside market, arbitrageurs trade it back into line. Depositors bear impermanent loss, plus the risks of contract bugs and of the tokens themselves falling.
Example
A pool holds 1,000 ETH and 3,000,000 USDT, a price of $3,000. Someone buys with 30,000 USDT (ignoring fees) and the pool gives out about 9.9 ETH, an average price of about $3,030. Afterwards the pool holds about 990.1 ETH and 3,030,000 USDT, and the quote has moved to about $3,060.
Common mistake
Thinking the price a pool shows is the price you'll get. The quote only holds for very small trades; the bigger your trade relative to the pool, the worse your average price.
Learn “liquidity pool” in an animated lesson
Common questions about liquidity pool
How is the price in a liquidity pool determined?
By the ratio of the two token amounts in the pool. In a common constant-product pool, price = the amount on one side ÷ the amount on the other; your trade changes the ratio, and with it the price.
What can you earn by depositing in a liquidity pool, and what are the risks?
You earn a share of the trading fees in proportion to your stake (illustrative; a 0.3% fee per trade is common). The risks include impermanent loss, the contract being hacked and the pool's tokens themselves crashing.
Related terms
See how “liquidity pool” works for yourself with an animation you can drag and play.
Go to “Decentralized Exchanges and Liquidity Pools”