CoinBrew CoinBrew
education · CoinBrew

What Is a Liquidity Pool? How DeFi Pools Work

Before DeFi, if you wanted to trade crypto, you needed someone on the other side of your trade. A buyer needed a seller. An order book needed orders. This works fine when markets are liquid — when there are enough participants posting bids and asks that your trade executes quickly at a fair price.

It doesn’t work well for long-tail assets, for 24/7 markets with no market makers on standby at 3am, or for a permissionless system where anyone can list anything.

Liquidity pools solved this. Instead of needing a counterparty, you trade against a smart contract holding a pool of assets. The price is determined by math, not by matching buyers with sellers. It’s one of the cleanest innovations DeFi has produced — and it comes with some risks that aren’t obvious until you’ve experienced them.

The Core Mechanic: Automated Market Makers

A liquidity pool is a smart contract holding reserves of two (or more) tokens. When you swap Token A for Token B, you’re not trading with another person — you’re trading with the pool. You deposit Token A, the contract sends you Token B, and it adjusts the ratio of the two tokens according to a pricing formula.

The simplest and most widely used formula is the constant product formula:

x × y = k

Where x is the reserve of Token A, y is the reserve of Token B, and k is a constant that must always hold. When you buy Token B (reducing its supply in the pool), its price goes up. When you buy Token A, its price goes down. The formula enforces this automatically — no order book, no market maker, no counterparty required.

This is the model Uniswap popularized with V1 in 2018. It’s simple, elegant, and it works. The technical term for systems using this approach is Automated Market Maker (AMM).

Who Fills the Pool? Liquidity Providers

The pool needs tokens in it to function. Those tokens come from liquidity providers (LPs) — people who deposit assets into the pool and earn a share of the trading fees in return.

Here’s how it works on Uniswap V2 (the classic model):

  1. You deposit an equal value of both tokens — say $500 of ETH and $500 of USDC
  2. You receive LP tokens representing your share of the pool
  3. Every time someone trades in that pool, a 0.3% fee is collected
  4. That fee accrues to the pool, increasing the value of LP token holders’ share
  5. When you exit, you burn your LP tokens and receive your proportional share of the pool (original deposit + accumulated fees)

This sounds like a clean passive income mechanism. In many cases it is. But there’s a catch that every new LP learns the hard way.

Impermanent Loss: The Risk Nobody Explains Well

Impermanent loss (IL) is the difference between the value of your tokens if you had just held them versus the value of your LP position after the pool’s price ratio has changed.

Let’s work through a concrete example.

You provide liquidity to an ETH/USDC pool when ETH is at $2,000. You deposit 1 ETH and 2,000 USDC — $4,000 total, split 50/50.

Now ETH pumps to $4,000. Arbitrageurs have been busy: whenever ETH’s price on external markets diverged from the pool’s implied price, they traded to bring it back in line. As a result, the pool now holds less ETH (because arbitrageurs bought it) and more USDC.

Using the constant product formula, your share of the pool at $4,000 ETH is now worth approximately $5,657 — not bad. But if you had just held 1 ETH and 2,000 USDC, you’d have $6,000. The difference — $343 — is your impermanent loss.

Why is it “impermanent”? Because if the price returns to $2,000, the loss disappears entirely. The loss is only realized if you exit when the prices are different from when you entered. If you stay in the pool long enough collecting fees, those fees can more than offset the impermanent loss — that’s the LP’s bet.

The bad scenario: ETH drops to $500. Arbitrageurs have been selling ETH into the pool the whole way down (because the pool’s price was higher than the market price). Your LP position is worth much less than if you’d just held, and the fees probably don’t make up for it.

The practical takeaway: impermanent loss is worst in high-volatility pools with tokens that move dramatically against each other. It’s most manageable in stablecoin-to-stablecoin pools (where price ratio rarely changes) or in pools where you’d hold both assets anyway and don’t mind the rebalancing.

