What exactly Yield Farming is? YDragon

Yield farming is one of the most complex topics in the blockchain world to grasp. Among all the educational materials about it is still sometimes hard to get the grasp of the whole potential behind it. Before diving into this material, we suggest you read more related articles about DeFi tools like this one. And also articles about the consensus mechanisms of blockchain in this article.

However, Yield Farming is might be confusing in its definitions, first of all, it is one of the most interesting DeFi (decentralized finances) tools to explain.

What is Yield Farming?

Yield Farming is the concept of lending or providing liquidity in a form of a cryptocurrency, so holders of these assets (investors) can get certain reward returns.

Yield Farming has become immensely popular since investors while putting their crypto into a DeFi platform so-called liquidity pools, can expect way higher returns in comparison with traditional financial practices.

Anyone who possesses a crypto asset can start the practice of Yield Farming.

Inherently, Yield Farming resembles the process when a lender (a participator in the financial activity) like in traditional finances — a bank or a private institution, is lending money to a borrower and sets the interest on lending this money. In that case, a lender is getting a financial reward — interest from a borrower paying off that loan.

However, Yield Farming is not exactly only about borrowing or lending. There are a few methods of Yield Farming, so-called Yield Farming types including Staking, Providing liquidity (liquidity mining), and Leveraged lending. Different methods can potentially bring a Yield Farming participator higher returns. Although, higher returns are always connected with higher risks.

It is important to understand that Yield Farming as any financial activity is connected with risks.

Where do the returns come from?

A Yield Farming participator can expect the different types of returns from Yield Farming. Depending on a DeFi platform, the returns come from the gas fees (Ethereum blockchain transaction fees), or in a form of a crypto-asset reward (an investor gets a native coin back as the reward), or LP-tokens (liquidity pool tokens).

In some cases, DeFi platforms can offer a liquidity provider (in the case of the Yield Farming method as the Liquidity provider) up to 500% APR (annual percentage rate) reward, since these platforms earn a massive amount of funds from the trade fees. However, that is not always the case.

Beware of scammers: some DeFi platforms can offer so-called Degenerative Yield Farming when a liquidity provider (investor) is earning back a continuously mintable token. Most of those tokens do not have a real value and no solid project behind them. There were some cases of a Rug Pull when a platform and liquidity pool went offline (hiding the source of a smart contract) in order to switch the code of a smart contract and get away with the investor’s assets. These platforms usually promise extremely unrealistic returns and highly volatile doubtful tokens.

How does Yield Farming work? Liquidity pools, Liquidity Providers and Automated Market Maker (AMM) model

As we mentioned earlier, there are a few ways of Yield Farming that can offer different types of rewards.

In all cases of Yield Farming DEXs and DeFi platforms where that practice is occurring are using the AMM (automated market maker) to conduct trades. That model is the opposite of the Order Book system, which is widely used in centralized crypto exchanges, and in the classical stock markets too. Order book fulfills the trades by matching appearing orders. When two sides of “buy” and “sell” in an order book-match between two parties, then a trade takes place.

AMM work explanation

With AMM all the trades are automated with the help of an algorithm, that allows avoiding price slippage and unfair price influence. AMM doesn’t require a match with another market participator (seller/buyer) in order to conduct a trade. Instead, AMM communicates with a smart contract and liquidity pool that can fulfill your order.

However, the price of a particular asset is dependent so much on liquidity, so when there is a higher demand for a particular asset in a liquidity pool, the price of it slowly goes higher on a platform. And in the other way, when there is an abundance of another asset in a liquidity pool, the price is lower, that it could be somewhere else. With that being said, it is important to understand that the AMM algorithm is set to continuously aim for a balance in a liquidity pool. Particularly to a ratio of 50:50 of the total assets in it.

AMM works with the help of complex mathematical algorithms that can work differently per each DEX (decentralized exchange) but the essence stays the same.

If we talk about DEXs like Uniswap that implements the AMM model along with all other DEXs, we can see that the inherency of AMM is always dependent on liquidity. In plain words, AMM works with math that governs multiple variables and constants. For AMM, the basics will be looking like this — an algorithm contains a formula where one variable is representing the number of digital assets in a liquidity pool and it multiplies to the other variable of different assets in the same liquidity pool. The result of this operation always should be constant to the total liquidity pool amount.

