How to lend and borrow assets?
You can earn yield by lending and borrowing crypto assets. In this web3 guide, we'll walk through how lending protocols work and how you can deposit and borrow.
You can earn yield by lending and borrowing crypto assets. In this web3 guide, we'll walk through how lending protocols work and how you can deposit and borrow.
By Alan
You can earn yield by lending and borrowing crypto assets.
DeFi lending protocols like Aave or Compound provide higher yields than traditional banks by using smart contracts instead of middlemen. In this guide, we’ll walk through:
What follows is not investment advice.
Suppose that you’re going on vacation and won’t be using your car for a few months. Normally, your car would sit in your garage collecting dust. Instead, you decide to rent it out to a friend. You (the lender) can make money, and your friend (the borrower) can use your car to get stuff done.
Keep this analogy in mind as we explore the next topic.
In the example below, we’ll lend (deposit) some DAI into Aave (a popular lending protocol) using Polygon. Polygon is an Ethereum L2 scaling solution that offers faster and cheaper transactions. To try this example yourself, you first need to have:
1. Visit Aave and navigate to the “Markets” tab
Using the screen above as an example:
Deposit and borrow APYs are based on the supply and demand of the market.
2. Deposit some DAI
Suppose you want to deposit 10 DAI (~$10 USD). Select Deposit DAI and tap Approve:
Let’s define a few terms from the dashboard above:
Let’s use our DAI deposit to borrow some MATIC (Polygon’s native token):
Hit borrow and confirm the transaction and you should see the MATIC in your wallet soon!
Crypto assets are volatile. If your collateral loses value, then your borrow balance may exceed the limit, which increases your risk of getting liquidated (losing some or all of your collateral).
To avoid liquidation:
Borrowing is not for the passive or beginner investor. Leverage can increase your returns, but comes with risk and requires monitoring.
Up next: How to Provide Liquidity?