How to Yield Farm

Nov, 20 2020
10 Minutes

If you’re reading this, you've probably heard of a craze that took the crypto world by storm many months ago. People were using the analogy of “farming” and claiming ridiculous APYs in the thousands of percents. In other words, people were using their crypto to “farm” more crypto, often doubling their assets in a month. That’s insane.

At this point, you can still yield farm, but the rewards aren’t as enticing as they were - even just one week ago. That said, understanding yield farming will open the doors to DeFi and teach you useful skills that will undoubtedly become more important as DeFi grows and matures. But remember, the crypto ecosystem learns from both successes and failures - it is antifragile. And it does so at a torrid pace. You don’t want to underestimate that.

Towards the end of the article, I will break down the concepts of yield farming, and why it works (and its risks). However, I want you to experience the magic of DeFi as soon as possible and thus, I will first provide some motivation on why you should farm, and then offer detailed steps on how to do it.

Motivation

What is yield farming and why should you care?

Yield farming is the concept of supplying liquidity to a decentralized exchange, and in turn collecting a small fee. Additionally, you get a token for supplying this liquidity and if the project you are supplying liquidity to is in a "incentivization" stage, you can "stake" that token and earn rewards from the project.

You make money on both liquidity fees and staking rewards.

These combined earnings are what we typically refer to as yield farming.

Yield farming thus allows you to make money on your crypto, without trading it. You're putting your assets to work without the risk of speculation. As of today, there many opportunities for farming that yield over 100% APY.

How to Yield Farm

Here are the hurdles you need clear before you can Yield Farm:

  1. Acquire Ether
  2. Transfer Ether to a wallet that you control
  3. Identify Yield Farming opportunities
  4. Acquire the necessary assets required for you to participate on the yield farm
  5. Stake those assets and start collecting yield

1. Acquire Ether

If you've never bought Ether, this is you first hurdle. Thankfully, if you have access to Coinbase, it's pretty easy. That said, it may take DAYS for the ACH transfer from your bank, so you could get stuck at this step for a while.

The second thing to note is that Coinbase charges a hefty 3% fee for buying crypto from their primary website.

If that fee is frustrating to you, then you should use Coinbase Pro. The Pro version has minimal fees (0.50% or less). The user interface may look intidmidating, but if just beeline to trading USD for ETH, it's not so bad. And if you're not too price sensitive, look for a way to place a market order (as opposed to a limit order).

This may take you 30 minutes - 1 hour if you've never done it before.

And remember, you may need to wait up to 7 days for the ACH transfer from your bank before funds become available to trade. These legacy systems are supposedly getting faster, but this is a reminder of the system that cryptocurrency provides relief from.

2. Transfer Ether to a Wallet (Metamask)

Once you have bought Ether, you'll need to transfer it to a wallet. I personally use Metamask, so that's what I will focus on.

Metamask is a browser extension available for Chrome, Firefox, and Brave. Install this extension and set up your wallet.

It will ask you to write down a list of recovery words. Find a secure place to save these.

Once you have your Metamask wallet set up, you will be able to see your wallet address. When you click Metamask, you'll see Account 1 and underneath something like 0x..... When you hover over that, it will say "Copy to Clipboard".

Now, go back to Coinbase Pro and withdraw your Ether. Set the destination address to be your Metamask address that you copied above.

3. Identify Yield Farming Opportunities

For many of you reading this, steps 1 and 2 are things you might have done a long time ago. Thus, this is where it gets interesting.

Currently, the best place to go to find yield farming opportunities is Coin Gecko. Coin Gecko works hard to curate and list all sorts of investment vehicles in the crypto space. They are reputable and considered good faith actors.

As it pertains to yield farming, we want to focus on their "Farms" tab. You'll see something like this:

Coin Gecko

Right now, lots of people are providing liquidity to Sushi and receiving yield on the SUSHI token. While I don't personally farm much SUSHI, it is the most popular asset at the moment, so we'll focus on that.

