Lending & Borrowing
Liquidation
The forced sale of a borrower's collateral by a lending protocol when the position falls below the required collateralization threshold.
Bad debt is outstanding loan value in a DeFi protocol that cannot be recovered because the borrower's collateral no longer covers the debt.
Bad debt in DeFi lending is outstanding borrowed value that can no longer be recovered because the borrower's collateral has fallen below the value of their debt. It represents a direct, realized loss to the lending protocol and, ultimately, to the depositors whose funds were lent out. Bad debt is one of the most critical risk factors in decentralized lending, and how a protocol prevents, manages, and absorbs it is a key indicator of its overall safety and design quality.
Unlike traditional banking where bad debt accumulates gradually through borrower defaults over months or years, DeFi bad debt typically materializes in sudden bursts during extreme market events — making it both harder to predict and more damaging when it occurs.
Bad debt arises when the liquidation mechanism fails to close an undercollateralized position before the collateral's value drops below the outstanding debt. The typical sequence unfolds during sharp market downturns.
First, a rapid price decline pushes a borrower's health factor below the liquidation threshold. Liquidation bots detect the opportunity and attempt to repay the borrower's debt in exchange for discounted collateral. However, several factors can prevent liquidation from completing in time.
Network congestion is the most common culprit. During market crashes, blockchain networks experience surges in transaction volume. Gas prices spike as traders rush to adjust positions, and liquidation transactions may be delayed or fail entirely. By the time a liquidation transaction is finally processed, the collateral may have fallen so far that even seizing all of it does not cover the outstanding debt.
Oracle delays can compound the problem. If price feeds lag behind actual market prices — whether due to update frequency limitations or network congestion affecting oracle transactions — the protocol may not recognize that a position is undercollateralized until the gap has already grown too large to recover.
Asset illiquidity is another factor. If the collateral asset has thin trading volume, liquidators may struggle to sell the seized collateral without incurring massive slippage, making the liquidation economically unattractive. When no liquidator is willing to take on the trade, the position sits undercollateralized and continues deteriorating.
Bad debt events have punctuated DeFi history. During the market turmoil of November 2022, Aave v2 accumulated approximately $1.7 million in bad debt from CRV-collateralized positions when a large borrower's position could not be fully liquidated due to insufficient on-chain liquidity for the collateral asset. The incident highlighted how concentrated positions in illiquid assets can overwhelm even well-designed liquidation mechanisms.
Earlier, in March 2020 ("Black Thursday"), MakerDAO experienced a bad debt event when ETH prices crashed over 50% in hours. Network congestion caused many liquidation auctions to fail, and some vaults were liquidated with zero bids — meaning the protocol seized the collateral but received nothing in return. The resulting bad debt of approximately $6 million was covered by minting and auctioning new MKR governance tokens.
When bad debt accumulates in a lending pool, it creates a shortfall: the protocol owes depositors more than it actually holds. If the bad debt is small relative to the pool size, depositors may not notice immediately — withdrawals continue as normal because the pool still has sufficient liquidity from other borrowers' repayments.
However, if bad debt grows large enough or depositors become aware of the shortfall, it can trigger bank-run dynamics. Depositors rush to withdraw their funds before the pool is depleted, and those who withdraw early receive their full balance while later withdrawers may face losses. This is one of the most dangerous feedback loops in DeFi lending.
Lending protocols deploy multiple layers of defense against bad debt. Conservative loan-to-value ratios build a buffer between the collateral value and the debt, giving liquidators more time and room to act before a position becomes underwater.
Insurance funds (also called safety modules or reserve pools) accumulate a portion of protocol revenue as a backstop. When bad debt occurs, these reserves can cover the shortfall without impacting depositors. Aave's Safety Module, for example, stakes AAVE tokens that can be slashed to cover protocol losses.
Liquidation incentives — the liquidation bonus offered to liquidators — ensure that liquidating underwater positions is profitable, motivating fast action during market stress. Higher bonuses attract more liquidators but also mean more loss for the borrower.
Some protocols implement debt socialization as a last resort, spreading unrecoverable losses proportionally across all depositors in the affected pool rather than letting them concentrate on the last withdrawers. While no depositor wants to absorb losses, socialization is generally considered fairer than a first-come-first-served liquidation of the pool.
Related Terms
Lending & Borrowing
The forced sale of a borrower's collateral by a lending protocol when the position falls below the required collateralization threshold.
Risk & Security
An insurance fund is a protocol-held reserve that absorbs bad debt and liquidation shortfalls to protect depositors from losses.
Lending & Borrowing
Health factor is a numeric score that indicates how close a DeFi lending position is to being liquidated.
Lending & Borrowing
The ratio between the amount borrowed and the value of the collateral securing the loan, expressed as a percentage.