A custom AMM algorithm can be claimed ad DEX protocol, like Uniswap V3 that runs on Ethereum network, Pancakeswap protocol that runs on Binance Smart Chain, and etc.

Yield Farming in the face of Liquidity providing and so-called Liquidity mining

DEXs like Uniswap and other DeFi platforms always need liquidity in order to operate properly. Subsequently, liquidity providers can earn passive income (the Yield Farming rewards) while providing liquidity, borrowing, and lending or staking their crypto by locking it in a platform’s liquidity pool.

When putting assets in a liquidity pool, a liquidity provider becomes owning a proportional percentage of that pool, hence the reward spread proportionally. So, if we imagine that someone has deposited a 3000$ in one of the DEX liquidity pools like Uniswap, the rewards will be calculated from the number of fees that were collected by a DEX from the trades. Then, a reward is going to be spread accordingly to the percentage of pool owning. In plain words, if one owns 1% of the pool, that means the expected rewards are going to be equal to 1% from the fees fund.

What are the liquidity pools and how can it be safe to provide liquidity?

It is very important for this process to be safe and transparent, that’s why all the liquidity pools are basically a smart contract code that governs the process of Yield farming practices.

All the Liquitidy pools and similar tools are required smart contracts to be implemented for transparent regulation of the DeFi functioning tools as a whole.

All smart contracts should be open-source. It means that a smart-contract code can be reproduced on any other machine and run properly.

Quite commonly smart contracts on the most prominent DEXs can resemble a hierarchical smart contract system for all the functions of a DEX.

For example, in Uniswap V3 we have the Core smart contract which is guaranteeing fundamental safety for all DEX users, liquidity providers, and Uniswap protocol participators. That code governs a pool deployer and the pools that are going to be created by the factory.

Factory smart contract that governs the logic and pool generating algorithms on the platform.

Pools smart contracts that are managing the AMM model.

And the Periphery contracts that are responsible for interacting and communicating with the Core smart contracts, and other smart contracts of outside protocols in order to make possible a swap routing (Swap Routing is the way of swapping digital assets on DEX when a DEX has to communicate with different pools outside its network in order to give the different asset from other pools, that an initial DEX doesn’t have in its liquidity pool).

All code is open source and verified. So anyone can check it out, audit, and be sure that the Yield Farming activities on Uniswap are secured by a real and trustable smart contracts system.

Borrowing and Lending

Depending on the properties of the DeFi platform, many users can earn interest while borrowing or lending crypto assets. Due to the regulation of the process by smart contracts, the system provides trust by having borrowers’ collateral at stake. With the lending of digital assets, investors can earn a variable interest on the number of funds that they’ve lent. Many different DeFi platforms show the actual rates for every digital asset and the expected amount of returns.

The safety of this deal is guaranteed by smart contracts again. Due to the fact that lending&borrowing in Yield Farming is always collateralized an investor always knows that he can expect his funds back even if a borrower couldn’t pay off his loan. In that case, a borrower would be liquidated, and the platform would pay the amount of lent funds to an investor back, while he has already earned the interstate over that operation.

Whereas platforms as Uniswap offer a role of a liquidity provider, platforms like Compound can offer borrowing and lending methods.

Hence, there is a different type of reward from the investor. In that case, the reward is coming from the interest, and from transaction fees as with the liquidity provided.

Borrowing as the Yield Farming type is profitable when one is borrowing a certain asset that is predictably going to raise in price. While putting collateral of the equal amount of different assets, one can expect to earn over the price pump with the initial asset that was borrowed and still pays off the first loan.


Many times, staking is being considered an independent activity. However, technically staking is a form of Yield Farming when one can provide a liquidity pool to one of the DeFi platforms and receive an LP Token or a fraction of a native token/coin as the reward.

LP token is a liquidity pool token, that is minted every time when an investor provides liquidity (deposits funds) to a pool. Subsequently, LP-tokens can be exchanged, transferred, or traded in order to retrieve the end reward after paying a small fee. In the case of Uniswap, the fee is 0.3%.

Staking the world with the help of smart contracts, when putting a certain amount of digital assets into a staking pool a smart contract locks them up and rushes them up into the blockchain network in order to verify transactions and create the new blocks.

