Glossary
Oct 2, 2026

What Is a Liquidity Pool? How DeFi Pools Work

A liquidity pool is a smart contract holding tokens that traders swap against at a formula price. How pools work, a worked example and the risks for LPs.

What Is a Liquidity Pool? How DeFi Pools Work

A liquidity pool is a smart contract that holds two or more tokens so that anyone can swap between them at a price set by a formula, instead of by an order book. The tokens are supplied by liquidity providers, who earn a share of the trading fees in return. Pools are the engine behind almost every decentralized exchange.

Liquidity pool definition

On a traditional exchange, buyers and sellers post orders and a matching engine pairs them. A liquidity pool removes the need for a counterparty. Traders swap directly against a shared reserve of tokens, and the contract's pricing formula decides how much they get.

The people who fund the reserve are liquidity providers (LPs). When they deposit, they receive LP tokens or an LP position that represents their share of the pool. When they withdraw, they get back their share of whatever the pool holds at that moment, plus accumulated fees.

The formula that prices trades is called an automated market maker (AMM). Different AMMs suit different assets: constant-product pools for volatile pairs, stableswap pools for assets meant to trade near 1:1, and concentrated-liquidity pools where LPs pick a price range.

How a liquidity pool works

  1. Deposit. An LP adds tokens, usually both sides of a pair in equal value, and receives a position representing their share.
  2. Swap. A trader sends token A to the pool and receives token B. The pool now holds more A and less B.
  3. Repricing. Because B is scarcer in the pool, the formula makes B more expensive for the next trade. Arbitrageurs then trade until the pool price matches the wider market.
  4. Fees. Each swap pays a fee (for example 0.3%) that stays in the pool, so every LP share is worth slightly more.
  5. Withdraw. The LP burns their position and receives their share of both tokens at the current ratio.

Liquidity pool example

Hypothetical: say a constant-product pool holds 100 ETH and 300,000 USDC, so the implied price is 3,000 USDC per ETH. The formula keeps x × y constant at 30,000,000.

  • A trader sends 10,000 USDC (ignore fees for clarity). The pool now holds 310,000 USDC.
  • To keep the product at 30,000,000, the ETH side must fall to 30,000,000 ÷ 310,000 ≈ 96.77 ETH.
  • The trader receives about 3.23 ETH, an average price of roughly 3,100 USDC. The extra cost versus 3,000 is price impact.

Now say you own 10% of that pool. Your share is about 9.68 ETH and 31,000 USDC. You hold less ETH than before and more USDC, because the pool sells the asset that is going up. If ETH keeps rising, that rebalancing is what produces impermanent loss.

Why liquidity pools matter

Pools let any token trade around the clock without a market maker, and they let ordinary users earn fees by providing liquidity. That openness comes with risks worth understanding before you deposit:

  • Impermanent loss: LPs can end up with less value than if they had simply held the two tokens.
  • Range risk: in concentrated-liquidity (CLMM) pools, a position that falls out of range stops earning fees.
  • Smart-contract risk: the pool contract, and any farm wrapped around it, can have bugs.
  • Thin pools: small reserves mean high slippage for traders and easier price manipulation.

Some pools reduce the two-token requirement through single-sided liquidity, and LP positions are the raw material for most yield farms.

Liquidity pools on JewelSwap

JewelSwap's yield farms are built on top of other protocols' pools rather than running their own exchange. On MultiversX they build on AshSwap, OneDex, Hatom and xExchange; on Sui they build on Cetus, Turbos and Scallop. Where a farm holds an LP position, it collects that position's rewards and auto-compounds them, so the pool risks above still apply to the underlying liquidity.

Learn more on the JewelSwap blog

Frequently asked questions

What is a liquidity pool in simple terms?

It is a shared pot of two or more tokens held by a smart contract. Traders swap against the pot, and the people who filled it earn a cut of every trade's fee.

Liquidity pool vs order book: what is the difference?

An order book matches individual buyers and sellers at prices they choose. A liquidity pool has no counterparties: traders swap against a reserve, and a formula sets the price based on the reserve balances.

Can you lose money in a liquidity pool?

Yes. Impermanent loss, falling token prices, smart-contract exploits and depegs can all leave an LP with less value than they deposited, even after fees.

JewelSwap Crypto Glossary · educational, not financial advice. Updated 2 October 2026. Browse the full glossary.

About the author.

Co-Founder at JewelSwap & CMO at iDenfy. Viktor brings his successful track record of superb development & project management.