Liquidity Pool

IntermediateCrypto & Digital Assets2 min read

Quick Definition

A collection of cryptocurrency funds locked in a smart contract that enables decentralized trading, lending, and other DeFi activities without traditional order books.

What Is Liquidity Pool?

A liquidity pool is a collection of cryptocurrency tokens locked in a smart contract that provides the liquidity needed for decentralized exchanges (DEXs) and other DeFi protocols to function. Instead of the traditional order book model used by centralized exchanges (where buyers and sellers are directly matched), DEXs use liquidity pools and automated market makers (AMMs) to facilitate trades algorithmically.

In a typical DEX liquidity pool (like those on Uniswap), two tokens are paired together in a specific ratio (usually 50/50 by value). Liquidity providers (LPs) deposit equal values of both tokens into the pool and receive LP tokens representing their share. When traders swap between the two tokens, the pool's smart contract automatically adjusts prices based on the constant product formula (x × y = k), where the product of the two token quantities remains constant. Larger pools offer lower slippage (price impact) for traders.

Liquidity providers earn a share of trading fees (typically 0.3% of each swap on Uniswap) proportional to their pool share. However, LPs face a unique risk called impermanent loss — when the price ratio of the pooled tokens changes relative to their initial deposit ratio, LPs end up with fewer of the appreciating token and more of the depreciating one compared to simply holding. This loss is "impermanent" because it disappears if prices return to their original ratio, but becomes permanent upon withdrawal. Concentrated liquidity (introduced in Uniswap V3) allows LPs to provide liquidity within specific price ranges, improving capital efficiency but requiring more active management.

Formula

Formula

Constant Product: x × y = k (where x and y are token quantities in the pool)

Liquidity Pool Example

  • 1The ETH/USDC pool on Uniswap holds over $500 million in combined liquidity. When a trader swaps $100,000 of USDC for ETH, the AMM algorithm adjusts the ETH price slightly upward based on the constant product formula, with the trader paying approximately 0.05% price impact (slippage).
  • 2An LP deposits $5,000 of ETH and $5,000 of USDC into a Uniswap pool. If ETH doubles in price, the LP's position rebalances to approximately $7,071 of each token ($14,142 total), compared to $15,000 if they had simply held — a $858 impermanent loss.