Why Liquidation Exists
Liquidation is the enforcement mechanism that keeps DeFi lending protocols solvent. Because borrowing in DeFi is overcollateralized and pseudonymous, there is no legal recourse if a borrower's collateral value drops below their outstanding debt. Without liquidation, declining collateral prices would create bad debt — loans where the collateral is worth less than the amount owed — which would ultimately result in losses for depositors.
Liquidation ensures that undercollateralized positions are closed before they become insolvent, protecting the protocol's liquidity providers. It operates as an automated, incentive-driven process: external actors (liquidators) are paid a bonus to identify and close risky positions, creating a competitive market for protocol risk management.
Health Factor: The Core Metric
Every borrowing position in a DeFi lending protocol has a health factor that quantifies its distance from liquidation. The health factor is calculated as:
Health Factor = (Collateral Value in USD × Liquidation Threshold) / Total Debt in USD
Consider a concrete example: A user deposits $10,000 worth of ETH (liquidation threshold: 82.5%) and borrows $5,000 USDC.
Health Factor = ($10,000 × 0.825) / $5,000 = 1.65
This position is healthy. If ETH's price drops by 40% to $6,000 collateral value:
Health Factor = ($6,000 × 0.825) / $5,000 = 0.99
The health factor is now below 1.0, and the position is eligible for liquidation. The practical interpretation of health factor values:
- HF > 2.0 — Conservative position with significant buffer against price declines.
- 1.5 < HF < 2.0 — Moderate risk, comfortable for most market conditions.
- 1.0 < HF < 1.5 — Elevated risk, vulnerable to sharp price movements.
- HF ≤ 1.0 — Eligible for liquidation. Position is undercollateralized.
LTV vs. Liquidation Threshold
Two related but distinct parameters govern borrowing limits and liquidation triggers:
- Loan-to-Value (LTV): The maximum percentage of collateral value that can be borrowed at the time of borrowing. For ETH on Aave V3, this is typically 80%.
- Liquidation Threshold (LT): The collateral ratio at which liquidation becomes possible. For ETH on Aave V3, this is typically 82.5–83%.
The gap between LTV and LT creates a buffer zone. A user who borrows the maximum amount (at the LTV limit) starts with a health factor slightly above 1.0. This small buffer means any adverse price movement will trigger liquidation. Conservative borrowers maintain a health factor of 1.5 or higher, which requires borrowing well below the maximum LTV.
The Liquidation Process
Step-by-Step Mechanics
- Health factor drops below 1.0 due to collateral price decline, interest accrual, or a combination of both.
- Liquidation becomes permissible: The protocol allows any external address to call the liquidation function on the undercollateralized position.
- Liquidator identifies the position: Automated bots continuously monitor health factors across all active positions and detect liquidation-eligible accounts.
- Liquidator repays a portion of the debt: On Aave, a liquidator can repay up to 50% of the borrower's outstanding debt (the close factor). On Compound, the close factor is typically 50% as well.
- Liquidator receives collateral at a discount: In exchange for repaying the debt, the liquidator receives the equivalent value of the borrower's collateral plus a liquidation bonus (penalty from the borrower's perspective).
- Position health improves: After partial liquidation, the borrower's health factor increases because debt has been reduced while only a proportional amount of collateral was seized.
Liquidation Penalty/Bonus
The liquidation bonus (also called the liquidation penalty) is the economic incentive that motivates liquidators to perform their function. Typical values:
| Asset Type | Liquidation Bonus (Aave V3) | Example |
|---|---|---|
| Stablecoins | 4–5% | Repay $1,000 debt, receive $1,050 collateral |
| Major assets (ETH, WBTC) | 5–6% | Repay $1,000 debt, receive $1,060 collateral |
| Mid-cap tokens | 7.5–10% | Repay $1,000 debt, receive $1,100 collateral |
| Volatile/illiquid assets | 10–15% | Repay $1,000 debt, receive $1,150 collateral |
Higher liquidation bonuses for volatile assets compensate liquidators for the increased risk of price movement during the liquidation transaction and the potentially higher slippage when selling seized collateral.
Liquidation Bots
In practice, nearly all DeFi liquidations are performed by automated bots operated by sophisticated actors. These bots continuously monitor the blockchain for liquidation opportunities and compete to execute them as quickly as possible. The liquidation bot ecosystem has evolved significantly:
Architecture
- On-chain monitoring: Bots index all active positions across lending protocols, tracking collateral values and debt amounts in real-time using archive nodes or subgraph indexers.
- Price feed monitoring: Bots watch oracle updates (Chainlink price feeds, Uniswap TWAP updates) to predict which positions will become liquidatable before the protocol's own state reflects the new prices.
- MEV integration: Competitive liquidators use Flashbots or similar MEV infrastructure to submit liquidation transactions directly to block builders, avoiding the public mempool where they could be front-run by other liquidators.
- Flash loan funding: Many liquidation bots use flash loans to fund liquidations, eliminating the need to hold large capital reserves. The bot flash-borrows the repayment amount, executes the liquidation, receives discounted collateral, sells it, repays the flash loan, and keeps the profit.
Competition and Profitability
Liquidation has become intensely competitive. Multiple bots often detect the same opportunity simultaneously, leading to priority gas auctions (PGAs) or Flashbots bundle competition. This competition has compressed margins significantly — the theoretical 5–10% liquidation bonus is reduced by gas costs, DEX slippage when selling seized collateral, and MEV tips paid to block builders for transaction inclusion priority.
Cascade Liquidations
One of the most dangerous systemic risks in DeFi lending is cascade (or recursive) liquidation. This occurs when:
- A sharp price decline triggers liquidations of multiple positions simultaneously.
- Liquidators sell seized collateral on DEXs, creating additional selling pressure.
- The additional selling pressure further depresses the collateral asset's price.
- The lower price triggers more liquidations, creating a feedback loop.
Cascade liquidations are particularly dangerous for assets with limited on-chain liquidity, where liquidator sales can meaningfully move the price. They are amplified when many borrowers use similar collateral types and borrow at similar LTV ratios, creating concentrated liquidation thresholds. During severe market downturns, cascade liquidations can cause prices to overshoot fundamental values, creating temporary dislocations.
Self-Liquidation Strategies
Sophisticated borrowers can avoid the liquidation penalty by self-liquidating their positions before external liquidators intervene. The process typically involves:
- Flash loan enough of the borrowed asset to fully repay the outstanding debt.
- Repay the debt on the lending protocol, freeing the collateral.
- Withdraw the collateral from the protocol.
- Sell enough collateral on a DEX to repay the flash loan plus fees.
- Retain the remaining collateral, which would otherwise have been partially seized by a liquidator.
This saves the borrower the full liquidation penalty (5–10% of the liquidated amount), minus the flash loan fee (0.05% on Aave) and DEX trading fees. For large positions, the savings can be substantial. Several DeFi tools and services (such as DeFi Saver and Instadapp) offer automated self-liquidation and position management.
Protecting Your Positions
Active position management is critical for DeFi borrowers. Strategies to avoid involuntary liquidation include:
- Conservative LTV: Borrow significantly below the maximum LTV. Maintaining a health factor of 1.5–2.0 or higher provides meaningful buffer against price volatility.
- Health factor monitoring: Use on-chain monitoring tools, push notification services, or protocol-specific dashboards to track health factors continuously.
- Automated protection: Services like DeFi Saver offer automated "repay" triggers that add collateral or repay debt when health factors drop below a user-defined threshold. These operate through smart contract automation (using Chainlink Keepers or Gelato Network).
- Diversified collateral: Where supported, using multiple collateral types reduces exposure to a single asset's price decline.
- Stable borrowing: Borrowing stablecoins (USDC, DAI) rather than volatile assets eliminates the risk of debt value increasing, limiting liquidation risk to collateral price declines.
- Stop-loss positions: Setting predetermined exit points and unwinding positions before market conditions deteriorate significantly.
Historical Liquidation Events
Black Thursday (March 12, 2020)
The COVID-19 market crash triggered a 40%+ ETH price decline in a single day, causing over $8 million in MakerDAO liquidations. Network congestion pushed gas prices to extreme levels, and some liquidation auctions completed with zero-DAI bids because keepers (liquidators) could not submit competitive transactions in time. MakerDAO accumulated approximately $5.4 million in bad debt, requiring an emergency MKR token auction to recapitalize the system. This event directly led to the development of Maker's Liquidations 2.0 (Dutch auction) system.
May 2021 Crash
A sharp market correction triggered over $600 million in liquidations across Aave, Compound, and MakerDAO in a 24-hour period. Ethereum network congestion again created challenges for liquidation bots, though the system performed significantly better than during Black Thursday due to protocol upgrades and a more mature liquidator ecosystem.
LUNA/UST Collapse (May 2022)
The depegging of UST and collapse of LUNA triggered billions in liquidations across DeFi. On the Anchor protocol (Terra's lending market), over $10 billion in deposits were withdrawn as LUNA's price spiraled. Cross-chain liquidations on Ethereum-based protocols were triggered as holders sold LUNA-adjacent assets, creating cascading effects across multiple markets. This event demonstrated how a single protocol's failure can propagate through the broader DeFi ecosystem.
June 2022 stETH Discount
When stETH traded at a persistent discount to ETH (reaching ~5%), leveraged stETH/ETH positions on Aave faced significant liquidation pressure. Large positions held by entities like Three Arrows Capital and Celsius were liquidated or forcibly unwound, contributing to broader market instability. Aave's partial liquidation mechanism and high liquidity for ETH-denominated assets helped prevent systemic protocol damage.
The Future of Liquidation Design
Current liquidation mechanisms, while functional, have known inefficiencies: liquidation bonuses transfer value from borrowers to liquidators, cascade effects amplify price movements, and gas competition wastes resources. Several design innovations are being explored:
- Gradual liquidation: Instead of discrete liquidation events at a fixed threshold, gradually selling collateral as health factors decline, reducing market impact.
- Protocol-owned liquidation: Protocols using their own reserves to execute liquidations, eliminating the bonus paid to external liquidators.
- Cross-chain liquidation: As lending protocols deploy across multiple chains, ensuring that liquidation mechanisms function reliably across bridges and interoperability layers.
- Account abstraction integration: Enabling automated position management at the wallet level, allowing users to define liquidation prevention strategies natively.
Key Takeaways
- Liquidation is the core enforcement mechanism of DeFi lending, converting economic incentives (liquidation bonuses) into protocol solvency guarantees.
- Health factor = (Collateral × Liquidation Threshold) / Debt. A health factor below 1.0 triggers liquidation eligibility.
- The LTV-to-liquidation-threshold gap creates a critical buffer zone; borrowing at maximum LTV provides minimal protection against adverse price movements.
- Liquidation bots are sophisticated, competitive systems that use MEV infrastructure, flash loans, and real-time oracle monitoring to capture liquidation opportunities.
- Cascade liquidations represent a systemic risk that protocols mitigate through partial liquidation, debt ceilings, and diversified collateral requirements.
- Self-liquidation via flash loans saves the liquidation penalty and should be part of any active borrower's risk management toolkit.
- Historical events (Black Thursday, LUNA collapse) demonstrate that liquidation mechanisms are tested most severely during extreme market stress, when network congestion and liquidity constraints are at their worst.