What Is Yield Farming?
Yield farming is a way to earn rewards by putting your crypto to work in decentralized finance protocols. The rewards can look attractive, but the risks are just as real. Here is an honest, beginner-friendly breakdown of how it works and what can go wrong.
What yield farming actually means
Yield farming is the practice of depositing crypto assets into DeFi protocols to earn a return. Instead of leaving coins idle in a wallet, you lend them out or supply them to a trading pool, and in exchange the protocol pays you rewards. Those rewards usually come from trading fees, borrowing interest, or extra tokens the protocol hands out to attract users.
The whole system runs on smart contracts — self-executing code on a blockchain like Ethereum — so there is no bank or broker in the middle. That openness is the appeal, and also the source of much of the risk.
The two main ways to farm yield
Most yield farming falls into two broad categories. Understanding the difference helps you judge where the reward — and the risk — comes from.
- Lending — You supply a single asset (often a stablecoin) to a lending market. Borrowers pay interest, and you collect a share. This is the simpler, more predictable approach.
- Liquidity providing — You deposit a pair of tokens into a liquidity pool that powers a decentralized exchange. Traders swap against your pool and pay fees, which are split among liquidity providers. This can pay more but exposes you to impermanent loss (explained below).
On top of these base rewards, many protocols add incentive tokens — their own coins paid out to boost participation. These extra tokens are what often push advertised rates sky-high, but their value can drop fast.
Understanding APY and where rewards come from
APY (annual percentage yield) is the headline number you will see everywhere. It estimates your yearly return including compounding. Treat it with caution: APY is variable, not a promise, and it changes as more people deposit, as token prices move, and as incentive programs end.
| Reward source | Where it comes from | Stability |
|---|---|---|
| Trading fees | Swaps in a liquidity pool | Depends on trading volume |
| Lending interest | Borrowers paying to use your assets | Relatively steady |
| Incentive tokens | Protocol's own token emissions | Often high but volatile, can vanish |
A useful habit: ask what portion of any APY is real fees versus temporary token emissions. The fee portion is far more durable.
The real risks you must understand
This is the part hype-driven posts skip. Yield farming is not a savings account, and there is no protection if something fails.
- Impermanent loss — When you supply two tokens to a pool and their prices diverge, you can end up with less value than if you had simply held the tokens. The "loss" becomes permanent if you withdraw while prices are misaligned. Stablecoin-only pools largely avoid this; volatile pairs are most exposed.
- Smart-contract risk — The code can contain bugs or exploitable flaws. Hacks have drained entire protocols in minutes, and deposits are usually unrecoverable.
- Token price risk — Reward tokens and pooled altcoins can lose most of their value, wiping out yield and principal alike.
- Scams and "rug pulls" — Some projects are designed to collect deposits and disappear. Review our guide on how to avoid crypto scams before connecting your wallet to anything new.
- Gas fees — On busy networks, the gas fee to deposit, claim, and withdraw can eat small farmers' profits entirely. Layer-2 networks help reduce this.
How to approach it responsibly
If you choose to explore yield farming after understanding the risks, a measured approach matters more than chasing the highest number.
- Start small with amounts you can afford to lose entirely.
- Prefer established, audited protocols over brand-new pools promising extreme APYs.
- Understand whether a pool exposes you to impermanent loss before depositing.
- Separate real yield (fees) from temporary token incentives.
- Consider simpler alternatives first, like staking, if you only want a basic return.
Yield farming sits within the broader world of crypto and DeFi, where the same openness that creates opportunity also removes the safety nets you would expect from traditional finance. High advertised returns reflect high risk, not free money.
This article is for educational purposes only and is not investment advice. Yield farming can result in the loss of some or all of your funds. Always do your own research and never deposit more than you can afford to lose.
NOONOO TRADING — join the free chat and watch live trading together.
Join free chat →📈 Sign up on OKX for a trading fee discount
Get OKX fee discount →