Coins: 13,978
Exchanges: 1,057
Market Cap: $2.443T 0.7%
24h Vol: $134.364B
Gas: 7 GWEI
Go Ad-free
Guides
TABLE OF CONTENTS

What is Yield Farming and How to Yield Farm in 4 Steps

3.0 | by Stacy Kew

Yield farming is one of the hottest trends in decentralized finance (DeFi). There is also a high chance you may have already heard about the lucrative returns that some yield farmers have made. But, how exactly do you pick up yield farming, and where do you begin?

Here, we will be covering:

  • What is yield farming?

  • How does yield farming work?

  • What are some of the examples?

  • What are the risks of yield farming?

Yield farming is a process where you stake or lend your crypto assets to generate high rewards in the form of additional cryptocurrencies.

In general, yield farming rewards are given to users who engage in beneficial actions to the protocol. This includes:

  1. Pooling liquidity into a contract to provide markets

  2. Adding liquidity to be a more significant market maker or get a discount

  3. Pooling votes

  4. Locking up specific assets

The yield generated can be in the form of a percentage of the transaction fees generated by the underlying DeFi platforms, interest from lenders, or governance tokens.

How Does Yield Farming Work?

Here’s a diagram of how liquidity pools work.

As a liquidity provider, you first deposit your crypto assets into liquidity pools. Liquidity pools are pools of tokens locked into a smart contract that facilitates asset trading while allowing investors to earn a return on their holdings. These pools allow traders to execute their trades in a permissionless manner on Automated Market Maker (AMM) platforms. 

Traders need to pay trading fees for using the liquidity pool; the fees are then divided between all liquidity providers based on the respective liquidity amount in the pool. Participants can also earn the platform’s governance token as an additional incentive in certain pools.

When the token amount in a liquidity pool constantly changes, you’ll be suffering impermanent loss. If the price of Token X falls, there’s a possibility that the situation may be reversed, as more Token X is sold back to the pool for Token Y. 

Impermanent loss can be tricky to calculate, especially for dual-asset and multi-asset pools. To simulate impermanent loss on dual-asset pools, you can calculate it on CoinGecko’s Impermanent Loss Calculator.

The Difference between APY and APR

  

Annual Percentage Yield (APY) - interest rate earned with compounding interest within the year. 

Annual Percentage Rate (APR) - interest rate earned without compounding interest within the year. 

Here’s an APY calculator on CoinGecko for ease and comparison.

Since APY takes compounding effects into account, it can be slightly misleading to new users as the APY figures do not accurately reflect your actual yield. You could achieve the advertised yield if you were to compound it manually. Note that this would not be as feasible for users with lower capital since transaction costs could eat into your returns.

When there are high APYs or APRs offered, this usually means that there is low liquidity in the pool. It can signify two things - either people have no confidence in the pool or that the distribution of the native token is very high, which will dilute the token supply significantly. 

Another type of yield farming for degens is leverage farming.

A simple example is as follows: 

  1. Michael puts 100 USDC on Compound as collateral (earning interest + COMP tokens)

  2. Michael borrows 70 DAI against his 100 USDC collateral (paying interest on the DAI borrowed but subsidized by COMP token rewards)

  3. Michael trades 70 DAI for 70 USDC on a decentralized exchange and repeats Step 1. Alternatively, Michael can put the 70 DAI from Compound into another DeFi protocol, for example, Balancer, for additional yield farming rewards.

The yield in yield farming is generated through various means:

  1. A team incentivizing actions by distributing their native tokens (Buyers speculate on the value of the native token, thus providing value to the token)

  2. A protocol that pays out the fees collects by providing a service (for example, swaps on decentralized exchanges)

  3. A protocol that distributes fees obtained from other protocols (for example, Yearn Finance provides users with highest APY on the deposited cryptocurrencies by using their proprietary strategy)

How To Yield Farm

Here’s a simple illustration of how to yield farm on Sushiswap on the Ethereum network.

Step 1: Go to app.sushi.com

Connect your wallet (MetaMask in this example).

Step 2: Please be sure that your funds are already in your wallet 

In this case, we will have Wrapped Ether (WETH) and Alchemix (ALCX)

Step 3: Go to ‘Pool’ on the top header and select the pool that you would like to add liquidity to 

You will then receive Liquidity Pool tokens that represent your share of the liquidity pool.

Step 4: Press on the ‘Farm’ on the top header

Click on the liquidity pool that you’ve chosen, key in your amount of LP tokens to deposit, and press Stake. 

Congrats! You’re now farming SUSHI and ALCX from the WETH-ALCX pool.

This is just one of the many platforms to begin your yield-farming journey. Each blockchain has its unique protocols for yield farming with varying rates of return. You may refer to our previous yield farming guides on Solana, Polygon, and BSC for more information.

Risks of Yield Farming

Despite the apparent potential upside, yield farming has its risks that users need to be aware of.

Smart contract bugs and hacks: Smart contracts can be vulnerable due to coding bugs. Hacks are a constant threat in decentralized finance.

Admin key risk: Developers of DeFi protocols may still control admin keys. If the admin keys are not sufficiently distributed, it may represent a high risk of developers running away with funds in the liquidity pools. Therefore, there is always a risk of a centralized takeover of the protocol. 

Systemic Risks: With the yield farming craze, activity in decentralized applications has been artificially increased by yield farmers looking to maximize the rewards they can gain. This is usually accomplished by depositing, trading, and borrowing tokens in a complex and recursive manner. 

Impermanent Loss: As mentioned above, this threat will persist for liquidity providers unless you’re in a single staking pool or stable pool. 