Uniswap V3: Concentrated Liquidity

Uniswap V3 (launched 2021) changed the game by introducing concentrated liquidity. Instead of providing liquidity across the entire price range from zero to infinity (wildly inefficient — most of it never gets used), LPs can now specify a price range where they want their capital deployed.

If you believe ETH will trade between $1,800 and $2,200, you concentrate all your liquidity in that range. When price is in your range, your capital is used and you earn fees. When price moves out of your range, your position becomes 100% one token and earns nothing until price returns.

The benefit: dramatically higher capital efficiency. The same amount of capital earns far more fees when concentrated in an active range than when spread across all prices.

The catch: your impermanent loss is amplified too. If price moves out of your range, your position has fully converted to the underperforming asset. Active LPs on V3 need to actively manage their ranges — rebalancing as price moves. This has given rise to an entire ecosystem of LP management protocols (Arrakis, Gamma, Revert Finance) that automate this for you.

Curve: Built for Stablecoins

Uniswap’s constant product formula is suboptimal for assets that should trade near the same price — stablecoins (USDC, USDT, DAI) or liquid staking tokens (stETH, wstETH).

Curve Finance uses a different formula that combines a constant product curve with a constant sum curve. Near the peg, it behaves almost like a constant sum (x + y = k), providing near-zero slippage for stablecoin swaps. Far from the peg, it reverts toward constant product behavior to ensure the pool never fully depletes.

The result: Curve is the go-to DEX for large stablecoin swaps and pegged asset swaps. A $10M USDC-to-USDT swap on Curve slips far less than the same swap would anywhere else.

Curve also introduced gauge voting and the veToken model (veCRV), where CRV holders lock tokens to earn a share of protocol fees and voting rights on which pools receive CRV emissions. This created “the Curve Wars” — protocols competing aggressively to accumulate veCRV and direct emissions to their pools to attract liquidity. It’s a fascinating piece of DeFi governance history and arguably the genesis of the broader “ve” token model across DeFi.

Risks of Providing Liquidity

Let’s be direct about what can go wrong.

Smart Contract Risk

Your funds are locked in a smart contract. If that contract has a bug, it can be exploited. This has happened — Curve itself suffered a reentrancy exploit in 2023 that cost ~$70M across affected pools. Longer-running, more audited contracts are safer, but no smart contract is zero-risk.

Impermanent Loss

Covered above. The real risk is providing liquidity in a volatile pool during a strong directional move and exiting before fees compensate.

Rug Pulls and Token Risk

In new or unaudited pools, the underlying tokens can be scams. A “pool” of TOKEN_X and ETH is only as good as TOKEN_X — if TOKEN_X is a rug, you’ll lose the ETH you deposited as arbitrageurs sell it out of the pool.

Protocol Risk

Governance attacks, oracle manipulation, and admin key exploits can affect the platform itself, not just individual smart contracts.

Gas Costs

On Ethereum mainnet, entering and exiting LP positions is expensive. Small positions can easily have their fee earnings eaten by gas. This is why most LP activity has moved to L2s like Arbitrum and Base, where gas is cents instead of dollars.

The Fee Math: Is It Worth It?

Here’s the honest answer: it depends heavily on the pool and your position.

Stablecoin pools on Curve typically earn 2-8% APY in fees (plus potential CRV rewards). Low impermanent loss risk, steady returns. These are the closest thing to a “safe” yield in DeFi.

ETH/USDC on Uniswap V3 (concentrated range, actively managed) can earn 15-50% APY for active managers who stay in range. But it requires attention and gas costs to rebalance.

Long-tail asset pools (newer tokens, memecoins, low-liquidity pairs) often advertise massive APYs in the form of token emissions. These are almost always traps — the high APY is denominated in tokens that are inflating rapidly, and the impermanent loss from volatile, often depreciating token pairs destroys real value.

