Liquidity pool

On this page 7

A liquidity pool is a smart contract that holds reserves of two or more tokens and lets anyone trade against those reserves at a price set by a formula, without a traditional order book or a matching counterparty. In DeFi, liquidity pools are the core infrastructure of decentralized exchanges (DEXs), lending markets and many yield strategies.

The tokens in a pool come from liquidity providers, who deposit assets in exchange for a share of trading fees. The pricing rule that governs the pool is called an automated market maker (AMM), and its design determines how efficiently the pool uses capital and how much risk providers carry.

How a liquidity pool prices trades

The best-known pricing rule is the constant product formula x · y = k, where x and y are the reserves of the two tokens. A trader who adds token X must remove enough token Y that the product stays constant (before fees). The price is the ratio of the reserves, so every trade moves the price, and larger trades move it more.

Pools do not look at external markets. When a pool’s price drifts away from the wider market, arbitrageurs trade against it until it matches again. Arbitrage is therefore not a side effect but the mechanism that keeps pool prices accurate, and it is also the source of a cost that providers bear.

Each swap pays a fee that stays in the pool, which raises the value of every provider’s share. Common fee tiers range from 0.01 percent for stable pairs to 1 percent for exotic tokens, with 0.3 percent a widely used default for volatile pairs.

The table below summarizes the main elements involved in every pool trade.

ComponentRolePractical note
ReservesTokens available for tradingDepth reduces price impact
Pricing curveFormula that sets exchange ratesDefines capital efficiency
LP tokens or positionsProof of a provider’s shareRedeemed to withdraw assets
Swap feeReward for providersSet per pool or fee tier
ArbitrageursAlign pool price with marketsCapture value from stale prices
Components of a liquidity pool

Types of liquidity pools

Pool designs differ mainly in their pricing curve and how liquidity is distributed across prices. The choice trades simplicity against capital efficiency and active management.

Pool typePricing approachBest fit
Constant product poolx · y = k across all pricesVolatile pairs, long-tail tokens
Concentrated liquidity poolLiquidity placed in chosen price rangesActive providers, major pairs
Stable swap poolFlat curve near a 1:1 ratioStablecoins and pegged assets
Weighted poolReserves held at fixed weights such as 80/20Index-like portfolios
Lending poolInterest rate set by utilizationBorrowing and lending markets
Major pool designs and their best fit

Concentrated liquidity lets a provider supply capital only within a range, for example between 1,800 and 2,200 dollars per ether. Inside that range the position earns far more fees per dollar, but outside it the position earns nothing and sits entirely in one token, so it needs monitoring and rebalancing.

A lending pool works differently from a trading pool. Depositors supply one asset, borrowers take it against collateral, and the utilization rate drives the interest rate. Protocols such as Aave use this model, and the same word pool describes both structures.

Returns and risks for liquidity providers

Providing liquidity is a trade of fee income against price risk. When the relative price of the two tokens changes, arbitrage shifts the pool’s composition toward the token that fell, and the provider ends up with a mix worth less than simply holding the original tokens. This difference is called impermanent loss.

Price change of one tokenLoss versus holdingInterpretation
1.25xAbout 0.6 percentUsually covered by fees
1.5xAbout 2.0 percentFees may or may not cover it
2xAbout 5.7 percentSignificant for low-volume pools
4xAbout 20 percentRarely offset by fees
5xAbout 25.5 percentHolding would have been far better
Impermanent loss in a 50/50 constant product pool before fees

The loss becomes permanent when the provider withdraws at a changed price. Beyond impermanent loss, providers face smart contract risk, token risk if one asset collapses or is a scam, and loss-versus-rebalancing, the value that arbitrageurs extract each time the pool updates to a new market price.

Liquidity pools for traders

For traders, the quality of a pool shows up as slippage and price impact. A trade that is small relative to the reserves executes close to the quoted price, while a trade worth several percent of a pool can move the price substantially.

  • Set a slippage tolerance that fits the pair, often 0.1 to 0.5 percent for liquid pairs.
  • Use aggregators that split large orders across several pools.
  • Watch for front-running and sandwich attacks on public mempools.
  • Check total value locked and recent volume before trading thin pools.

Total value locked is a useful but incomplete gauge. Liquidity concentrated near the current price matters more than headline totals, because only that liquidity absorbs a trade. A pool with smaller total value but tightly concentrated positions can offer better execution than a larger, evenly spread pool.

Choosing whether and where to provide liquidity

A rational decision compares expected fee income with expected impermanent loss and costs, including gas for deposits, rebalancing and withdrawals.

SituationSuitable choiceReason
Two stablecoinsStable swap poolLow divergence, steady fees
Major volatile pair, active managerConcentrated range positionHigh fee efficiency
Major volatile pair, passive holderFull-range positionNo range monitoring required
New or thinly traded tokenSmall allocation or noneHigh token and exit risk
Provider decision guide

Explained without jargon

A liquidity pool is like a shared currency exchange booth that runs itself. Many people put two kinds of tokens into one box, and anyone can swap one token for the other. A simple formula sets the price depending on how much of each token is left in the box.

Everyone who filled the box earns a small cut of every swap. The catch is that when prices move sharply, the box ends up holding more of the falling token, so contributors can end up with less value than if they had kept their tokens at home.

A typical use case

A small crypto fund holds 50,000 dollars in two major stablecoins and wants income without exposure to volatile assets. It deposits both tokens into a stable swap pool with a 0.01 percent fee, where the curve keeps prices tight around a one-to-one ratio.

Because the two coins rarely diverge, impermanent loss stays negligible, and the fund earns fees from steady trading volume. The team sets an alert in case either coin trades below 0.99 dollars, since a depeg would leave the pool holding mostly the weaker coin.

Over a quarter, the position earns modest fee income with almost no price loss. The fund chose a pool whose curve matched its assets, which is the main lesson of using liquidity pools well.