For educational purposes only; not investment advice. DeFi positions can lose some or all of their value.
Direct answer
Yield farming is the practice of placing crypto assets in one or more decentralized-finance (DeFi) protocols to earn lending interest, trading fees, token incentives, or a combination of them. A farmer may supply assets to a lending market, provide liquidity to an automated market maker, stake a liquidity position in a reward contract, or move capital as rates and incentives change.
The quoted APR or APY is not a guaranteed return. It is normally an annualized estimate based on current utilization, trading activity, token prices, emissions, and compounding assumptions. Those inputs can change quickly, and the position itself may lose value.
Before comparing yields, identify:
- The activity: lending, liquidity provision, staking a receipt token, or a leveraged loop.
- The payer: borrowers, traders, newly issued tokens, or another protocol.
- The payout asset: the deposited asset, a volatile reward token, or both.
- The exit terms: lockups, withdrawal limits, available liquidity, and unbonding or claim periods.
- The net result: fees and incentives after gas, slippage, price changes, borrowing costs, taxes, and losses.
- End value
- $10,161.55
- Net APR
- 6.5%
Outputs are educational approximations. They exclude venue rules, taxes, latency, oracle behavior, and other protocol-specific parameters unless shown.
How it works
In a lending market, suppliers deposit an asset and may receive interest paid by borrowers. The rate commonly changes with market utilization and protocol parameters. In a liquidity pool, providers deposit assets used by traders and may receive a share of swap fees. Some protocols add token incentives to attract capital; those rewards are subsidies and should be evaluated separately from interest or trading-fee revenue.
A strategy may issue a receipt or liquidity-provider token, which can then be staked in another contract. Automated vaults may claim and reinvest rewards, but each extra contract, oracle, bridge, or borrowing step adds a dependency. APR generally presents a simple annualized rate; APY generally assumes compounding at a stated frequency. Neither measure captures every cost or risk.
Use this decomposition rather than the headline percentage: Net result = interest + trading fees + token incentives - gas - slippage - impermanent loss - borrowing costs - losses. Each term should use the same measurement period and payout currency. An annualized snapshot is meaningful only if its assumptions are stated.
Example
Suppose a user puts USD 10,000 into a liquidity strategy. During the measurement period, it earns USD 240 in trading fees and USD 160 in token incentives. Depositing, claiming, swapping, and withdrawing cost USD 40. Because the pool rebalanced as prices moved, the position is worth USD 550 less than simply holding the original assets.
Relative to holding, the simplified result is USD 240 + USD 160 - USD 40 - USD 550 = -USD 190. This does not include taxes or an allowance for contract failure. If a dashboard annualizes the early rewards while the incentive rate and token price later fall, its displayed APY can be far above the realized result.
Risks
- Smart-contract and governance risk: bugs, malicious permissions, upgrades, or compromised administrator keys can cause loss or block withdrawals.
- Market and asset risk: deposited, borrowed, receipt, or reward tokens can fall in price or lose their peg.
- Liquidity-provider risk: price divergence can create impermanent loss, and concentrated positions can stop earning fees outside their chosen range.
- Lending and leverage risk: variable rates can rise, collateral can be liquidated, and repeated borrowing can amplify losses.
- Oracle, bridge, and dependency risk: a failure in any connected service can affect an otherwise functioning strategy.
- Exit and operational risk: thin liquidity, pauses, queues, gas spikes, slippage, phishing, or a wrong contract or network can prevent an expected exit.
On-chain visibility and a completed audit do not make a strategy risk-free. Verify the official domain, network, contract addresses, permissions, withdrawal path, and current liquidity. A small deposit-and-withdrawal test can reveal operational mistakes, but it cannot rule out later loss.
Common misconceptions
Is a high APY free money?
No. A high figure may reflect temporary token emissions, low initial deposits, leverage, or a volatile reward token. Check the source and duration of each component and model a lower reward price and a crowded pool.
Are token rewards the same as protocol revenue?
No. Borrower interest and trading fees are paid for protocol activity. Newly issued tokens are an incentive that can dilute holders and fall in value. A strategy can show a positive nominal APY while producing a negative result in the user’s measurement currency.
Does moving to the highest rate improve returns?
Not necessarily. Moving adds gas, slippage, timing, approval, bridge, and contract risks. Compare expected incremental income with switching costs and the additional loss paths before changing a position.
Related topics
- Decentralized finance (DeFi)
- DeFi lending protocols
- Liquidity pools
- Liquidity mining
- Impermanent loss
- Token emissions
Sources
- Compound III Docs | Interest Rates - Compound (accessed: 2026-08-22)
- Fees | Uniswap Developers - Uniswap (accessed: 2026-08-22)
- Smart contract security - Ethereum.org (accessed: 2026-08-22)