Liquidity Pools Explained: How They Work and What They Cost

Liquidity Pools Explained: How They Work and What They Cost

Trader making an on-chain token swap

A liquidity pool is a stash of two or more tokens locked in a smart contract. Traders swap against that stash instead of waiting for a buyer or seller to match their order. Anyone can deposit tokens into the pool and earn a share of the trading fees, but depositors also take on risks that are easy to miss. This guide covers how pools price trades, where the money comes from, what can go wrong, and what a swap on a pool really costs you.

Coindivo
Trade with real-time momentum signals
Coindivo combines live momentum signals, automated trading, and on-chain swaps for crypto traders who want a more focused trading experience.

TL;DR

  • A liquidity pool is a smart contract holding paired tokens. Automated market maker (AMM) formulas set the price from the ratio of tokens inside, with no order book.
  • Liquidity providers (LPs) deposit tokens and earn a cut of every swap fee. In return they carry impermanent loss, smart contract risk and the chance of a thin, volatile pool.
  • Swapping on-chain costs more than the headline fee: you also pay network gas and price impact, which grows with trade size and shrinks with pool depth.
  • Before trading a token, check how deep its pool is. Shallow pools are where slippage and manipulation hurt most.

Table of Contents

What a liquidity pool is

A traditional exchange runs an order book: buyers post bids, sellers post asks, and a trade happens when they meet. That needs market makers, firms that stand ready to buy and sell all day.

Decentralized exchanges (DEXs) replaced that with pools. According to CoinGecko’s explainer, a pool is a collection of tokens locked in a smart contract that enables trading without an order book. The pool itself is the counterparty. When you swap token A for token B, you send A into the contract and it sends B back out.

The tokens come from ordinary users who volunteer them. They are called liquidity providers, and they get paid in fees for lending out their capital.

Pools are not just for swapping. The same idea underpins lending markets and other DeFi products. For this guide, we focus on the swap pool, the most common kind.

How the pool sets a price

There is no human setting the price. A formula does it. The most widely used is the constant product formula:

x * y = k

Here x is the amount of one token in the pool, y is the amount of the other, and k is a constant the contract tries to preserve through each trade (fees aside).

A worked example

Say a pool holds 100 ETH and 300,000 USDC. That makes k = 30,000,000, and the implied price is 3,000 USDC per ETH.

You want to buy 1 ETH. After your trade the pool will hold 99 ETH, so USDC must rise to 30,000,000 / 99, about 303,030. You pay roughly 3,030 USDC, ignoring fees. That is 1% above the starting price. The extra is price impact.

Now try buying 10 ETH. The pool ends with 90 ETH, so USDC must be about 333,333. You pay about 33,333 USDC, or around 3,333 per ETH, nearly 11% above the starting price.

Two lessons follow. Price impact climbs fast with trade size. And the same trade in a pool ten times bigger would move the price far less. Depth is everything.

Price impact rises with larger pool trades

Arbitrage keeps pools honest

After your trade, the pool’s price no longer matches other markets. Arbitrage traders spot the gap and trade it away, which pulls the pool back in line. That is how a pool with no price feed stays roughly aligned with the wider market. It also means LPs are constantly trading against better-informed counterparties, which feeds directly into the impermanent loss problem below.

How liquidity providers earn money

Every swap pays a fee. As Uniswap’s fee documentation explains, that fee goes to the LPs whose liquidity is active at the time of the trade, split in proportion to their share. Fee levels vary by design:

  • Version 2 of that protocol charges a flat 0.30% on every pool.
  • Version 3 introduced fee tiers of 0.05%, 0.30% and 1%, so riskier pairs can charge more.
  • Version 4 goes further. Through hooks, pools can use dynamic fees that adjust to market conditions, aiming to protect LPs better than a fixed tier.

Some pools also pay extra incentive tokens to attract deposits. Those rewards can look generous, but they are paid in a token whose price can fall, so treat the quoted yield as an estimate, not income.

In short, pools make money for providers from trading volume. A pool with high volume relative to its size earns a lot per dollar deposited. A pool nobody trades in earns almost nothing.

How liquidity providers earn money — overview diagram

The risks nobody should skip

Impermanent loss

This is the big one. Uniswap’s support page defines it as the loss of value that happens when the prices of the pooled tokens change from what they were when you deposited. Because the contract rebalances as people trade, you end up holding more of the token that fell and less of the one that rose.

The loss is only “impermanent” if prices return to where they started. If they do not and you withdraw, the loss is real. Fees can offset it, but not always. A volatile pair with low volume is the classic way to lose money as an LP while the headline yield looks fine.

Concentrated liquidity needs babysitting

Some pools let providers choose a price range for their capital. Concentrated liquidity earns more fees per dollar, but it needs active management: if the market price moves outside your range, your liquidity goes inactive and earns nothing until the price returns or you adjust. This is not set-and-forget.

Front-running and manipulation

Pool trades are public before they settle. The Bank for International Settlements notes in its paper DeFi risks and the decentralisation illusion that pools act as the sole counterparty to trades and that their predictable price-setting makes them open to arbitrage and front-running. Validators can see pending orders and time their own trades to profit from the price impact of large ones. For you as a trader, that shows up as worse execution on big orders.

Systemic feedback loops

