The problem pools solve
Imagine you want to exchange ETH for USDC. On a traditional exchange (like a stock market), there are buyers and sellers placing orders at different prices — a system called an order book. For this to work, you need lots of people actively placing orders. Otherwise, there's nobody on the other side of your trade.
Most crypto tokens don't have enough traders to maintain a healthy order book. So DeFi invented an alternative: instead of matching buyers and sellers, you trade against a pool of tokens that anyone can deposit into. No order book, no waiting for a buyer. You swap instantly, the pool adjusts its prices automatically, and the people who deposited tokens into the pool earn a cut of every trade.
This system is called an Automated Market Maker (AMM), and it's the engine behind decentralized exchanges like Uniswap, Curve, Raydium, and PancakeSwap.
How a liquidity pool works
A liquidity pool is a smart contract that holds two (or sometimes more) tokens. Anyone can deposit tokens into the pool and become a liquidity provider (LP). In return, they receive a share of the trading fees generated when other people swap tokens using that pool.
Step by step: the life of a pool
- Creation — Someone creates a pool for two tokens, say ETH and USDC. They deposit an equal value of both — for example, 1 ETH ($2,000) and 2,000 USDC. The pool now has $4,000 of total liquidity.
- More LPs join — Other people deposit ETH and USDC in the same ratio. The pool grows. More liquidity means less price impact per trade (better for traders).
- Traders swap — Someone wants to buy ETH with USDC. They send USDC to the pool and receive ETH. The pool now has more USDC and less ETH. The price adjusts automatically.
- Fees accumulate — Each swap pays a fee (typically 0.05% to 1%). This fee is added to the pool, increasing the value of every LP's share.
- LPs withdraw — When you want your tokens back, you return your LP receipt and receive your proportional share of the pool — including accumulated fees.
The key insight
As a liquidity provider, you're not picking a side. You're not betting that ETH goes up or that USDC goes up. You're providing both tokens and earning fees from every trade, regardless of direction. You're acting like the house in a casino — you don't care who wins, you take a cut of every game.
But there's a catch, and it's called impermanent loss.
The magic formula: x × y = k
Most AMMs use a simple mathematical formula to determine prices. The original (and still most common) is the constant product formula:
x × y = k
Where x is the quantity of Token A in the pool, y is the quantity of Token B, and k is a constant that can only increase (from fees).
This formula means that as traders take one token out of the pool, they must put more of the other token in — and the price changes as the ratio shifts. The more of a token you try to buy, the more expensive it gets. This is what creates the price curve.
A concrete example
A pool starts with:
- 10 ETH (each worth $2,000)
- 20,000 USDC
- k = 10 × 20,000 = 200,000
The pool's price for ETH is 20,000 ÷ 10 = $2,000.
Now someone buys 1 ETH from the pool. After the trade:
- The pool has 9 ETH
- To maintain k = 200,000, the pool needs 200,000 ÷ 9 = 22,222 USDC
- The trader paid 22,222 − 20,000 = 2,222 USDC for 1 ETH
- The new pool price for ETH is 22,222 ÷ 9 = $2,469
Notice: the trader paid $2,222 for that 1 ETH — more than the starting price of $2,000. That's price impact: the bigger the trade relative to the pool, the worse the price. Large pools have less price impact because the ratio shifts less for the same trade size.
What you receive: LP tokens
When you deposit into a pool, you receive an LP token — a receipt that represents your share of the pool's total value. This token is important:
- It tracks your proportional ownership (e.g., you own 5% of the pool)
- The pool's total value changes over time as fees accumulate and token prices move
- When you withdraw, you return the LP token and receive your share of whatever tokens are in the pool at that moment — not necessarily what you deposited
- LP tokens can sometimes be used elsewhere in DeFi — deposited into vaults for additional yield, used as collateral, etc.
Important: What you withdraw is not the same as what you deposited. If ETH's price doubled while you were in the pool, you'll receive less ETH and more USDC than you put in. The pool rebalanced itself as traders swapped. This is the core mechanism behind impermanent loss.
Impermanent loss: the hidden cost
Impermanent loss (IL) is the difference between what your tokens would be worth if you had just held them, versus what they're actually worth inside the pool. It happens whenever the price ratio between the two tokens changes — in either direction.
The name is misleading. "Impermanent" suggests it's temporary, but it only reverses if prices return to exactly where they were when you deposited. In practice, this rarely happens.
Why it happens
Remember: the pool uses a formula to maintain a balance between the two tokens. When ETH's price goes up, traders buy ETH from the pool (sending USDC in). The pool ends up with less ETH and more USDC. As a liquidity provider, your share now contains less of the token that went up and more of the one that stayed flat.
In other words: the pool automatically sells your winners and buys more of your losers. It constantly rebalances toward a 50/50 value split. If one token moons, you end up holding less of it than if you'd just kept it in your wallet.
Step-by-step example
You deposit into an ETH/USDC pool when ETH is $2,000:
- You deposit: 1 ETH + 2,000 USDC = $4,000 total value
- ETH doubles to $4,000
If you had just held (no pool):
- 1 ETH × $4,000 = $4,000
- 2,000 USDC = $2,000
- Total: $6,000
What the pool gives you back:
- The pool rebalanced. Using the formula, your share is now approximately 0.707 ETH + 2,828 USDC
- 0.707 ETH × $4,000 = $2,828
- 2,828 USDC = $2,828
- Total: $5,656
Impermanent loss: $6,000 − $5,656 = $344 (5.7% of what you would have had)
Your position did grow from $4,000 to $5,656 — you didn't lose money in absolute terms. But you lost $344 compared to just holding. That's the impermanent loss.
The IL scale
Impermanent loss depends only on how much the price ratio changes — not on the direction:
| Price change | Impermanent loss |
|---|---|
| ±25% | 0.6% |
| ±50% | 2.0% |
| ±75% | 3.8% |
| 2× (doubles or halves) | 5.7% |
| 3× | 13.4% |
| 4× | 20.0% |
| 5× | 25.5% |
| 10× | 42.5% |
Notice: a 2× price move (ETH goes from $2,000 to $4,000) only causes 5.7% IL. That's significant, but not catastrophic. The problem gets much worse with larger moves — at 10×, nearly half your potential value is lost to IL.
Key insight: Impermanent loss works the same whether the price goes up or down. If ETH drops 50%, you suffer the same IL as if it rose 100%. The pool keeps rebalancing either way — selling what's going up, buying what's going down.
"Impermanent" — when does it become permanent?
The loss is called "impermanent" because if the prices return to exactly the same ratio as when you deposited, the IL disappears. You'd have the same tokens you started with, plus all the fees earned.
But in practice:
- Prices rarely return to exactly where they were
- Even if they do, they may have swung wildly in between — and if you withdrew during the swing, the loss became permanent
- The loss becomes realized (permanent) the moment you withdraw from the pool
A more honest name, used by some in the industry, is "divergence loss" — loss caused by price divergence between the two tokens.
When is providing liquidity profitable?
The question every LP needs to answer: do the fees I earn outweigh the impermanent loss I suffer?
Factors that increase profitability
- High trading volume — More trades = more fees. A pool with $1M of liquidity and $10M daily volume generates far more fees than one with $10M daily volume but $100M of liquidity.
- Higher fee tier — Pools with 0.3% or 1% fees earn more per trade than 0.05% pools. But higher fees attract less volume, so there's a trade-off.
- Correlated token pairs — When both tokens move in the same direction (like ETH/stETH, or USDC/USDT), the price ratio barely changes, so IL is minimal.
- Incentive rewards — Many protocols offer additional rewards (governance tokens, points) on top of trading fees. These can significantly boost returns, but remember: the reward tokens may have inflation risk.
- Sideways markets — When prices trade in a range without a strong trend, IL stays low and fees accumulate.
Factors that decrease profitability
- Strong price trends — If one token rallies hard or crashes hard, IL accumulates quickly. The pool keeps selling the winner.
- Low volume relative to pool size — A huge pool with little trading activity earns minimal fees. Your capital sits idle.
- Gas costs — On Ethereum mainnet, entering and exiting a pool can cost $20–$100+ in gas. This erodes returns, especially for smaller positions.
- Toxic flow — Sophisticated traders (MEV bots, arbitrageurs) consistently trade against LPs in ways that extract value. They buy from the pool right before the price goes up, and sell right before it goes down — leaving LPs with worse outcomes.
The uncomfortable truth: Academic research and on-chain analysis consistently show that the majority of LPs in volatile token pairs (like ETH/USDC) lose money when accounting for IL. The pools that tend to be profitable are stablecoin pairs (USDC/USDT), correlated pairs (ETH/stETH), or pools with high incentive rewards.
Concentrated liquidity: higher risk, higher reward
Traditional AMMs (like Uniswap V2) spread your liquidity across all possible prices — from $0 to infinity. Most of this range is never used, so your capital is highly inefficient.
Concentrated liquidity (introduced by Uniswap V3) lets you choose a specific price range for your liquidity. For example, instead of providing liquidity for ETH at all prices, you can provide it only between $1,800 and $2,200.
The benefits
- Capital efficiency — Your liquidity is concentrated where trading actually happens. $10,000 in a tight range can earn the same fees as $100,000+ spread across all prices.
- Higher fee income — Because your capital works harder, you earn more fees per dollar deposited.
The risks
- Amplified impermanent loss — If the price moves outside your range, 100% of your position converts to the less valuable token. You end up holding only the token that went down. IL can be dramatically worse than in a standard pool.
- Out of range = earning nothing — If the price moves outside your range, you stop earning fees entirely. Your capital sits idle until the price returns to your range (or you manually reposition).
- Active management required — You need to monitor and adjust your range as prices move. This costs gas and requires ongoing attention — it's closer to active trading than passive investing.
Wide range (e.g., $500–$10,000)
Behaves more like a traditional pool. Lower fees per dollar, but less IL risk and less management needed. Works for "set and forget" approaches.
Narrow range (e.g., $1,950–$2,050)
Extremely high fee generation while in range, but very high IL risk and frequent repositioning. Suited for sophisticated LPs or automated vaults.
Types of pools
Not all pools use the same formula. Different pool types are optimized for different token pairs:
Standard pools (constant product)
The classic x × y = k formula. Works for any pair of tokens. Used by Uniswap, Raydium, PancakeSwap, and most DEXs. Best for: general-purpose trading pairs.
Stable pools (constant sum / StableSwap)
A modified formula optimized for tokens that should trade at similar values — like USDC/USDT or ETH/stETH. The curve is flatter around the 1:1 ratio, allowing very large trades with minimal price impact.
Popularized by Curve Finance, which dominates stablecoin trading. IL is minimal because the tokens are designed to stay close in value. This is one of the most consistently profitable LP strategies.
Weighted pools
Instead of a 50/50 split, weighted pools allow different ratios — like 80/20 or 95/5. Balancer pioneered this approach. An 80% ETH / 20% USDC pool gives you more exposure to ETH's upside while still earning fees, with less IL than a 50/50 pool.
Multi-token pools
Some protocols (like Balancer and Curve) allow pools with 3 or more tokens. These are essentially index funds that also generate trading fees. More complex, but can provide exposure to multiple assets simultaneously.
What can go wrong
Beyond impermanent loss, liquidity pools carry several other risks:
Smart contract risk
Your tokens are held by a smart contract. If there's a bug or exploit, your funds can be drained. Major DEXs like Uniswap have been battle-tested for years, but newer protocols carry higher risk.
Rug pulls
In pools with new or unknown tokens, the token creator might drain all liquidity or mint unlimited tokens, crashing the price. Always verify the tokens in a pool before providing liquidity.
MEV and sandwich attacks
Bots can detect your pending transaction and trade around it — buying before you and selling after — extracting value at your expense. This is called a "sandwich attack" and is particularly common on Ethereum mainnet.
Token depeg risk
In stable pools, if one token loses its peg, you end up holding mostly the depegged token. The pool's "buy low" mechanism works against you — it keeps buying the token as it falls.
Vaults: automated LP management
Managing an LP position — especially concentrated liquidity — requires time, expertise, and gas fees. Vaults solve this by automating the process:
- Auto-rebalancing — The vault automatically adjusts the price range as the market moves
- Auto-compounding — Earned fees are reinvested back into the position to compound returns
- Gas optimization — Instead of each LP paying gas individually, the vault batches operations
- Reward harvesting — Any incentive tokens earned are automatically claimed and either sold or reinvested
Popular vault protocols for LP management include Yearn, Beefy, Gamma, Arrakis, and Kamino. They charge a performance fee (typically 5–20% of earnings) in exchange for handling everything automatically.
Vaults don't eliminate IL — they can't change the mathematics. But they can optimize fee collection, reduce gas costs, and manage the position more actively than most individuals would.
How to evaluate an LP opportunity
Before depositing into a pool, ask these questions:
- What tokens are in the pool? — Two volatile tokens = high IL risk. A stablecoin pair = low IL risk. A volatile + stable pair = moderate IL risk.
- What's the trading volume? — High volume relative to pool size means better fee income. Check the fees earned vs. pool size ratio.
- Is there IL to worry about? — If the tokens are correlated (ETH/stETH) or both stable (USDC/USDT), IL is minimal. If they can diverge significantly, IL is a real concern.
- How old and battle-tested is the protocol? — Uniswap and Curve have years of track record. A new DEX might offer higher yields but carries higher smart contract risk.
- Are there incentive rewards? — If yes, are they in a token that holds value, or one that inflates rapidly? Rewards in a rapidly inflating governance token may be worth less by the time you claim them.
- Is it concentrated liquidity? — If so, are you prepared to actively manage the position? If not, consider a vault or a full-range position.
- What are the gas costs? — On Ethereum mainnet, entering and exiting can cost $50+. On Layer 2s or Solana, under $1. Factor this into your expected returns.
A practical summary
| Pool type | IL risk | Best for | Examples |
|---|---|---|---|
| Stablecoin pairs | Very low | Consistent, predictable income | USDC/USDT on Curve |
| Correlated pairs | Low | Earning fees on tokens you'd hold anyway | ETH/stETH on Curve |
| Major pairs (full range) | Moderate | Passive exposure to trading fees | ETH/USDC on Uniswap V2 |
| Major pairs (concentrated) | High | Active LPs or automated vaults | ETH/USDC on Uniswap V3 |
| Volatile / small-cap pairs | Very high | Incentive farming (with caution) | New token / ETH pairs |
| Weighted pools (80/20) | Lower than 50/50 | More directional exposure + fees | 80% ETH / 20% USDC on Balancer |
In CleanSky, LP positions appear as "Active investments" — distinct from passive savings or staking. CleanSky breaks down each LP position to show the underlying tokens, their current value, accumulated fees, and the pool's characteristics. This way you can see at a glance what you actually own inside the pool, not just a single LP token with an opaque value.
Track your LP positions with real-time value, underlying token breakdown, and fee analysis.