Yield farming

On this page 7

Yield farming is the practice of depositing crypto assets into DeFi protocols to earn a return, typically a combination of trading fees, lending interest and incentive tokens distributed by the protocol, and of moving those assets between opportunities as the returns change. The term covers activity in liquidity pools, lending markets, staking contracts and automated vaults that do the moving on behalf of depositors.

Yield farming became widespread in decentralized finance when protocols began paying users in their own governance tokens for supplying capital. That model attracts liquidity quickly, but much of the advertised return depends on the market price of those tokens, which makes yield farming one of the highest-risk activities in DeFi.

Where the yield comes from

Every yield has a source, and identifying it is the first step of any analysis. A return that cannot be traced to a borrower, a trader or a token issuer is a warning sign. The main sources differ sharply in how durable they are.

SourceWho paysDurability
Trading feesTraders swapping in a liquidity poolDurable while trading volume lasts
Lending interestBorrowers in a lending marketVaries with demand for leverage
Liquidity mining rewardsThe protocol, through new token issuanceTemporary and dilutive
Staking rewardsA network’s issuance and feesFairly stable, tied to the network
Bribes and vote incentivesProjects seeking liquidity directionDepends on governance competition
Main sources of yield farming returns

Fees and interest are real economic yield, paid by people who use the protocol. Liquidity mining rewards are newly created tokens; they look like income but are funded by dilution of existing token holders. When the reward token falls in price, the advertised rate falls with it.

How a yield farming strategy works

A basic strategy has three layers. The farmer deposits two tokens into an automated market maker pool and receives LP tokens that represent the share of the pool. The farmer then stakes those LP tokens in a reward contract, which pays incentive tokens. Finally, the farmer periodically harvests and compounds the rewards by selling them and adding the proceeds to the position.

Advanced strategies add leverage and recursion. A farmer can deposit a token in a lending market, borrow against it, deposit the borrowed amount again and repeat, which multiplies exposure to the reward rate. This raises the yield but also the liquidation risk, because a small price move can push the position below its collateral requirement.

Yield aggregators and vaults automate these steps. They pool deposits, harvest rewards, swap them and redeposit them, which spreads gas costs across many users. The convenience adds another layer of smart contracts and therefore another place where a bug can drain funds.

APR, APY and the numbers that matter

Headline figures are easy to misread. APR is the simple annual rate without compounding, while APY includes compounding at an assumed frequency. A displayed APY often assumes daily compounding at zero cost and a constant reward token price, which rarely holds.

MetricWhat it showsCommon pitfall
APRSimple annualized returnMixes fee yield with token rewards
APYReturn including compoundingIgnores gas and price changes
Total value lockedCapital deposited in the farmHigh TVL dilutes each depositor’s rewards
Reward emission scheduleHow many tokens are released and whenRates drop sharply after halvings
Impermanent lossValue lost versus simply holdingCan exceed all earned fees
Metrics to check before entering a farm

Rates in the hundreds or thousands of percent usually come from early, heavily subsidized pools with little deposited capital. As more capital arrives, the same emissions are shared among more depositors and the rate falls, often within days.

Yield farming overlaps with several neighboring activities in DeFi, but the emphasis differs. The comparison clarifies what each one involves.

ActivityCore actionMain risk
Yield farmingChasing the best combined return across protocolsStacked smart contract and token risk
Liquidity provisionSupplying a pool for trading feesImpermanent loss
Crypto lendingSupplying assets to borrowers for interestBad debt and liquidity crunches
StakingLocking tokens to secure a networkSlashing and lockup periods
Liquidity miningReceiving protocol tokens for supplying capitalReward token price decline

Risks and common mistakes

The risks of yield farming stack on top of each other. Each protocol in a strategy adds its own smart contract risk, oracle risk and governance risk, and a failure in any layer can affect the whole position.

  • Smart contract exploits can drain pools or vaults regardless of market conditions.
  • Impermanent loss in volatile pairs can outweigh fee and reward income.
  • Reward token collapse turns a high APR into a loss within weeks.
  • Rug pulls occur when anonymous developers withdraw pooled funds or mint unlimited rewards.
  • Gas costs make frequent compounding unprofitable for small positions on expensive networks.
  • Tax treatment of rewards, swaps and LP tokens can be complex and differs between jurisdictions.

A disciplined approach favors audited protocols with long track records, pools of correlated assets such as two stablecoins, and returns that come mainly from fees and interest rather than emissions. Position size should reflect the assumption that any single protocol can fail.

Put simply

Yield farming is like putting money into several savings schemes at once and moving it whenever another scheme pays more. In DeFi, the schemes are computer programs that pay you for lending your coins or helping others trade.

The catch is that part of the payment often comes in new reward tokens that can lose value quickly, and every program you use is another place where something can go wrong. A very high rate usually means a very high risk.

In practice

A farmer deposits 10,000 dollars, split equally between two dollar stablecoins, into a stablecoin pool on a decentralized exchange. The pool earns about 3 percent from trading fees, and staking the LP tokens adds reward tokens worth about 5 percent per year at current prices, for a combined rate near 8 percent.

Over three months the farmer harvests rewards every two weeks on a low-cost layer 2 network, so gas costs stay below 10 dollars. Meanwhile the reward token falls 40 percent, which cuts the incentive part of the yield almost in half. Because both pool assets are stablecoins, impermanent loss stays negligible. The position ends the quarter up about 150 dollars, mostly from fees, which shows why fee-based yield is more dependable than token emissions.