Yield Farming

Learn what yield farming is, how it generates returns in DeFi, and the security risks every crypto user should understand before chasing high APYs.

W
by Werner Vermaak
Expert Verified
March 28, 2026 • 4 minutes read
Yield Farming

Learn what yield farming is, how it generates returns in DeFi, and the security risks every crypto user should understand before chasing high APYs.

What is yield farming?

Yield farming is a DeFi strategy where users deposit or lock cryptocurrency into smart contracts to earn rewards, typically in the form of additional tokens, trading fees, or interest. The basic idea is simple: put your crypto to work instead of letting it sit idle in a wallet.

The term “yield farming” gained traction during DeFi Summer in 2020, when Compound launched its COMP token distribution and kicked off a frenzy of liquidity mining programs across Ethereum. Users started moving capital between protocols chasing the highest returns, and the practice quickly became one of the defining activities of the DeFi space.

By 2026, yield farming has matured significantly, with strategies ranging from straightforward liquidity provision on decentralized exchanges to complex, multi-layered “looping” strategies across lending and borrowing protocols.

How it works

How yield farming works

Picture a bank savings account, except instead of a bank using your money to issue loans and paying you 0.5% interest, you’re depositing tokens into a DeFi protocol that pays you 5%, 15%, or sometimes hundreds of percent APY. That return comes from trading fees, token incentives, or both.

The most common form of yield farming is providing liquidity. You deposit a pair of tokens (for example, ETH and USDC) into a liquidity pool on a DEX like Uniswap. Traders pay fees every time they swap between those tokens, and you earn a proportional share of those fees based on your deposit size.

Many protocols sweeten the deal with additional token rewards. A protocol might distribute its native governance token to LPs, effectively paying them extra to bring capital into the ecosystem. This “liquidity mining” model was pioneered by Compound and adopted by hundreds of protocols since.

More advanced yield farmers deploy multi-step strategies. A typical approach might look like this: deposit ETH into a lending protocol like Aave, borrow stablecoins against it, deposit those stablecoins into another pool for yield, then use the LP tokens from that pool as collateral somewhere else. Each layer adds potential return, but also stacks risk. If any single protocol in the chain gets exploited, the entire position can unravel.

Security considerations

  • Yield farming scams are rampant. Projects advertising APYs of 1,000%+ are almost always unsustainable and frequently end in rugpulls. If the yield sounds too good to be true, it probably is.
  • Smart contract vulnerability risk multiplies with every protocol involved in a yield strategy. Using three protocols in a single strategy means three sets of smart contracts that could be exploited.
  • Impermanent loss is a constant threat for LP positions, especially in volatile token pairs. Farming rewards can offset this, but during sharp market moves, losses can exceed the yield earned.
  • Token rewards from farming often have their own price risk. Earning 50% APY in a governance token is meaningless if that token drops 90% in value.
  • Malicious approvals are a common trap. Fake yield farming interfaces ask you to approve unlimited token spending, then drain your wallet. Always verify the contract you’re approving and use Revoke.cash to clean up old approvals.
  • Phishing attacks frequently impersonate popular DeFi protocols with fake “farming” or “staking” opportunities. Bookmark official protocol URLs and never click links from DMs or social engineering messages.
  • Use Kerberus Sentinel3 to detect malicious dApps and wallet drainers before you connect your wallet and approve transactions.
  • Check our Learn academy for top crypto safety information.

Real-world cases

The collapse of Terra’s Anchor Protocol in May 2022 remains the most devastating yield farming disaster in crypto history. Anchor promised a fixed ~20% APY on UST stablecoin deposits, attracting $17 billion in deposits before the entire ecosystem collapsed, erasing roughly $40 billion in value. The unsustainable yield was funded partly by venture capital reserves rather than genuine protocol revenue. More recently, multiple Solana yield farming protocols in 2024-2025 launched with aggressive token incentives to attract TVL, only to see their governance tokens crash 80-95% within weeks, wiping out returns for farmers who held rather than sold.

FAQ

Q: What is yield farming in crypto?

A: Yield farming is a DeFi strategy where users deposit cryptocurrency into smart contracts to earn returns through trading fees, interest, or bonus token rewards. It’s essentially a way to generate passive income on crypto holdings, though the returns come with meaningful risk.

Q: Is yield farming risky?

A: Yes. Yield farming carries smart contract risk (exploits and bugs), impermanent loss risk (from price movements in LP positions), token price risk (rewards losing value), and scam risk (fake protocols designed to steal funds). The higher the advertised APY, the higher the risk tends to be. Always research protocols thoroughly and stick to well-audited platforms.

Q: How is yield farming different from staking?

A: Staking involves locking tokens to help secure a blockchain network and earning rewards for participation. Yield farming is broader and can involve providing liquidity, lending, borrowing, or chaining multiple DeFi strategies together. Staking is generally simpler and lower risk, while yield farming can offer higher returns but with significantly more complexity and exposure.

Written by:

W
Expert Verified

Werner Vermaak is a Web3 author and crypto journalist with a strong interest in cybersecurity, DeFi, and emerging blockchain infrastructure. With more than eight years of industry experience creating over 1000 educational articles for leading Web3 teams, he produces clear, accurate, and actionable organic material for crypto users.

  • 8+ years in crypto & blockchain journalism
  • 1000+ educational articles for leading Web3 teams
  • Former content lead at CoinMarketCap, Bybit, OKX
View full author profile
Browser Extension
Navigate Web3 Fearlessly

Install once & immediately get protected from scams, phishing and hacks. Zero losses for 250k+ users in 3 years. Now with up to $30,000 in coverage.

Get Protected Now
4.8 From 298+ reviews