What Is Yield Farming?

Yield farming is the practice of deploying crypto assets across DeFi protocols to earn returns. At its simplest, yield farming means depositing tokens into a smart contract and receiving rewards—whether from trading fees, interest payments, protocol token emissions, or a combination of all three. The term became mainstream during "DeFi Summer" 2020, when protocols like Compound, Yearn, and SushiSwap offered extraordinarily high returns to attract liquidity.

Yield farming encompasses a broad spectrum of strategies, from conservative (lending stablecoins on Aave at 3–5% APR) to aggressive (providing liquidity to volatile token pairs on new protocols offering 500%+ APY through token incentives). The skill of yield farming lies in identifying opportunities that offer attractive risk-adjusted returns—high yields that compensate for the real risks involved.

Liquidity Mining: The Origin of Yield Farming

Liquidity mining is a specific form of yield farming where a protocol distributes its governance tokens to users who provide liquidity or interact with the protocol. Compound's launch of COMP token distribution in June 2020 is widely credited as the catalyst for the yield farming explosion.

The mechanics are straightforward:

  1. A protocol allocates a portion of its token supply (typically 20–50%) to a liquidity mining program.
  2. Tokens are distributed pro-rata to users who deposit assets into the protocol (e.g., lending on Compound, providing liquidity on SushiSwap).
  3. Users can claim their earned tokens periodically and either hold, sell, or reinvest them.

Liquidity mining serves dual purposes: it bootstraps protocol adoption by attracting capital, and it distributes governance tokens to active users (theoretically decentralizing control). The challenge is that incentive-driven capital is often mercenary—it flows to wherever yields are highest and exits when incentives dry up.

Common Yield Farming Strategies

1. Lending and Borrowing

The simplest yield farming strategy: deposit assets into a lending protocol (Aave, Compound) and earn interest from borrowers. Stablecoin lending typically yields 2–8% APR depending on market conditions. During high demand periods (bull markets, airdrop farming seasons), stablecoin borrowing rates can spike above 15%, creating attractive lending yields.

2. Liquidity Provision

Depositing token pairs into AMM pools and earning trading fees. Returns depend on trading volume relative to pool size. High-volume, low-TVL pools generate the highest fee APR, but often involve volatile or risky token pairs. Common approaches include:

  • Stablecoin LPing: Low risk, low return (5–15% APR). Pairs like USDC/USDT on Curve.
  • Blue-chip LPing: Moderate risk, moderate return. Pairs like ETH/USDC on Uniswap V3.
  • Incentivized LPing: Protocol adds token rewards on top of trading fees, boosting total APR.

3. Staking Protocol Tokens

Many DeFi protocols allow users to stake their governance tokens to earn a share of protocol revenue. Examples include staking GMX to earn ETH from perpetual trading fees, or locking CRV as veCRV to earn Curve trading fees and governance voting power.

4. Recursive Borrowing (Looping)

An advanced strategy where a user deposits collateral, borrows against it, deposits the borrowed amount, borrows again, and repeats. This amplifies both yield and risk. If a protocol offers token rewards on both deposits and borrows, the combined rewards can exceed the net borrowing cost, creating a positive carry even after paying interest.

Warning: Leverage Amplifies Losses

Recursive borrowing strategies are effectively leveraged positions. A decline in collateral value can trigger cascading liquidations. These strategies should only be employed with a thorough understanding of liquidation thresholds and position management.

APY vs. APR: Understanding Yield Metrics

DeFi protocols report yields using two metrics that are frequently confused:

MetricDefinitionCompoundingExample
APR (Annual Percentage Rate)Simple annual return without compoundingNone10% APR on $1,000 = $100 after 1 year
APY (Annual Percentage Yield)Annual return with compoundingIncluded10% APR compounded daily = 10.52% APY

The formula to convert APR to APY with n compounding periods per year:

APY = (1 + APR/n)^n - 1

Some protocols advertise APY with daily compounding to make yields appear higher. Always verify whether a quoted yield is APR or APY and whether compounding is automated or requires manual claiming and reinvesting.

Yield Aggregators

Yield aggregators automate yield farming strategies, handling the compounding, rebalancing, and gas optimization that would otherwise require manual management.

Yearn Finance

