Skip to content
MARKET
BTC 58.015,00 ▼ -1,6 % ETH 1.640,33 ▼ -0,7 % SOL 67,670 ▼ -0,9 % XRP 0,8958 ▼ -1,4 % BNB 536,41 ▼ -0,6 % ADA 0,1402 ▼ -0,7 % DOGE 0,0541 ▼ -0,7 % USDT 0,9086 ▼ -0,2 %
EN
Thursday, November 19, 2026

Level: INTERMEDIATE 9 min

Yield farming: what it is and what risks it carries

Yield farming is not free money. It means lending or supplying cryptoassets in exchange for an uncertain reward. Here is how it works and what can go wrong.

The essentials

Updated 11/11/2026 · 14:20
  1. 01Yield farming consists of supplying cryptoassets to DeFi protocols in exchange for fees, interest or protocol tokens.
  2. 02APY is a variable figure, and very high rates usually reflect high risk or rewards paid in a devaluing token.
  3. 03There are smart contract, oracle, market and impermanent loss risks, with no deposit guarantees.
Moneda de bitcoin dorada sobre un teclado de ordenador negro
Javier Aldecoa Rentería

Written by

Javier Aldecoa Rentería

Web3 & DeFi Guides Editor

Reviewed by Chloe M. Vonderbeck, Cybersecurity & Exploit Analyst

Published ·Reading time: 8 min

This article is also available in:Español (Spanish)Italiano (Italian)Français (French)Português (Portuguese)Deutsch (German)

Yield farming involves supplying cryptoassets to decentralized finance (DeFi) protocols in exchange for rewards. These rewards can include usage fees, lending interest or the protocol’s own tokens. A DeFi protocol is a set of smart contracts, which are programs that run automatically on a blockchain without banks or intermediaries.

This conceptual guide is intended for those who already know the basics of wallets and exchanges. We will cover the usual methods, a simple numeric example using made-up figures, what a high APY really means and the risks that no promotional banner mentions. Our starting point is clear: returns are never presented here as expected.

What yield farming is and where it comes from

The term became popular in the summer of 2020 during the so-called DeFi summer. Compound, a lending protocol, launched its COMP token and distributed rewards to lenders and borrowers. Suddenly, using a protocol paid double: the interest plus the token.

That sparked fierce competition among protocols to attract liquidity, meaning funds available for trading. Anyone who moved capital from one place to another chasing the best return became known as a farmer, hence the expression yield farming.

The name is catchy, but expectations should be kept realistic. Yield farming does not create value out of thin air. The return comes from fees paid by other users, interest paid by borrowers or tokens issued by the protocol. Understanding the source of the yield is the first rule for any prudent farmer.

Common ways to do yield farming

There are four main paths. Each involves a different type of risk and level of monitoring effort.

  1. Lending on a lending market, such as Aave or Compound, and earning variable interest.
  2. Providing liquidity to an automated market maker (AMM), such as Uniswap, with a token pair in exchange for a share of the fees.
  3. Depositing into vaults, which are contracts that automate the strategy for you.
  4. Staking rewards, which means reinvesting earned tokens into other protocols.

The further down the list you go, the more layers of contracts are involved and the more points of failure exist. To understand the second option, our guide on what a decentralized exchange is explains how an AMM works, while liquidity mining details a closely related variant.

Numeric example with made-up figures

Let us use round numbers without real prices. Imagine you supply 100 units of asset A and 100 of asset B to a pool, which is a shared liquidity fund. In return, you receive a position token that proves your share of the pool and is required to withdraw your funds later.

Suppose that over a month the pool generates fees and your share amounts to 2 units. That looks like a good result. But if asset A doubles in price against asset B, the pool rebalances its quantities and your share no longer contains what you originally deposited.

This mismatch is impermanent loss: your contribution may end up worth less than if you had simply held both assets in your wallet. It is only offset if the accumulated fees exceed that difference. Otherwise, you earned interest and lost money at the same time.

The word impermanent is misleading. The loss disappears only if the relative price returns to the initial point. If you withdraw beforehand, it becomes a real loss.

What APY means and why it is not a promise

APY is the annualized return with compound interest, meaning interest is reinvested. It is a projection, not a contract. It depends on real-time demand and temporary token emissions, so it changes several times a day.

There is a useful rule of thumb: very high figures usually reflect high risk or rewards paid in a token that is losing value. If 80% of your yield comes from a token that drops by half in a month, the APY you saw on screen was an illusion.

For this reason, you should never treat an APY as fixed or compare figures without checking the date. Ask yourself where every percentage point of yield comes from: real fees, borrower interest or the issuance of new tokens. Only the first two originate from economic activity. The third is paid by diluting everyone else.

Before you start: requirements, costs and time

It is best to prepare three things. You need a self-custody wallet, the native token of the network to pay for gas (the fee to execute each transaction) and time to check your position regularly. Gas fees fluctuate and must be paid at every step, so check the network cost right before executing a transaction.

If you have not set up your wallet yet, start with a self-custody one and store your seed phrase away from any connected device. You can compare this with staking, an alternative with fewer moving parts.

Steps to supply funds to a protocol carefully

