Yield farming — also known as liquidity mining — emerged in the DeFi Summer of 2020 and rapidly grew into a multi-billion dollar industry. At its best, it offers cryptocurrency holders the ability to put idle assets to work earning returns. At its worst, it can result in significant losses through impermanent loss, smart contract hacks, or outright rug pulls. Here is everything you need to know.
What Is Yield Farming?
Yield farming is the practice of providing liquidity or other services to DeFi protocols in exchange for rewards, typically paid in the protocol’s native token. You deposit your assets, the protocol uses them (for trading, lending, etc.), and you earn a yield in return.
The term “farming” reflects the agricultural metaphor: you plant your seeds (capital), tend the farm (manage positions), and harvest the yield (collect rewards).
How Liquidity Pools Work
The backbone of yield farming is the Automated Market Maker (AMM), pioneered by Uniswap. Instead of a traditional order book, AMMs use liquidity pools — smart contracts holding reserves of two tokens (e.g., ETH and USDC).
When a trader swaps ETH for USDC, they are trading against the pool, not against another person. The pool rebalances automatically using the constant product formula: x × y = k. In exchange for providing this liquidity, Liquidity Providers (LPs) earn a share of every trading fee the pool generates — typically 0.05% to 1% per trade on Uniswap v3.
Types of Yield Farming Strategies
1. AMM Liquidity Provision
Deposit a token pair into a DEX pool (Uniswap, Curve, Aerodrome) and earn trading fees. Returns vary from 1–5% APR on stablecoin pools to 10–100%+ on volatile/new pairs. Higher APR usually means higher risk of impermanent loss or token depreciation.
2. Lending Protocol Deposits
Deposit assets on Aave, Compound, or Morpho to earn interest from borrowers. Lower risk than AMM LPing but lower returns. You can also borrow against your deposits to create leverage (with significant liquidation risk).
3. Liquidity Mining Rewards
Many protocols incentivise LPs with additional token rewards on top of base fees. For example, depositing into a Curve pool might earn: (a) 0.04% trading fees, (b) CRV token emissions, and (c) additional tokens from protocols bribing Curve to attract liquidity. This stacking of rewards is why some APYs can reach 50–200% — though these rates fluctuate constantly and can disappear overnight.
4. Staking
Staking protocol tokens (e.g., veTokens on Curve) often boosts your rewards and gives governance rights. More complex but more rewarding for experienced users.
Understanding APR vs APY
APR (Annual Percentage Rate): The simple interest rate for a year. 10% APR on $10,000 = $1,000 after one year, with no compounding.
APY (Annual Percentage Yield): Takes compounding into account. Compounding daily, 10% APR becomes approximately 10.52% APY. Many DeFi protocols display APY, which looks more impressive.
Always check whether the APY shown includes automatic compounding (some protocols auto-compound, others require manual harvesting).
Impermanent Loss: The Hidden Risk
Impermanent loss (IL) is the most misunderstood risk in DeFi. It occurs when the relative price of the two tokens in your LP position changes after you deposit.
Example: You deposit $1,000 worth of ETH and $1,000 of USDC into a Uniswap pool. ETH’s price then doubles. If you had just held the tokens, you would have $3,000. But because the AMM rebalanced (sold ETH as its price rose to maintain the product formula), your LP position is worth ~$2,828 — about 5.7% less. This is impermanent loss.
Key points about IL:
- It becomes permanent when you withdraw at an unfavorable ratio
- It is worst on highly volatile pairs; minimal on stablecoin-to-stablecoin pools
- Trading fees earned can offset IL — but only if volume is high enough
- Uniswap v3’s concentrated liquidity can magnify IL when price moves outside your range
Other Major Risks
- Smart contract risk: The protocol’s code could have a bug. $3B+ has been lost to DeFi hacks and exploits. Always check whether contracts are audited.
- Rug pulls: Malicious teams drain the liquidity pool and disappear. Stick to established protocols with verified team identities.
- Token inflation: High APY paid in a rapidly inflating token may yield negative real returns. Assess the fundamentals of the reward token.
- Liquidation risk: If you use borrowed funds to farm, a price drop can trigger liquidation of your collateral.
- Gas fees: On Ethereum, entering and exiting positions and harvesting rewards each costs gas. On small amounts, fees can eat all profits. Layer 2s (Arbitrum, Base, Optimism) dramatically reduce this.
Tools for Yield Farmers
- DeFiLlama — Protocol TVL, yields, and chain comparisons
- Beefy Finance / Yearn Finance — Auto-compounding vaults that handle harvesting for you
- Zapper / DeBank — Portfolio tracker showing all DeFi positions
- IL Calculator — Compute your projected impermanent loss before depositing
Who Should Yield Farm?
Yield farming is best suited to users who: understand the underlying risks, are comfortable with smart contracts, have enough capital that gas fees are not a significant percentage of potential returns, and can actively monitor positions. For casual holders, simpler options like staking ETH via Lido or depositing stablecoins on Aave may offer better risk-adjusted returns with less active management.
Conclusion
Yield farming can generate meaningful returns on crypto holdings that would otherwise sit idle. But it requires understanding impermanent loss, smart contract risk, and token inflation. The highest APYs are almost never sustainable and often hide significant risks. Start with stablecoin pools on audited protocols, understand the mechanics fully, and never allocate more than you can afford to lose.