Guide
QuantumPools
← All articles

What Are Liquidity Pools in DeFi?

Liquidity pools are the engine behind every decentralized exchange. If you've ever swapped one token for another on Uniswap, PancakeSwap, Aerodrome, Raydium or any other DEX, a liquidity pool filled your order. This guide explains how they work, who earns the fees, and what the real risks are.

TL;DR

How a liquidity pool actually works

A liquidity pool is a smart contract that holds a reserve of two tokens — say USDC and ETH — and uses a formula to decide the price of a swap. Instead of matching your trade to a counter-party like an order-book exchange, the pool itself IS the counter-party.

Uniswap V2 and almost every "constant-product AMM" use this formula:

x · y = k

Where x is the amount of token A in the pool, y is the amount of token B, and k is a constant. When you swap one token in, you take some of the other token out, and the product stays the same — which naturally moves the price.

Who provides the liquidity?

Anyone. If you deposit $1,000 of USDC and $1,000 of ETH into a USDC/ETH pool, you now own a share of the pool proportional to what you added. Every time someone swaps through that pool, they pay a fee (0.05% to 1% typically). Your share of that fee is paid to you.

How fees are earned

your daily fees ≈ daily volume × fee tier × your share of liquidity

So if the pool does $1M of volume at a 0.3% fee tier, traders paid $3,000 in fees that day. If you own 1% of the pool's liquidity, you earned $30. On a $10,000 position that's about 110% annualized gross — before impermanent loss, gas and (if you're on V3) time spent out of range.

Our free liquidity pool calculator runs this math on your own numbers for both V2 and V3 pools.

V2 vs V3: the big change

In Uniswap V2 and PancakeSwap V2, your deposit covers every possible price from zero to infinity. Most of your capital sits at prices nobody is trading at, doing nothing. Fair, simple, and inefficient.

In Uniswap V3 and PancakeSwap V3 — collectively "concentrated liquidity" or CLMM pools — you choose a price range. Your capital is bunched up inside that range, so it earns like a much bigger position would under V2 while price stays inside your range. If price exits, you earn zero and your position becomes 100% of the losing-side token until price comes back.

The real risks (none of them "zero")

Impermanent loss

When the price of your two tokens moves apart, the AMM rebalances your position against you — selling the asset that went up, buying the asset that went down. If you'd just held both tokens outside the pool, you'd have more of the winner. The gap between "held outside" and "in the pool" is impermanent loss. It only becomes real when you withdraw.

Classic 2-asset formula:

IL = 2·√r / (1+r) − 1, where r = new_price ÷ start_price

At a 2x price move, IL is about −5.7%. At a 5x move, about −25%. Our impermanent loss article walks through the full math.

Out-of-range time (V3 only)

When price leaves your range, you stop earning fees and hold 100% of the losing-side token. You can either accept the gap, re-range manually, or use an automated vault to re-range for you.

Smart-contract risk

Every liquidity pool is a smart contract. Bugs, exploits, admin-key compromise and governance attacks all exist. Prefer pools where the DEX contracts are audited, battle-tested, and have billions in cumulative volume. Prefer vaults where the contract is audited and governance runs through a timelock multisig.

MEV and sandwich attacks

Public blockchains let anyone see your pending swap and front-run it. This mostly hurts traders, not LPs — but if a vault re-ranges on-chain, that transaction can also be sandwiched. See our MEV and slippage article for how we mitigate this.

Running the numbers before you deposit

Before you provide liquidity to any pool, check:

Use the liquidity pool calculator to project your fees from live pool stats, or browse the live pool scanner for pools we've already vetted.

Where QuantumPools fits

QuantumPools is a custodial vault layer on top of V3 pools. Instead of managing your own concentrated-liquidity position (and re-ranging it manually every time price drifts), you deposit into a vault and our on-chain keepers do the snuggle rebalances for you. The vault contract is audited by Hashlock, and governance runs through a 48-hour timelock owned by a 2-of-2 Safe multisig.

We're live on BNB (PancakeSwap V3 and Uniswap V3), Base (PancakeSwap V3), and Robinhood Chain (PancakeSwap V3 fork), with Ethereum and Arbitrum pending.