These steps are general. Each protocol has its own interface, so always follow its official documentation.

  1. Access the official website. You will find the protocol name in the linked documentation, such as Uniswap or Aave. Do not type addresses from memory or click on ad links.
  2. Connect your wallet. You will see a connection request that does not move funds, but read it anyway.
  3. Approve only the minimum necessary allowance for the amount you plan to supply. You will see a signature request that authorizes the contract to use your tokens.
  4. Supply a small amount first. You should see your position or position token reflected in the interface.
  5. Monitor your position periodically and verify that its value and rewards match your expectations.

Every time you sign a transaction, read what you are authorizing. A malicious signature can give an attacker access to your tokens without you moving anything at that exact moment.

Golden rule: supply small amounts to protocols with years of history and public audits, approve the minimum allowance, and never invest money you cannot afford to lose.

Risks of yield farming

Risks stack up, which is what separates yield farming from a bank deposit. Here are the main ones.

  • Smart contract bugs or exploits. A flaw in the code can drain the protocol.
  • Oracle failures, which are the services that feed asset prices to the contract.
  • Rug pulls in new protocols, where creators withdraw the funds and disappear.
  • Impermanent loss in liquidity pools.
  • Liquidations in collateralized lending when the value of deposited assets drops below the limit.
  • Stablecoin depegging, when a stablecoin loses its parity.
  • Cross-chain bridges, gas costs and malicious signatures.

Audits reduce risk but do not eliminate it. An audited contract simply means someone reviewed the code at a specific point in time, not that it is infallible. Review our guide on stablecoins, as many strategies depend on them, as well as the guide on crypto scams to spot fraudulent projects.

Common mistakes and how to fix them

Three mistakes happen repeatedly. The first is chasing the highest APY. The fix is to start with established protocols and demand a clear explanation of where the yield comes from.

The second is ignoring impermanent loss. The fix is to calculate it using an example similar to the one above before supplying funds, and compare the result against simply holding the assets.

The third is approving unlimited allowances for convenience. The fix is to limit each approval to the necessary amount and revoke unused permissions using token revocation tools. Five minutes of periodic checks can prevent the loss of your entire wallet balance.

What the regulations say

MiCA does not clearly apply to fully decentralized services, according to its recital 22. You can check the text in the MiCA regulation in EUR-Lex. In practice, this creates a regulatory vacuum: there are no deposit guarantees or investor protections.

If something goes wrong, you have no regulator to turn to. That lack of recourse is part of the entry price, and it should weigh just as heavily as the APY when making your decision.

For a broad overview of the sector, ethereum.org’s explanation of DeFi is a recommended and neutral read.

Tax treatment of yield farming in Spain

Sales and token swaps are taxed under savings income, with rates ranging from 19% to 30% across brackets. The 30% rate only applies to amounts exceeding 300,000 euros starting in 2025 under Law 7/2024. The FIFO method applies to fungible units, meaning tokens acquired first are considered disposed of first.

Supplying or withdrawing funds from a pool may be treated as a token swap generating a capital gain or loss, and rewards are taxed separately. Spain’s tax authority (DGT) has not issued a definitive ruling for every scenario, so it is advisable to check their resolutions and keep a detailed record of each transaction, including the date, amount and euro value.

The DAC8 directive requires providers to collect customer data starting on January 1, 2026, with the first report to the Spanish tax agency (AEAT) expected in 2027. Form 721 must be filed for holdings exceeding 50,000 euros in virtual currencies held abroad as of December 31, though a draft order for 2026 plans to replace it, so verify the current rule in force. More details are available in the guide on crypto and Spanish taxes.

Our take on yield farming

Yield farming is not free money. It means taking on technical and market risk in exchange for an uncertain return. For anyone exploring it, our recommendation is to start with an amount you can afford to lose entirely, understand each component before adding another, and distrust any figure lacking a clear date or origin.

A practical rule helps: write down before you start how much you are investing, what return you expect, at what point you would exit, and what loss you are willing to take. If you cannot fill out those four lines, you are not ready to supply funds.

The best defense is slowness. Serious losses usually start with haste, a link shared in a chat room and a promise of returns far exceeding everything else on the market.

Frequently asked questions

What is APY?

It is the annualized return including compound interest. It is variable and not guaranteed.

What is impermanent loss?

It is the negative difference compared to simply holding the assets outside the pool when relative prices change.

Is yield farming safe?

No. Smart contract, oracle and market risks exist even if audits have been performed.

Are there deposit guarantees?

No. Decentralized protocols lack guarantee funds and investor protection schemes.

How is it taxed in Spain?

Through capital gains or losses on swaps, and separate taxation for rewards. There is no definitive rule for every scenario.

This content is educational and does not constitute financial advice or investment recommendations (NFA). Do your own research (DYOR), do not invest money you need in the short term, and keep your local tax obligations in mind. Would you be able to explain where every point of the promised yield comes from?

Sources and risk warning

SOURCES CONSULTED

Crypto assets are highly volatile and you can lose everything you invest. This article is informational and is not financial advice. Prices are those at the time of publication.

How we verify dataEditorial policySpotted an error? Tell us

KEEP READING

More in Academy

See all