DeFi Lending: Liquidations and Collateral (2024)

In TradFi, when someone defaults on a loan, the creditor has the right to seize assets or garnish wages.

In DeFi, when someone defaults on a loan it isn’t possible to take assets from their wallet. To enforce repayment, users must deposit a larger notional value of cryptocurrency than they are borrowing.

For example, a user must deposit $1,000 of Ether before they can borrow $800 of USDC. The Ether in this case is called the “collateral.” Depositing more collateral than the borrowed amount is called “overcollateralization”.

Motivation for DeFi Borrowing

A common use for DeFi borrowing is leverage. One can deposit $1000 of ETH, borrow $800 of USDC, then use the USDC to buy $800 ETH. Now they effectively own $1,800 ETH and will have significantly more upside if ETH rises in price (along with more risk on the downside).

Converting ETH to dollars is considered a taxable event in some jurisdictions, so borrowing USDC using ETH as collateral (then paying the loan off later) may be cheaper than swapping the assets.

More generally, taking a loan against an asset (a car, house, etc) for short term liquidity needs is fairly common, so DeFi lending protocols help fulfill this use case.

Collateral factor

The collateral factor is the percentage of the collateral value that can be borrowed. In the example above, the collateral factor is 80%.

Specifically

DeFi Lending: Liquidations and Collateral (1)

Collateral factor is expressed as a percentage. Generally, more volatile and less liquid assets require a lowercollateral factor. For example, for extremely volatile assets, the contract might require someone to deposit $1,000 of collateral to borrow $500 if the assets are subject to rapid price swings. This is a 50% collateral factor.

On the flip side, if assets are very liquid and stable, the contract might tolerate a very high collateral factor, say 90%.

The higher the collateral factor required, the more competitive the lending protocol because borrowers want to put down as little collateral as possible relative to the loan they are trying to take out.

The lower the collateral factor, the higher the margin of safety for the lender. The relationship between the collateral factor and margin of safety is illustrated in the following GIF.

Loan to Value (LTV)

The loan to value is the currentvalue of the loan as a percentage of the collateral value. For example, the required collateral factor may be 80%, but the value of the assets and collateral may fluctuate such that the ratio of the asset value to the collateral value becomes 70%.

Liquidation factor

If the loan to value gets too close to 100%, there is a risk that the amount of money borrowed will exceed the value of the collateral causing the lender to lose out. When the collateral is worth less than the loan, the LTV exceeds 100% and we have bad debtand the protocol risks becoming insolvent(unable to pay back the lenders).

Example:Alice took out an $800loan against her collateral asset worth $1000. Alice would withdraw $800 fromthe protocol. The lender currently has a buffer of $200.

DeFi Lending: Liquidations and Collateral (3)

Now, say after 20 blocks, the price of the collateral asset went down 30%.Now worth $700.

DeFi Lending: Liquidations and Collateral (4)

Since Alice took out a $800 loan and her collateral asset is now worth $700 , she would have no motivation to pay it back.

The protocol which holds her asset has to pay the lenders back $800 but only has $700 worth of asset, incurring a “bad debt” of $100.

To prevent this from happening, assets have a liquidation factor — a threshold percentage at which the collateral can be forcibly taken from the borrower.

The liquidation factor is always a higher percentage than the collateral factor. If not, the borrower could get liquidated the moment they borrow a loan. For example, the collateralization factor might be 80% but the liquidation factor at 90%. Setting the liquidation factor too close to 100% increases the risk of bad debt as the collateral factor might exceed 100% at the time of liquidation.

How LTV increases

There are three ways for the loan-to-value to increase and to approach the liquidation factor.

  1. The loan accrues interest and has a larger notional value

  2. The collateral falls in value

  3. The borrowed asset rises in value

1) Example: the loan accrues interest and has a larger notional value

A user deposits $1,000 of ETH and borrows $800 of USDC. The interest accumulates until the loan balance is $900 USDC. If the liquidation factor is 90%, it is subject to liquidation.

DeFi Lending: Liquidations and Collateral (5)

2) Example: the collateral falls in value

A user deposits $1,000 of ETH and borrows $800 of USDC. The smart contract has set a liquidation factor of 90%. If the ETH drops to $888.88 in value, then the liquidation will be triggered as the LTV will be 90%.

DeFi Lending: Liquidations and Collateral (6)

3) Example: rising debt value

A user deposits $1,000 ETH and borrows $800 USDC. USDC depegs and becomes worth $1.2 due to extreme market volatility. Now the notional value of the debt is $960 (800 * 1.2). Since the LTV is now 96%, it is subject to liquidation.

Liquidation mechanism

The exact mechanism of the liquidation varies by protocol. In a simple case, the liquidator pays off the USDC loan of the borrower and receives a portion of the collateral at a discount.

