A liquidity pool is a smart contract holding two or more tokens that anyone can trade against, funded by depositors who earn fees in return. Liquidity pools are the backbone of decentralized finance: they replace the traditional order book with a mathematical formula, and they turn passive token holders into active market makers.
Why liquidity pools exist
Traditional exchanges match buyers with sellers through an order book. That model works well when there are many active traders on both sides of a market, but it breaks down for thinly traded assets or in environments where no central party can be trusted to run the book.
Decentralized exchanges and AMMs solve this with an automated market maker (AMM). Instead of matching orders, an AMM always quotes a price based on the ratio of tokens in a pool. Anyone can trade at any time — the pool never closes — and the price adjusts automatically with every trade. The catch is that someone has to put the tokens in.
That someone is a liquidity provider (LP).
How becoming an LP works
When you deposit into a pool, you lock in both tokens in the current ratio. If the pool holds ETH and USDC and the current ratio values 1 ETH at 2,000 USDC, you must supply equal dollar value of each — say, 0.5 ETH and 1,000 USDC.
In return, the pool contract mints LP tokens that represent your proportional share. These tokens are your receipt. Burn them later and the contract releases your share of the pool’s assets — plus any fees that have accumulated.
If the pool holds 100 ETH and 200,000 USDC and you deposit 1 ETH plus 2,000 USDC, you own roughly 1% of the pool. Every trade that flows through earns a fee (commonly 0.3% of the trade’s value). Your 1% share earns 1% of every fee, continuously, for as long as your LP tokens are staked.
Fees are not paid out as separate transactions — they accumulate inside the pool. When you withdraw, your share of the pool is worth more than what you put in, in nominal fee terms. The real return depends on price movements too, which is where impermanent loss enters.
Where the yield actually comes from
It helps to separate the two distinct sources of return an LP can receive.
Trading fees
Every swap through the pool charges a fee that stays inside the pool, increasing the total value of assets relative to the number of LP tokens outstanding. This is real, durable yield: it comes from traders who want to use the pool. High-volume pairs (major stablecoin pairs, ETH/BTC equivalents) generate more fee income than obscure pairs, though they also tend to attract more LPs, diluting any individual’s share.
Liquidity mining rewards
Many protocols also emit their own governance or reward tokens to LPs as an incentive to bootstrap liquidity. These are distinct from trading fees. You stake your LP tokens in a rewards contract, and the contract drips newly minted protocol tokens to you proportional to your stake.
This is sometimes called yield farming — actively moving capital between pools to maximize the rate of reward token emissions. The key thing to understand is that these rewards are inflationary: new tokens are being created and handed to LPs. That’s only sustainable if the protocol’s token holds its value and demand for those tokens remains strong. When the rewards dry up or the token price falls, LP returns from this source can collapse quickly.
| Yield source | Where it comes from | Durability |
|---|---|---|
| Trading fees | Traders paying to use the pool | Tied to trading volume; structurally durable |
| Liquidity mining | Newly minted protocol tokens | Inflationary; depends on token demand |
| Lending interest (in lending AMMs) | Borrowers paying to borrow | Tied to borrowing demand |
The impermanent loss problem
Providing liquidity is not the same as simply holding two tokens. When the price of one token moves relative to the other, the AMM formula rebalances your position automatically — selling the appreciating token and accumulating the depreciating one. If you withdraw after a large price move, you end up with less total value than if you had just held the tokens in your wallet.
This shortfall is called impermanent loss. It is “impermanent” because if prices return to where they were when you deposited, the loss disappears. In practice, prices often do not return, and the loss becomes permanent at the moment you withdraw.
Impermanent loss tends to be larger in volatile pairs (ETH/small-cap token) and negligible in stable pairs (USDC/DAI), where the price ratio barely moves. Understanding this dynamic is essential before depositing into any pool.
Concentrated liquidity
Later-generation AMMs introduced a refinement: concentrated liquidity. Instead of spreading your capital across all possible prices from zero to infinity, you choose a price range. Your capital only earns fees when the market price is inside your range — but it earns a much larger share of fees than if it were spread thin.
The trade-off is active management. If the price moves outside your range, your position stops earning entirely, and you effectively hold only one of the two tokens. This gives experienced LPs a tool to earn more, but it also introduces a new way to lose if you set the range poorly or fail to adjust it.
Composability and risk stacking
One reason DeFi can offer higher yields than traditional finance is composability: the ability to stack protocols on top of each other. LP tokens can themselves be deposited into other protocols as collateral for loans, or into yield aggregators that automatically compound your earnings. Each layer adds potential return and potential risk.
If any contract in the stack has a vulnerability, all the capital sitting on top of it is at risk. Understanding smart contracts and the specific risks of each protocol you interact with is not optional — it is the core competency required to participate safely. Notable exploits in DeFi history have drained entire pools through bugs in pool logic, oracle manipulation, or flash loan attacks. A review of notable hacks and failures makes sobering reading.
Practical considerations before you start
- Gas costs: Depositing, compounding, and withdrawing all cost gas fees. On Ethereum mainnet, these can be substantial enough to wipe out earnings on small positions. Layer 2 networks drastically reduce this friction.
- Smart contract risk: Every pool is a contract. Audits reduce but do not eliminate the risk of bugs. Unaudited contracts carry significantly higher risk.
- Token risk: If one of the two tokens in a pool goes to zero, so does most of your position, fees notwithstanding.
- Reward token inflation: High advertised APYs driven by liquidity mining often reflect the value of tokens being printed, not sustainable fee income. They can fall sharply.
None of this means liquidity providing is unwise — it means it warrants the same due diligence you would give any investment with a real risk of loss.
Key takeaways
- Liquidity pools are smart contracts holding token pairs that anyone can trade against; depositors (LPs) earn a share of trading fees proportional to their pool share.
- LP tokens represent your claim on the pool and accumulate fee value over time; withdrawing burns them and releases your assets plus earnings.
- Yield farming refers to earning additional protocol token rewards on top of fees by staking LP tokens in reward contracts — this yield is inflationary and not guaranteed to hold its value.
- Trading fees are durable yield; liquidity mining rewards depend on token demand and can evaporate when emissions slow or token prices fall.
- Impermanent loss means volatile price movements between your two deposited tokens reduce your withdrawal value compared with simply holding them.
- Concentrated liquidity boosts fee efficiency but requires active management and carries added risk of your position falling out of range.
Next up: Impermanent Loss