How yield farming and DeFi yield work, where the returns come from, the real risks like impermanent loss, and how it compares to staking.

Yield farming is one of the most talked-about ways to earn rewards in crypto, and one of the most misunderstood. At its simplest, it means putting your crypto to work in decentralised finance, or DeFi, to earn a return, rather than leaving it sitting idle. Done carefully, it can generate income. Done carelessly, it can lose you everything you put in.
This guide explains what yield farming is, how it works, where the returns actually come from, and, just as importantly, the significant risks involved. It is written for beginners, and it is educational only. Yield farming is a high-risk activity, and nothing here is financial advice or a suggestion to try it.
Yield farming is a way of earning rewards by supplying your crypto to DeFi protocols, the financial applications that run on blockchains without banks or brokers in the middle. You provide your tokens to a protocol, it puts them to use, and you earn a return in exchange. The practice is also known as liquidity mining.
The name comes from an analogy with farming: you plant your crypto by depositing it, and harvest rewards over time. In spirit it is a little like earning interest in a savings account, except there is no bank. Instead, smart contracts handle everything automatically, and the returns, along with the risks, can be far higher than anything a bank would offer.
Yield farming runs on liquidity pools. A liquidity pool is a shared pot of crypto, locked in a smart contract, that other people can trade against or borrow from. When you add your tokens to a pool, you become a liquidity provider, and you earn a share of the activity the pool generates.
In return for your deposit, you usually receive LP tokens, short for liquidity provider tokens, which represent your share of the pool and can be redeemed for your funds later. Some farmers take this further, depositing those LP tokens into yet another protocol to earn extra rewards on top, a stacking approach that raises both the potential return and the complexity. The more layers involved, the more places something can go wrong.
Say you deposit an equal value of two tokens, such as ETH and a stablecoin, into a pool on a decentralised exchange. Traders swap between those two tokens and pay a fee each time, and you earn a share of those fees in proportion to how much of the pool you funded. Your LP tokens are your claim on the pool, and you redeem them to withdraw your share plus any rewards. It sounds simple, and mechanically it is, but as the risks below show, the outcome is far from guaranteed.
The appeal is straightforward. Yield farming offers a way to earn a return on crypto that would otherwise sit idle in a wallet, and in some cases those returns can be higher than traditional options like a savings account. It also plays a real role in DeFi, since the liquidity that farmers provide is what lets decentralised exchanges and lending platforms function at all. For people who understand the space, it is a way to put capital to work and support the ecosystem at the same time. The catch, as the next sections make clear, is that the returns come with substantial risk, and the higher the advertised yield, the more caution it usually deserves.
A sensible question to ask about any yield is a simple one: who is paying it, and why? In yield farming, the DeFi yield usually comes from three sources.
When you supply tokens to a pool on a decentralised exchange, traders pay a small fee on every swap, and a share of those fees goes to the liquidity providers. The more trading a pool handles, the more fees it earns for the people who funded it.
Some DeFi protocols let people borrow from a pool. Borrowers pay interest, and that interest flows back to the people who supplied the funds. It works much like a bank paying interest on deposits, except there is no bank taking a cut in the middle.
To attract deposits, many protocols hand out their own governance tokens as an extra incentive, which is why yield farming is also called liquidity mining. These rewards can look generous, but their value depends entirely on the token's price, which can fall as fast as it rises.
This is the part that matters most. Yield farming can offer high returns, and high returns in crypto almost always mean high risk. Before the appeal of the numbers takes over, these are the dangers to understand.
This is the risk that catches most newcomers out. When you supply two tokens to a pool and their prices move apart, you can end up with less value than if you had simply held the tokens, even after collecting rewards. It is called impermanent because the loss only locks in when you withdraw, but it is very real, and it is unique to providing liquidity.
Yield farming depends entirely on smart contracts, and if the code has a bug or a vulnerability, attackers can drain a pool and take the funds inside it. Even protocols that have been audited have been exploited, and there is usually no way to recover what is lost once it is gone.
The open nature of DeFi lets anyone launch a protocol, including bad actors. In a rug pull, developers create a project to attract deposits, then disappear with the funds. Very high advertised yields on a brand-new, unknown project are a classic warning sign, not an opportunity.
Eye-catching returns are often paid in a protocol's own token, whose price can collapse and erase the gains, or worse. Yields also change constantly, and funds are sometimes locked up for a set period, which can leave you unable to exit when you most want to. If a yield looks too good to be true, it usually is.
Yield farming is often confused with staking, since both earn rewards on crypto, but they differ a lot in effort and risk. Staking generally means locking crypto to help secure a proof-of-stake network, in return for network rewards. Yield farming means supplying crypto to DeFi protocols to earn fees, interest, and incentives.
| Feature | Yield farming | Staking |
|---|---|---|
| What you do | Supply crypto to DeFi pools | Lock crypto to help secure a network |
| Effort | Active; often needs managing | Mostly passive |
| Typical risk | Higher, including impermanent loss | Generally lower |
| Where rewards come from | Fees, interest, token incentives | Network rewards for validating |
| Complexity | High | Lower |
In short, staking tends to be simpler and steadier, while yield farming is more active, more complex, and carries more ways to lose money. Neither is right for everyone, and both deserve careful research before any money is involved.
Yield farming is a way of earning rewards by supplying your crypto to DeFi protocols, rather than leaving it idle. You deposit tokens into a liquidity pool run by smart contracts, and in return you earn a share of the fees, interest, or token rewards the pool generates. It is also called liquidity mining, and it is a high-risk activity.
The DeFi yield usually comes from three sources: a share of the trading fees when people swap tokens in a pool, interest paid by borrowers in lending protocols, and reward tokens that protocols hand out to attract deposits. The token rewards can look large, but their value rises and falls with the token's price, so the headline figure can be misleading.
No, it is not safe, and it should be treated as high-risk. The main dangers are impermanent loss, where the value of your deposited tokens drifts below simply holding them; smart contract exploits, where bugs let attackers drain funds; and scams such as rug pulls. Rewards can also collapse with a token's price. This is general information, not financial advice.
Impermanent loss happens when you supply two tokens to a liquidity pool and their prices move apart. Because of how pools rebalance, you can end up with less value than if you had just held the two tokens, even after earning rewards. It is called impermanent because it only becomes a real, locked-in loss when you withdraw your funds from the pool.
Staking usually means locking crypto to help secure a proof-of-stake network, and it is fairly passive and lower-risk. Yield farming means supplying crypto to DeFi protocols to earn fees, interest, and incentives, and it is more active, more complex, and higher-risk, with dangers like impermanent loss that staking does not have. Both earn rewards, but in very different ways.
DeFi can be complex and unforgiving. If you would rather keep things simpler, a broker offers a more straightforward path with guidance behind you. UpTrade is a dedicated crypto brokerage built around real relationships, not a self-serve app you navigate alone.
UpTrade is an AUSTRAC-registered digital currency exchange provider (DCE100856266-001). You can read more about registered providers at austrac.gov.au.
General information only. This article is for educational purposes and does not constitute financial, investment, legal or tax advice, nor a recommendation to buy, sell or hold any asset. Cryptocurrency is a high-risk asset and you should consider your own circumstances and seek independent advice before making any decision. UpTrade does not make price predictions.
Market updates, new explainers and the occasional Alpha Pro report, sent once a week. Unsubscribe anytime.