Level 4 · Money and marketsThe gold rush#281

Liquidity pools: you fill the strongbox, you own a slice, and you take the risk

A liquidity pool is a smart contract holding two tokens that traders swap against. The people who fill it get pool shares, LP tokens, and earn a slice of the trading fees in proportion to their share, while carrying the price risk of both tokens.

The vending machine at the edge of the boomtown needs something to sell. Somebody has to fill its two sacks, one with gold dust and one with coins, before the first prospector walks up.

So the machine makes an offer to anyone passing. Put both into my strongbox, in the right ratio, and I'll give you a receipt. Every time someone trades, I keep a small fee, and your receipt is worth a slice of everything inside.

That's a liquidity pool. The people who fill it are liquidity providers. The receipt is a token. The slice is exact, of the fees and of whatever happens to the two coins.

What it is

A liquidity pool is a smart contract holding reserves of two tokens. An automated market maker uses those reserves to price swaps, as the previous article showed.

Anyone can add to a pool by depositing both tokens at the pool's current ratio. In return the contract mints pool shares, usually called LP tokens. Uniswap's documentation says they "are merely an accounting or bookkeeping tool to keep track of how much the liquidity providers are owed" (Uniswap). Hand them back and the contract pays out your share of both reserves, whatever the reserves are at that moment.

How it works

Take the pool from the last article: 100 ether and 200,000 dollar stablecoins, a price of 2,000 dollars per ether. That price is an assumption for the example.

The first deposit. In Uniswap v2, the first depositor gets shares based on both amounts. The whitepaper says the contract "initially mints shares equal to the geometric mean of the amounts deposited" (Uniswap v2 whitepaper). The geometric mean of 100 and 200,000 is the square root of their product, 20,000,000: about 4,472.14 shares. A tiny amount is set aside for good: the contract "burns the first 1e-15 (0.000000000000001) pool shares that are minted".

Your deposit. You add 10 ether and 20,000 stablecoins, the same 1 to 2,000 ratio. You've grown each reserve by 10%, so the contract mints 10% more shares for you: about 447.21. The pool now has about 4,919.35 shares, and yours are 1 in 11 of them, about 9.09%. The pool holds 110 ether and 220,000 stablecoins, worth 440,000 dollars at the assumed price. Your slice is worth 40,000 dollars, exactly what you put in.

The fees. Uniswap's fee page, read on 19 November 2026, shows v2 pools paying 0.25% of each trade to liquidity providers and 0.05% to the protocol, out of a 0.30% fee (Uniswap). Assume 500,000 dollars of trades go through the pool in a day. That's 1,250 dollars for the providers, and your 9.09% is about 113.64 dollars.

Nobody sends you that money. As Uniswap's documentation puts it, "By default, these fees are put back into the liquidity pool, but can be collected any time." The reserves grow, the number of shares doesn't, so each share is worth a bit more. If the price had ended the day back at 2,000, your slice would be worth about 40,113.64 dollars.

That "if" is doing a lot of work. Trades change the mix in the strongbox. If ether rises, arbitrage traders take ether out and put stablecoins in, and your slice ends up with less ether than you deposited. The next article measures what that costs.

Why it matters

Liquidity providers are the shovel sellers' silent partners. Without them, a pool-based DEX has nothing to trade. Their reward is the fee, and the volume is what pays it: a pool with lots of money and few trades pays its providers very little.

The pool also spreads every risk exactly. A bug in the contract, a fake token on one side or a coin that collapses hits every share in proportion. Your 9.09% of the fees comes with 9.09% of the trouble.

And the reward is often dressed up. The saloon talks in annual percentages, often with extra reward tokens on top. A fee yield read from one busy week, multiplied by 52, is a guess about the future, not a rate. The article on APR vs APY explains how the sums get flattered.

Where people get it wrong

  • "I deposited ether, so I'll get my ether back." You get your share of whatever the pool holds when you leave, which can be more of one token and less of the other.
  • "LP tokens are a separate investment." They are a receipt for a share of the pool. If the pool is drained, the receipt is worth nothing.
  • "The fee rate is my return." Your return is fee income plus or minus what happened to the two prices. Fees can be wiped out by price moves.
  • "Big pools pay more." Fees depend on trading volume. Spread over more deposits, the same volume pays each provider less.
  • "Any pool on a reputable DEX is safe." Anyone can create a pool for any pair. The other token can be fool's gold.

Read your receipt

Before you add to a pool, look up three numbers on the DEX page or a dashboard: the size of the pool, its trading volume over a long stretch, not one day, and the fee tier. Fee income per dollar is roughly volume times fee divided by pool size. Then ask what happens to your slice if one of the two tokens halves.

The strongbox pays you a slice of every trade. It also hands you a slice of every bad day, and it never asks first.

Frequently asked questions

What is a liquidity pool in crypto?

A liquidity pool is a smart contract that holds two tokens so that traders can swap between them. The tokens come from users called liquidity providers. The pool's automated market maker sets the price from the ratio of the two reserves.

What are LP tokens?

LP tokens are receipts that a pool mints to liquidity providers when they deposit. They record each provider's share of the pool. Returning them to the contract pays out that share of both reserves, including the fees that have built up.

How do liquidity providers earn money?

They earn a share of the trading fees in proportion to their share of the pool. In Uniswap v2 pools, providers get 0.25% of each trade and the protocol 0.05%, according to Uniswap's documentation read on 19 November 2026. The fees are added to the pool, so each share becomes worth more.

Can you lose money in a liquidity pool?

Yes. If the prices of the two tokens move apart, you end up with a different mix than you deposited, and it can be worth less than simply holding the tokens. You can also lose through contract bugs, hacks or a token in the pool losing its value.

Do I need to deposit both tokens?

In a standard two-token pool, yes, at the pool's current ratio of the two. A website that accepts only one token has to swap part of it into the other first, which costs a fee and price impact.

Sources

  1. Hayden Adams, Noah Zinsmeister, Dan Robinson, Uniswap v2 Core (whitepaper, March 2020)
  2. Uniswap, Understanding returns (v2 developer documentation)
  3. Uniswap, Fees (developer documentation), read on 19 November 2026

Read next.