what is a liquidity pool in crypto

Liquidity Pools in Crypto Explained

A liquidity pool is a collection of crypto tokens sitting in a smart contract that powers trading on decentralized exchanges. Rather than matching buyers with sellers the traditional way, traders swap directly against the pool. Depositors collect trading fees for making it all work.

How Liquidity Pools Work

Stock exchanges use order books. Buyers post what they'll pay, sellers post what they'll accept, the exchange matches them up. DEXs took a completely different path.

A pool holds two tokens in a smart contract. Say ETH and USDC. Anyone can swap one for the other by trading with the pool directly. No middleman, no waiting for a counterparty, no KYC forms.

Price gets determined automatically by a formula called an automated market maker (AMM). The most widespread version uses x * y = k, where x and y are the quantities of each token, and k stays constant. Someone buys ETH? They add USDC and pull ETH out. Ratio shifts. Price moves.

Elegant system. No centralized entity setting prices. Just math.

Liquidity Providers: The Engine Behind the Pool

Liquidity providers (LPs) are the people depositing tokens. They put in equal value of both sides, like $2,000 of ETH and $2,000 of USDC, and receive LP tokens representing their pool share.

Every swap generates a small fee, typically 0.25% to 0.3%. That fee goes back into the pool. LPs get a proportional slice based on their ownership stake. More volume flowing through means more fees stacking up.

Some protocols layer on yield farming too. LPs stake their LP tokens in separate contracts and earn bonus reward tokens on top of the base trading fees.

The Risk: Impermanent Loss

Nobody's handing out free money here. The biggest trap in DeFi liquidity provision catches even experienced users off guard.

Say you deposit equal value of two tokens. One token surges in price while the other stays flat. The AMM formula rebalances the pool, leaving you holding more of the stagnant token and less of the one that pumped.

Had you just kept both tokens in your wallet, you'd be richer. That difference is impermanent loss.

"Impermanent" because the loss only locks in when you withdraw while prices are skewed. If prices revert to your entry point, the loss vanishes. In practice, that almost never happens.

Active pools with high volume can offset it through fees. But volatile pairs with low traffic? LPs regularly end up worse off than simple holders.

A Practical Example

You deposit 1 ETH ($2,000) and 2,000 USDC. Total: $4,000.

Somebody swaps 1,000 USDC for roughly 0.48 ETH. The pool takes a 0.3% fee, about $3, split proportionally among all LPs.

Over a few weeks, hundreds of swaps come through. Each generates a small fee that compounds. On a busy pool, 5-20% annualized returns from fees alone aren't unusual.

Now say ETH doubles to $4,000 during that period. Impermanent loss kicks in. The AMM rebalances your position, and you would've been better off just holding the ETH. Maybe the fees cover the gap. Maybe they don't. That's the calculation every LP has to make before depositing.

Why Liquidity Pools Changed DeFi

Decentralized trading before pools was painfully slow. On-chain order books cost gas for every update, and there weren't enough traders to create real markets.

Pools cracked the problem wide open. Now anyone with spare tokens can become a market maker. No trading desk. No finance degree. No millions in starting capital. A $500 deposit earns fees on the same terms as $500,000. Just at a smaller scale.

This let regular people around the world participate in market making. Uniswap, Curve, and Raydium push billions in daily volume using nothing but smart contracts.