Foundations · Exchanges, DEX & DeFi
Liquidity Providers
Liquidity providers deposit both tokens of a pair into a liquidity pool so that others can trade against it, and receive a share of the swap fees while carrying the pool's risks.
Why it matters
A liquidity pool is only useful if someone has put tokens into it. The people who do so are liquidity providers, and they are the other side of every swap on an automated market maker.
Providing liquidity is often advertised with a yearly percentage and little else. This page explains what a provider actually owns, where the fees come from, and what the provider gives up in exchange.
How it works
- Deposit both tokensIn the pool's current ratio.
- Receive LP tokensA receipt for a share of the pool.
- Fees accumulateEach swap adds a small fee to the pool.
- The mix changesTraders alter the balance of the two tokens.
- WithdrawA share of whatever the pool holds by then.
A provider deposits both tokens of a pair, in the ratio the pool currently holds. If the pool has 100 B for every 1 A, a deposit of 10 A needs 1,000 B alongside it.
In return the pool issues LP tokens, which record the provider’s share of the whole pool. They are a receipt, not a fixed claim on the tokens deposited. Returning them later pays out the same share of whatever the pool holds at that time.
Every swap pays a fee that stays in the pool. Since the pool grows while the number of LP tokens does not, each LP token gradually represents a little more. That is how fees reach providers in the simplest design.
In plain words
Picture a shared market stall. Several people stock it with apples and oranges and agree to split the takings by how much each contributed. Customers swap one fruit for the other all day. At closing time each partner takes a share of whatever fruit is left, which may be a very different mix from the one they brought.
What a provider receives and takes on
RECEIVES
Payment for making trading possible.
- A share of swap fees, in proportion to pool share
- Sometimes extra reward tokens issued by the protocol
TAKES ON
The risks of the pool.
- Impermanent loss when the price ratio moves
- Price risk on both tokens
- Smart contract risk in the pool
- A fee rate that rises and falls with trading volume
| Source of return | What it depends on |
|---|---|
| Swap fees | Trading volume in the pool, the fee percentage and the provider’s share |
| Reward tokens | A program set by the protocol, which can be reduced or ended, and the market price of the reward token |
Quoted rates are not income
Rates shown for pools, usually as APR or APY, are estimates based on recent activity. They are variable and are not guaranteed. Extra rewards are often paid in a token whose price can fall. Whatever the displayed rate, the position carries impermanent loss, price risk on both tokens and smart contract risk. A provider can finish with less than was deposited.
Going deeper
Changing mix. As traders buy one token from the pool, the pool is left with less of it and more of the other. A provider’s share therefore shifts toward whichever token has fallen in relative price. The cost of this, compared with simply holding, is impermanent loss.
Dilution. A provider’s share shrinks when others add liquidity. The same trading volume then pays each provider less, which is one reason a displayed rate drops after it attracts deposits.
Price ranges. Some designs let a provider supply liquidity only within a chosen price range. Inside the range the position earns more fees per token than a full-range position would. Outside it, the position earns nothing and consists entirely of the token that has fallen in relative price. Narrow ranges magnify both effects.
A passive market maker. In an order-book market, market makers move their quotes when news arrives. A simple pool cannot. It keeps offering the old price until an arbitrage trader corrects it, at the providers’ expense.
LP tokens elsewhere. LP tokens can sometimes be deposited in other protocols. Each extra layer adds its own contract risk.
One hypothetical month in a poolHypothetical illustration
Made-up numbers. A pool holds 1,000 A and 100,000 B, with A priced at 100 B. One provider supplied 10 A and 1,000 B of that, a position worth 2,000 B and equal to 1% of the pool.
Over a month the pool handles 500,000 B of swaps at a fee of 0.3%:
- total fees: 0.3% of 500,000 = 1,500 B;
- the provider’s 1% share: 15 B;
- as a fraction of the position: 15 / 2,000 = 0.75% for the month.
Multiplying by twelve gives a 9% yearly figure. That number is only true if volume, pool size and prices repeat exactly for a year, which they do not.
Now suppose A doubled against B during the month. Holding 10 A and 1,000 B would be worth 3,000 B. The pool position would be worth about 2,828 B before fees, which is about 172 B less. Adding the 15 B of fees still leaves the provider about 157 B behind simply holding.
What it does NOT mean
- A displayed rate is not a promise. It is an estimate from recent activity that can change within hours.
- Providing liquidity is not a deposit that pays interest. It is an active exposure to two tokens and a contract.
- Earning fees does not mean coming out ahead. Fees can be smaller than the loss from the changing mix.
- LP tokens are not a claim on the original tokens. They are a share of the pool as it stands at withdrawal.
- A high rate is not a sign of a good pool. It often reflects a small pool, a volatile pair or a reward token being issued in quantity.
Common misunderstandings
- Comparing only the percentages. Two pools with the same displayed rate can carry very different risks.
- Measuring the result in fees alone. The fair comparison is against holding the two tokens, and against the value at deposit.
- Counting reward tokens at today’s price. Their price may be lower by the time they are received or sold.
- Forgetting gas. Depositing, claiming and withdrawing each cost a network fee, which weighs most on small positions.
- Treating both tokens as equally sound. If one token fails, the pool ends up holding mostly that token.
Risks and limits
- Impermanent loss whenever the relative price of the two tokens moves.
- Price risk on both tokens, measured in ordinary money.
- Contract risk in the pool and in any protocol the LP tokens are placed in. See smart contract risk.
- Token risk: a token that collapses or turns out to be fraudulent leaves providers holding it.
- Variable returns: fees depend on volume, and reward programs can end.
Key takeaway
A liquidity provider supplies both tokens to a pool and is paid a share of swap fees for it. The payment is variable and comes with impermanent loss, price risk and contract risk, so the fees may or may not cover what the position costs.
Sources and further reading
- How Uniswap Works (opens in a new tab), Uniswap Labs. Pools hold reserves of two tokens, prices follow a constant product formula, swap fees accrue to liquidity providers, and larger trades move the price more
- Token Standards (opens in a new tab), ethereum.org. Token standards define how tokens behave and interact across Ethereum