How do borrowing and lending work in DeFi? (2024)

The main reason people want to borrow crypto assets from a DeFi protocol is for trading and speculation purposes.

The main reason people want to borrow crypto assets from a DeFi protocol is for trading and speculation purposes. For example, if someone was bullish on ETH and had $250 worth of ETH and didn’t want to liquidate, they could deposit that amount to a DeFi vault and borrow $200 worth of USDC or Dai and use that to buy more e.g. $200 USD worth of more ETH.

This allows the speculator to transform their $250 ETH position into a $450 ETH position i.e. leveraging into a larger position. The advantages of doing so through DeFi lending platformsis that as a borrower you are not handing over custody of your collateral to an institution where you might face counterparty risk (instead you face a different protocol risk).

Another potential advantage is that it preserves anonymity and avoids KYC (know your customer) procedures.

What are flash loans?

One innovation in the DeFI space is flash loans e.g. offered by the Aave protocol. This opens the door to all kinds of transactions that were previously restricted due to frictions in the traditional finance space. To recap, flash loans are loans that can be borrowed without collateral and are borrowed and repaid within the same blockchain transaction.

A common use case for flash loans is arbitrage. If someone can see a mispricing for example 1 DAI = $1 USDC on Balancer but 1 DAI = $0.95 USDC on Curve. A flash loan would allow someone for example to instantaneously borrow 100,000 DAI on AAVE, buy 100,000 USDC on Balance and sell for 105,263 DAI on Curve (100,000/0.95). After repaying the AAVE loan of 100,000 DAI with 0.09% flash loan fee (i.e. repaying back 100,090 DAI) that would leave the would-be arbitrageur a profit of 5,173 DAI (105,263-100,090).

How do borrowing and lending work in DeFi? (1)

The open-access aspect of DeFI means anyone can avail themselves of this mispricing opportunity, whereas in traditional finance many arbitrage opportunities can go missed if people don’t have the access to funds or the ability to combine both buy and sell legs of the arbitrage in a timely manner. It is worth bearing in mind there are other considerations when carrying out arbitrage such as slippage, gas fees and miner extractable value (MEV) front-running risks.

Another main use case for flash loans is refinancing. The concept of debt refinancing will be familiar to those who have moved a mortgage from one institution to another. In the DeFi space perhaps a user at Compound has borrowed DAI at an interest rate of 10% but sees that Aave are suddenly offering a loan at only 5%. A flash loan can allow the user to simultaneously pay back the loan on Compound withdraw the collateral, deposit collateral at Aave and take out a loan there at the cheaper 5% rate. Also if the user has a leveraged trading position from borrowed funds that is also lent out at Compound, users can refinance this trading position instantaneously without having to liquidate or unwind both trades. In this example, the user has transferred their loan (and collateral) from Compound to Aave.

A similar use case is collateral swapping whereby a user who has taken out a loan on Compound with ETH as collateral, with a flash loan can pay back the loan, withdraw the ETH, swap the ETH for BAL on Uniswap and retake the loan at Compound but this time with BAL as deposited collateral. In this example the loan at Compound is essentially still the same, it has just been refinanced with BAL as the supplied collateral instead of ETH.

Another use case is self-liquidation. If for example, the value of your collateral in ETH is decreasing to levels close to where the protocol will auto-liquidate your loan of token DAI, you may wish to take out a flash loan to close out the loan to avoid the liquidity fee from the protocol (who liquidates your collateral at a discount). If in this example you don’t have the DAI funds to pay off your loan and you do not wish to acquire more, you can take a flash loan in Dai to pay off your loan and reclaim your ETH deposit minus flash loan fee.

The main advantages of being a DeFI lender are the attractive rates of return, often 5-30% annualised yield compared to around 1% in fiat currencies. This allows crypto assets to earn a passive income on their holdings without liquidating. Another reason to engage in DeFi lending is to avoid capital gain tax on crypto holdings. By not selling crypto holdings, keeping potential gains unrealised and lending on DeFI platforms to avoid taxable events can sometime be an incentive.

Further Reading and Viewing:

DeFi Decoded – Lending and Borrowing of Crypto Assets, Ninepoint Partners YouTube video

DeFi and the Future of Finance, Forthcoming August 2021, Book by Ashwin Ramachandran, Campbell Harvey, and Joey Santoro

© RMIT 2021

Want to keep learning?This content is taken from RMIT University online courseDecentralised Finance: Blockchain, Ethereum, and The Future of BankingView Course
How do borrowing and lending work in DeFi? (2024)
Top Articles
What Is Staking In Crypto: Advantages And How Does It Work?
What Happens if You Can’t Pay for Funeral Home Services?
Whas Golf Card
Walgreens Harry Edgemoor
The Daily News Leader from Staunton, Virginia
Costco The Dalles Or
Yi Asian Chinese Union
Snarky Tea Net Worth 2022
Best Private Elementary Schools In Virginia
Walgreens On Nacogdoches And O'connor
How Many Cc's Is A 96 Cubic Inch Engine
Shooting Games Multiplayer Unblocked
7440 Dean Martin Dr Suite 204 Directions
Most McDonald's by Country 2024
Condogames Xyz Discord
New Stores Coming To Canton Ohio 2022
St Maries Idaho Craigslist
Milanka Kudel Telegram
Never Give Up Quotes to Keep You Going
Cincinnati Adult Search
Lost Pizza Nutrition
Bidevv Evansville In Online Liquid
Elbert County Swap Shop
Meridian Owners Forum
EVO Entertainment | Cinema. Bowling. Games.
Big Boobs Indian Photos
Miller Plonka Obituaries
Sacramento Craigslist Cars And Trucks - By Owner
Kiddie Jungle Parma
Homewatch Caregivers Salary
Pokemmo Level Caps
140000 Kilometers To Miles
Leland Nc Craigslist
Bozjan Platinum Coins
Puerto Rico Pictures and Facts
Tds Wifi Outage
How To Get Soul Reaper Knife In Critical Legends
Stafford Rotoworld
Heelyqutii
One Main Branch Locator
Shipping Container Storage Containers 40'HCs - general for sale - by dealer - craigslist
Tyco Forums
Human Resources / Payroll Information
Wood River, IL Homes for Sale & Real Estate
Egg Inc Wiki
Is Chanel West Coast Pregnant Due Date
German American Bank Owenton Ky
Guy Ritchie's The Covenant Showtimes Near Look Cinemas Redlands
Congressional hopeful Aisha Mills sees district as an economical model
Sunset On November 5 2023
Affidea ExpressCare - Affidea Ireland
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 6172

Rating: 4.7 / 5 (57 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.