Liquidation is usually permissionless. Anyone call the function on the smart contract to trigger the liquidation.

Compound V3’s mechanism

Compound V3 does not require the liquidator to pay off the USDC loan. Rather, it uses USDC that has not been lent out (un-utilized USDC) to pay off the loan. Then, the protocol becomes the owner of the collateral. This transaction is called “absorbing” the debt. Now the debt has been paid off from the reserves, and the protocol is in possession of excess collateral. Excess collateral is immediately put on sale at a discount to the oracle price.

A liquidator in Compound V3 will first call absorb()on the underwater loan to absorb the collateral into the protocol, and then immediately call buyCollateral()in the same transaction. To incentivize liquidators, collateral can usually be bought at a discount to current market prices.

There is no financial incentive for calling absorb()in Compound V3 (though governance could program it in). However, there is a financial incentive for buying collateral at a discount, so MEV liquidators are constantly hunting for opportunities to absorb debt and subsequently buy the newly available collateral.

Example liquidation

Compound V3 has $100,000 in USDC deposited by lenders. A borrower deposits $50,000 of collateral in LINK and borrows $25,000 USDC. Now $75,000 USDC is idle, sitting unused in Compound V3. The LINK value drops to $30,000 causing the collateral to go underwater and a liquidator calls absorb(). After absorb()is called, the balance in Compound V3 is still $75,000 (because the delinquent borrower holds $25,000). However, the protocol now takes possession of the $30,000 LINK the borrower deposited. The liquidator will purchase the $30,000 LINK for $28,000 USDC due to the discount. The 28,000 USDC is added to protocol’s 75,000. the Now the protocol has $103,000 USDC and no collateral.

Considerations for changing the liquidation factor while loans are active

If the protocol has a mechanism to change the liquidation factor, borrowers need to get sufficiently advanced warning. If the liquidation factor changes suddenly with no notice, then they will get unfairly liquidated.

Lending protocols usually do not seize the entire collateral

In practice, lending protocols would not cause a 100% loss of collateral for the borrower in the example above. In practice, they would impose something like a 10% “liquidation penalty” and only give a portion of that to the liquidator.

Example liquidation penalty

Using the same values as the previous example, the borrower is liquidated when the LINK value has dropped to $30,000. The borrower borrowed 25,000 USDC. When the liquidator pays off the 25,000 USDC loan, the borrower is subject to a 10% liquidation penalty, meaning they lose out on 10% of the $30,000, or $3000. Another $25,000 is subtracted from the LINK to account for the unpaid loan. This leaves 30k - 3k - 25k = 2k in USDC that is credited to the borrower’s account.

Storefront Price

Typically, the liquidation penalty is split between the liquidator and the protocol. The portion that goes to the liquidator is a ratio defined by the what Compound V3 calls the “storefront price.” In the example above, if the storefront price is 50%, then 1,500 USDC goes to the liquidator and 1,500 USDC goes to the protocol, since the liquidation penalty was 3,000 USDC.

Danger of Small Loans

If the amount of collateral deposited is too low, then the liquidation penalty that goes to the liquidator might not pay for the gas of the transaction to liquidate the borrower. With no incentive to liquidate loans that are close to getting underwater, then the protocol will accumulate bad debt. To avoid this problems, lending protocols generally enforce that loans have a minimum size.

Danger of Large Loans

Liquidating a large amount of collateral can lead to price impacts where the recovered amount is less than the borrowed amount.

Example price impact during large liquidations

A borrower has deposited $10 billion of ETH to a lending contract and has borrowed 9 billion dollars of USDC. The price of ETH drops to $9 billion. If liquidators try to sell $9 billion dollars of ETH on the open market, there is a realistic possibility this will drive the price down so much that they end up selling it for $8 billion. This results in a $1 billion loss to the protocol because the borrower has withdrawn $9 billion USDC but the liquidators have obtained $8 billion from the sale of ETH.

It isn’t important that the 10 billion dollars of ETH collateral is deposited by one borrower. If 10 borrowers with 1 billion dollars of ETH collateral each get liquidated simultaneously, the effect is the same.

The Supply Cap in Compound V3

To avoid the issue described above, Compound V3 imposes a per-asset supplyCapof the maximum amount of collateral it will hold. This parameter is set by governance based on how much of the collateral can be liquidated without too much adverse price impact.

Danger of Flash Crashes

Any time collateral is involved, the lender must assume the price will not fall too quickly. This is a risk that cannot be completely eliminated as flash crashes are always possible.

How are risk parameters set?

It is not possible to 100% eliminate risk in DeFi lending. For example, under a very extreme situation where prices instantaneously crash 90%, then the lenders will lose out. There is always a tradeoff in risk-return.