A useful rule of thumb: If the APY looks too good to be true on a pool you’ve never heard of, the reward tokens are probably worth less every week and the assets are high-risk. Genuinely sustainable LP yield comes from real trading fees, not emissions.

How to Actually Start Providing Liquidity

  1. Pick a reputable protocol — Uniswap, Curve, Balancer, or their equivalents on the rollup you’re using (Camelot on Arbitrum, Aerodrome on Base)
  2. Start with stablecoin pools if you’re new — lower risk, lower stress
  3. Understand the pair — only provide liquidity in pools where you’d be comfortable holding both assets
  4. Account for gas — make sure your position is large enough that fee earnings will meaningfully exceed entry/exit costs
  5. Check the audit history — use DeFiLlama or similar to see TVL history and whether the protocol has been audited

The Bigger Picture

Liquidity pools aren’t just a clever mechanism — they’re infrastructure. Every DEX, every DeFi protocol that needs to exchange tokens, every yield optimizer routes through pools somewhere. The total TVL locked in liquidity pools across DeFi sits in the tens of billions.

Understanding how they work is table stakes for participating intelligently in DeFi. You don’t need to be an active LP — but knowing that your DEX trade is going against a pool, that someone is on the other side earning fees, and that impermanent loss is a real concept that affects LP returns makes you a more informed participant across the board.


FAQ

Do I need both tokens to provide liquidity? On most AMMs (Uniswap V2 style), yes — you need equal values of both tokens. Some protocols allow single-sided deposits, but they typically just split and rebalance internally, exposing you to the same dynamics. Balancer pools support unequal ratios (e.g., 80/20 splits), which reduce impermanent loss at the cost of different fee dynamics.

What’s the difference between an AMM and a traditional order book DEX? An AMM (automated market maker) uses a smart contract and a pricing formula — no orders needed. A traditional order book DEX (like dYdX) matches buyers with sellers the same way centralized exchanges do. Order books require active market makers; AMMs don’t. AMMs have worse price efficiency at large sizes; order books have worse UX and fewer tokens.

Can I lose more than I put in with a liquidity pool? In standard AMM pools (not leveraged), no. Your maximum loss is 100% of what you deposited (if the asset goes to zero). Impermanent loss reduces your gains relative to holding but doesn’t take you below zero on the principal.

What are LP tokens used for? LP tokens represent your share of the pool. You can use them in other DeFi protocols — staking them for additional yield, using them as collateral for loans, etc. This is sometimes called “LP farming.” When you’re done, burn the LP tokens to reclaim your pool share.

Why do some pools have multiple tokens? Balancer pioneered multi-token pools (up to 8 tokens) with customizable weights. Curve’s tri-pools (e.g., 3pool: USDC/USDT/DAI) spread stablecoin liquidity efficiently. The constant product formula generalizes to multiple tokens — more tokens just means more complex math.

What is “liquidity mining” or “yield farming”? Liquidity mining is when a protocol distributes its native token as an additional reward on top of trading fees for providing liquidity. This was extremely common in 2020-2021 (DeFi Summer). It inflated APYs dramatically in the short term and crashed just as dramatically as token prices fell and emissions diluted value. Real, sustainable liquidity comes from genuine trading volume and fee revenue — not token emissions.

How is the price in a pool determined? The price is implied by the ratio of the two assets. If a pool has 100 ETH and 200,000 USDC, 1 ETH = 2,000 USDC (approximately). Arbitrageurs constantly trade to align AMM prices with the broader market — if ETH is $2,100 on Binance but $2,000 in the pool, someone will buy ETH from the pool (pushing its price up) until it matches. This arbitrage mechanism is what keeps AMM prices accurate.

Is impermanent loss tax deductible? This varies by jurisdiction and is genuinely murky tax territory. In most countries, impermanent loss isn’t realized until you exit the pool, at which point you recognize gains or losses on the assets you withdraw compared to what you put in. Talk to a crypto-savvy accountant — the tax treatment of LP positions is not standardized and the rules are still evolving.