Yield farming

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

DateEvent
2019Synthetix becomes early prototype — rewards liquidity with SNX tokens
Jun 2020Compound distributes COMP to users; “DeFi Summer” begins
Jul 2020Balancer, Curve, and Uniswap launch liquidity mining; TVL grows from $1 B → $10 B
Jul 2020YFI (Yearn Finance) distributes governance token; farming craze peaks
Sep 2020SushiSwap “vampire attack” on Uniswap via SUSHI mining rewards
2021TVL reaches $200 B+; some farms offer 1,000%+ unsustainable APY
2022LUNA/UST collapse wipes out Anchor Protocol’s 19.5% “sustainable” yield
2023Real yield narrative: fees > token emissions for sustainable farming
2024Points-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 TypeSourceSustainabilityExample
Trading feesActual swap volumeHighUniswap LP
Lending interestBorrower demandMediumAave supply
Token emissionsProtocol inflationLowNew DeFi protocol
Real yieldProtocol revenue sharedHighGMX fee sharing
Points/AirdropExpected future tokenSpeculativeEigenLayer restaking

 In Simple Terms

  1. 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.
  2. Liquidity provision – Deposit two tokens into a DEX pool; earn a share of every swap fee that occurs in that pool.
  3. Token incentive layer – Protocols additionally reward liquidity providers with their own governance tokens — creating “bonus” yield on top of base fees.
  4. Compounding amplifies returns – Manually or automatically reinvesting earned tokens back into the farm compounds APY significantly over time.
  5. 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

ScenarioImplementationOutcome
DeFi Summer 2020User supplies USDC to Compound; earns COMP + interestFirst week: 100%+ APY in COMP; later normalises
Curve/Convex LPingUser deposits stablecoin LP; stakes in Convex for CRV + CVXSteady 5–15% APY; sustainable long-term farming
Anchor Protocol (2021–22)UST deposits earn fixed 19.5% APYProtocol subsidised rate collapses with LUNA; $14 B lost
GMX real yield (2022)Trade fees in GLP pool distributed to stakers20–40% APY from real trading activity; sustainable
EigenLayer restaking (2024)ETH stakers restake for “points”Speculative pre-airdrop yield; EIGEN airdrop distributed

 Advantages

AdvantageDetail
Passive incomeEarn yield on idle crypto assets
Early protocol accessFarming new protocols provides governance tokens before market pricing
Capital efficiencyStack multiple yield sources (fees + emissions + bribes)
PermissionlessAnyone globally participates without bank account
DeFi ecosystem growthLiquidity mining bootstraps new protocol liquidity

 Disadvantages & Risks

RiskDetail
Impermanent lossPrice divergence between LP tokens can exceed fee earnings
Smart contract exploits$3 B+ lost to yield farming contract hacks (2020–2023)
Token inflationEmission-heavy farms pay you in tokens that rapidly lose value
Gas costsOn Ethereum L1, gas fees can exceed farming returns for small positions
Protocol rug pullsAnonymous teams drain liquidity pools after farming begins
ComplexityManaging 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

News & Events