The protocol could enforce a liquidation threshold of 10%, in which case the margin of safety is significant, but nobody would borrow from the protocol. Lending protocols have two conflicting goals to optimize for: capital efficiency and risk. The more conservative the risk factors, the less competitive the loan offerings are.

Although parameters are set by governance, the parameters are usually recommended by consulting agencies that specialize in financial models.

Gauntletcurrently suggests the risk parameters for AAVE and Compound. They maintain risk dashboards for these protocols.

Gauntlet attempts to predict the worst case liquidation scenarios at times of market stress and set the parameters such that Compound will not incur bad debt during all the liquidations. Factors they consider include asset volatility and correlation of asset prices during normal times and times of market stress. You can read here about their risk methodology.

At the time of writing, Gauntlet renews their contract with Compound annually at a rate of 2 million dollars per year.

Other vulnerabilities

There are other vulnerability vectors for lending contracts that we do not discuss here, as we are solely focused on topics related to collateral and liquidation. Please see our article on smart contract securityfor other lending vulnerability vectors.

Conclusion

Loans in DeFi must be overcollateralized. The ratio of the loan to collateral value that the protocol will accept to initiate a loan is the collateralization ratio. The liquidation ratio is the ratio of values at which the loan will be liquidated. Smart contracts cannot initiate transactions themselves, so they rely on liquidators to buy the collateral at a discount. Loans cannot be too small relative to gas prices or too high relative to available liquidity, otherwise there will be issues liquidating bad debt.

Learn more with RareSkills

Please see our blockchain bootcamp to learn more technical web3 topics.

DeFi Lending: Liquidations and Collateral (2024)

FAQs

What is collateral liquidation in DeFi? ›

DeFi liquidation is a process that occurs when the value of a borrower's collateral in a DeFi agreement falls below a certain threshold. This process is a potential risk for both parties involved due to the volatility of cryptocurrency values.

What is DeFi lending collateral? ›

The higher the quality of collateral the higher the amount can be borrowed e.g. if ETH has a 75% collateral factor and 10 ETH is put down as collateral, the borrower can borrow an amount in cypto worth up to 7.5 ETH. Borrowers can put down several different coins as deposit each with differing collateral factors.

What is a DeFi lending? ›

What is Defi lending? Defi lending platforms aim to offer crypto loans in a trustless manner, i.e., without intermediaries and allow users to enlist their crypto coins on the platform for lending purposes. A borrower can directly take a loan through the decentralized platform known as P2P lending.

What is collateral factor DeFi? ›

Collateral Factor is the maximum amount a user can borrow, represented in percentages, based on the total amount of assets supplied. It is also represented by the loan to value ratio (LTV) for various DeFi lending and borrowing protocols, as well as traditional financial institutions.

What is liquidation of collateral? ›

Collateral liquidation is the sale of a part of the collateral to repay the loan. There are a few cases when it may occur. When you get a loan with cryptocurrency as collateral, you need to keep in mind a potential liquidation risk that may occur.

What is liquidation in lending? ›

Introduction. A liquidation is a process that occurs when a borrower's health factor goes below 1 due to their collateral value not properly covering their loan/debt value. This might happen when the collateral decreases in value or the borrowed debt increases in value against each other.

Is DeFi lending risky? ›

Faulty smart contracts are among the most common risks of DeFi. Malicious actors eager to steal users' funds can exploit smart contracts that have weak coding.

Why would anyone borrow from DeFi? ›

DeFi lending and borrowing markets open up significant opportunities for lenders and borrowers – not only because of the efficiency and trustlessness they offer users but also because they give more people in regions across the world the ability to use their money – to earn interest or receive capital – in ways they ...

What is DeFi lending income? ›

DeFi lending platforms enable you to earn interest by lending out your crypto holdings to borrowers in need. These borrowers can access crypto loans at competitive rates compared to traditional financial institutions. Platforms like Aave and Compound are leading examples of DeFi lending and borrowing protocols.

How to start DeFi lending? ›

To get started lending on a DeFi platform, first go to a reputable lending protocol such as Aave. Connect your web3 wallet to the dApp. Lending platforms will have a list of cryptoassets you can deposit. Each cryptoasset will have a different APY.

What is the best DeFi lending platform? ›

Top 10 Defi Lending Platforms In The Market
  • Aave (AAVE) This platform is known for offering special loans called “flash loans” that don't need collateral and happen instantly. ...
  • Compound Finance (COMP) ...
  • MakerDAO (MKR) ...
  • Synthetix (SNX) ...
  • Curve Finance (CRV) ...
  • Venus Protocol (XVS) ...
  • Cream Finance (CREAM) ...
  • Balancer (BAL)

