Glossary
What Is a Liquidity Pool? How DEX Swaps Get Their Tokens
Definition
Liquidity pool: A liquidity pool is a smart contract that holds reserves of two or more tokens, supplied by liquidity providers, which traders swap against at prices set by a formula.
On this page
A liquidity pool is a smart contract that holds two or more tokens so that people can swap between them. Instead of waiting for a buyer to meet a seller, traders swap directly against the pool’s reserves, and an automated market maker formula sets the price. Pools are what make DEX swaps possible. As a spender, you touch them whenever you swap one token into another before paying.
How a pool works
- Liquidity providers deposit both tokens, for example ETH and USDC, in the ratio of the current price.
- They receive a position: on Uniswap v2 this is an ERC-20 “pool token”, and on later versions it is a position with a chosen price range.
- Traders swap by sending one token in and taking the other out; the formula adjusts the price after each trade.
- Fees accrue to providers from every swap, at a rate set by the pool.
- Providers withdraw their share of the reserves, which may now be in a different mix than they deposited.
Uniswap’s docs sum up the price mechanics: “larger trades relative to pool depth move the price more”.
Pool depth and your swap
| Pool depth vs your trade | What you’ll see | Practical meaning |
|---|---|---|
| Very deep (your trade is a tiny share) | Price impact near zero | Fine for paying an invoice |
| Moderate | Price impact of a fraction of a percent to a few percent | Check the “minimum received” |
| Shallow | Large price impact, wide slippage | Consider another route or a smaller trade |
Wallets and aggregators often split a swap across several pools to reduce impact. The swap preview usually shows the route.
Types of pool you will meet
- Volatile pairs such as ETH/USDC: general-purpose constant product pools.
- Stablecoin pools such as USDC/USDT: designed for swaps near 1:1 with minimal impact. Useful when a merchant accepts one stablecoin and you hold another.
- Bridged-asset pools: swap between different versions of the same token, for example native and wrapped versions.
- New-token pools: often thin and controlled by the token’s creator. High risk.
Risks for liquidity providers
This is not advice on whether to provide liquidity. The main risks are:
- Impermanent loss when the two tokens’ prices diverge.
- Smart contract risk: bugs or exploits in the pool contract.
- Token risk: if one token collapses or depegs, arbitrageurs drain the healthy token from the pool, leaving providers holding the failed one.
- Lock-up and approvals: some pools lock deposits; all require token approvals.
Money you need for upcoming bills or card top-ups is generally better kept out of pool positions, since withdrawing at a bad moment can return less than you put in.
Risks for people swapping
- Rug pulls. A creator removes the liquidity from a new token’s pool, and the token can no longer be sold. Our guide to rug pulls and token scams explains the warning signs, and rug pull defines the term.
- Fake pools. A pool can pair a real stablecoin with a fake token of the same name. Pick tokens by contract address.
- Stale prices in thin pools. A small pool may lag the wider market. Compare quotes before larger swaps.
A worked example
Say a merchant invoice asks for 200 USDC and you hold ETH. Your wallet routes the swap through an ETH/USDC pool holding millions in reserves. Your trade is tiny relative to the pool, so price impact is negligible, and you mostly pay the pool fee plus gas. Now imagine the same swap through a small pool holding only a few thousand dollars: your 200 USDC purchase would shift the price noticeably, and the “minimum received” might fall short of the invoice. Aggregators avoid this by checking several pools, but it’s worth glancing at the route and price impact before confirming, especially on less common tokens.
Quick checklist before swapping to pay
- Is the pool deep relative to your amount?
- Is the price impact under about 1% for a common pair?
- Does the “minimum received” still cover the invoice plus a margin?
- Are you on the same network the merchant expects? See the network choice guide.
Frequently asked questions
Who puts money into a liquidity pool?
What is impermanent loss?
Why does pool size matter when I swap?
Can a liquidity pool be a scam?
Sources
- Uniswap docs: How Uniswap works
- ethereum.org: Decentralized finance (DeFi)
- ethereum.org: Security and scam prevention
Facts were checked against these pages on the date shown above. Terms change; confirm on the official page before acting. General information, not financial, tax or legal advice. See our methodology.