Not every digital asset can support staking options, mostly it is implemented at the stage of development. Those digital assets that can support staking should be existing on a blockchain with a Proof of Stake blockchain consensus mechanism. If that sounds confusing, read this article about PoS on a blockchain here.

The risks of Yield Farming

Without any doubt, Yield Farming involves a lot of financial risks as any other investment activity. The main rule to understand the potential risk is when assuming high rewards, consequently expecting high risks.

Impermanent loss

Due to the fact that all the digital assets are extremely volatile at this moment, there is always a high chance of experiencing an impermanent loss for a trader. Impermanent loss is entirely connected with the Yield Farming activities and the AMM model.

Impermanent loss is a chance of eventually losing the potential profits from providing liquidity to a liquidity pool. However, the impermanent loss doesn’t occur in the final instance. Otherwise, it is going to be a permanent loss. Conversely, impermanent loss occurs in the moment of a digital asset price drop after proving liquidity into a liquidity pool. Impermanent loss is recoverable when that price bounces back, so a trader doesn’t acquire a loss.

The chance of experiencing the impermanent loss, in many cases, depends on a supply&demand flow that is represented by the AMM.

Impermanent loss is a pitiful risk since one of the simplest ways to avoid carrying it, is to not provide liquidity into a liquidity pool. So, a trader can expect greater profits by just holding the assets rather than providing liquidity when the price of an asset is significantly raised.

Rug Pull

Rug Pull is inherent can be the greatest risk when engaging in Yield Farming. Due to the fact that it’s causing permanent and great losses of funds, and no ability to recover them. There are many types of Rug Pulls, but basically, they are all some sorts of scamming activity when a DeFi platform pretends to be very legit and offers tremendous rewards that can not only double, but triple, quadruple, and multiple increases the investments of a trader.

The most common Rug Pull cases are happening when a DeFi platform incentivizes investors to provide valuable digital assets into their liquidity pools like Ethereum or Cardano. But, that platform is giving zero-worth liquidity pool tokens in a return, that hardly can be exchanged into something equally valuable somewhere else. Eventually, the price of those zero-worth tokens goes down to the actual zero and never recovers, because the platform keeps on minting them again and again.

The other Rug Pull cases can be connected with a faulty smart contract code so that at a certain point when a not legit platform has collected enough amount of funds, they decided to switch their smart contracts offline and cheatingly change them and eventually fade away.

Beware of scammers: some DeFi platforms can offer so-called Degenerative Yield Farming when a liquidity provider (investor) is earning back a continuously mintable token. Most of those tokens do not have a real value and no solid project behind them. There were some cases of a Rug Pull when a platform and liquidity pool went offline (hiding the source of a smart contract) in order to switch the code of a smart contract and get away with the investor’s assets. These platforms usually promise extremely unrealistic returns and highly volatile doubtful tokens.

As blockchain software developers, we are strictly against those activities, and always encourage our clients to verify their projects by conducting the smart contract audit. You can read more about our smart contract audit here.

We do not take the projects that have traits of the Rug Pull at the brief stage into the development. We recommend everyone to do Yield Farming only with the trusted DeFi platforms and DEXs, and conduct their own research.

Prominent Yield Farming platforms

  • Uniswap
  • Compound
  • Yearn.finance
  • AAVE
  • ALGEBRA.finance

How do we develop Yield Farming projects?

As blockchain software developers, we are receiving plenty of requests to create new DeFi platforms for Yield Farming and other DeFi tools. As we mentioned earlier, we research every project idea and we are not engaged in a potentially Rug Pull platform.

A lot of requests and projects around DeFi in one way or another are inspired by the most prominent existing platforms and DEXs.

At the current moment, there is a situation when a lot of project ideas demand to develop a fork of existing Uniswap or Pancake swap. Even though we can easily do that, we are truly fascinated by the innovative ideas of our clients around DeFi. Since the potential of DeFi tools is limitless and just started to evolve greater and greater.

We are truly inspired by the project of our friends from ALGEBRA.finance. ALGEBRA.finance is a fully decentralized exchange that offers algorithmic fees for swapping tokens. The unique idea of the trading fees curve for pools is allowing to automatically adjust the price of an asset that is based on trading volume, pool volume, and volatility. And not just on the available liquidity in the pool. If you are interested in details, we highly recommend you to check out the project here.

