Decentralised Finance (DeFi) and Liquidity Farming Basic Guide
by Asuram
Terms
Liquidity Pools (LP) –> LP are used to enable traders to transfer funds from one coin to another in a decentralized way. Generally speaking, one would put 2 or more coins into a pool contract where it will collect a small percent of fees spent from transitioning from 1 coin to another. An example would be, if I wanted to trade between Ethereum and Dai, I would be putting in my Ethereum and pulling out some Dai from the pool, minus a small percentage that goes to the people who are supplying liquidity to the pool
Automated Market Makers (AMM)–>Most DEFI applications run on an AMM . These are any application where people interact with smart contracts instead of interacting with a centralized company. An exchange like Binance matches buyers and sellers to make a trade, while Uniswap uses their liquidity pools
Governance Tokens –>Because most DEFI applications, are well decentralized, they use a token as a form of voting power. If you own 5 UNI tokens, you have 5 votes power in the network. This allows for the community to decide the direction of the protocol instead of a central company managing it
Decentralized Autonomous Organization (DAO) –> For the same reason above. It allows a group of people to run an organization in a decentralized way where everything is open source that can be viewed\
Oracles –> Oracles are third-party information service providers that send external real-world data to a blockchain protocol. Oracles can be decentralized and rely on numerous data sets, or centralized and controlled by a single entity
Lending –> I don’t believe there is a cool name for this, but to summarize. You stake your coins into a protocol which people can lend out from. You gain a portion of the interest they are paying to borrow your crypto (They are paying 10% interest to borrow and you gain 8%, with the remaining 2% going back to the protocol). These rates vary depending on multiple factors, such as volume, liquidity, volatility, etc. This works in a trustless manner, because to do this, the borrower must deposit collateral to obtain a loan equal to a % of what they deposited. If they deposited 1000 USD in ETH, they may be only able borrow up to 750 DAI. If what they borrowed went up, their ratio may go down with the chance for their deposit to get liquidated as to protect the loaners. While it seems silly at first to basically deposit 1000 USD to only receive 750 back, one could use it to hedge themselves, save money by not participating in a taxable event, or simply withdraw money from the crypto space without actually selling their investment.
Liquidity Mining
The short and dirty of liquidity mining is, by depositing a token, you gain more of the token back. This gain is either from participating in a LP and receiving the portion of the trading fees, loaning out your money to others and collecting the interest
Yield Mining/ Yield Farming
Now this is more . . . complicated? The TLDR of it is by participating in a LP, you may get a token back showing your stake in the pool. You could then put THAT token into another LP, adding another layer to you providing liquidity. The best way would be to give an example.
Say you first start off with 1000 Dai and you put it into Curve (an AMM). Depending on which pool you put it in, you will get a curve token back (for the sake of it, I’m using the Y pool so ima call it yCrv) while gaining APY (lets just say 10%). You then take the yCrv and could deposit it into yearn.finance, gaining another 10% APY. Finally, you could then supply liquidity on uniswap by putting your yearn tokens you got for depositing yCrv into a LP for another 10%. You have now leveraged your initial token 3 times across 3 different protocols for a bigger yield.
Another form of this is simply getting governance tokens in addition to your APY reward. Example being Curve gives 10% APY for staking, but also gives you an additional 10% in Curves DAO or Governance token.
Now for some DEFI Applications
AMM
- Uniswap (UNI)–> bread and butter. Trade this coin for that. Their LP are 50/50 split between 2 tokens
- Balancer (BAL)–> Similar to uniswap, but their LP allow for up to 8 different tokens without requiring a 50/50 split
- Curve (CRV)–> AMM that specializes in only stablecoins and provides incentive to trade the stable coin the pool is low on to self balance
- 1Inch (1INCH)–> Another AMM, but they focus on aggregating the prices from all AMM to try and match you with the best one. Tends to be uniswap or itself
Lending Protocols
- Aave (AAVE, used to be called LEND)–> Put coin in, get interest rate that varies
- Compound (COMP) –> Same as above but less assets locked into protocol and less coins offering to be borrowed or loaned
- Oasis/Maker (MKR and DAI) –> I put these both here because while they are different, they are run by the same organization. You can deposit any asset voted on by the maker DAO into a vault, and generate DAI from it, which is how DAI is able to maintain its stable price without being explicitly tied to USD. You can then pay back the DAI you borrowed to retrieve what you stored in the vault.
Cool shit that I couldn’t find somewhere else to put
- Augur –> It is betting. What it really is a prediction market. Someone could put a bet saying the weather will be 0 tomorrow and it would generate 2 tokens. A yes it is, or No it isn’t. When the duration is over, the money staked from the loosing side will go to the wining side. You could also buy a bet and sell it because it is all tokenized.
- Flash Loans –> Out of everything on this list, I have NEVER touched this. The basic summary is you can borrow almost any amount of money without collateral, but it has to be returned in the same block. If I saw eth was worth 2k on Uniswap but 1950 on 1inch, I could borrow as much as I want to buy as much ETH from 1inch as I could, then sell it all on Uniswap for a 5% profit, then return the money back to the flash loan provider in the same transaction. Its cool, but I have not found opportunities to do it myself
- Nexus Mutual –> Similar to Augur but more focused on “Will x event happen”. You can buy insurance policies on certain events happening to cover X amount of crypto, and if that event happens, you will be payed out after a vote by their DAO. The cool thing about this, is you don’t NEED to have whatever you are insuring. If you are insuring that the Curve contract will fail for 5 ETH, it doesn’t matter if you never used Curve or not, you will still get your payout since you bought a policy.
- PoolTogether –> This is my literal favorite project and it is so small tiny and cute. You basically can buy lottery tickets with whatever pool currency is (1 ticket= 1 Dai), and you hope to win. But the great thing about this is you cannot lose your money. All of the winnings are generated by the interest gained from all the lottery tickets in the pool, so if you buy 1 ticket, that ticket remains in the pool until YOU take it out yourself, giving you a chance to win every single week. It is just a no loss lottery, great for gambling addicts like myself.
- Synthetix –> Synthetic assets on the blockchain. Their sGold token could give you exposure to the gold market without actually buying a traditional index for it
Wallets cause I forgot until the end
- Personally, I use argent because my friend got me on it and I don’t feel like paying over 200 in gas to move all my holdings to another wallet, but its pretty nice with its built in DEFI features.
- Another one I think is good is Math Wallet, which holds multiple chains and allows you to interact with DEFI applications not just on the ETH blockchain
- I use Zerion as a layer 2 to my wallet. I don’t actually bother opening it that often unless I need to use walletconnect to initialize a connection to a DEFI application. Zerions interface is pretty nice and does the price tracking for you so you can see your gains and loss in different coins while also tracking historical trade prices you preformed. Anyone can check theirs now by using their addres or ENS
Closure
None of this was financial advise. I have used every single application or term mentioned here (except flash loans), and my current holdings are as followed
- XOR, XRT, ETH, DIA, AKRO, RING, MKR, COMP, RWS
- Providing liquidity to the UNI/ETH pool on Uniswap
- Providing liquidity for UNI on Compound
- Providing liquidity from Curve on Yearn because I am poor and am not going to pay the gas fee to move it #Good Resources
- Defi Pulse
- Defi Prime
- Defi Rate
BIG EDIT SIGN
- By depositing collateral into a lending protocol so you can borrow, you are also GAINING APY on whatever you deposited. If you deposit ETH to withdraw DAI, you are gaining an APY on your ETH, while paying a APR on DAI
- While you may see there are high APR for borrowing, most lending protocols also allow users to accumulate governance tokens for borrowing, since they are taking part in the ecosystem. Using Compounds Distribution as an example, users gain about 4% for either lending or borrowing back in the form of COMP governance tokens, which have their own value. Looking at from that perspective, loaning DAI will reward 10% APY with an additional 4% APY in the form of COMP, while borrowing will cost 13% APR, but 4% of their debt is returned to them in COMP
Recent Comments