Risks of Yield Farming: 12 Ways You Can Lose Money and How to Reduce Them

On this page
- The short answer
- Risk at a glance
- 1. Smart contract exploits
- 2. Dependency and contagion risk
- 3. Impermanent loss
- 4. Reward-token collapse
- 5. Depeg risk
- 6. Liquidation risk
- 7. Withdrawal and liquidity risk
- 8. Rug pulls and scams
- 9. Admin keys and governance attacks
- 10. Costs: gas, slippage and fees
- 11. Protocol shutdowns
- 12. Regulatory and tax risk
- Precautions that reduce risk
The short answer
Yield farming can lose you money, sometimes all of it. The main risks are smart contract exploits, impermanent loss, depegs of stablecoins or wrapped tokens, liquidation on leveraged positions, reward tokens collapsing in price, rug pulls, and the plain cost of gas and slippage eating small returns. DeFi deposits have no deposit insurance, and blockchain transactions cannot be reversed.
None of these risks can be removed entirely, but most can be reduced. This guide explains each one, shows how it has played out recently, and lists practical precautions. It is not financial advice.
Risk at a glance
| Risk | What happens | Who is most exposed | Main mitigation |
|---|---|---|---|
| Smart contract exploit | Funds drained by a bug or attack | Everyone; most in new or complex protocols | Long track record, audits, diversification |
| Dependency failure | A token, oracle, bridge or manager the protocol relies on fails | Vaults, lending markets, restaking | Understand what you are really exposed to |
| Impermanent loss | LP position worth less than holding | Volatile-pair liquidity providers | Stable or correlated pairs, single-asset strategies |
| Reward-token collapse | APY paid in a token that falls | High-APY farms | Look at base APY, sell rewards |
| Depeg | Stablecoin or LST loses its peg | Stablecoin and LST farmers | Understand backing, diversify |
| Liquidation | Collateral sold at a penalty | Leveraged farmers and loopers | Low leverage, health buffers |
| Withdrawal and liquidity risk | You cannot exit when you want | Lending pools, lock-ups, cooldowns | Check utilisation and exit terms |
| Rug pull or scam | Team or contract takes the funds | New, anonymous projects | Due diligence, avoid unrealistic APYs |
| Admin key or governance attack | Privileged access misused or stolen | Upgradeable protocols | Timelocks, multisigs, audits |
| Costs | Gas and slippage exceed yield | Small balances on mainnet | Layer 2s, fewer transactions |
| Protocol shutdown | Product wound down or abandoned | Users of smaller protocols | Monitor announcements, withdraw early |
| Regulatory and tax | Rules change, tax due on rewards | Everyone | Records, local guidance |
1. Smart contract exploits
DeFi runs on code, and code has bugs. An attacker who finds a flaw in a protocol’s contracts, its math or its price feeds can drain deposits in a single transaction. DefiLlama’s hacks database records about $1.2 billion taken from DeFi protocols in 2026 as of mid-November (a figure that excludes hacks of centralized exchanges, wallets and blockchains, and that varies by source). The two largest DeFi incidents were both in April: Solana’s Drift Protocol, where attackers obtained admin control and withdrew about $285 million (DefiLlama lists $295 million), and Kelp DAO’s rsETH bridge (about $292 million). Neither was a simple coding bug: Drift’s attackers reportedly tricked its multisig signers into pre-signing transactions that handed over admin control, and Kelp’s bridge accepted forged cross-chain messages.
Age and audits help but do not protect you. Balancer V2’s Composable Stable Pools were drained across several chains on 3 November 2025 (about $128 million according to DefiLlama; Balancer’s own post-mortem put the theft of user funds at about $94.8 million), and a legacy Yearn product, the yETH pool, lost about $9 million later that month. Older code that nobody is maintaining is a particular risk: in December 2025, Aevo’s legacy Ribbon options vaults lost about $2.7 million after an oracle upgrade let an attacker set arbitrary expiry prices, and Aevo then decommissioned the vaults. For the mechanics, see smart contract vulnerabilities.
Reduce it: prefer protocols with multi-year histories, several public audits and a bug bounty; check the protocol’s incident history on DefiLlama; spread deposits; avoid unmaintained legacy pools. Some farmers also buy on-chain cover, for example from Nexus Mutual, which can pay out for specified events such as a protocol hack. Cover is not deposit insurance: it has its own terms, exclusions and claims process, and its cost comes out of your yield.
2. Dependency and contagion risk
Many losses happen to protocols whose own code worked as designed. A lending market is only as safe as the collateral it accepts; a vault is only as safe as every strategy it deposits into.
- In November 2025, Stream Finance disclosed that an external fund manager had lost about $93 million of its assets. Its xUSD synthetic dollar fell roughly 75–77%, and lending markets that had accepted xUSD as collateral were left with bad debt.
- The April 2026 Kelp DAO bridge exploit left lending markets that accepted rsETH, including Aave, facing bad debt even though their own contracts were not hacked.
Reduce it: for any vault or yield-bearing token, ask what it holds, who manages it and which oracles and bridges it depends on. Fewer layers means fewer things that can break.
3. Impermanent loss
When you provide liquidity to a pool of two assets and their prices move apart, the pool automatically sells the rising asset and buys the falling one. You end up with more of the loser, and your position is worth less than if you had just held both tokens. This is impermanent loss. It only becomes “permanent” if you withdraw while prices are still apart, but there is no guarantee they will return.
As a rule of thumb for a standard 50/50 pool, a 2x price move in one asset relative to the other produces roughly a 5.7% shortfall versus holding; a 5x move, about 25%. Concentrated-liquidity pools such as Uniswap v3 amplify both fees and impermanent loss within the chosen range. Academic work on “loss-versus-rebalancing” shows that liquidity providers also lose value systematically to arbitrageurs, which fees must cover before you profit.
Reduce it: use stablecoin or correlated-asset pools, single-asset lending, or hedging. See how impermanent loss works and ways to hedge it.
4. Reward-token collapse
Headline APYs are often mostly reward APY: newly printed governance tokens. If farmers sell those tokens as they receive them, the price falls, and so does the real yield. When emissions end, the APY can drop to the base rate overnight. DefiLlama Yields shows the split between base and reward APY for most pools.
Reduce it: judge a farm by its base APY; if you farm rewards, decide in advance whether you will sell them.
5. Depeg risk
Stablecoins and liquid staking tokens are supposed to track $1 or the underlying asset, but they can slip. Fiat-backed coins depend on the issuer’s reserves and banks, crypto-backed coins on collateral and liquidations, and algorithmic stablecoins have failed outright. A depeg hurts farmers twice: the token is worth less, and stablecoin pools fill up with the weaker coin. See how impermanent loss works with a stablecoin and our full guide to stablecoin yield farming risks.
6. Liquidation risk
If you borrow to farm, for example by looping or using a leveraged farming protocol, a price move can push your position below its required collateral ratio. Liquidators then sell your collateral at a penalty, often at the worst moment. Leverage also multiplies impermanent loss. Read leveraged yield farming explained and what forced liquidation means.
Reduce it: use low leverage, keep a wide health-factor buffer, and set alerts.
7. Withdrawal and liquidity risk
A lending pool that is close to 100% borrowed cannot return your deposit until borrowers repay or new deposits arrive. Staked and restaked tokens may have cooldowns or withdrawal queues, and thin pools mean heavy slippage when you exit. Interest rates usually spike in these situations to pull liquidity back, but that does not help if you need the money today.
8. Rug pulls and scams
A rug pull is when a project’s insiders drain the liquidity pool, mint unlimited tokens or block selling, leaving farmers with worthless tokens. They are most common among new, anonymous farms promising very high APYs. Other scams include fake front ends, approval-draining phishing sites and “yield bots” that ask for your seed phrase.
Red flags: anonymous team with forked, unaudited code; four-figure APYs; liquidity that is not locked; owner functions that can mint or pause transfers; pressure to deposit quickly; anyone asking for a seed phrase. See how to tell if you were a victim of a liquidity mining scam, how liquidity locks work and whether yield farming bots are safe.
9. Admin keys and governance attacks
Many protocols can be upgraded by a multisig or a governance vote. If those keys are stolen or a malicious proposal passes, the attacker can change the rules. Check whether upgrades go through a timelock, who holds the keys, and whether governance tokens are concentrated enough to be bought for an attack.
10. Costs: gas, slippage and fees
On Ethereum mainnet, depositing, claiming, compounding and withdrawing can cost more than a small position earns in a year. Swaps into and out of LP positions add slippage, and vaults charge performance or withdrawal fees. Moving to a cheaper network helps, but bridging adds its own risk. See ways to reduce Ethereum gas fees.
11. Protocol shutdowns
DeFi products close. Alpaca Finance, once a major leveraged-farming protocol on BNB Chain, announced in May 2025 that it would sunset all products and automatically close remaining positions by 30 June 2025. Alpha Homora, another pioneer of leveraged farming, is now deprecated (see our Alpha Homora status page). Users who are not watching announcements can be left with positions in an unmaintained app.
12. Regulatory and tax risk
Rules on stablecoins, DeFi and crypto yield are still changing in many countries, and products may be restricted where you live. Rewards are often taxable as income when received, and swapping or withdrawing can trigger capital gains. See how yield farming is taxed.
Precautions that reduce risk
- Know the source of the yield. If you cannot explain who pays it, do not deposit.
- Compare with a benchmark. As of November 2026, the largest Ethereum stablecoin lending markets paid roughly 3–4.5% base APY on DefiLlama; anything far above that is paying you for extra risk.
- Prefer simple strategies. Single-asset lending and staking avoid impermanent loss and liquidation. Our yield farming strategies guide ranks them by complexity.
- Check the protocol’s history on DefiLlama’s hacks database, and look for audits, a bug bounty and timelocked upgrades.
- Diversify across protocols, chains and assets, and consider whether on-chain cover is worth its cost for larger positions.
- Avoid or limit leverage.
- Protect your wallet. Use a hardware wallet, bookmark official sites and revoke old token approvals.
- Size positions as if a total loss is possible, and only use money you can afford to lose.
For help comparing protocols, see the best yield farming platforms and how to evaluate them, or browse all yield farming and staking guides.
Frequently asked questions
Can you lose money with yield farming?
Yes. You can lose part or all of your deposit through a hack, a depeg, liquidation, impermanent loss or a reward token collapsing in price. Even when nothing goes wrong, gas and swap costs can exceed a small position's earnings.
Is yield farming safe?
No form of yield farming is safe in the way an insured bank deposit is. Single-asset lending on long-running, audited protocols carries fewer risks than leveraged or new-protocol farming, but even established protocols such as Balancer and Yearn have suffered exploits.
What is the biggest risk in yield farming?
Historically, smart contract and infrastructure exploits have caused the largest losses, followed by collapsing reward tokens and depegs. For liquidity providers in volatile pools, impermanent loss is the most common way to underperform simply holding.
What are the risks of stablecoin yield farming?
Mainly depeg risk, smart contract risk, issuer or custodian failure, and being unable to withdraw when a lending pool is fully borrowed. Impermanent loss is small unless a coin in the pool loses its peg.
Is impermanent loss permanent?
It becomes permanent when you withdraw while prices are still apart from where you entered. If prices return to the original ratio, the loss disappears, but there is no guarantee they will.
How do I spot a yield farming scam?
Red flags include anonymous teams with unaudited, forked code; APYs in the hundreds or thousands of percent; liquidity that is not locked or can be withdrawn by the team; contracts that let the owner mint tokens or block selling; and anyone promising guaranteed daily returns.
Sources
- TRM Labs: North Korean hackers attack Drift Protocol in $285 million heist (April 2026)
- Balancer: Nov 3 exploit post-mortem (November 2025)
- DefiLlama: Hacks database
- DefiLlama Yields (base vs reward APY)
- Milionis et al.: Automated Market Making and Loss-Versus-Rebalancing (arXiv)
- Decrypt: Stream Finance stablecoin plunges 77% after protocol's fund manager loses $93 million
- The Block: Yearn Finance details $9 million yETH exploit
- The Block: Aevo's legacy Ribbon DOV vaults exploited for $2.7 million
- The Block: Alpaca Finance to sunset all of its products
- Decrypt: Why DeFi keeps losing millions to exploits (Drift and Kelp DAO, May 2026)
- Nexus Mutual documentation (on-chain cover)
Educational content, not financial advice. DeFi carries risk, including total loss of funds.