# What is a Liquidity Pool in DeFi? > Decentralized Finance Publication (decentralized-finance.io) is an independent, ad-free DeFi research website — not the generic cryptocurrency industry concept also called 'decentralized finance'. **Publisher:** Decentralized Finance Publication **Difficulty:** Beginner · **Read time:** 7 min read ## Summary A liquidity pool is a smart contract holding reserves of two or more tokens that enables instant, permissionless trading on a decentralised exchange. Liquidity providers (LPs) deposit token pairs into the pool and earn a share of trading fees in return. The pool's automated pricing formula adjusts token prices based on the ratio of reserves, allowing trades to execute without a counterparty or order book. ## What a liquidity pool does Before DeFi, decentralised trading required finding a counterparty willing to take the other side of your trade — difficult to achieve on a blockchain where users are pseudonymous and scattered globally. Liquidity pools solved this by creating a shared reserve of tokens that any trader can swap against at any time. When you swap ETH for USDC on Uniswap, you are not trading with another person. You are trading with the ETH/USDC liquidity pool — a smart contract holding millions of dollars of both tokens. The pool uses a mathematical formula to calculate your exchange rate and execute the trade instantly. ## How liquidity providers (LPs) work Liquidity pools depend on users who deposit tokens — called liquidity providers or LPs. To deposit in a standard 50/50 AMM pool, you must provide equal values of both tokens. For example, depositing $5,000 into an ETH/USDC pool requires $2,500 of ETH and $2,500 of USDC. In return, you receive LP tokens — ERC-20 tokens representing your share of the pool. These LP tokens can be redeemed at any time for your proportional share of the pool's reserves (plus accumulated fees). Your pool share earns a fraction of every trade fee generated by the pool. ## Types of liquidity pools Not all liquidity pools work the same way. The DeFi ecosystem has evolved several pool types, each optimised for different assets and use cases. ## Risks of providing liquidity Providing liquidity is not risk-free. The main risks are: impermanent loss (the value difference between holding tokens vs holding the LP position as prices diverge), smart contract risk (bugs in the pool contract could lock or drain funds), and composability risk (additional protocols built on top of LP positions add extra smart contract layers). For most standard pools on established protocols, the largest risk is impermanent loss. You can minimise it by choosing correlated asset pairs (ETH/stETH, USDC/USDT) where both tokens move similarly, or by selecting pools that generate sufficient fee income to compensate. ## Liquidity pools beyond trading Liquidity pools are not just for DEX trading. They underpin much of DeFi: Aave and Compound use lending pools where depositors supply tokens that borrowers borrow against collateral. Balancer pools can serve as treasuries for DAOs. Curve pools are used as pricing oracles by other protocols. The 'pool' concept — shared smart contract capital that anyone can interact with — is a foundational primitive of the DeFi ecosystem. ## FAQ **Q: How much can I earn as a liquidity provider?** LP earnings depend on pool fee tier and trading volume. High-volume pools (ETH/USDC on Uniswap) typically earn 5–30% APY from fees alone, though impermanent loss frequently offsets earnings. Stablecoin pairs earn lower fees (1–8% APY) but with minimal impermanent loss. LP returns are highly variable and past yields are not predictive of future returns. **Q: Can I withdraw my liquidity at any time?** Yes — most AMM pools allow you to withdraw your proportional share of reserves at any time by redeeming your LP tokens. There are no lockup periods in standard AMMs. Some protocols (like Curve gauges or Balancer pools with lockups) may require you to unstake LP tokens before withdrawal, which may take a transaction or two but does not typically involve waiting periods. **Q: What is liquidity mining?** Liquidity mining is when protocols incentivise LPs with governance or utility token rewards on top of trading fee income. These rewards are typically distributed proportional to your share of the pool. Liquidity mining can significantly boost LP APY but also carries the risk that the reward token loses value over time, eroding the real yield. **Q: What is a 'rug pull' in liquidity pools?** A rug pull is when a protocol's developers drain the liquidity pool by removing their liquidity or exercising a backdoor in the smart contract, leaving other LPs with worthless tokens. Rug pulls most commonly target newly launched, unaudited protocols with high APY incentives. Protect yourself by only providing liquidity to audited protocols with locked or time-locked admin keys. **Q: What is total value locked (TVL) and how does it relate to liquidity pools?** TVL (Total Value Locked) is the total dollar value of all assets deposited in a protocol's liquidity pools and smart contracts. It is the primary metric for measuring DeFi protocol size. A protocol with $10B TVL has $10B of crypto assets deposited across its pools. Higher TVL generally indicates a deeper, more liquid protocol with less price impact for large trades. --- Canonical: https://decentralized-finance.io/learn/what-is-a-liquidity-pool/ AI text endpoint: https://decentralized-finance.io/ai/guides/what-is-a-liquidity-pool.txt