The Ultimate Beginner’s Guide to DeFi — How to Make Money with Crypto by Yield Farming
The DeFi world is rapidly expanding, and as the global financial system continues its transformation towards digitalization, DeFi has a very large growth potential, attracting the attention of over 3 million investors worldwide. Hence, it is essential to understand the assets, markets, investment approaches, etc.
Footprint Analytics -TVL by protocols
We have covered the basics of DeFi in the previous article. In this one we will dive into:
- 3 Major DeFi investment categories;
- How investors earn passive income by participating in DeFi investment;
- Current risks of DeFi projects; and
- 7 perspectives to evaluate a DeFi project
2 Ways of Investing in Cryptocurrencies
Referring to investment types in cryptocurrencies, they can be divided into fiat and token-based.
- Cryptocurrencies (also called tokens) are regarded as stocks, then CEX or DEX is a stock exchange.
- Alex, an investor, can buy and sell cryptocurrencies on CEX or DEX, selling high and buying low to earn the difference and gain revenue, referred to as “speculation”.
- In this case, all Alex cares about is the price changes of cryptocurrencies, using ROI (Return on Investment) to the evaluation indicator.
Token-based (or Yield Farming)
- When investors are bullish on certain cryptocurrencies over the long term, the easiest investment strategy is to “Hold” them; while a smarter strategy is to make better use of them by creating greater passive income.
- For example, investor Alex can deposit cryptocurrencies to the lending platform Compound or yield aggregator Idle for interest income.
- In this case, all investor Alex cares about is the growth in the number of cryptocurrencies and the APY earned through Yield Farming.
We will further our discussion in the Yield Farming by introducing the 3 Major DeFi investment categories, which are: AMM DEX, Ledning and Yield Aggregator.
DEX: Uniswap as an example
Uniswap is built on Ethereum as the decentralized exchange and supports all cryptocurrencies on this network. Unlike traditional orderbook exchanges, it uses an AMM (Automated Market Maker) algorithm to allow users to exchange various ERC-20 tokens with higher efficiency.
In Uniswap’s AMM model, a liquidity provider (abbreviated as LP) is required to create a pool of liquidity for traders to swap the required tokens.
There are 2 scenarios included.
For traders, they swap.
Suppose 1 ETH is equal to 2220 DAI, and trader Alex wants to swap his DAI for ETH. He needs to pay 2220 DAI plus trading fee (for easy understanding, all scenarios in this article ignore gas fee) to get 1 ETH.
For LPs, they provide liquidity.
Endy as LP needs to provide a pair of two tokens (e.g. DAI+ETH) to the liquidity pool with equal value. In return he will receive a partition of the trading fees from the trading activities. Also he will receive a LP token, which is the credential for providing liquidity and represents his share of the overall liquidity pool.
How does it realize the automatic pricing? This brings us to the “constant product market maker” model behind Uniswap’s AMM mechanism. The formula for this model is: x*y=k, where x and y represent the liquidity of each, k is a constant.
It is worth noting that the model does not vary linearly. In fact, the larger the relative amount of the order, the larger the magnitude of the imbalance between x and y. That is, the price of a large order increases exponentially compared to a small order, leading to an increasing sliding spread.
Figure: Uniswap price change curve
In the process of providing liquidity, LPs need to be aware of impermanent losses.
What are Impermanent Losses？ Here is an example.
Assuming Endy holds 2000 DAI and 1 ETH (1 ETH= 2000 DAI), he has 2 options.
Option 1: as LP
- Provide 2000DAI + 1 ETH to form a token pair to the liquidity pool
- When the price changes: ETH = 4000DAI (outside DEX), arbitrageurs will buy ETH at Uniswap (cheaper) and sell to other DEX with a higher price
- This will result in a decrease in the number of ETH in the pool and an increase in the price of ETH until it equals to 4000DAI. (arbitrage opportunity disappears)
- At this point, Endy’s LP Token is worth 2828 DAI + 0.71 ETH, which is equivalent to holding 5657 DAI.
Option 2: just hold them
- When the ETH price changes to 4000DAI, Endy’s assets are equivalent to holding 6000DAI.
Under the same conditions, “Option 1 provides liquidity” is 343 DAI less than “Option 2 just holds”, or a 5.72% drawdown. This loss is called Impermanent Loss. When ETH recovers 2000 DAI, this impermanent loss will disappear.
Lending: Compound as example
In DeFi’s lending platform, an investor provides a crypto asset in the pool to earn interest; if this deposit is collateralized, the investor is able to borrow another crypto asset. Currently, DeFi’s lending platform typically uses “overcollateralization”, where the borrower provides assets worth more than the actual loan in case of default.
- Alex, the investor, with DAI that he doesn’t want to sell, so he puts it into the pool as a lender to lend it to people in need, thus earning interest
- Bob knows a good investment opportunity in DAI, but he doesn’t want to sell the ETH he has, so he uses ETH as collateral to borrow DAI and pays interest.
- In this process, both Alex and Bob are rewarded with COMP platform tokens, which is what we call Liquidity Mining.
Yield Aggregator：Idle & yEarn
Nowadays, DeFi projects are popping up all over the place. Investors might face the following problems:
- Too many platforms with different interest rates: how to choose the best?
- Interest rates are always changing, so are the prices:
- Borrowers might be accidentally liquidated, what to do?
- Lenders might need to keep change the protocols for better interest rate, causing high gas fees
- Investors can’t keep an eye on the market 24 hours a day.
DeFi’s Yield Aggregators can somehow solve the above troubles, where valut of a specific asset provides a complex investment strategy that combines lending, pledging, and trading to maximize profits.
It is an ethereum-based protocol that allows users to get the best interest by investing in a single asset. It currently supports the financial services of Maker, Compound, dYdX, Aave, Fulcrum and other protocols. When depositing with Idle, you will receive a complex APY, consisting of the APR from the token you deposited, the platform token IDLE and COMP.
It is also a protocol on Ethereum with the main goal of generating the highest return for the tokens deposited. It features programmatic asset management to deploy the best strategy.
Take the ETH Vault as an example.
- The Investor deposits ETH into the ETH Vault, which will deposit ETH into MakerDao as collateral to borrow stablecoin DAI.
- The borrowed DAI is deposited into Curve Finance’s liquidity pool, receiving LP tokens in return and trading fees in the form of basic APYs. LP token can be staked into the Curve’s CRV gauge to earn CRV rewards.
- The earned CRV is then converted into ETH, and will be deposited to the ETH Vault again. Such a cycle continues until the investor withdraws.
- The investor eventually receives ETH-settled interest and pays a certain amount of management fees.
Risk of DeFi Projects
The diversity of investment opportunities and the continuing growth makes DeFi an attractive and lucrative investment. However, as with any investment, there are risks associated with a DeFi investment.
Smart contracts：hacked (even with audit）
- single smart contract
- protocols built on multiple smart contract
- scammer：pools with protocol token + stablecoin providing high APY
- token dumped by Wales causing price zero
The volatility of Token Price
- Borrow： Easily get liquidated
- LP：Impairment loss
- Wallet risk: stolen risk of seed phrase、private keys
- DeFi authorization： Cancel the authorization for a protocol, not in use & Don’t put all your eggs in one basket
How to evaluate a DeFi project
Investors must Do their own research (DYOR ) before investing, start with the following 6 aspects:
- Basic questions to ask：
- Which type, on what blockchain, audited yet?
- When go-live, ranking of TVL, 24H users
- Whether on coingecko、CMC?
2. Fundraising history with famous inventors
3. Project Introduction （Official website + public articles + Github）
- Business model、competitors、differentiate features
- Any negative news? pay attention to Too Good reports considering the neutrality of the media
- Economic model（token distribution for the team： within 15%-20% is acceptable）
- Code submit frequency of GitHub
4. Attention to the price trend
- Surge in a short time? High probability of pumping
- Risks of dumping by whale causing a large drop
5. Attention to extremely high APY
- Way to attract investors by scammers
- Cautiously try but run fast before it collapse
6. Activities of the community
- Questions of users asked: quality of the investors
- Attitude and effectiveness of admin response
DeFi offers a more convenient place for investors to choose as an alternative to traditional investments. With more and more investors, institutions, capital, and developers coming in, a more open, transparent and saver financial system is expected.
Join Coinmonks Telegram Channel and Youtube Channel learn about crypto trading and investing
- Fold App Review | Kucoin Trading Bot | Probit Review
- How to buy Bitcoin Anonymously | Bitcoin Cash Wallets
- Binance vs FTX | Best (SOL) Solana Wallets
- Binomo Review | Stoic vs 3Commas vs TradeSanta
- 5 Best Crypto Exchanges in UAE | SimpleSwap Review
- 7 Best Ways to buy Dogecoin | ZebPay Review
- Best Futures Trading Signals | Liquid Exchange Review
- NGRAVE ZERO review | Phemex Review | PrimeXBT Review
- Best Blockchain Analysis Tools | Earn Bitcoin
- Crypto arbitrage Guide | How to Short Bitcoin
- Coinbase vs WazirX | Bitrue Review | Poloniex vs Bittrex
- Best Crypto Exchanges in Germany | Arbitrum: A Layer 2 Solution
The Ultimate Beginner’s Guide to DeFi — How to Make Money with Crypto by Yield Farming was originally published in Coinmonks on Medium, where people are continuing the conversation by highlighting and responding to this story.