Pools do not sit in isolation. A BIS working paper on systemic fragility in decentralised markets describes how forced collateral liquidations on lending protocols push asset prices down, trigger more liquidations, and magnify price impact across markets. In a fast crash, pool prices can move much further than you expect.

Smart contract and token risk

A pool is code. A bug, a malicious token contract or a compromised upgrade key can drain it. Anyone can create a pool for any token, so a pool existing says nothing about whether the token is sound. Pools for tiny, newly launched tokens are the easiest to rug-pull and the thinnest to trade.

What happens when a pool dries up

If providers withdraw, the pool gets shallow. Price impact rises, slippage rises, and one modest sell can crater the price. In an extreme case you can hold a token that you technically can swap but only at a terrible rate. Check pool size before you buy, not after.

What an on-chain swap really costs

The sticker fee is only part of the bill. When you swap through a pool, you typically pay:

Cost Who gets it What drives it
Pool fee (for example 0.05% to 1%) Liquidity providers The pool’s fee tier
Price impact Nobody, it is the price curve Trade size versus pool depth
Network gas Validators Network congestion
Platform or interface fee The app you use The app’s own pricing
Slippage Whoever trades first Price moves before your order confirms

A swap with a 0.3% pool fee in a deep pool can cost less all-in than a 0.05% fee in a shallow one. Compare the quoted final amount you receive, not just the fee line. Most swap screens show an expected output and a minimum output after slippage. The gap between them is your risk window.

Two habits cut costs: set a sensible slippage tolerance (tight for liquid majors, looser only when you must), and split very large orders so each chunk faces less price impact.

Why liquidity depth should drive which tokens you trade

Pools for large, established tokens are deep. For example, you can look at momentum and market data for Uniswap’s UNI token or a tokenized fund such as BUIDL to see how activity differs by asset. Deep markets mean lower price impact and less manipulation risk. Tail-end tokens flip that picture.

A practical filter:

  1. Check the pool’s total value locked and 24-hour volume. Volume that is a healthy fraction of pool size suggests real use.
  2. Estimate price impact for your trade size before you confirm.
  3. Look at how long the pool has existed and whether the token contract is verified.
  4. Avoid pools where a few wallets own most of the liquidity, since they can withdraw it at will.
  5. Be suspicious of any pool whose advertised yield looks far above the rest of the market.

Our perspective: depth first, then everything else

At Coindivo, we built the platform around a simple belief: most trading losses on-chain do not come from bad predictions, they come from bad markets. Illiquid pools, unstable assets and thin books turn a good idea into a poor fill.

That is why we limit trading to the top 1,000 coins by market cap and filter out unstable, illiquid assets. For automated trades, we confirm signals on live major exchanges before executing. A pool-based swap is only as good as the depth behind it, so we would rather narrow the field than let you chase an obscure token into a pool that cannot absorb your order.

We also think custody matters. You keep control of your funds in your own wallet, and nobody else decides when your money moves. You can read how we frame the trade-offs on our risks and how it works page.

Our honest view of pool-based yield: it is a real mechanism and a legitimate business for people who understand impermanent loss and can manage positions. It is not a savings account. If you are mainly a trader, you will usually be better served by understanding pools as the thing you trade against, not the thing you need to fund.

— online

Trading against pools with Coindivo

If you want to swap tokens on-chain without managing the plumbing, our swap feature charges a 0.5% fee. A virtual wallet is available at 0 $ per month, and you can trade manually or use live trading driven by real-time momentum signals, with alerts to Telegram. Pre-sale access runs through our Launchpad. See everything in one place on the Coindivo home page.

No platform removes market risk. Crypto prices can fall sharply, and you can lose part or all of what you put in. Only trade amounts you can afford to lose.

A short checklist before you use any pool

For traders:

  • Know your expected output and your minimum output before you sign.
  • Check depth relative to your order size.
  • Confirm you are on the right token contract, not a lookalike.
  • Remember gas is charged even when a swap fails.

For would-be providers:

  • Model impermanent loss for a 20% to 50% price move in your pair before depositing.
  • Compare expected fees against simply holding the two tokens.
  • Decide how you will exit, and what happens if the pool empties.
  • If you use concentrated ranges, schedule time to check them.
  • Spread across pools rather than concentrating in one contract.

FAQ

How do liquidity pools make money?

Pools earn swap fees on every trade, and those fees are shared among the providers in proportion to their stake. Some pools add incentive tokens on top. Income depends on trading volume relative to pool size, so a busy pool pays much more per dollar than an idle one.

What are the downsides of liquidity pools?

The main ones are impermanent loss, smart contract bugs, front-running of large orders and thin liquidity in small tokens. Providers who use price ranges also have to monitor their positions. Traders face price impact and slippage, which rise as pools get shallower.

What happens when a liquidity pool dries up?

When providers pull their funds, the pool gets shallow and every trade moves the price more. A sell order can push the price down hard, and buying back in can cost far more than you sold for. Check depth before trading and avoid pools dominated by a few wallets.

What happens when you add to a liquidity pool?

You deposit tokens, usually in a matched pair, and receive a claim on your share of the pool. You then earn a slice of fees from swaps. When you withdraw, you get back your share of whatever the pool holds, which may be a different mix of tokens than you put in.

Sources

Este artigo é informação geral, não aconselhamento financeiro. As cripto são voláteis e podes perder o que investiste. Lê sobre os riscos