How do DeFi lending platforms make money? ›

And what about DeFi lending platforms? Well, they're just like your everyday Main Street bank, which takes in money in the form of customer deposits and then lends that money out to customers who want loans. Depositors provide the bank with the necessary liquidity – and in return, they earn interest.

Is DeFi high risk? ›

One of the most common risks of DeFi investing is impermanent loss. This happens due to the volatile nature of cryptocurrencies. During DeFi lending, you must lock your crypto in liquidity pools. If there is a change in the price of your assets after depositing them, it leads to impermanent loss.

How does collateral work? ›

Collateral secures a loan, minimizing the risk for the lender — but not for the borrower. Collateral is a valuable asset (like a car, house or even cash) you can pledge to secure a loan. If you fail to repay your loan, the lender can seize whatever you've put up as collateral.

What are the risks of DeFi in finance? ›

Pitfalls In The DeFi Ecosystem: Yet, within the promise of financial liberation, myriad challenges loom. Smart contract vulnerabilities, arising from coding errors and security lapses, represent a significant threat to the integrity of DeFi platforms.

What is DeFi liquidation in crypto? ›

Decentralized finance (DeFi) liquidation occurs when the value of a borrower's collateral on a platform drops below a predefined threshold, triggering an automatic sale. This process helps keep DeFi platforms stable by making sure loans have enough collateral to cover them.

What is liquidation in cryptocurrency? ›

Crypto liquidation refers to the closing of a trading position by converting a cryptocurrency asset to fiat currency or stablecoins, often executed at levels less favorable than the current market price. This happens when a trader has insufficient funds to keep a leveraged trade open.

What is the liquidation value of collateral? ›

Collateral Liquidation Value means, at any time, while the Existing Senior Notes or the Notes are outstanding, the value that would be received for the Collateral in a sale of the Collateral by a seller who is compelled to sell the Collateral on an "as is," "where is" basis with only a limited time to find a purchaser, ...

What is the liquidity of collateral? ›

Liquidity is the ability to meet cash and collateral obligations at a reasonable cost.

Top Articles
Office Manager
Brave Browser vs Chrome 2023 - Read This Before Switching Over To Brave!
Diario Las Americas Rentas Hialeah
Jailbase Orlando
Identifont Upload
Unitedhealthcare Hwp
Otterbrook Goldens
How Much Is 10000 Nickels
Nation Hearing Near Me
State Of Illinois Comptroller Salary Database
litter - tłumaczenie słowa – słownik angielsko-polski Ling.pl
Chastity Brainwash
Luna Lola: The Moon Wolf book by Park Kara
Moparts Com Forum
Arboristsite Forum Chainsaw
Gemita Alvarez Desnuda
Prosser Dam Fish Count
Roof Top Snipers Unblocked
Csi Tv Series Wiki
Missouri Highway Patrol Crash
3476405416
Big Lots Weekly Advertisem*nt
Quest: Broken Home | Sal's Realm of RuneScape
At&T Outage Today 2022 Map
Understanding Gestalt Principles: Definition and Examples
Sandals Travel Agent Login
Does Hunter Schafer Have A Dick
Wiseloan Login
The Banshees Of Inisherin Showtimes Near Broadway Metro
Pain Out Maxx Kratom
Lovindabooty
11526 Lake Ave Cleveland Oh 44102
FAQ's - KidCheck
2015 Kia Soul Serpentine Belt Diagram
Enduring Word John 15
Black Lion Backpack And Glider Voucher
They Cloned Tyrone Showtimes Near Showbiz Cinemas - Kingwood
Co10 Unr
Craigslist Free Stuff San Gabriel Valley
Royal Caribbean Luggage Tags Pending
1987 Monte Carlo Ss For Sale Craigslist
Diana Lolalytics
How to Play the G Chord on Guitar: A Comprehensive Guide - Breakthrough Guitar | Online Guitar Lessons
Xemu Vs Cxbx
Taylor University Baseball Roster
Wordle Feb 27 Mashable
Cabarrus County School Calendar 2024
Phmc.myloancare.com
Glowforge Forum
Craigslist Monterrey Ca
Latest Posts
Article information

Author: Jeremiah Abshire

Last Updated:

Views: 5964

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Jeremiah Abshire

Birthday: 1993-09-14

Address: Apt. 425 92748 Jannie Centers, Port Nikitaville, VT 82110

Phone: +8096210939894

Job: Lead Healthcare Manager

Hobby: Watching movies, Watching movies, Knapping, LARPing, Coffee roasting, Lacemaking, Gaming

Introduction: My name is Jeremiah Abshire, I am a outstanding, kind, clever, hilarious, curious, hilarious, outstanding person who loves writing and wants to share my knowledge and understanding with you.