Definition
Yield farming (also called liquidity mining) is a DeFi practice in which users provide liquidity, lending capital, or other services to smart-contract protocols in exchange for token rewards — often the protocol’s own governance tokens — in addition to any base lending/trading fees. By strategically deploying capital across multiple protocols, compounding rewards, and leveraging positions, yield farmers seek to maximise their annual percentage yield (APY). The practice emerged during DeFi Summer 2020 when Compound distributed COMP tokens to borrowers and lenders, igniting an explosive growth cycle. At its peak in 2021, some protocols offered 1,000%+ APY through inflationary token emissions, though sustainable yields have since compressed significantly.
Origin & History
| Date | Event |
| 2019 | Synthetix becomes early prototype — rewards liquidity with SNX tokens |
| Jun 2020 | Compound distributes COMP to users; “DeFi Summer” begins |
| Jul 2020 | Balancer, Curve, and Uniswap launch liquidity mining; TVL grows from $1 B → $10 B |
| Jul 2020 | YFI (Yearn Finance) distributes governance token; farming craze peaks |
| Sep 2020 | SushiSwap “vampire attack” on Uniswap via SUSHI mining rewards |
| 2021 | TVL reaches $200 B+; some farms offer 1,000%+ unsustainable APY |
| 2022 | LUNA/UST collapse wipes out Anchor Protocol’s 19.5% “sustainable” yield |
| 2023 | Real yield narrative: fees > token emissions for sustainable farming |
| 2024 | Points-based farming (pre-airdrop) becomes dominant incentive model |
“Yield farming is the DeFi equivalent of the California Gold Rush — most people make less than they spend, but the infrastructure built along the way is valuable.” — DeFi analyst
How It Works
“` YIELD FARMING FLOW ────────────────────────────────────────────────────────────────── User deposits USDC + ETH into Uniswap v2 pool │ ▼ Receives LP tokens (representing pool share) │ ▼ Stakes LP tokens in protocol’s Rewards contract │ ├──→ Earns trading fees (real yield from swaps) └──→ Earns governance tokens (liquidity mining rewards) │ ▼ Compound → reinvest rewards → higher APY ────────────────────────────────────────────────────────────────── RISK: Impermanent loss + smart contract exploits + token price decline “`
| Yield Type | Source | Sustainability | Example |
| Trading fees | Actual swap volume | High | Uniswap LP |
| Lending interest | Borrower demand | Medium | Aave supply |
| Token emissions | Protocol inflation | Low | New DeFi protocol |
| Real yield | Protocol revenue shared | High | GMX fee sharing |
| Points/Airdrop | Expected future token | Speculative | EigenLayer restaking |
In Simple Terms
- Lend your crypto to earn – Like a high-yield savings account, but you lend to a smart contract instead of a bank — and earn tokens on top of interest.
- Liquidity provision – Deposit two tokens into a DEX pool; earn a share of every swap fee that occurs in that pool.
- Token incentive layer – Protocols additionally reward liquidity providers with their own governance tokens — creating “bonus” yield on top of base fees.
- Compounding amplifies returns – Manually or automatically reinvesting earned tokens back into the farm compounds APY significantly over time.
- High APY = high risk – Triple-digit APYs usually come from inflationary token emissions; once the emission rate drops or token price falls, APY collapses.
Real-World Examples
| Scenario | Implementation | Outcome |
| DeFi Summer 2020 | User supplies USDC to Compound; earns COMP + interest | First week: 100%+ APY in COMP; later normalises |
| Curve/Convex LPing | User deposits stablecoin LP; stakes in Convex for CRV + CVX | Steady 5–15% APY; sustainable long-term farming |
| Anchor Protocol (2021–22) | UST deposits earn fixed 19.5% APY | Protocol subsidised rate collapses with LUNA; $14 B lost |
| GMX real yield (2022) | Trade fees in GLP pool distributed to stakers | 20–40% APY from real trading activity; sustainable |
| EigenLayer restaking (2024) | ETH stakers restake for “points” | Speculative pre-airdrop yield; EIGEN airdrop distributed |
Advantages
| Advantage | Detail |
| Passive income | Earn yield on idle crypto assets |
| Early protocol access | Farming new protocols provides governance tokens before market pricing |
| Capital efficiency | Stack multiple yield sources (fees + emissions + bribes) |
| Permissionless | Anyone globally participates without bank account |
| DeFi ecosystem growth | Liquidity mining bootstraps new protocol liquidity |
Disadvantages & Risks
| Risk | Detail |
| Impermanent loss | Price divergence between LP tokens can exceed fee earnings |
| Smart contract exploits | $3 B+ lost to yield farming contract hacks (2020–2023) |
| Token inflation | Emission-heavy farms pay you in tokens that rapidly lose value |
| Gas costs | On Ethereum L1, gas fees can exceed farming returns for small positions |
| Protocol rug pulls | Anonymous teams drain liquidity pools after farming begins |
| Complexity | Managing multiple positions across chains is operationally demanding |
Risk Management Tips:
- Prioritise “real yield” protocols earning from genuine fees, not token emissions
- Use DeFiLlama and DeBank to track total positions and risks across chains
- Audit farming contracts before depositing (check Rugdoc, DeFiSafety)
- Never farm with more than you can afford to lose entirely
FAQ
Q: What is the difference between yield farming and staking?
A: Staking typically locks tokens to secure a PoS network (single token, network reward). Yield farming is broader — providing liquidity, lending, or any capital service to DeFi protocols for multi-source token rewards.
Q: Is 1,000% APY real?
A: Mathematically, yes — temporarily. These APYs come from token emission rates divided by TVL. When TVL grows or emission slows, APY rapidly compresses. In bear markets, the token earned may also crash 90%+.
Q: What is “real yield” farming?
A: Yield sourced entirely from actual protocol revenue (trading fees, liquidation fees) shared with token stakers — not from inflationary token printing. Examples include GMX (GLP fees), Curve (trading fees + bribes), and Uniswap v3 LP fees.
Q: What is an auto-compounder?
A: A protocol (Beefy Finance, Yearn Finance) that automatically harvests your farming rewards and reinvests them back into the farm — maximising compound interest without manual effort.
Q: What happened to Anchor Protocol?
A: Anchor offered a fixed 19.5% APY on UST stablecoin deposits, subsidised by the Terra ecosystem. When LUNA/UST collapsed in May 2022, Anchor became worthless overnight — a stark warning about “guaranteed” high yields.
Sources
- Compound Finance documentation — compound.finance
- DeFiLlama Yields dashboard — defillama.com/yields
- Chainalysis DeFi Crime Report 2022
- Yearn Finance documentation — yearn.finance
UPay Tip: Before chasing high APY in a new yield farm, calculate how long the emission rate sustains the current APY and at what token price it becomes unprofitable. Most triple-digit farming opportunities last weeks, not months — time your entry and exit carefully.
Disclaimer: This glossary entry is for educational purposes only and does not constitute financial or legal advice.
UPay — Making Crypto Encyclopedic










