BitMex Founder Arthur Hayes: A Conversation on the Risks of Defi Revenue Farming
Original source: chain smell
After the outbreak of Novel Coronavirus, I became an avid cyclist, riding 40-60km twice a week. Cycling is popular among young people, but for "old men" like me, cycling at 5am is as exciting as a young person's disco. But cycling is a high-risk business. Before that, I had been going as fast as 52 kilometers per hour, which meant the slightest mistake could have killed me.

Of course, besides exercise, cycling also provides me with some much-needed fresh air and gives me enough energy to think. One of my cycling partners happens to be a cryptocurrency "farmer," and on a recent trip we had a discussion of risk management about the types of risks decentralized financial "farmers" (A.K.A., liquidity miners) take when investing their money. I've put together a summary of our conversations, hoping that this article will give you an idea of why yield farming is so popular, and we've come up with a conceptual framework for assessing the risks that "cryptocurrency farmers" are taking.
Defi is an ecosystem of projects designed to provide financial services to the digital world without relying on a centralized financial service provider such as a bank. For example, many Defi programs allow people to easily borrow money directly from other people, who can then exchange it for rewards built into the Defi network. Defi has a significant impact on the future development of the lending market, mainly in the following two features:
Defi does not require credit checks, personal data or bank accounts;
Everyone can participate, and the terms of the loan are enforced through immutable smart contracts, eliminating the need for a trusted middleman.
The best example of a "centralized intermediary" is a bank. In August 2020, I wrote about the following:Farmer's Dream"Dreams of a turnips," in which he talked about how the Defi ecosystem was building proto-banks in the context of our digital existence. As a concept, I fully agree with the idea of eventually replacing all banking and financial services with open source code, and while the Defi ecosystem is far from fully achieving this goal right now, I bet it will eventually happen.
The ownership of the project is open to all and provides a useful service to the entire network. Given that many DEFI programs focus on providing lending or asset exchange services, these programs require liquidity lenders and market makers. To reward the person lending the asset, the project will typically mint a native token and distribute these tokens to all lenders (typically in accordance with an allocation schedule) in a proportion that is usually proportional to the percentage of the total loan pool represented by the liquidity provider (LP) providing funds. The percentage of those tokens held also represents the percentage of project ownership. If the project becomes more useful, the corresponding native or governance token will increase in value, and in some cases, these tokens can even be used to pay for some of the fees imposed by the platform -- for example, some of the transaction fees charged by decentralized exchanges.
In addition, the tokens will allow token holders to vote on how the agreement is run and managed. Imagine that at a DEFI bank, token holders could vote on interest rate loan spreads and the type of collateral that could be used as collateral. Imagine also a decentralized asset exchange (e.g. Uniswap, Sushiswap, 1inch, etc.) where token holders can vote on transaction rates.
Here is a hypothetical example to illustrate the short cycle of yield farming using native tokens on the DEFI protocol. Let's assume that there is a very simple DEFI protocol that allows borrowers to deposit the ETH and lend out fiat currency-based stable currency Tether (USDT) :
The protocol is initiated and the user is expected to provide USDT loans guaranteed by ETH;
The deal's governance tokens are called CORN, and 1,000 of them will be distributed every day for the next 1,000 days. Of the total daily distribution of CORN tokens, 75 percent will be allocated to the lender based on the percentage of funds that the lender contributes to the USDT loan pool. The remaining 25% of tokens are allocated to the borrower based on the percentage of ETH borrowed each day. It's important to note that you can't buy Corn Tokens directly from the agreement. Instead, you must participate in a lending transaction to earn Corn Tokens, but once the Corn Tokens are in circulation, you can buy Corn Tokens on the secondary market from those who are selling them.
As can be seen from the above model, whether you lend money in the agreement or lend money in the agreement, you are rewarded with tokens, and these tokens can represent the ownership of the agreement. Imagine if you were too poor to have a real bank account and the bank charged you a 20% fee when you cashed a U.S. government check for Novel Coronavirus relief. In addition, the "too big to fail" banks charge you high overdraft fees every time you overdraw a little money. At the height of the novel coronavirus outbreak, many poor people without masks had to stand in long lines and pay a $200 fee to receive $1,200 in government aid, my mother told me. I am disappointed in the US government.
As a credit for the USDT, you can connect your browser's Ethereum network wallet to the Corn Web 3 site (MetaMask is a popular wallet right now), and after authorizing the connection, you can choose to pledge -- for example, allowing you to lend out the USDT and receive the corresponding Corn token. Corn would charge the borrower ETH interest, which would then be converted into USDT by a decentralized exchange such as Uniswap, which would then be used to pay interest to the lender, all automated by the program.
If you are a borrower and also need to connect your wallet to the CORN platform in your browser, you don't need to pledge the USDT, but instead you need to pledge the ETH as collateral, then lend out the USDT, and then use the ETH to pay continuous interest. In order to repay the loan and collect the ETH collateral, you will need to send the USDT to the CORN Agreement, which will implement the minimum leverage ratio based on the external price of the ETH/USDT. As a borrower, if you don't make the minimum payment on time, the ETH you pledged will be automatically sold on the Decentalized Exchange (DEX) and the proceeds will be used to pay back the amount you owe.
Whether you are borrowing or borrowing money, you have to pledge the USDT and/or ETH on the CORN agreement, and you are always counted as a credit to the CORN token. The Cron token represents ownership of a portion of the CORN network, and token holders can vote on a number of matters, such as changing the terms of the CORN agreement and operation, adjusting the percentage of interest charges charged by the borrower, and more. Based on the above characteristics, CORN tokens have a certain value on some exchanges and can be sold on the secondary market. To find the right pricing, you can build a discounted cash flow model (DCF) that predicts the total amount of lockup (TVL) and estimates how much fee income the CORN agreement is likely to generate. Add in the discount factor, and you should have a rough estimate of the "fair price" of the CORN tokens. Here we can see why the lockup is an important metric to evaluate the DEFI project, because the larger the lockup means the larger the fee pool in the future and the higher the transaction price of the token.
Because the market is so bullish on the disruptive impact of the Defi project, many Defi tokens are trading at very high 'non-zero nominal values'. Thus, even though the interest rate by itself may not attract lenders, the availability of Defi native or governance tokens, which are likely to increase exponentially in price, will induce people to participate in the pledge.
The main purpose of the pledge is to accumulate DeFi platform governance tokens, which can then be added through revenue farming. If you look at the APY metric, the return on investment in crypto assets dwarfs the "free market yield" of traditional, centralized finance. All of this sounds very magical, but it's important to note that pledging on the DEFI protocol is also very risky.
It is important to understand these DEFI protocol risks, which are largely related to how secure the DEFI platform's code is, and there are several risk scenarios that could cause you to lose some or all of your pledged money.
Although the vast majority of the Defi protocol code is open source, very few people look at it, and very few people (not even me) have the knowledge to detect malicious or bad code, because many people don't know the code. Even if you want to do a lot of code reviews, you have to take into account that this is a time-consuming job, and Defi's lockup volume and token price are growing so fast that by the time you finish the audit, you may have missed the best time to get in. As you study line after line of code on GitHub, the revenue drops. Why is time so important to the DEFI project? This is mainly because the total amount of tokens allocated to the DEFI program is usually fixed, and as the number of lenders and lockup positions increases, the number of tokens received by each lender decreases, resulting in a lower annualized rate of return. Therefore, it is common and very profitable for early DEFI adopters to participate in contracts without any technical due diligence.
The more reputable projects commission smart contract security audits by auditors, some of the better known in the crypto industry include Quantstamp, Hacken and Trail of Bits. However, the DEFI market is very profitable and there are not many qualified auditors, which means that if you can't establish a relationship with the head of these companies, it's almost impossible to get an audit from a reputable company.
Here are some common ways to cause a loss of principal:
Protocol developers write their own backdoors and let the contract deplete all the pledged assets, a tactic often called an "exit scam," in which users essentially pledge assets that are hard to recover.
The protocol developer encodes the contract "in a certain way" so that a set of specific actions can lock the contract and make it impossible for the user to access all the assets inside the protocol, a technique that has been attempted by many well-known Defi projects.
The arbitrary code of the agreement can be manipulated, either intentionally or unintentionally, resulting in the economic activity of the agreement failing to meet expectations and thus depleting the assets in the contract. There is a common vulnerability in the mortgage loan platform, namely: lightning loan attack. There's a great article at Hacking, Distributed that details a number of ways you can arbitrage the DEFI protocol for flash loans.
Backdoor hacks and locked-in contracts typically cause users to lose all of their pledged capital, and economic manipulation typically causes most of their pledged capital to be lost.
As a "farmer" doing revenue farming, you must model the possibility that certain protocols can be hacked, resulting in some or all of your money being lost. Since users can't buy tokens directly in the primary or secondary markets to begin with, the only way to acquire the assets is to pledge them, which also puts your money at risk. It is important to note that while doing revenue farming, you may run the risk of hacking.
There is also a risk that since your income is in governance tokens, your ROI will be determined by the token price at the time of the final decision to sell, and if the platform encounters an unexpected negative event, the token price will fall sharply, leaving you with "nothing to lose".
There are, of course, two sensible strategies that can help you manage revenue farming risk and protect your returns.
If you want to be a "good farmers", you should try to cultivate a variety of crops, so should when revenue farming DeFi project, you need to spread money into several different projects, so it can reduce the potential risk of each project, execute this strategy is the premise of a hot new project you wanted a quick entry, but not their ability to identify the project may be a negative event is experienced. You need to plow multiple DeFi tokens and constantly clear them in order to be profitable. Your advantages lie in transaction speed, token breadth and high risk tolerance.
So how should the money be allocated in practice? , for example, suppose you decided to invest in 10 DeFi project, at the same time, think a DeFi project within a month, the probability of negative incidents caused tokens price collapse is 30%, which means you will lost 30% of their money in a month, so you invest in ten monthly project hybrid yield should be at least 30%, such ability based on expected value to achieve the balance of payments. Of course, this is just a hypothetical example, the actual numbers will depend on the actual situation, I'm sure someone will read this article and explore it, and there may be some real numbers to come out later.
One more thing to note is that if you choose a high-priced DEFI project token for yield farming, but can't attract enough lock-in volume quickly enough in the short term, then it is advisable to find a better yield farming farm. In general, DEFI projects with large and growing lockups have a longer lifespan and are less likely to be affected by negative events. To put it another way, even if something negative happens, the chances of it having a serious impact on the DEFI project are lower. It's important to note, however, that even if volatility has been low in the past, it doesn't mean the future will be tepid.
If you have the rare ability to quickly read and analyze the DEFI code, there is no doubt that you will have a significant advantage because you can confidently invest your money in the "safest" DEFI protocol, which in turn will bring you a huge return. The more technical skills you have, the more confident you will be in choosing projects for income cultivation. In addition to yield farming, you can double your returns by buying tokens in the secondary market.
However, due diligence on the DEFI project is difficult because the number of safety auditors is small (and limited), and the number of DEFI projects is large, so it is generally difficult to conduct a thorough and thorough analysis of all projects. However, with the increasing number of Defi projects with multi-billion dollar lockup, it is believed that investors are willing to spend more energy, time and expense to "dig" the motives of malicious participants before choosing a project to invest in.
In general, the farmers who know the most about technology are the ones who are most likely to earn the highest returns.
Choose income farming? Or choose to buy in the secondary market?
This can be a very critical decision, depending on a number of factors. To get governance tokens, you can either pledge crypto collateral at some risk to participate in the DEFI program, or you can buy tokens on the secondary market.
If the quality of a project is not bad, they don't usually issued too many tokens on the secondary market, because this kind of practice to many of the people who want to participate in earnings farming out, this is not a good thing for the project itself, on the one hand will pledge of capital at risk, on the other hand can also cause only a small amount of tokens in the secondary market supply, also can only in a few hands between carted, eventually forming a reflexive feedback loop (reflexive feedback loop), the tokens, the fire, the higher price.
If you want to get in early, you definitely need to learn income farming. The two main risks to be aware of in this regard are:
The principal you have pledged is certainly at risk, and if there is a loss, it may cost you nothing.
The token distributed has Delta price risk, one of which is the risk of a platform credit event. If the project is hacked, the token price will fall along with the lockup volume. If you don't sell your tokens in time, the rate of return will continue to decline due to all kinds of negative events.
As an example, let's say we have a yield farming farm, let's call this farm PPPAD, which has 100,000 DAI, and we can produce PP tokens through yield farming. Enter the PPPAD contract as soon as it goes live -- Note: For best results, you may need a robot to scan the Ethereum blockchain and monitor as new contracts are deployed, specifically to monitor lockup information, as the DEFI program usually rewards you based on percentage of lockups. If you have a larger percentage of your lockup, you may get more incentive tokens. If you have a smaller percentage of your lockup, you may get a smaller amount of incentive tokens.
PPPad's lockup increased from 1 million DAI to 100 million DAI in one week (a 100-fold increase), which means that your lockup percentage went from 10% to 0.10% in one week, but the number of tokens released per day does not change at all, which is always 10,000 DAI.
If the price of PP/DAI increases 100 times in line with the volume locked up, that's certainly what everyone wants, but it's important to note that even as the project becomes more successful, your risk profile and annualized return on returns have not changed.
If the price of a PP is less than 100 times higher, that means you are taking more risk for less return. But for an evil locust, the bigger the barn, the more food there is to eat. As a result, your risk of principal loss will increase as the amount of money locked up increases. So, are you 100 times more at risk than the amount of stock you lock up? Probably not, but the risk certainly increases in a non-linear way.
When you make yield cultivation, your money itself does not add value, value the real change is the revenue farming DeFi tokens, from this perspective, if you can directly buy tokens, so earnings farming is not an optimal choice seems, if your risk tolerance for 100000 DAI, it is best to buy 100000 DAI pp scrip.
As you can see, it is not in the farmer's interest to keep liquidating PP tokens, as the farmer's risk of loss increases as the lockup volume increases, but their risk capital remains the same, which means that they need to increase their exposure to PP tokens to "top" the increased risk. So at this point, farmers are more willing to try to limit the supply of PP tokens in the secondary market, which pushes the price curve upward -- what I call a positive reflexive loop.
As the amount of money locked up increases, the price of tokens increases, but so does the potential risk of loss. Therefore, if you are holding on to your tokens and are doing income farming, the best choice is not to sell them.
However, if the secondary market is completely illiquid, it is not good for DEFI. A rapidly rising token price can attract more people to the DEFI project, which can lead to more lockups. To give liquidity providers (LPs) more incentive, many DEFI projects distribute tokens to people who pledge tokens in a liquidity pool on a decentralized exchange.
Liquidity pools consist of two types of assets. In the example above, farmers who offer DAI and PP equally in decentralized exchanges such as Uniswap, Sushiswap, and 1Inch are rewarded with PP tokens. So, as long as there are PP tokens available for sale, those who only want to bear the Delta price risk will buy PP tokens, which also provides a market quote for farmers who wish to clear the proceeds of PP tokens.
For any farmer participating in the liquidity pool, the calculation is impermanent loss, a risk I won't go into too much in this article, but there's a good blog postThe articleThis problem is described in detail. Impermanent loss is the covariance between two kinds of assets. As the price of PP tokens rises, Liquidity Pool Pledgers will have fewer PP tokens and more DAI. As the price of the PP token falls, the Liquidity Pool Pledger will have more PP tokens and less DAI. If the sale price of the PP token is sufficient to cover the fickiness loss, then it is a good deal for the liquidity pool pledger. Because fickle losses are a known risk, the DEFI program typically offers very high token rewards to liquidity providers.
If you can buy 100,000 DAI worth of PP tokens, that would be the best option. However, since the initial secondary market supply is zero at T0, the incremental supply will result in a higher token price, so the price will soar in the face of even a small amount of demand. Liquidity exposure of 100,000 DAI could raise the price of PP tokens by 100% or more. If you think the lockdown will soar, that's great, but if the project dies, it could have fatal consequences.
To better illustrate the advantage traders have over farmers, let's take a simple example:
Funds = 100,000 DAI
Time = 0
PP/DAI price = N/A
Time = 1
Capital = 100,000 DAI
Tokens = 1,000 PP
PP/DAI price = 1 DAI
When the market goes down
Once a negative event occurs, all locked positions are cleared and the price of PP/DAI drops to 0.01 DAI.
For farmers --
Capital loss = 100,000 DAI
PP/DAI loss = 990 DAI
Total loss = 100,990 DAI
For traders --
Traders bought 100,000 PP tokens for 100,000 DAI
Capital loss = 0 DAI [no capital input]
PP/DAI loss = 99,000 DAI
As can be seen from this, the trader loses 1,900 DAI less than the farmer in the adverse scenario.
When the market goes up
The lockup volume increased to 100,000,000 DAI, and the price of PP/DAI tokens increased by 100 times to 100 DAI.
For farmers --
Capital Gain = 0 DAI [Capital does not appreciate]
PP/DAI yield = (100 DAI-1 DAI) * 1,000 tokens = 99,000 DAI
Total revenue = 99,000 DAI
For traders --
Capital Gain = 0 DAI [they don't pledge anything]
PP/DAI yield = (100 DAI-1 DAI) * 100,000 tokens = 99,000,000 DAI
Total revenue = 9,900,000 DAI
Especially in the case of extreme market rise, when the initial capital of the trader and the farmer is 100,000 DAI, the trader outperforms the farmer by far. The main assumption in this example is that you can accumulate 100,000 PP tokens at a reasonable price.
While some of the "vegetables" Defi and other Mblockquotee tokens that allow the cultivation of profits look bland, there are complex risks that must be weighed and managed for the emerging "peasant class" of the Internet. My view has not changed since my last post Farmer's Dreams, namely that the quality of most DEFI programs is still unreliable and can not only cost you money, but also affect borrowing, lending, asset exchange, insurance, and many other businesses. Infrastructure driven by Web 3 is the cornerstone of a more inclusive and equitable financial system -- the financial services that support the digital age should be owned by those who are most involved.
In this new ecosystem, there will still be the problem of ownership centralization; But those who take the biggest risks certainly have the chance to reap the biggest rewards, regardless of their background or connections, and in stark contrast to the usual ways of working in the past. In a traditional environment, the closer you are to central authority, the greater your ability to share the spoils of the financial system. What happens? Once the financial system problems, the risk will be the whole society to pay the bill; When there are huge rent-seeking profits, the profits go to a few people. If you figure it out, you'll find yourself in a great game. If you're a stupid tax payer, you probably don't understand the hidden evil.
The original link
Welcome to join the official BlockBeats community:
Telegram Subscription Group: https://t.me/theblockbeats
Telegram Discussion Group: https://t.me/BlockBeats_App
Official Twitter Account: https://twitter.com/BlockBeatsAsia