TokenAlphabet logo TokenAlphabet
Home / Glossary / Liquidity pool

Liquidity pool

A liquidity pool is a smart contract that holds a pair of tokens, for example ETH and USDC, so people can trade between them without a buyer on the other side. The tokens come from liquidity providers, who deposit both assets and get a share of the trading fees in return. Most decentralized exchanges work this way.

Uniswap v2 sets the price with a simple rule: the product of the two balances stays constant, x × y = k. Take a pool with 10 ETH and 30,000 USDC, so k is 300,000 and ETH costs 3,000 USDC. A trader who puts in 3,000 USDC raises that side to 33,000, and the ETH side must drop to 300,000 / 33,000, about 9.09. The trader receives roughly 0.91 ETH, an average price near 3,300. That gap is price impact, and it shrinks as the pool gets deeper.

Each swap on a classic Uniswap v2 pool pays a 0.3% fee that stays in the pool. Providers hold LP tokens or, on Uniswap v3, an NFT position with a chosen price range. Curve uses a different formula built for assets that should trade near 1:1, such as two stablecoins.

Providing liquidity carries risk. When prices move, the pool sells the rising token and buys the falling one, so the provider can end up with less value than if they had held, known as impermanent loss. Pools for new tokens can also be emptied by the creator in a rug pull.

Related terms: DEX vs CEX, DeFi (decentralized finance), Gas fee, Stablecoin, Wrapped token