Rug pulls: There is an increased risk of being rug pulled with a high APY for yield. It frequently happens on decentralized exchanges where the original liquidity provider would drain the liquidity pool right after people have minted the tokens, leaving the holders with a worthless coin. You are advised to do a background check on the project before yield farming on any liquidity pools.

Liquidation Risks: If you are borrowing on a lending protocol, you risk having your position liquidated when the cryptocurrency you use as collateral loses its value. You will need to monitor your collateral position closely so that your borrowing positions are not undercollateralized.

Conclusion

You are advised to do your research before participating in yield farming. Here is a list of questions that you may ask yourself before participating in any liquidity pools:

  • Is there a better place for your asset?

  • How established is the protocol?

  • Is there a single admin key?

  • How is the yield generated?

  • Is the protocol audited?

  • Is there a lot of liquidity? (Can you sell your yield at a specific price into another asset without slippage?)

  • Will the yield farming activity result in a high impermanent loss?

  • How trustable is the blockchain on which this is running?

Information is important. High yields can be attractive and tempting, yet it comes with high risks. Keep an eye out on the token prices constantly if you’re a part of this yield farming community to stop losses in time.

CoinGecko's Content Editorial Guidelines
CoinGecko’s content aims to demystify the crypto industry. While certain posts you see may be sponsored, we strive to uphold the highest standards of editorial quality and integrity, and do not publish any content that has not been vetted by our editors.
Learn more
Tell us how much you like this article!
Vote count: 2
Stacy Kew
Stacy Kew

Stacy is a market research intern at CoinGecko. She's very much into cryptocurrency. Big on BTC, ETH, SOL, NFTs, and Japanese food. Follow the author on Twitter @trufflefriesx

More Articles


Explore Polkadot's Ecosystem
Discover trending dApps, wallets, DeFi & more

What is Zeebu?
Learn more about the Web3 neobank


coingecko
Continue in app
Track prices in real-time
Open App
Select Currency
Suggested Currencies
USD
US Dollar
IDR
Indonesian Rupiah
TWD
New Taiwan Dollar
EUR
Euro
KRW
South Korean Won
JPY
Japanese Yen
RUB
Russian Ruble
CNY
Chinese Yuan
Fiat Currencies
AED
United Arab Emirates Dirham
ARS
Argentine Peso
AUD
Australian Dollar
BDT
Bangladeshi Taka
BHD
Bahraini Dinar
BMD
Bermudian Dollar
BRL
Brazil Real
CAD
Canadian Dollar
CHF
Swiss Franc
CLP
Chilean Peso
CZK
Czech Koruna
DKK
Danish Krone
GBP
British Pound Sterling
GEL
Georgian Lari
HKD
Hong Kong Dollar
HUF
Hungarian Forint
ILS
Israeli New Shekel
INR
Indian Rupee
KWD
Kuwaiti Dinar
LKR
Sri Lankan Rupee
MMK
Burmese Kyat
MXN
Mexican Peso
MYR
Malaysian Ringgit
NGN
Nigerian Naira
NOK
Norwegian Krone
NZD
New Zealand Dollar
PHP
Philippine Peso
PKR
Pakistani Rupee
PLN
Polish Zloty
SAR
Saudi Riyal
SEK
Swedish Krona
SGD
Singapore Dollar
THB
Thai Baht
TRY
Turkish Lira
UAH
Ukrainian hryvnia
VEF
Venezuelan bolívar fuerte
VND
Vietnamese đồng
ZAR
South African Rand
XDR
IMF Special Drawing Rights
Cryptocurrencies
BTC
Bitcoin
ETH
Ether
LTC
Litecoin
BCH
Bitcoin Cash
BNB
Binance Coin
EOS
EOS
XRP
XRP
XLM
Lumens
LINK
Chainlink
DOT
Polkadot
YFI
Yearn.finance
Bitcoin Units
BITS
Bits
SATS
Satoshi
Commodities
XAG
Silver - Troy Ounce
XAU
Gold - Troy Ounce
Select Language
Popular Languages
EN
English
RU
Русский
DE
Deutsch
PL
język polski
ES
Español
VI
Tiếng việt
FR
Français
PT
Português
All Languages
AR
العربية
BG
български
CS
čeština
DA
dansk
EL
Ελληνικά
FI
suomen kieli
HE
עִבְרִית
HI
हिंदी
HR
hrvatski
HU
Magyar nyelv
ID
Bahasa Indonesia
IT
Italiano
JA
日本語
KO
한국어
LT
lietuvių kalba
NL
Nederlands
NO
norsk
RO
Limba română
SK
slovenský jazyk
SL
slovenski jezik
SV
Svenska
TH
ภาษาไทย
TR
Türkçe
UK
украї́нська мо́ва
ZH
简体中文
ZH-TW
繁體中文
Login to track your favorite coin easily 🚀
By continuing, you agree to CoinGecko Terms of Service and acknowledge you’ve read our Privacy Policy
or
Forgot your password?
Didn't receive confirmation instructions?
Resend confirmation instructions
IT'S FREE! Track your favorite coin easily with CoinGecko 🚀
By continuing, you agree to CoinGecko Terms of Service and acknowledge you’ve read our Privacy Policy
or
Password must contain at least 8 characters including 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character
Didn't receive confirmation instructions?
Resend confirmation instructions
Forgot your password?
You will receive an email with instructions on how to reset your password in a few minutes.
Resend confirmation instructions
You will receive an email with instructions for how to confirm your email address in a few minutes.
Get the CoinGecko app.
Scan this QR code to download the app now App QR Code Or check it out in the app stores