Launching MoonPay Enterprise: Stablecoin APIs for developers → Learn More

MoonPay
  • Individuals
  • Business
  • Language
  • Get Started
Buy
Buy cryptoUse a card, Apple Pay or Google Pay to buy crypto fast. We also accept bank transfers and wires.
Buy BitcoinBTC
Buy EthereumETH
Buy PolygonPOL
Buy SolanaSOL
Buy DogecoinDOGE
Buy CardanoADA
Buy AvalancheAVAX
Sell
Sell cryptoTurn your crypto into cash. In a flash. Get paid straight to your bank account or Visa card.
Sell BitcoinBTC
Sell EthereumETH
Sell USDCUSDC
Sell SolanaSOL
Sell CardanoADA
Sell DogecoinDOGE
Sell AvalancheAVAX
Trade
Trade cryptoTrade between tokens, even if they’re on different chains (we make bridging seamless too).
Trade EthereumETH
Trade USDCUSDC
Trade AaveAAVE
Trade ChainlinkLINK
Trade Wrapped BitcoinWBTC
Trade DaiDAI
Trade CompoundCOMP
Company
NewsroomNewsroomMediaMediaCareersCareersChangelogChangelogMoonPay DiscoverMoonPay DiscoverNew
Crypto Prices
Bitcoin PriceEthereum PriceSolana PriceDogecoin PriceCardano PriceXRP PriceBNB PriceAll Crypto Prices
Learn
What is Blockchain?What is Blockchain?What are NFTs?What are NFTs?What is Bitcoin mining?What is Bitcoin mining?What is DeFi?What is DeFi?What is crypto staking?What is crypto staking?All Learn Articles
Support
DocumentationDocumentationHelp CenterHelp CenterContact UsContact UsStatusStatus
  • Language
  • All rights reserved. MoonPay USA LLC is a registered money service business (NMLS ID: 2071245). For Law Enforcement requests please direct your official document to our compliance team here.

    English (Canada)
    • Personal
    • Buy Crypto
    • Sell Crypto
    • Trade Crypto
    • Learn about Crypto
    • Crypto Price
    • MoonAgentsNew!
    • Business
    • Ramps
    • Virtual AccountsNew!
    • MoonPay Discover
    • MoonPay Commerce
    • MoonPay InstitutionalNew!
    • Company
    • About Us
    • CareersWe're hiring
    • Newsroom
    • Media
    • Changelog
    • Support
    • API Docs
    • Help Center
    • Contact Us
    • Status
    • Security
    • Buy
    • Buy Bitcoin
    • Buy Ethereum
    • Buy Solana
    • Buy Cardano
    • Sell
    • Sell Bitcoin
    • Sell Ethereum
    • Sell XRP
    • Sell Solana
    • Trade
    • Trade Ethereum
    • Trade SOL
    • Trade Aave
    • Trade Chainlink
    • Crypto Prices
    • Bitcoin Price
    • Ethereum Price
    • Dogecoin Price
    • XRP Price
    • Cardano Price
    • Learn
    • What is Blockchain?
    • What are NFTs?
    • What is Bitcoin mining?
    • What is DeFi?
    • What is crypto staking?
    • Legal
    • Licenses
    • Privacy Policy
    • Cookie Policy
    • Terms of Use
    English (Canada)

    All rights reserved. MoonPay USA LLC is a registered money service business (NMLS ID: 2071245). For Law Enforcement requests please direct your official document to our compliance team here.

    Back to all articles

    What is yield farming? What it is and how it works

    Decentralized Finance (DeFi) has been key in leading technological innovations in the Web3 space.

    Mohammad Musharraf

    By Mohammad Musharraf

    Published on Dec 4, 2023

    Last modified on Jan 14, 2025

    cryptocurrencyguidedefi
    What is Yield Farming banner
    1. 1.What is yield farming?
    2. 2.How does yield farming work?
    3. 3.How are yield farming returns calculated?
    4. 4.Can yield farming be profitable?
    5. 5.What are the risks of yield farming?
    6. 6.Popular yield farming protocols
    7. 7.Start yield farming with MoonPay

    Decentralized Finance (DeFi) has been key in leading technological innovations in the Web3 space. 

    Between February 2021 and 2022, the DeFi market grew by over 47% with total value locked (TVL) surpassing $230 billion. As of December 2023, however, DeFi TVL sits at about $47 billion. 

    For DeFi users, yield farming can be used to generate additional revenues while also helping contribute to an active DeFi ecosystem. 

    But what is yield farming and how does it work?

    This article explains the benefits and risks of yield farming so you can determine if yield farming is right for you as a way to start generating revenue from your tokens. 

    Disclaimer: Yield farming may also introduce additional risk so you should consider whether yield farming is appropriate for you before taking any action. The following is for informational purposes only and should not be construed as financial advice. 

    What is yield farming?

    Yield farming is the process in which crypto token holders can earn rewards by providing liquidity to DeFi platforms. By locking their crypto tokens in yield farming protocols, yield farmers can generate additional revenue from their principal investment.

    A picture illustrating yield farming.
    Yield farming are processes by which crypto token holders earn rewards by committing tokens (providing liquidity) to DeFi platforms — Image source

    How does yield farming work?

    Though it may sound complicated, yield farming works by liquidity providers depositing tokens into a liquidity pool.

    Supplying liquidity

    A yield farmer can earn rewards by providing liquidity to a decentralized application (dApp), such as a decentralized exchange (DEX).

    When liquidity providers deposit equal amounts of tokens into a decentralized exchange liquidity pool, they get a proportionate amount of liquidity provider (LP) tokens.

    An illustration of how liquidity pools work in yield farming

    Liquidity provider tokens entitle liquidity providers to a portion of transaction fees that decentralized crypto exchanges charge for trading against a liquidity pool. 

    What can yield farmers do with LP tokens? 

    Liquidity providers can stake their acquired LP tokens to earn additional rewards, participate in certain initial DEX offerings (IDOs), and even lend their digital tokens to borrowers and generate revenue through smart contract-enabled lending-borrowing platforms.

    How are yield farming returns calculated?

    Yield farmers calculate their estimated returns from yield farming with two market metrics: Annual Percentage Yield (APY) and Annual Percentage Rate (APR).

    APY factors in compounding interest, thereby calculating profit reinvestment that generates more returns. APR, however, does not.

    That being said, APY and APR merely help in making projections that may not always correspond with actual returns. Moreover, they are remnants of legacy finance metrics that calculate annualized returns over the course of a year. 

    A screenshot of the highest Annual Percentage Yield (APY) rates of token pairs on PancakeSwap.
    The highest APY rates of token pairs on PancakeSwap — Image source

    Given the speed of innovations in decentralized finance, APY and APR have become outdated for calculating returns. Perhaps it is time for the DeFi sector to design a unique metric that can better predict daily or weekly returns.

    Can yield farming be profitable?

    Yield farming can be very rewarding for investors if they properly invest their capital and other resources. Users need to track monthly and quarterly metrics of an underlying DeFi platform and follow proper investment advice to generate profitable returns from a volatile investment.

    It is best for novice yield farmers to invest in a trustworthy liquidity pool, even if the interest rates aren't very high. Given the volatility of crypto markets, it's also best to participate in liquidity mining platforms where risks won't outweigh rewards.

    While crypto yield farming can be profitable, it is still a capital-intensive and high-risk venture. Thus, it is necessary that you identify risks of yield farming before investing.

    What are the risks of yield farming?

    Yield farmers face a number of risks when investing in crypto markets, including the five mentioned below.

    Price volatility

    During turbulent market conditions, cryptocurrency prices can swing significantly over short durations.

    A picture of a price chart.
    Price volatility is one of the main risks for yield farmers — Image source

    Thus, token holders might suffer a loss if the price of their locked tokens depreciates during a bear market. Moreover, volatility risks may be compounded because yield farmers cannot liquidate their locked assets before the completion of the vesting period.

    View our Bitcoin Price and Ethereum Price pages for live price and market data for these leading cryptocurrencies.

    Impermanent loss

    When token prices keep changing during a volatile market, yield farming can lead to something called “impermanent loss”. As the prices of a token pair fluctuate in the liquidity pool, the ratio keeps readjusting to stabilize the total value.

    If a token's value falls due to readjustment, investors may suffer an impermanent loss. However, this loss only becomes a permanent one once users withdraw their funds from a liquidity pool on a decentralized exchange at the depreciated value.

    Smart contract hacks

    The smart contracts of yield farming platforms may contain bugs or faulty coding, making them susceptible to hacks. Ill-intentioned hackers can exploit such security vulnerabilities in smart contracts to drain user funds. 

    In December 2021, for example, smart contract bugs led to the theft of $31 million from a DeFi yield farming protocol. 

    Read our articles How to spot and avoid crypto scams and Crypto security basics: Staying safe in Web3 to learn all about the most common scams and how to spot them.

    Fraud

    Rug pulls (a scam in which project developers disappear with investors' money) are one of the most common ways of yield farmers losing their investments. In 2021 alone, losses from DeFi rug pulls totaled $2.8 billion. 

    A picture representing a DeFi rug pull.
    DeFi rug pull scams resulted in $2.8 billion of losses in one year alone — Image source

    In a rug pull, malicious developers hype up a DeFi project on social media and rake in liquidity by selling tokens to potential investors. They then deliberately tweak the smart contract code to remove the token vesting period, enabling scammers to “pull away” investor funds and disappear with their money.

    Regulatory uncertainties

    Crypto yield farming platforms are also exposed to risks accompanying an uncertain regulatory environment, which may put certain DeFi investments in limbo. There is an extensive history of regulatory risk, such as the Securities and Exchange Commission (SEC) listing certain assets as securities, thereby bringing them under their jurisdiction. The New York Attorney General has also banned some yield farming platforms, with several other states issuing cease and desist orders.

    Popular yield farming protocols

    Despite a bearish market, DeFi's TVL surpassed $38 billion in 2023. Though this figure is down from $112 billion in TVL in 2022, investors continue to provide liquidity into yield farming platforms. 

    Here's a list of some of the most popular platforms:

    MakerDAO

    MakerDAO (MKR) logo

    MakerDAO is a smart contract-enabled decentralized lending-borrowing platform where users can deposit collateral to mint an algorithmic stablecoin, DAI. This stablecoin is usable across more than 400 dApps and DeFi platforms.

    MakerDAO has its own native token called Maker (MKR) which also functions as a governance token. Running on Ethereum, MakerDAO has the highest TVL of $4.7 billion, down from $14.5 billion in 2022.

    Aave

    Aave (AAVE) logo


    Aave is a multi-chain yield farming platform for lending and borrowing assets with dynamic and algorithmically controlled interest rates. Users can act as liquidity provider to Aave's liquidity pools to earn yield. They can also stake digital assets to participate in the protocol's governance. Owners of AAVE, the platform's governance token, can vote for protocol upgrades and other improvement proposals.

    Aave is another common platform to yield farm, with $4.6 billion TVL, down from nearly $9 billion in 2022.

    Uniswap

    Uniswap (UNI) logo

    Uniswap is a leading DeFi trading protocol where users can exchange tokens and participate in liquidity mining. Users supply liquidity to pools in a 50:50 ratio against which traders execute their trades. In return, investors earn a few percentage points of the trading fees, as well as UNI governance tokens.

    Uniswap is one of the most popular yield farming protocols, with $3.2 billion TVL in 2023.

    Curve

    Curve (CRV) logo

    Curve is a yield farming platform where users can perform trustless token swaps across stablecoin liquidity pools. Curve uses its own Automated Market Maker (AMM) algorithm that allows trading liquidity with low slippage across low-risk stablecoin pools. The protocol runs on the Curve DAO Token (CRV), with which users can make decisions via governance voting power.

    Curve is a top protocol to earn passive income on deposited assets, with $2.2 billion TVL in 2023.

    InstaDapp

    InstaDapp logo.

    InstaDapp is a yield farming protocol that allows developers to build custom DeFi infrastructure and monetize them for higher returns. It comes with a simple Javascript code that frees developers from worrying about auditing their contract code. Non-developers can also manage their portfolios by opting for lucrative yield farming strategy options through the Instadapp Lite feature.

    InstaDapp is a promising platform for users of varying experience levels to earn passive income , with $1.79 billion TVL in 2023.

    Convex

    Convex finance logo.

    Convex is a yield farming platform where liquidity providers from Curve can deposit their LP tokens to earn rewards. These rewards include boosted CRV tokens as well as CVX tokens. Users can stake these tokens to earn additional interest from the protocol. 

    Convex is a widely-used protocol to earn yield on liquidity deposits, with $1.82 billion TVL in 2023.

    Compound

    Compound (COMP) logo
    Compound (COMP) logo

    Compound is a yield farming protocol where users can lend and borrow assets for the money market. By participating in the platform, users get rewards in the form of Compound (COMP). COMP tokens function as governance tokens that allow holders to participate in protocol governance. The Compound ecosystem runs on Ethereum, with algorithmically-controlled interest based on the supply-demand ratio.

    Compound is one of the most used platforms for lending crypto assets, with $1.5 billion TVL in 2023.

    PancakeSwap

    PancakeSwap (CAKE) logo

    PancakeSwap is a yield farming protocol running on the Binance Smart Chain. Although it was inspired by Uniswap, PancakeSwap has expanded features, including an NFT marketplace and in-platform games like lotteries. Leveraging an Automated Market Maker (AMM), the PankcakeSwap runs on the CAKE governance token that provides users with governance rights.

    PancakeSwap is another common platform to yield farm, with $1.3 billion TVL in 2023.

    Balancer

    Balancer (BAL) logo

    Balancer provides flexibility to liquidity providers since they can create customized liquidity pools with unequal token allocations. Through customizable and flexible staking, Balancer opens up a new way for liquidity providers to contribute to DeFi. Users who provide liquidity get a portion of the trading fees from the protocol.

    Balancer has $690 million TVL in 2023.

    Yearn

    Yearn Finance (YFI) logo

    Yearn is a DeFi aggregation protocol that automates access to liquidity pools across platforms like Aave and Compound. Yearn uses an algorithm to locate a yield farming protocol offering maximum returns and suggests it to users. Upon depositing funds, Yearn issues yTokens that keep rebalancing the principal amount to maximize profits.

    Yearn has $320 million TVL in 2023.

    Start yield farming with MoonPay

    By investing in different yield farming platforms, you can earn interest and grow your crypto portfolio.

    To get started on your yield farming journey, simply buy crypto via MoonPay using a card, mobile payment method like Google Pay, or bank transfer. MoonPay's widget offers a fast and easy way to buy Bitcoin, Ethereum, and more than 50 other cryptocurrencies.

    MoonPay also makes it easy to sell crypto when you decide it's time to cash out. Simply enter the amount of the token you'd like to sell and enter the details where you want to receive your funds.

    You might also like

    guide+2
    embedded wallets end of seed phrases

    Embedded Wallets and The End of Seed Phrases

    For most of crypto's history, the price of admission was a ritual: write down 12 words, in order, on something that can't catch fire or get wet, and guard them for the rest of your life. Get it right and you're your own bank. Get it wrong o

    cryptocurrency+2
    Accepting Crypto Payments

    How to Accept Crypto Payments: Checkout, Settlement & Merchant Setup

    A customer just bought a $100 hoodie from your online store and paid in crypto. Quick question: where is that $100 right now?

    cryptocurrency+2
    chain abstraction explained

    Chain Abstraction Is the Next Step After Bridges and Network Switching

    Somewhere in your wallet right now there is probably money you can't easily spend. Not lost, not stolen. Just on the wrong network. USDC on Arbitrum when the app you want takes USDC on Base. ETH on mainnet when the game you're playing lives

    bitcoin+2
    crypto in prediction markets

    How Prediction Markets Work (and Where Crypto Fits In)

    A prediction market is a place where people put money on what happens next. Will the Fed cut rates in September? Will Bitcoin close the year above $150,000? Each question becomes a contract you can buy and sell, and the price of that contra

    cryptocurrency+2
    What is an MPC wallet? Benefits, Tradeoffs & Use Cases

    What is an MPC wallet? Benefits, Tradeoffs & Use Cases

    An MPC wallet is a crypto wallet that never stores your private key in one piece. The key is split into encrypted shares held in different places, and signing a transaction combines those shares without ever rebuilding the whole key. That d

    security+2
    Wallet as a Service (WaaS)

    What Builders Need to Know About Wallet as a Service (WaaS)

    You want to add a crypto wallet to your product. You start researching and hit three terms that all overlap: white-label wallets, embedded wallets, and wallet as a service. Marketing pages from infrastructure providers blur the lines. Most