๐Ÿ’ง Liquidity Pools: Your Farm Foundation

Understand how liquidity provision generates yields

๐Ÿ’ง 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