There are many ways to get SUSHI right now. They all involve providing liquidity to the following pairs on SushiSwap. Here are some examples:

  • ETH-USDT
  • ETH-USDC
  • ETH-DAI
  • ETH-SUSHI

If we want to participate in yield farming, we'll need to acquire a pair of those assets, supply them to a SushiSwap liquidity pool, recieve an "LP token" and then stake that "LP token" to start getting a constant trickle of SUSHI token.

Let's focus on the ETH-SUSHI pair because that's giving a good healthy yield right now of over 100% APY.

Alright, so how do we do this?

4. Acquire the Necessary Assets

Our ultimate goal is to acquire liquidity provider tokens, or "LP tokens". For many yield farming opportunities, we need Uniswap LP tokens. In the case of SUSHI, we will need Sushi LP tokens or SLP. It is really important that you're clear on which platform the LP tokens need to be issued by. On Coin Gecko, they help by providing basic instructions.

I've annotated a screenshot below:

Understanding which platform to provide liquidity

But many times, you will need to do your own research and understand which assets you need to acquire. In the image above, I indicated "???" for those yield farming opportunities I could not immediately understand.

In the case of WETH-SUSHI, what we're after are the following assets:

  • ETH-SUSHI LP Token on SushiSwap. Which we can "create" if we first acquire
  • ETH (ignore the W in WETH, regular ETH will work)
  • SUSHI token

We already have ETH, as we transferred this to our Metamask wallet. Thus, that just leaves us with acquiring SUSHI token. How do we do that?

We go to an exchange. My preference is a decentralized exchange.

Uniswap is the biggest one. SushiSwap is a clone (and smaller - and has a questionable history). Thus, using either Uniswap or SushiSwap, we can trade some ETH for SUSHI token.

There are other decentralized exchanges out there, but these two are by far the easiest to get started with. Plus, you'll need to interact with them anyways to get your LP token.

This is what their interfaces for swapping look like. SushiSwap on the left, Uniswap on the right:

SushiSwap vs Uniswap

As you can see, it looks very simple. You select the token you want to trade, and the token you want to recieve. Then you press swap, accept some Metamask confirmations, wait for the transactions to process, and then you're done!

Make sure to leave some ETH left over! You don't want to trade all of it for SUSHI, because you will need an even amount of both assets to provide liquidity.

If you can't find the SUSHI token, you might need to change the list that SushiSwap and Uniswap are using to find the tokens. When you click the dropdown menu to change your selection, you'll need to try a different list. Here's what I mean:

Changing lists

You might need to try a couple lists to find the token you're looking for. There are other ways to get the token to show up (i.e. pasting the address in the text field), but this is the easiest.

Now that we have SUSHI and ETH, let's go get our ETH-SUSHI LP Token on SushiSwap. This is important that we do this next step on SushiSwap! To do this, go back to the SushiSwap app, but make sure to click on the Pool tab:

Providing Liquidity on SushiSwap

When we provide liquidity, we must do so in a 1:1 proportion. That is, if we want to supply $100 of ETH, we must also supply $100 of SUSHI. This is why it's so important to leave some ETH in your wallet.

From this point, we just approve SUSHI, wait for that transaction to go through, and then click Supply - and wait for the second transaction to go through.

For our troubles, we'll now obtained a ETH-SUSHI LP Token!

5. Staking and Collecting Yield

We can take our ETH-SUSHI LP Token and go to SushiSwap's farm (you can find this from either Coin Gecko, or navigating from SushiSwap's homepage). In our case, the farm is located on this page.

You'll see something like this, where you can start staking:

Start staking Sushi

Your screen might look slightly different from mine because I've already begun staking, but the buttons will be mostly in the same location.

Again, press some buttons, specify how much you want to stake, do some Metamask confirmations, and when the transactions go through, you'll be staking!

The value of the SUSHI that you've farmed will show up on the left. Not to mention, you're earning liquidity provider fees on the funds you placed in SushiSwap too.