Yearn is the original yield aggregator. Users deposit tokens into Yearn "vaults," and the protocol's strategies automatically deploy those tokens across lending protocols, liquidity pools, and other yield sources. Yearn strategies are written by independent strategists and undergo governance review before deployment. The protocol charges a 2% management fee and a 20% performance fee.

Auto-Compounding

Many yield farms pay rewards in a separate token (e.g., a pool pays ETH/USDC fees but also distributes SUSHI tokens). Without compounding, these rewards sit idle. Auto-compounding vaults (Beefy Finance, Yearn) periodically harvest reward tokens, sell them, and reinvest the proceeds into the underlying position. This converts APR into APY and can significantly boost returns, especially for farms with high reward emission rates.

Sustainable vs. Unsustainable Yields

The most important analytical question in yield farming is: where does the yield come from?

Sustainable Yield Sources

  • Trading fees: Earned by LPs from real user demand. Scales with protocol usage.
  • Borrowing interest: Paid by borrowers who have a productive use for the capital.
  • Protocol revenue sharing: A share of genuine economic activity (e.g., perpetual trading fees distributed to stakers).
  • Staking rewards: Network issuance paid for securing consensus.

Unsustainable Yield Sources

  • Token emissions: Rewards paid in newly minted governance tokens. If the token price declines (as it often does under persistent sell pressure from farmers), the real yield evaporates.
  • Ponzinomics: Yields funded by new deposits rather than productive activity. When deposit growth slows, the scheme collapses.
  • Unsecured leverage: Yields generated through hidden or excessive leverage that can unwind destructively.

"If you don't know where the yield comes from, you are the yield." This maxim from DeFi Summer remains the most important risk heuristic for yield farmers.

Risks of Yield Farming

Smart Contract Risk

Every yield farming position involves interacting with one or more smart contracts. Each contract is a potential point of failure. Complex strategies that stack multiple protocols (deposit in Aave, borrow, deposit in Curve, stake LP tokens in Convex) compound this risk multiplicatively.

Impermanent Loss

LPs in AMM pools are exposed to impermanent loss when the prices of pooled tokens diverge. Yield farming rewards must exceed impermanent loss for the position to be profitable. See our dedicated article on impermanent loss for a full analysis.

Rug Pulls and Exploits

New, unaudited yield farms carry significant risk of rug pulls (developer theft via admin keys or malicious contract logic) and exploits. The anonymous nature of many DeFi launches makes due diligence critical.

Token Depreciation

Farms that pay rewards in their own governance token expose farmers to token price risk. A farm offering 200% APY in a token that loses 90% of its value delivers a net loss. Always evaluate yields in dollar terms, not just token terms.

Farm Evaluation Framework

Before entering any yield farming position, evaluate the following:

  1. Yield source: Is the yield from fees, interest, or token emissions? What percentage comes from each?
  2. Protocol track record: How long has the protocol been live? Has it been audited? What is the audit firm's reputation?
  3. TVL trends: Is TVL growing or declining? Rapidly declining TVL may indicate smart money exiting.
  4. Token economics: If rewards are in a governance token, what is the emission schedule? Total supply? Vesting? Is there sustained buy-side demand?
  5. Smart contract risk: How many contracts does the strategy interact with? Are there admin keys or upgrade mechanisms? Is the code verified and open-source?
  6. Impermanent loss exposure: For LP positions, how correlated are the paired tokens? What is the historical volatility of the pair?
  7. Exit liquidity: Can you withdraw at any time, or are there lock-up periods? What happens to yield during high-withdrawal periods?
  8. Insurance availability: Does the protocol offer or integrate with DeFi insurance (Nexus Mutual, InsurAce)?

Key Takeaways

  • Yield farming deploys crypto assets across DeFi protocols to earn returns from fees, interest, and token incentives.
  • Always distinguish APR (simple) from APY (compounded) and verify whether compounding is automated or manual.
  • Sustainable yields come from real economic activity (trading fees, borrowing interest). Token emissions alone are not sustainable yield.
  • Yield aggregators (Yearn, Beefy) automate compounding and strategy management but introduce additional smart contract risk.
  • Rigorous farm evaluation—covering yield source, audit status, token economics, and impermanent loss—is essential before deploying capital.

Related articles