But now, we are very excited to tell you about our big milestone in the development of a very promising DeFi platform with unique features for returns diversification and cross-chain integrations. Visit the YDragon platform.

YDragon is the DeFi cross-chain platform that provides advanced Yield farming and staking of indexes powered by Rock’n’Block blockchain developers

YDragon is the innovative DeFi tool platform that offers cross-chain index exposure to different DeFi tools and assets. Diversification is the key aim for YDragon creators in order to solve, and at least minimize the current DeFi issues like complex management of an asset portfolio, the high risks that can occur in the face of impermanent loss when a trade use DeFi tools and engage in Yield Farming activities. Indexes have come to solve many of those issues.

YDragon creates opportunities for investing in index tokens, that are representing the bundle of profitable blockchain projects assets. That gives the DeFi market participants the ability to own index tokens that offer cross-chain yield generation, auto-rebalancing, and a comprehensive way of managing the asset portfolio using the YDragon platform.

Cross-chain and Bridges. Diversification wouldn’t have been possible without cross-chain integration due to the fact that most of the promising and worthy assets are existing on either the Ethereum blockchain or the Binance Smart Chain.

Our team has been dedicatedly involved in the development of all the complex features and systems for the YDragon platform. The most fundamental of them are:

  • YDragon indexes. Indexpad
  • Automated Yield generation
  • Native YDR Staking. Stakepad
  • YDR Governance token

We kindly encourage you to check out YDragon whitepaper in order to realize the whole potential of the platform!

Rock’n’Block’s team can help you with:

⚡️NFT and NFT Marketplaces development ;
⚡️NFT 10K generator;
⚡️Staking platforms;
⚡️Vesting platforms;
⚡️Farming platforms;
⚡️Any other custom request from a crypto wallet development to custom blockchain development.

If you’re interested in building your blockchain project, feel free to contact our team via the Telegram channel or book a call via Calendly.



Follow us on social media to receive the hottest blockchain development Rock’n’Block updates Twitter, Telegram, LinkedIn, Facebook, Instagram

Share it!
twitter telegram facebook linkedin
Similar Posts
Token creation on a blockchain. Cryptocurrency vs. Token

Token creation on a blockchain. Cryptocurrency vs. Token

Many blockchain adoptions have a token creation. Many enterprises integrating tokens on their blockchain for many different purposes. Here we tell how they do that

Full guide about all Blockchain consensus mechanisms

Full guide about all Blockchain consensus mechanisms

The unfolding of all blockchain consensus mechanisms, how do different blockchain work? All the mechanics, advantages, and problem solving of every consensus mechanism are in this article

What is a crowdsale? A pack for CratD2c

What is a crowdsale? A pack for CratD2c

Crowdsale is becoming more and more popular among entrepreneurs not only in the crypto field. In fact, many of them are considering a Crowdsale as the better version of Crowdfunding

Quarashi ecosystem: How we built a vesting smart contract

Quarashi ecosystem: How we built a vesting smart contract

Rock’n’Block developers created the vesting smart contract for the Quarashi ecosystem. Here we explain what is vesting contract and we develop projects like that

Tokena: More than just a Liquidity Mining dAPP

Tokena: More than just a Liquidity Mining dAPP

Rock’n’Block creates special decentralized applications, today we will talk about Tokena a large complex dAPP that is Liquidity Mining + Staking. Here we tell how we did that!

LessPad: How to run your launchpad and get new projects

LessPad: How to run your launchpad and get new projects

Rock’n’Block development team has added to its expert portfolio plus one case in demand in the new technology market. DeFi less network! Read about how we did that

Bitgear: Rock’n’Block development case of an aggregator for crypto DeFi

Bitgear: Rock’n’Block development case of an aggregator for crypto DeFi

How do the crypto DeFi aggregators work? Here we tell you how we did develop a project like that

DeFi Token Development

DeFi Token Development

DeFi tools and DeFi tokens, how can you develop such tools being a blockchain developer?


Estimate your project now!

Get free consultation and build your blockchain project with our highly qualified team!

Start a chat with us or fill this form
rocknblock loading Please wait...

By using the service, you accept the Terms of Service