What Is Yield Farming?
Yield farming is the process of using decentralized finance (DeFi) to maximize returns. Users lend or borrow crypto on a DeFi platform and earn cryptocurrency in return for their services.
Yield farmers who want to increase their yield output can employ more complex tactics. For example, yield farmers can constantly shift their cryptos between multiple loan platforms to optimize their gains.
- Yield farming is the process of token holders maximizing rewards across various DeFi platforms.
- Yield farmers provide liquidity to various token pairs and earn rewards in cryptocurrencies.
- Top yield farming protocols include Aave, Curve Finance, Uniswap and many others.
- Yield farming can be a risky practice due to price volatility, rug pulls, smart contract hacks and more.
How does yield farming work?
Yield farming allows investors to earn yield by putting coins or tokens in a decentralized application, or dapp. Examples of dapps include crypto wallets, DEXs, decentralized social media and more.
Yield farmers generally use decentralized exchanges (DEXs) to lend, borrow or stake coins to earn interest and speculate on price swings. Yield farming across DeFi is facilitated by smart contracts — pieces of code that automate financial agreements between two or more parties.
Types of yield farming
- Liquidity provider: Users deposit two coins to a DEX to provide trading liquidity. Exchanges charge a small fee to swap the two tokens which is paid to liquidity providers. This fee can sometimes be paid in new liquidity pool (LP) tokens.
- Lending: Coin or token holders can lend crypto to borrowers through a smart contract and earn yield from interest paid on the loan.
- Borrowing: Farmers can use one token as collateral and receive a loan of another. Users can then farm yield with the borrowed coins. This way, the farmer keeps their initial holding, which may increase in value over time, while also earning yield on their borrowed coins.
- Staking: There are two forms of staking in the world of DeFi. The main form is on proof-of-stake blockchains, where a user is paid interest to pledge their tokens to the network to provide security. The second is to stake LP tokens earned from supplying a DEX with liquidity. This allows users to earn yield twice, as they are paid for supplying liquidity in LP tokens which they can then stake to earn more yield.
Calculating yield farming returns
Expected yield returns are usually annualized. The prospective returns are calculated over the course of a year.
Two often-used measurements are annual percentage rate (APR) and annual percentage yield (APY). APR does not account for compounding — reinvesting gains to generate larger returns — but APY does.
Keep in mind that the two measurements are merely projections and estimations. Even short-term advantages are difficult to forecast with accuracy. Why? Yield farming is a highly competitive, fast-paced industry with rapidly changing incentives.
If a yield farming strategy succeeds for a while, other farmers will flock to take advantage of it, and it will ultimately stop yielding significant returns.
Because APR and APY are outmoded market metrics, DeFi will have to construct its own profit calculations. Weekly or even daily expected returns may make more sense due to DeFi’s rapid pace.
Popular yield farming protocols
Curve is the largest DeFi platform in terms of total value locked, with nearly $19 billion on the platform. With its own market-making algorithm, the Curve Finance platform makes greater use of locked funds than any other DeFi platform — a beneficial strategy for both swappers and liquidity suppliers.
Curve provides a large list of stablecoin pools with good APRs that are tied to fiat cash. Curve keeps its APRs high, ranging from 1.9% (for liquid tokens) to 32%. As long as the tokens don’t lose their peg, stablecoin pools are quite safe. Impermanent loss may be entirely avoided because their costs will not alter drastically in comparison to each other. Curve, like all DEXs, carries the danger of temporary loss and smart contract failure.
Curve also has its own token, CRV, that is used for governance for the Curve DAO.
Aave is one of the most widely used stablecoin yield farming platforms, with over $14 billion in value locked up and a market worth of over $3.4 billion.
Aave also has its own native token, AAVE. This token incentivizes users to use the network by providing benefits such as fee savings and governance voting power.
It is common to find liquidity pools working together when it comes to yield farming. The Gemini dollar, which has a deposit APY of 6.98% and a borrow APY of 9.69%, is the highest-earning stablecoin accessible on Aave.
Uniswap is a DEX system that enables token exchanges with no trust. Liquidity providers invest the equivalent of two tokens to create a market. Traders can then trade against the liquidity pool. In return for providing liquidity, liquidity providers get fees from trades that take place in their pool.
Due to its frictionless nature, Uniswap has become one of the most popular platforms for trustless token swaps. This is useful for high-yield agricultural systems. Uniswap also has its own DAO governance token, UNI.
PancakeSwap works similarly to Uniswap, however, PancakeSwap runs on the Binance Smart Chain (BSC) network rather than on Ethereum. It also includes a few extra gamification-focused features. BSC token exchanges, interest-earning staking pools, non-fungible tokens (NFTs) and even a gambling game in which players guess the future price of Binance Coin (BNB) are all available on PancakeSwap.
PancakeSwap is subject to the same risks as Uniswap, such as temporary loss due to big price fluctuations and smart contract failure. Many of the tokens in PancakeSwap pools have minor market capitalizations, putting them in danger of temporary loss.
PancakeSwap has its own token called CAKE that can be used on the platform and also used to vote on proposals for the platform.
Risks of yield farming
Yield farming is a complicated process that exposes both borrowers and lenders to financial risk. When markets are turbulent, users face an increased risk of temporary loss and price slippage. Some risks associated with yield farming are as follows:
Rug Pulls are a form of an exit scam in which a cryptocurrency developer collects investor cash for a project and then abandons it without repaying the funds to the investors. Rug pulls and other exit scams, which yield farmers are particularly vulnerable to, accounted for about 99% of big fraud during the second half of 2020, according to a CipherTrace research report.
Cryptocurrency regulation is still shrouded in uncertainty. The Securities and Exchange Commission has declared that some digital assets are securities, putting them within its jurisdiction and allowing it to regulate them. State regulators have already issued cease and desist orders against centralized crypto lending sites like BlockFi, Celsius and others. DeFi lending and borrowing ecosystems could take a hit if the SEC declares them to be securities.
While this is true, DeFi is designed to be immune to any central authority, including government regulations.
Volatility is the degree to which the price of an investment moves in either direction. A volatile investment is one that has a large price swing over a short period of time. While tokens are locked up, their value may drop or rise, and this is a huge risk to yield farmers especially when the crypto markets experience a bear run.
What is impermanent loss?
During periods of high volatility, liquidity providers can experience impermanent loss. This occurs when the price of a token in a liquidity pool changes, subsequently changing the ratio of tokens in the pool to stabilize its total value.
Alice deposits 1 ETH and 2,620 DAI (US dollar stablecoins: 1 DAI = $1) into a liquidity pool because the value of one ether is $2,620 (at the time of writing). Say the pool only has three other liquidity providers who have each deposited the same amount to the pool, bringing the total value of the pool to 4 ETH and 10,480 DAI, or $20,960.
Each of these liquidity providers is entitled to 25% of the pool’s funds. If they wanted to withdraw at current prices, they would each receive 1 ETH and 2,620 DAI. But what happens when the price of ETH falls?
If the price of ETH starts to drop, that means traders are selling ETH for DAI. This causes the ratio of the pool to shift so that it is more ETH heavy. Alice’s share of the pool would still be 25%, but she would now have a higher ratio of ETH to DAI. The value of her 25% share of the pool would now be worth less than when she initially deposited her funds because traders were selling their ETH at a lower value than when Alice added liquidity to the pool.
This is called an impermanent loss because the loss is only realized if the liquidity is withdrawn from the pool. If a liquidity provider decides to keep their funds in the pool, the liquidity value may or may not break even over time. In some cases, the fees earned from providing liquidity can offset impermanent losses.
Smart contract hacks
Most of the hazards associated with yield farming are related to the smart contracts that underpin them. The security of these contracts is being improved via better code vetting and third-party audits, however, hacks in DeFi are still common.
DeFi users should conduct research and use due diligence prior to using any platform.
Frequently asked questions
Is yield farming profitable?
Yes. However, it depends on how much money and effort you’re willing to put into yield farming. Although certain high-risk strategies promise substantial returns, they generally require a thorough grasp of DeFi platforms, protocols and complicated investment chains to be most effective.
If you’re searching for a way to make some passive income without investing a lot of money, try placing some of your cryptocurrencies into a time-tested and trustworthy platform or liquidity pool and seeing how much it earns. After you’ve formed this foundation and developed confidence, you may move on to other investments or even buy tokens directly.
Is yield farming risky?
Risk farming carries a number of risks that investors should understand before starting. Scams, hacks and losses due to volatility are not uncommon in the DeFi yield farming space. The first step for anyone wishing to use DeFi is to research the most trusted and tested platforms.