DEV Community

Cover image for Aave explained
Arun Shekhar
Arun Shekhar

Posted on

Aave explained

Index

  1. What is Aave
  2. Traditional Bank money market vs Aave crypto market
  3. Collaterals in Aave
  4. Aave market, interest rates and supported chains
  5. Risks involved
  6. Step by step tutorial to Lend, Borrow and Repay money on Aave

What is Aave

Aave is a decentralized finance (DeFi) platform that allows users to borrow and lend cryptocurrencies. It is built on the Ethereum blockchain and uses a protocol called "smart contracts" to facilitate lending and borrowing.

Traditional Bank money market vs Aave crypto market

1) Traditional Banks money market

  • Lender has cash or cash based assets which he lends to the bank, then the bank uses their reserves to lend the cash to borrowers.
  • Borrower needs to pay high interests on their loans and also provide something as a collateral, for example their house. If for any reason the borrower fails to pay their loans, bank can take the house to suffice for the money they lent.
  • Also another thing to notice is that lender get very less interest on their deposited assets in the bank.
  • It is a centralized form of market

2) Aave money market

  • Aave is decentralized, free, open for all and every asset is crypto based.
  • Lenders can put their crypto based tokens in the equidity pool and can earn a transparent interest rate depending upon the demand and supply of the crypto they put in the market.
  • While borrowers have to put crypto based collateral in the market to borrow the crypto based assets from aave.
  • The borrowed money is always less than the collateral depending upon the given limit. for example you can borrow 80% of the ETH you put in aave as collateral, so if you put $10,000 worth of ETH, you can only borrow $8000 worth of value.
  • The lender have no direct contact with borrower and their identity remain anonymous to each other, everything happens through a smart contract and automated process.

Collaterals in Aave

collatoral

  • Over collateralization: As you can see here, every token has its own LTV(Loat to value) percentage, this determines how much loan you can borrow respective to your deposited value cryptocurrency. This is called Over collateralization. It is done so that Lenders never loses their money.
  • There are many strategies people use to leverage this technique and gain profits.

Aave market and interest rates

aave market

  • Here you can see Ethereum market, number of assets that are available, interest provided by each assets, total supply, total borrowed etc.
  • This is a open market and interest rates are calculated based upon the supply and demand by the protocol.
  • High utilization rates means very competitive interests.
  • You can know more about the liquidity and returns of the token by opening it on the platform

Dai

  • Aave is a multichain protocol and supports many chains that are compatible with EVM network.

Image description

Risks involved

  1. Smart contract risk: Each markets/protocol depends on a smart contract which dictates supply and demand of the assets. If there is a vulnerability within the contract, hackers might be able to exploit it, which puts the assets at risk.
  2. Blockchain risk: Smaller chains might be prone to get hacked, so choosing your chain wisely is the thing to prioritize.
  3. Liquidation risk: If you borrow a lot of money and value of your assets falls, then you could be liquidated.
  4. Asset risk: Each assets have their own risks of loosing their value.

Step by step tutorial to Lend and borrow money on Aave

1) Go to aave website and launch the app, you will land here Aave app. Connect your wallet(I'm using Metamask here) with your desired chain. I have connected to Polygon market here.

2) Here you will see your available assets, choose an asset and click on supply button.
available assets
3) Select the value of token you want to deposit and then click on 'supply'. Confirm the Metamask transaction.

Image description

4) All done, you should be able to see your Net worth now. (which you can make $10B by chrome dev tools and give yourself momentarily happiness until the next browser refresh XD )

Assets

5) To borrow assets, You can see 'Assets to borrow' on same screen down below. Select your desired token and click on borrow button.

Borrow

6) You should see this screen. From here you can select Variable or stable interest.

Variable interest can increase and decrease depending upon the reserve in pool, while the stable interest will remain same.
Also you should consider checking your health factor.

Your health factor and loan to value determine the assurance of your collateral. To avoid liquidations you can supply more collateral or repay borrow positions.

Click on 'Borrow', confirm metamask transaction and soon the amount will be credited into your metamask.

Image description

7) You should now be able to see your borrows on the same page.

Borrow

8) When you're ready to repay the asset, click on repay. You can chose the amount to repay also the source you want to repay from i.e. Wallet or collateral. Then approve and Repay through metamask transaction. Now all your debts are gone. Good job!

Image description


Wrapping up... there are many more topics left to cover in aave such as Flash loans (You have to pay as soon as you take the load i.e. within transaction time, it could be as small as 13 seconds) which could be covered in separate article.
Thanks for your time.
Cheers.

Top comments (0)