Yield farming is a DeFi strategy where users provide liquidity or stake tokens in various protocols to earn returns in the form of additional tokens. It's one of the primary ways to earn passive income in decentralized finance.
How Yield Farming Works
Users deposit tokens into a DeFi protocol (lending platform, DEX liquidity pool, or staking contract). In return, they earn rewards — typically a combination of trading fees, interest payments, and governance token incentives.
Common Strategies
Liquidity Provision: Depositing token pairs into DEX pools to earn trading fees.
Lending: Depositing tokens into lending protocols like Aave to earn interest.
Staking: Locking tokens in protocol-specific staking contracts for rewards.
Compounding: Reinvesting rewards to maximize returns through auto-compounding vaults (Yearn Finance).
Risks
Yield farming carries risks including impermanent loss, smart contract vulnerabilities, token price depreciation, and "emission-based" yields that are unsustainable long-term. Always evaluate the source of yield — if you can't identify where the yield comes from, you might be the yield.