This article was published as a part of the Data Science Blogathon.
Borrowing and lending have always been essential components of the financial world. Without this, banks, governments, and businesses worldwide would be unable to function. When you borrow money from a bank, a bank is lending out someone else’s money. The bank, in this way, becomes the middlemen. One of the main principles of decentralization is to eliminate the middlemen. This is where decentralized finance (DeFi) comes into play. With DeFi, people can borrow and lend money without any middlemen.
This guide will go through how to use Aave, a decentralized application that allows users to borrow and lend without going through a middleman.
Aave is a decentralized application that offers decentralized finance services of borrowing and lending platforms. In short, Aave is a decentralized lending and borrowing platform. Users can earn interest for lending their assets on the platform and must pay interest when borrowing them. Aave is currently the largest decentralized application in the entire crypto space, with around $8.7 billion worth of assets on its platform. Aave currently holds ~ 10% dominance of all the decentralized applications across all blockchains.
Aave supports several blockchains, including Ethereum, Polygon, Avalanche, Arbitrium, Fantom, and many more. Aave’s smart contracts code has also been audited by some of the top leading security organizations, such as Trail of Bits and Sigma Prime. Due to this, there is a very minimum chance that a hack can take place on the platform. Furthermore, Aave is also governed by its community with over 120k+ members.
You may visit the Aave website by clicking here.
Wallet:
To demonstrate Aave’s functions and capabilities, I will use the MetaMask Web Wallet.
MetaMask is a Web3 crypto wallet that enables users to store, send, receive, buy and swap their crypto assets in a secure and decentralized way.
Blockchain:
As stated in the above section, Aave supports several blockchains. I will use the Polygon blockchain in this guide due to its fast transaction speeds and cheap transaction fees.
Polygon is a layer-2 scaling solution that was built to scale the Ethereum blockchain.
You may visit the Aave website by clicking here. On the Aave website, you can view all the features Aave offers.
You may launch the Aave app by clicking on the Launch App button on the top right-hand of the Aave homepage.
To access Aave’s features, you must connect your Web3 wallet to the protocol. After following the step in the above section, you will reach the following page.
On this page, you can connect your wallet using the steps below:
Your wallet is now connected to Aave. You can now begin harnessing the power of decentralized finance.
Your Aave dashboard will display all the details of your investments and assets, such as:
Currently, I have not borrowed or lent any assets. As a result, nothing shows on my Supplies and Borrow section. After I supply and borrow assets, these sections will be updated in the next section.
After borrowing and lending, your dashboard may look somewhat like this:
Lending refers to giving someone else your assets. By lending your assets, you earn an interest rate. In the Aave protocol, lending is also referred to as collateral.
You can add collateral only with the assets you have in your wallet. Based on the asset, you earn interest on the collateral supplied.
Adding Collateral
You can add collateral by following the steps below:
Once the collateral is added (assets are deposited), you are free to borrow assets.
Withdraw Collateral
You can withdraw the collateral you have added by following the steps below:
Borrowing is the opposite of lending. You will receive assets and have to pay interest on your borrowed amount when you repay the asset.
We must put an asset down as collateral to borrow assets on Aave.
Depending on your collateral amount, you can borrow on Aave in the following way:
Repaying Borrowed Amount
You can repay your borrowed amount on Aave by following the steps below:
You are now free of debt as you have repaid the borrowed amount.
Aave supports multiple assets for each blockchain. The borrowing and lending rates of each asset vary from time to time as this rate depends on the supply and demand of the underlying asset.
On Aave, you can view each crypto asset’s lending and borrowing rates for the respective blockchain. You can do so by following the steps below:
Bonus Tips!
Max LTV – refers to the maximum amount of assets you can borrow for your respective collateral. For example, you have deposited 100 MATIC tokens (collateral), and if the Max LTV=80%, you will be able to borrow 80 MATIC tokens.
Liquidation threshold – refers to when the amount which has been lent gets undercollateralized due to which the amount you deposit as collateral gets liquidated. For example, if the Liquidation threshold=80%, and the price of MATIC from the time you borrowed the token, falls 80%, your collateral amount will be liquidated.
AAVE token holders can stake their AAVE tokens on the platform to secure the protocol. For doing so, Aave rewards its users in terms of AAVE tokens. The current reward rate is 8.33% APY.
Users who decide to stake their Aave tokens are required to deposit their tokens in the Safety Module. You can stake your Aave tokens by following the steps below:
Confirm the transaction in your wallet, and you are done.
Currently, the staking on Aave is not available. To know more about staking the AAVE token, click here.
Bonus Tips!
Slashing – 30% of your staked AAVE tokens will be cut in case there is a security breach on the protocol, a smart contract failure, and funds are lost. (The Aave protocol has been audited by top security firms. Hence, there is a minimal possibility that the protocol will get hacked.)
Cooldown Period – The period for your AAVE tokens to get unstacked. The current cooldown period for unstacking your AAVE tokens is 10 days.
Aave is also a DAO, Decentralized Autonomous Organization. Hence, the AAVE token holders may vote on changes to be made to the protocol. The more amount of AAVE tokens and stkAAVE (Staked AAVE) tokens you hold, the more voting power you have.
The proposal will only be accepted if a maximum number of voters decide to vote in the proposal’s favor. You can request a change (proposal) by following the steps below:
You may view the current proposals by following the steps below:
To know more about governance on Aave, click here.
Blockchain is still in its infancy, and it is not regulated, and blockchain applications have risks associated with them. Decentralized borrowing and lending have some risks associated with them. These risks include:
Smart Contract Risks – all blockchain applications use smart contracts to operate. It is possible that these smart contracts can be hacked.
Impermanent Loss Risks – the price of the asset which you decide to add as collateral to earn interest may decrease.
Liquidation Risks – once you have borrowed an asset, if the price of the respective asset falls below a certain threshold, it is possible that your collateral can get liquidated.
Voila! You now know how to lend and borrow assets in a decentralized way. There are risks associated with decentralized borrowing and lending. Therefore, please conduct intensive research before beginning to lend or borrow assets. In terms of security, Aave is one of the most secure dapps as it has been audited. Be aware of liquidations risks. All the content in this article is purely for educational purposes and does NOT provide any financial advice.
If you have enjoyed this guide, please let me know in the comments and consider following. Thank you for your time.
Key Takeaways
The media shown in this article is not owned by Analytics Vidhya and is used at the Author’s discretion.