DeFi Explained Lesson 3 of 4
← DeFi Explained | 11 min read

Yield Farming Explained: Risks & Rewards

Understand yield farming, liquidity mining, and how to earn high returns in DeFi — along with the real risks involved.

🎯 Key Takeaways

  • Yield farming involves providing liquidity to DeFi protocols in exchange for interest and token rewards.
  • Liquidity providers (LPs) earn trading fees from every swap in their pool.
  • Impermanent loss is the risk of losing value compared to just holding the assets separately.
  • APY figures in DeFi can be misleading — always check if rewards are in volatile tokens.
  • Start with established protocols and stable asset pairs to minimize risk.

What Is Yield Farming?

Yield farming is the practice of putting your crypto to work in DeFi protocols to earn returns. It goes beyond simple lending — yield farmers actively move funds between protocols to maximize yield, often combining multiple strategies.

The term became popular in 2020 during 'DeFi Summer,' when protocols began distributing governance tokens as rewards for providing liquidity — sometimes generating 1000%+ APY. While those extreme rates were unsustainable, yield farming remains a significant part of DeFi today.

How Liquidity Pools Work

The foundation of most yield farming is liquidity pools used by Automated Market Makers (AMMs) like Uniswap.

Instead of a traditional order book matching buyers with sellers, AMMs maintain pools of two assets (e.g., ETH and USDC). The price is determined by a mathematical formula: x × y = k, where x and y are the amounts of each token.

When you add liquidity:

  • You deposit equal value of both tokens (e.g., $1,000 ETH + $1,000 USDC)
  • You receive LP (Liquidity Provider) tokens representing your pool share
  • Every swap in the pool charges a fee (typically 0.3%) distributed to LPs
  • Your LP tokens can be staked to earn additional protocol token rewards
  • Sources of Yield in Farming

    1. Trading Fees Every swap in your pool generates fees. If you own 1% of a pool that processes $1 million in volume, you earn $3,000 in fees at a 0.3% rate. High-volume pools (ETH/USDC, WBTC/ETH) can generate significant fee income.

    2. Liquidity Mining Rewards Protocols distribute their governance tokens to LPs as an incentive. When Compound launched COMP token distribution in 2020, borrowers and lenders were paid in COMP — creating the 'yield farming' phenomenon. The value of these rewards depends on the token's price.

    3. Auto-Compounding Protocols like Beefy Finance and Yearn Finance automatically reinvest your rewards back into the same pool, compounding returns. This saves gas fees and time versus manual compounding.

    Understanding Impermanent Loss

    Impermanent loss (IL) is the most important concept for yield farmers to understand — and the one most beginners miss.

    Example:

  • • You deposit 1 ETH ($2,000) + 2,000 USDC into a pool (50/50 split)
  • • ETH price doubles to $4,000
  • • The AMM rebalances to maintain 50/50 value
  • • Your position is now: 0.707 ETH ($2,828) + $2,828 USDC = $5,657 total
  • • If you had just HELD: 1 ETH ($4,000) + $2,000 USDC = $6,000
  • • Impermanent loss: $343 (5.7%)
  • The more the prices diverge, the greater the IL:

  • • 2x price change → 5.7% IL
  • • 5x price change → 25.5% IL
  • • 10x price change → 42.5% IL
  • IL is 'impermanent' because if prices return to their original ratio, the loss disappears. But if you withdraw while prices are divergent, the loss becomes permanent.

    Best strategy for minimizing IL: Farm in pools with correlated or stable assets:

  • • Stablecoin pairs (USDC/USDT) — virtually no IL
  • • Correlated pairs (ETH/stETH) — minimal IL
  • • BTC/ETH — moderate IL
  • • ETH/Altcoin — significant IL risk
  • Popular Yield Farming Strategies

    Strategy 1: Stablecoin Farming (Low Risk) Deposit USDC and USDT into Curve Finance's stablecoin pools. Earn trading fees (low) plus CRV token rewards. APY typically 5-15%. Minimal IL since both assets are $1.

    Strategy 2: Blue-Chip LPing (Moderate Risk) Provide ETH/USDC liquidity on Uniswap v3. Earn trading fees on one of the most liquid pairs. Manage your price range (concentrated liquidity) for higher fee capture. APY varies with volume.

    Strategy 3: Auto-Compounding (Medium Risk) Deposit into Yearn Finance vaults, which automatically optimize your yield across multiple protocols. Set it and (mostly) forget it. Good for passive investors.

    Strategy 4: Leverage Farming (High Risk) Borrow from Aave to increase your farming position. Amplifies rewards but also amplifies IL and liquidation risk. For experienced users only.

    Is That APY Real?

    When you see 500% APY, ask yourself:

  • Are rewards in a volatile token? If paid in the protocol's governance token, its price could collapse 90%+
  • What is the TVL vs. reward pool size? High APY often reflects low TVL — when more people join, APY drops rapidly
  • Has the protocol been audited? Unaudited protocols are common targets for exploits
  • Is the APY sustainable? Protocols paying 200%+ APY from token emissions burn through their token supply quickly
  • Rule of thumb: If APY seems too good to be true, it probably is. Always calculate your returns in USD terms, not just token amounts.

    In the final DeFi lesson, we cover the real risks of DeFi — hacks, rug pulls, and how to stay safe.

    Frequently Asked Questions

    What is impermanent loss?
    Impermanent loss occurs when the price ratio between two assets in a liquidity pool changes from when you deposited. The AMM algorithm rebalances the pool, meaning you end up with more of the lower-performing asset. The loss is 'impermanent' because it reverses if prices return to the original ratio. For highly volatile asset pairs, impermanent loss can significantly reduce returns.
    Is yield farming worth the risk?
    For most beginners, simple lending on Aave or Compound is safer and more appropriate than complex yield farming. High yields (100%+ APY) almost always involve significant risks — token inflation, impermanent loss, smart contract vulnerabilities, or unsustainable reward structures. If an APY seems too good to be true, it usually is.
    How are yield farming rewards calculated?
    APY in yield farming comes from two sources: trading fees (proportional to your share of the pool and trading volume) and liquidity mining rewards (protocol tokens distributed to liquidity providers). The total APY fluctuates constantly based on trading volume, token prices, and your pool share.
    🎓

    加密学院教育团队

    Free crypto education, simplified for everyone.

    Ready to Put Knowledge Into Practice?

    Compare exchanges, use our tools, and start your crypto journey.