๐ง Liquidity Pools: Your Farm Foundation
Understand how liquidity provision generates yields
Your Progress
0 / 5 completed๐ง Liquidity Pools: The Foundation
Liquidity pools are smart contracts that hold pairs of tokens, enabling decentralized trading. When you add liquidity, you become a Liquidity Provider (LP) and earn rewards from trading fees.
How Pools Work
๐
Automated Market Maker (AMM)
Pools use the formula x ร y = k to automatically price trades. No order book needed!
๐ซ
LP Tokens
Receive tokens representing your share of the pool. Burn them to withdraw your liquidity + fees.
Example: ETH/USDT Pool
โข Pool contains: 100 ETH + 200,000 USDT
โข Constant product: 100 ร 200,000 = 20,000,000
โข Someone buys 10 ETH โ pool now has 90 ETH + 222,222 USDT
โข New ETH price: 222,222 รท 90 = $2,469 (price increased!)
๐ฎ Interactive: Add Liquidity to Pool
Adjust amounts to see pool composition. Pools require balanced value (50/50):
$20,000
1 ETH50 ETH
$1,000$100,000
Pool Composition
ETH50.0%
USDT50.0%
Total Value
$40,000
Balance Status
โ Balanced
๐ฎ Interactive: Impermanent Loss Calculator
See how price changes affect your returns compared to just holding:
$1,000$5,000
$1,000$5,000
Impermanent Loss Analysis
Price Change:+25.0%
Impermanent Loss:-0.62%
What this means:
You'd have 0.62% more value if you just held the tokens instead of providing liquidity
๐ก Key Insight
Impermanent loss occurs when token prices diverge from initial ratio. It's "impermanent" because it disappears if prices return to original levels. Trading fees and farming rewards often offset IL.
Becoming a Liquidity Provider
โ
Benefits
- โขEarn 0.25-0.3% of all trades as fees
- โขAdditional token rewards (often 20-100%+ APY)
- โขPassive income on idle assets
- โขWithdraw anytime (most pools)
โ ๏ธ
Risks
- โขImpermanent loss from price divergence
- โขSmart contract vulnerabilities
- โขToken price volatility
- โขGas fees for deposits/withdrawals