Yield farming vs LPing and staking: how it works
Yield farming is the DeFi habit of moving capital to wherever it earns the most, usually by providing liquidity and collecting reward tokens on top of the fees. This guide explains what it is, how it differs from plain liquidity providing and from staking, where the yield actually comes from, why a headline APR can shrink to a fraction of itself, and how to judge a farm before you deposit.
In short
Yield farming means depositing crypto into DeFi protocols, most often as liquidity in a pool, to earn a return made of trading fees, lending interest and extra reward tokens the protocol hands out (liquidity mining).
Fees come from real trading activity. Reward tokens can come from new emissions or an existing treasury allocation, and their value depends on what the token is worth when you sell it and how long the incentive lasts. A farm is only as good as the part of its yield that survives that sale, minus impermanent loss and contract risk.
What is yield farming?
Yield farming is putting crypto to work in DeFi protocols to earn a return, then moving it as the best available return changes. The most common form is providing liquidity to a decentralized exchange pool and collecting both the pool's swap fees and a stream of reward tokens paid to its liquidity providers. Other forms include supplying assets to lending markets for interest and rewards.
Paying out tokens to attract liquidity is called liquidity mining, and it is what turned yield farming into a trend. When Uniswap launched its UNI token, its announcement set out an initial liquidity mining program from 18 September to 17 November 2020: 5,000,000 UNI per pool for four ETH pairs on Uniswap v2, split among LPs in proportion to their liquidity. The pattern is the same today. Meteora's DAMM v2 liquidity mining lets a project fund up to two reward tokens on a pool, paid to positions pro rata by liquidity: a position with 10% of the pool liquidity earns roughly 10% of the rewards for that period.
What is the difference between yield farming and liquidity providing?
Liquidity providing earns swap fees from a pool; yield farming is liquidity providing (or lending) chosen for an extra reward on top, usually a token emission, and often moved when the reward changes. Every LP in a pool with a reward campaign is technically farming, and every farm built on a pool carries the same risks as LPing plus the risk of the reward token itself.
Where the pool lets you choose a range, the same deposit can sit across every price or be concentrated where trading happens, which changes both the fees and the rewards it earns per dollar.
Yield farming vs staking: what is the difference?
Staking earns rewards for helping secure a proof-of-stake blockchain, while yield farming earns fees and incentives from DeFi applications. On Ethereum, per ethereum.org, staking means depositing ETH to activate a validator (at least 32 ETH for your own) that proposes and checks blocks; validators that go offline lose small amounts, and provable misbehavior is slashed. The three side by side:
- Liquidity providing
- Deposit two tokens (or one, for a wall) in a pool. Earn swap fees from trades that use your liquidity. Main risks: impermanent loss, the tokens themselves, going out of range on concentrated pools.
- Yield farming
- Usually LPing or lending where the protocol also pays reward tokens. Earn fees or interest plus emissions. Adds the reward token's price, the end of the reward schedule, and any extra contracts.
- Staking
- Lock a chain's native token to secure the network, directly or through a provider. Earn protocol rewards in that token. Main risks: the token's price, penalties and slashing, and unbonding or lockup rules.
Where does yield farming yield come from?
Yield farming returns come from two very different places: fees paid by people using the protocol, and reward tokens the protocol or a project hands out to attract liquidity. Telling them apart is most of the skill.
- Swap fees. Every trade pays a percentage to the LPs whose liquidity it used; Uniswap's fee docs describe it as compensation for the capital LPs deposit. This is paid in the pool's own tokens and only exists while people trade.
- Lending interest. Paid by borrowers, so it rises and falls with demand to borrow.
- Emissions. Reward tokens paid out by the protocol or a project to attract liquidity. They can come from new emissions or an existing treasury allocation; their market value and the length of the incentive decide what you actually realise, and every farmer who sells them adds to the selling pressure on that token.
A quick test: if the reward token went to zero tomorrow, what would the farm still pay? That number, from fees or interest, is the part of the APR that rests on real activity.
Why does a yield farming APR shrink?
A yield farming APR shrinks because it is quoted at today's reward token price and today's pool size, and both usually move against you. A hypothetical example makes the gap concrete.
A worked example
You put $10,000 into a pool for 30 days. Your share of swap fees is $4 a day, and the farm pays you 50 reward tokens a day, worth $1 each on day one. The headline looks like 14.6% APR from fees plus 182.5% from emissions. Now say the reward token falls steadily from $1 to $0.20 over the month, as farmers sell it:
- Swap fees
- $4 × 30 days = $120, in the pool's own tokens.
- Rewards at the day-one price
- 1,500 tokens × $1 = $1,500. This is what the APR implied.
- Rewards sold at each day's close
- About $880, because the average price you sold at was about $0.59.
- Rewards held and sold on day 30
- 1,500 × $0.20 = $300.
The same farm returned anywhere from $420 to $1,000 before impermanent loss, against the $1,620 the headline implied. More farmers arriving also splits the same daily rewards across more liquidity, so your 50 tokens a day could become 25. None of these numbers are a forecast; they show why the reward token's price matters as much as the rate.
What are the risks of yield farming?
The main risks of yield farming are impermanent loss, the reward token losing value, the pool's own tokens failing, and bugs in the contracts you deposit into.
- Impermanent loss. Farming through a pool means the pool rebalances you into whichever token is falling. Our impermanent loss guide has the formula.
- Emissions dumping. A reward token that most holders received for free tends to be sold, as in the example above.
- The end of the schedule. Rewards run for a set period. When they stop, mercenary liquidity often leaves and fees per dollar can change quickly.
- Token and rug risk. A very high APR on a new token is often how a launch attracts exit liquidity. Check the token as in our rug pull guide.
- Contract risk. Every extra contract (a farm, a vault, a wrapper) is another place a bug or an admin key can lose deposits.
How do you judge a yield farm?
You judge a yield farm by separating the fee yield from the emission yield and then checking who pays for each. A list of "best yield farming platforms" goes stale within weeks; these questions do not.
- What is the fee APR on its own? Daily fees divided by pool TVL, from real volume. Our liquidity pool guide walks through the calculation.
- What is the reward token, and who is selling it? Its liquidity, its supply schedule and how much of it farmers receive each day.
- When do the rewards end? Reward campaigns have a set duration; Meteora's DAMM v2 campaigns run between one day and one year.
- What would you hold at the end? If price moves against you, which token does the position convert into, and would you keep it?
- How many contracts touch your deposit? Rewards built into the pool program, as on DAMM v2, avoid a separate farm contract and staking step.
Is yield farming worth it?
Yield farming is worth it only when the fees plus what you actually realise from the rewards beat impermanent loss, costs and what you would earn holding or staking the same tokens. For most retail positions in a brand-new farm, the reward token is the deciding factor, and it is the hardest one to predict. Treat emissions as a bonus and size the position on the fee yield.
How does LPing on lp.xyz fit in?
lp.xyz is built for the liquidity providing side: finding pools that pay real fees, placing liquidity, and keeping it working. It does not run its own farm or pay its own reward token.
- The Hot Pools tab ranks pools by fee velocity, the fees LPs keep over TVL at the current volume pace, and marks whether the day's fees beat what the price move cost a full-range LP, with a filter that hides pools whose token carries a risk flag.
- Every displayed pool gets a pool audit whose economics check uses an illustrative fee yield from current 24-hour volume and verified TVL.
- Harvest automation claims a position's fees once they are worth more than the gas, and counts farm and emission rewards the same claim sweeps.
Related
- What is a liquidity pool?: how pools price trades and pay LPs.
- LP strategies: range width, rebalancing and when not to LP.
- Risks and safety on lp.xyz.
This guide is educational, not financial advice: yield farming and providing liquidity can lose money, and the numbers above are hypothetical examples.

