Yield farming means putting crypto to work in DeFi protocols to earn a return, often moving between them to chase the best rate. The yield comes from a few sources: trading fees paid by people who swap, interest paid by borrowers, staking rewards, and new tokens a protocol hands out to attract deposits. Leverage can multiply any of these. Fees and interest are paid by real users, while token rewards are often just new supply that dilutes holders.
What is yield farming?
Yield farming is the practice of supplying crypto to DeFi protocols in return for a share of their income or rewards. The "farmer" deposits tokens, receives a receipt for the deposit, and collects whatever the protocol pays out.
A well-known early example came in June 2020, when the lending protocol Compound began distributing about 2,880 COMP governance tokens a day to its users, in proportion to the interest generated in each market. Paying users in a protocol's own token for depositing or borrowing is called liquidity mining, and many protocols have used it since.
Most farming happens on Ethereum and other chains that run the same kind of smart contracts. The basic moves are the same everywhere: deposit, earn, claim, and sometimes reinvest. For a broader introduction, see how DeFi differs from a bank.
Where does the yield actually come from?
Every yield has a payer, and finding the payer is the most useful question in DeFi. There are five common sources.
| Source | Who pays | Paid in | Durable? |
|---|---|---|---|
| Trading fees | Traders swapping in a pool | The pool's tokens | Yes, if trading continues |
| Lending interest | Borrowers | The borrowed asset | Yes, if borrowing demand continues |
| Staking rewards | The network, from issuance and fees | The chain's native token | Mostly, set by the protocol |
| Token incentives | The protocol, by issuing its own token | A new or reserved token | Usually temporary |
| Leverage | Nobody: it multiplies the other sources | Same as the underlying | Only while rates and prices cooperate |
Trading fees. On a decentralized exchange, liquidity providers (LPs) deposit two tokens into a pool, and every swap pays a fee. In Uniswap v2 the fee is 0.30%. Since protocol fees were switched on following Uniswap's December 2025 "UNIfication" governance proposal, LPs receive 0.25% and the protocol 0.05% on v2 pools. Fees are split in proportion to each LP's share. Our guide to automated market makers explains how these pools set prices.
Lending interest. On a lending market, suppliers earn what borrowers pay, minus a cut for the protocol. Rates rise when most of the pool is borrowed, as explained in how DeFi lending works.
Staking rewards. Proof-of-stake networks pay validators for securing the chain, and staking rewards often form the base layer of a farming strategy. Liquid staking tokens let you keep earning them while using the token elsewhere.
Token incentives. A protocol pays depositors in its own token, usually from a fixed schedule of emissions. This is the source behind most eye-catching rates.
What is the difference between real yield and inflationary yield?
Real yield is paid from revenue that users generate, such as fees and interest, in assets that already exist. Inflationary yield is paid by creating or releasing more of a protocol's own token. "Real yield" is a marketing term without a standard definition, but the distinction behind it matters.
Inflationary yield isn't free money. If a protocol pays its token holders 10% a year in new tokens and everyone takes part, everyone ends the year with the same share as before. Whoever doesn't take part is diluted. The reward only becomes real income if you sell the tokens to someone who wants them, and selling pressure from farmers is exactly what tends to push the price down. Our guide to reading a token's supply and emissions shows how to check this.
A worked example: one pool, two kinds of yield
Imagine a pool holding $10 million of two tokens. All figures are illustrative.
- Trading volume: $2 million a day.
- LP fee: 0.25% of each trade, so $5,000 a day goes to LPs.
- Incentives: the protocol emits 10,000 of its tokens a day to LPs, priced at $2, so $20,000 a day.
Over a year, fees come to $1.825 million, or 18.25% of the pool. Incentives come to $7.3 million, or 73%. The headline rate is 91.25% APR. If you deposit $10,000, you own 0.1% of the pool and earn about $5 a day in fees and 10 tokens a day in rewards.
Now change two things that often happen:
- The reward token falls 75%, to $0.50, as farmers sell. Incentives drop to 18.25%.
- New farmers double the pool to $20 million. Your share of both fees and rewards halves.
The rate falls from 91.25% to about 18.25%, and most of that is fees. The fee portion was the only part tied to real activity, and it held up best.
Two more details hide in headlines. APR is a simple annual rate. APY assumes you reinvest rewards, so it looks higher, and it may assume today's rate lasts all year. Also, an LP position can lose value against simply holding the two tokens when prices move, a cost known as impermanent loss. Fees and rewards have to cover it before you profit.
How do leverage loops work?
A leverage loop borrows against a deposit to make a bigger deposit, repeating until exposure is several times the starting capital. A common version uses a liquid staking token: deposit it, borrow ETH, convert to more of the staking token, deposit again.
Here is the math with illustrative rates. You start with 10 ETH worth of a staking token earning 3% a year, and borrow ETH at 2.5%.
| Setup | Exposure | Debt | Earned at 3% | Interest paid | Net return on your 10 ETH |
|---|---|---|---|---|---|
| No leverage | 10 ETH | 0 | 0.30 ETH | 0 | 3.0% |
| 4x loop, borrow at 2.5% | 40 ETH | 30 ETH | 1.20 ETH | 0.75 ETH | 4.5% |
| 4x loop, borrow at 3.5% | 40 ETH | 30 ETH | 1.20 ETH | 1.05 ETH | 1.5% |
| 4x loop, borrow at 4.0% | 40 ETH | 30 ETH | 1.20 ETH | 1.20 ETH | 0% |
Leverage turns a small spread into a bigger return, and a small rate change wipes it out. The bigger danger is liquidation. At 4x, debt is 75% of collateral. If the market liquidates at 80%, the staking token only has to fall about 6% against ETH to trigger it. Thresholds vary by market, but the shape of the risk does not.
What are the risks of yield farming?
High yields usually mean someone is taking risk, and in farming it is often you. The main ones:
- Smart contract bugs. In late July 2023, attackers exploited a flaw in older versions of the Vyper compiler that broke the reentrancy protection in several pools on Curve. CertiK estimated about $69 million was taken and about $52 million lost after returns. Even long-running pools can fail. Our guide to smart contract audits covers what reviews can and can't catch.
- Reward token collapse. In June 2021, Iron Finance, a partly collateralized stablecoin project that had been popular with yield farmers, suffered what its team called a bank run. CoinDesk reported its value fell from $2 billion to near zero.
- Liquidation. Leveraged positions can be closed automatically, with a penalty, if prices or rates move.
- Oracle and pricing failures. Lending markets rely on price oracles, and a wrong price can liquidate healthy positions.
- Stacked protocols. A vault that farms through three other protocols carries all of their risks at once.
- Admin keys and rug pulls. Some farms let a small team change the rules or drain funds. The warning signs are covered in how to spot a rug pull.
Tax treatment of farming rewards differs by country and can be complex, so ask a qualified professional. Nothing here is financial advice.
How can you evaluate a farm before depositing?
Before depositing, work through these checks:
- Name the payer. Fees, interest, staking or new tokens? If you can't tell, don't deposit.
- Split the rate. How much is fees or interest, and how much is incentives? Price the incentive part as if the token might halve.
- Check the emissions schedule. When do rewards fall or end?
- Count the layers. How many contracts and protocols does your deposit pass through?
- Check who controls it. Can an admin pause, upgrade or redirect funds?
- Plan your exit. Can you withdraw at any time, or is there a lockup or queue?
- Stress-test leverage. At what price move or borrow rate does the position lose money or get liquidated?
A large deposit total can look reassuring, but total value locked measures popularity, not safety. Browse more in our DeFi hub.
Key takeaways
- Yield farming means supplying crypto to DeFi protocols for fees, interest, staking rewards or token incentives.
- Fees and interest are paid by real users, while incentive rewards are often new tokens that dilute holders.
- Headline rates mix both, so split the rate and price the incentive part conservatively.
- Leverage loops magnify small spreads and can turn negative, or be liquidated, after small changes in rates or prices.
- Smart contract bugs, collapsing reward tokens and stacked protocols have caused real losses, such as the 2023 Curve pool exploits.
- If you can't name who pays the yield, treat the yield as compensation for a risk you haven't found yet.
Sources
Get the weekly commit
New blockchain deep dives every week.