Congratulations, you're yield farming!

Understanding Yield Farming

Now that you know how to yield farm (or have bookmarked this page for later), let's talk about what the yield farming opportunity really is.

At its core, we know that when we're yield farming, we're getting rewarded for providing liquidity, as well as for staking our proof of liquidity providing, in the form of LP tokens.

Let's understand why we should be getting a liquidity fee and the risk we have when we do so (impermanent loss). And then let's talk about why anyone would issue tokens for us to "stake" our LP tokens.

Liquidity Fees

Fundamentally, it makes sense why we should earn liquidity fees. We're providing our assets such that those who are looking to exchange one token for another have a market for this. They don't have to wait to find a buyer, and it's pretty seamless to go from the thought "I want token Y" to the action "I will exchange X for Y".

That requires liquidity. We're providing it. Uniswap is collecting fees on our behalf. When we redeem our LP tokens back for our underlying assets, we'll get a little bit more than we put in.

Impermanent Loss

However, this is not risk free! Due to some rather interesting constraints and details of how Uniswap, SushiSwap, Balancer, and all such "x * y = k" exchanges work, we are subject to an opportunity cost known as impermanent loss.

I won't explain why it happens in this article (maybe later), but the effect is that in certain conditions, a liquidity provider may actually be worse off by providing liquidity to the pool, compared to doing nothing at all. What is that condition?

When the relative price of the two assets they're providing liquidity changes. So in our case, if either SUSHI becomes far more valuable than ETH or ETH becomes far more valuable than SUSHI, we're subject to impermanent loss. It's all about the relative price.

There are lots of calculators that will do this for you, but nothing I've found that monitors the relative prices and alerts you if you're experiencing significant impermanent loss. But it's very important to keep in mind while you're yield farming, otherwise, you put in all this effort and are now worse off than if you did nothing!

Why do I want SUSHI?

One question you might be asking is, why do I even want SUSHI token anyways? Why am I staking my LP tokens to acquire it?

Well, the SUSHI token is a governance token - and when it comes to decentralized exchanges, it's relatively easy to see why that might be valuable. In the future, SUSHI might change the rules such that SUSHI token holders see a small share of the liquidity fee. In such a future, that would be like a dividend on a stock. Or, you might see SUSHI holders vote on other changes to the platform.

Governance tokens are a lot like equity in a company. A share of stock in a company allows you to vote on who the CEO should be, as well as a variety of other decisions. You also get dividends, when the company decides to issue them.

In crypto, there are lots of governance tokens for this reason. It's a model that is somewhat intuitive to those who come from a background in traditional finance. Of course, there are many other things we can do with tokens, but governance is the foundation.

Do I personally believe in the SUSHI token? I have no idea, but I think it's a good idea to have a little of both the SUSHI and UNI tokens.

Why do they give me SUSHI?

And another question you might have - why is SushiSwap issuing SUSHI for providing liquidity?

Well, when you phrase the question like that, it becomes clear. SushiSwap is incentivizing you to learn about DeFi, but more importantly, to provide liquidity on their platform to improve the experience of users of SushiSwap.

Conclusion

I hope this was a helpful introduction on how to yield farm. We spent a lot of time talking about how to yield farm on SUSHI, but there are other opportunities out there.

Take the time to do your research, think through which tokens you want earn via staking, and figure out if there's a path to yield farming that exposes you to risks that you are comfortable taking.

If you do all of these steps, you might realize that DeFi has come a long way. You can now:

  • Earn crypto by providing liquidity on exchanges
  • Earn crypto by lending it out on something like Compound
  • Easily transition one asset to another
  • Park your money in stablecoins, if you need a breather

And much much more.

I personally had taken a break from crypto for many months and when I returned to the space, I was amazed by the capabilities of these platforms. The pace of innovation is crazy (everything is open source, so everything gets copied and tweaked).

This is just the beginning.