Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Auto-Liquidation

An automated, non-discretionary process that forcibly closes an undercollateralized position to repay its debt and protect the protocol from losses.
Chainscore © 2026
definition
DEFINITION

What is Auto-Liquidation?

A precise, technical explanation of the automated process that enforces collateralization ratios in DeFi lending protocols.

Auto-liquidation is an automated, trustless mechanism in decentralized finance (DeFi) that forcibly closes an undercollateralized loan position by selling a borrower's deposited collateral to repay their debt. This process is triggered automatically by smart contracts when the value of a user's collateral falls below a predefined liquidation threshold or minimum collateral ratio, a state known as being "underwater" or "in liquidation." Its primary purpose is to protect the protocol and its lenders from bad debt by ensuring loans remain overcollateralized, even in volatile markets.

The mechanism relies on oracles to provide real-time, accurate price feeds for both the collateral and borrowed assets. When the oracle-reported Loan-to-Value (LTV) ratio exceeds the safe limit, the position becomes eligible for liquidation. Liquidators—typically bots or specialized users—can then initiate a transaction to repay a portion or all of the outstanding debt. In return, they receive the corresponding collateral at a discounted rate, known as a liquidation penalty or bonus, which serves as their profit incentive. This entire process occurs on-chain without human intervention.

Key parameters governing auto-liquidation include the liquidation threshold (the LTV level that triggers liquidation), the liquidation penalty (the discount applied to the seized collateral, e.g., 5-15%), and the liquidation close factor (the maximum percentage of debt that can be liquidated in a single transaction). Protocols like Aave, Compound, and MakerDAO implement variations of this model. For example, in Maker's vaults, if ETH collateral value drops too low, the vault is liquidated via an auction mechanism, with keepers bidding for the collateral.

For borrowers, auto-liquidation results in a loss of their collateral beyond the original debt amount due to the penalty. For the protocol, it is a critical risk management tool that maintains solvency. The design of these parameters involves a trade-off: thresholds that are too low increase lender risk, while penalties that are too high can cause excessive losses for borrowers during market crashes. This makes auto-liquidation a fundamental, albeit risky, component of DeFi's credit infrastructure.

key-features
MECHANISM BREAKDOWN

Key Features of Auto-Liquidation

Auto-liquidation is a risk management mechanism in DeFi lending protocols that automatically sells a borrower's collateral to repay their debt when its value falls below a predefined threshold.

01

Health Factor & Liquidation Threshold

The Health Factor is the core metric determining liquidation risk. It's calculated as (Collateral Value * Liquidation Threshold) / Borrowed Value. When this ratio drops below 1.0, the position becomes eligible for auto-liquidation. The Liquidation Threshold is the maximum loan-to-value (LTV) ratio at which collateral can be borrowed against, set per asset based on its volatility.

02

Liquidation Incentive (Bonus)

To incentivize third-party liquidators (often bots) to repay the bad debt, protocols offer a liquidation bonus or discount. This allows liquidators to purchase the undercollateralized assets at a price below market value (e.g., a 5-10% discount). This bonus covers gas costs and provides profit, ensuring the system remains solvent.

03

Liquidation Process Flow

  1. Monitoring: Oracles update collateral prices.
  2. Check: Protocol calculates the Health Factor.
  3. Trigger: Health Factor falls below 1.0.
  4. Execution: A liquidator's transaction repays part or all of the debt.
  5. Seizure: The corresponding collateral, plus the bonus, is transferred to the liquidator.
  6. Closure: If the debt is fully repaid, the remaining collateral is returned to the borrower.
04

Partial vs. Full Liquidation

Protocols often use partial liquidation to minimize market impact and give borrowers a chance to recover. A fixed percentage of the debt is repaid (e.g., 50%), raising the Health Factor back above the safe threshold. Full liquidation occurs if the position is severely undercollateralized or if partial actions fail to restore health, closing the position entirely.

05

Liquidation Penalty

Borrowers face a liquidation penalty, a fee added to the debt amount being repaid. This penalty is separate from the liquidator's bonus and is paid to the protocol's treasury or reserve fund as a security fee. It acts as a deterrent against excessive risk-taking.

06

Common Vulnerabilities & Risks

  • Oracle Manipulation: Incorrect price feeds can trigger false liquidations.
  • Liquidity Crunch: During market crashes, insufficient liquidity can cause liquidation cascades.
  • Maximizing Extractable Value (MEV): Liquidations are prime targets for MEV, where bots compete via priority gas auctions, increasing costs.
  • Gas Price Volatility: Network congestion can delay liquidations, increasing protocol bad debt.
how-it-works
MECHANISM

How Auto-Liquidation Works

Auto-liquidation is a critical risk management mechanism in DeFi lending protocols that automatically closes undercollateralized positions to protect lenders.

Auto-liquidation is a programmed process in decentralized finance (DeFi) that automatically seizes and sells a borrower's collateral when their loan's health factor or collateralization ratio falls below a predefined safe threshold. This threshold is typically set by the protocol's governance. The primary purpose is to protect lenders by ensuring the total value of outstanding loans is always sufficiently backed by collateral, even in volatile markets. The process is triggered by smart contracts without requiring manual intervention from the protocol team or lenders, making it a trustless and deterministic safety feature.

The process begins with oracles continuously feeding real-time price data for the collateral and borrowed assets into the protocol's smart contracts. When market movements cause the value of a user's collateral to drop or the value of their debt to rise, their collateralization ratio decreases. If this ratio breaches the liquidation threshold, the position is flagged as undercollateralized. A liquidation bot or keeper—often operated by third parties seeking a profit—then submits a transaction to execute the liquidation. The smart contract validates the conditions and permits the liquidator to repay a portion or all of the outstanding debt on behalf of the borrower.

In return for repaying the debt, the liquidator receives the borrower's collateral at a discounted rate, known as the liquidation penalty or bonus. This discount, which is added to the borrower's debt, incentivizes liquidators to participate and cover their gas costs and risks. The specific mechanics, such as the size of the discount and the maximum amount that can be liquidated in one transaction, are defined by the protocol's parameters. For example, a common model allows liquidators to repay up to 50% of a position's debt in one go, receiving collateral worth that repayment plus a bonus of 5-10%.

From the borrower's perspective, an auto-liquidation results in a loss of a portion of their collateral. The remaining collateral, if any, and the adjusted debt remain in the position. If the liquidation does not restore the health factor above the safe threshold, the position may be subject to further liquidations until it is either fully closed or becomes healthy again. This mechanism creates a powerful incentive for borrowers to actively manage their positions, often by adding more collateral or repaying debt, to avoid these costly penalties.

Auto-liquidation is a foundational component of overcollateralized lending protocols like Aave, Compound, and MakerDAO. Its design involves careful balancing: thresholds must be strict enough to protect the system but not so sensitive as to trigger unnecessary liquidations during normal volatility. Failures in this mechanism, such as oracle manipulation or market gaps, can lead to underwater loans where the debt exceeds the collateral value, posing systemic risk to the protocol. Therefore, the security and reliability of the price oracles and the smart contract logic are paramount.

ecosystem-usage
IMPLEMENTATIONS

Protocols Using Auto-Liquidation

Auto-liquidation is a core risk management mechanism used across DeFi to protect lending protocols and maintain solvency. The following are prominent examples of its implementation.

06

Key Mechanism Variations

Protocols differ in their auto-liquidation design:

  • Trigger Mechanism: Health Factor (Aave), Collateralization Ratio (Maker), Margin Ratio (Perps).
  • Execution Method: Auctions (Maker), Fixed Discounts (Aave, Compound), Stability Pool Absorption (Liquity).
  • Liquidator Incentive: Discounted collateral (liquidation bonus) or fixed fee.
  • Close Factor: Limits on how much debt can be liquidated at once to prevent instant insolvency.
visual-explainer
MECHANISM

The Auto-Liquidation Process Visualized

A step-by-step breakdown of the automated process that enforces solvency in DeFi lending protocols.

Auto-liquidation is the automated, on-chain process by which a decentralized lending protocol sells a portion of a borrower's collateral to repay their debt when their loan's health factor falls below a predefined threshold, typically 1.0. This mechanism is a critical, non-negotiable component of overcollateralized lending, designed to protect the protocol and its lenders from bad debt. It is triggered by smart contracts without human intervention, ensuring the system remains solvent even during extreme market volatility.

The process begins with oracles continuously feeding real-time price data to the protocol's smart contracts. When the value of a borrower's collateral drops relative to their borrowed assets, their health factor—calculated as (Collateral Value * Liquidation Threshold) / Debt Value—declines. Once this ratio dips below the liquidation threshold, the borrower's position is flagged as eligible for liquidation. At this point, the protocol's smart contracts open the position to liquidators, who are incentivized to participate by a liquidation bonus or penalty fee paid by the borrower.

A liquidator then executes a transaction to repay a portion of the borrower's outstanding debt, typically in a stablecoin like DAI or USDC. In return, they receive a corresponding amount of the borrower's collateral at a discounted price, which is the liquidation bonus. This action simultaneously reduces the borrower's debt and removes the risky collateral from the system, restoring the health factor of the remaining position above the safe threshold. The process is atomic, meaning the entire transaction either succeeds or fails, preventing partial state errors.

For example, in a protocol like Aave or Compound, if ETH's price crashes, a borrower who used ETH as collateral for a USDC loan might see their health factor drop to 0.95. A liquidator can then repay 1,000 USDC of the debt and receive, say, 0.95 ETH (worth $1,050 at market price) as discounted collateral—pocketing the $50 difference as profit. This immediate, penalty-driven enforcement is what allows DeFi protocols to offer permissionless lending without credit checks, as the collateral itself is the ultimate guarantor.

The design parameters of auto-liquidation—including the liquidation threshold, liquidation bonus, and the close factor (the maximum percentage of debt that can be liquidated in one transaction)—are crucial for system stability. If set incorrectly, they can lead to liquidation cascades during market crashes or create insufficient incentives for liquidators. Therefore, these parameters are often governed by the protocol's decentralized autonomous organization (DAO), allowing for adjustments based on market conditions and risk assessments.

key-parameters
AUTO-LIQUIDATION

Key Liquidation Parameters

Auto-liquidation is a risk management mechanism that automatically closes an undercollateralized position to repay its debt. The specific triggers and outcomes are governed by a set of core parameters.

01

Liquidation Threshold

The Liquidation Threshold is the Loan-to-Value (LTV) ratio at which a position becomes eligible for liquidation. For example, if ETH has an 80% threshold, a position is at risk when the value of the borrowed assets reaches 80% of the collateral value. This buffer protects the protocol by ensuring liquidation occurs before the collateral value falls below the debt value.

02

Liquidation Penalty (Bonus)

The Liquidation Penalty (or Liquidation Bonus) is the discount granted to liquidators for repaying the bad debt. It incentivizes rapid market response. For instance, a 10% penalty means a liquidator can repay $100 of debt to claim $110 worth of the user's collateral. This fee is a cost to the liquidated user and a key component of the protocol's economic security.

03

Health Factor

The Health Factor is a real-time metric representing a position's safety margin against liquidation. It is calculated as (Collateral Value * Liquidation Threshold) / Debt Value. A health factor of 1.0 is the liquidation threshold. Values below 1.0 trigger liquidation, while higher values indicate a safer position. This is the primary dashboard metric for users.

04

Close Factor

The Close Factor determines the maximum portion of a position's debt that can be liquidated in a single transaction. It limits market impact and prevents a single liquidation from dumping all collateral at once. A common close factor is 50%, meaning a liquidator can only repay up to half the debt in one go, potentially requiring multiple liquidations to fully close the position.

05

Liquidation Reserve

A Liquidation Reserve (or Liquidation Incentive Reserve) is a portion of the collateral set aside to guarantee liquidators are compensated even if the liquidation process itself incurs gas costs or slippage. This ensures the liquidation mechanism remains economically viable under all network conditions, preventing 'liquidation black holes' where no one is incentivized to act.

06

Price Oracle & Deviation

Reliable Price Oracle data is the foundational input for all liquidation math. The Deviation parameter (or Oracle Tolerance) defines the maximum acceptable price difference between oracles before the system pauses liquidations to prevent manipulation. For example, a 2% deviation threshold would halt actions if oracle prices diverge by more than 2%, protecting users from flash crashes on a single exchange.

security-considerations
AUTO-LIQUIDATION

Security & Risk Considerations

Auto-liquidation is a risk management mechanism in DeFi lending protocols that automatically sells a borrower's collateral to repay their debt when its value falls below a required threshold.

01

The Liquidation Trigger

A liquidation is triggered when a borrower's Health Factor (or Collateral Factor) falls below 1.0. This occurs when the value of the borrowed assets exceeds the value of the posted collateral, adjusted by a Loan-to-Value (LTV) ratio. For example, if ETH drops in price, the collateral backing a DAI loan may become insufficient, prompting the protocol to initiate liquidation to protect lenders.

02

Liquidation Process & Penalty

When triggered, a portion of the borrower's collateral is sold (often via a liquidation auction or direct sale to a liquidation bot) to repay the outstanding debt plus a liquidation penalty (or bonus). This penalty, typically 5-15%, is paid to the liquidator as an incentive and is an additional loss for the borrower. The remaining collateral, if any, is returned to the borrower.

03

Key Risk: Liquidation Cascades

In volatile markets, a sharp price drop can cause mass liquidations. As liquidators sell large amounts of collateral (e.g., ETH), it can drive the asset's price down further, triggering more liquidations in a positive feedback loop known as a liquidation cascade or death spiral. This was a major factor in the collapse of the Terra/LUNA ecosystem.

04

Oracle Risk & Manipulation

Auto-liquidation relies entirely on price oracles to determine collateral value. Risks include:

  • Oracle latency: Stale prices can cause premature or delayed liquidations.
  • Oracle manipulation: Attackers may exploit a protocol's oracle (e.g., via flash loans) to artificially lower the reported price, triggering unfair liquidations they can profit from, as seen in the bZx and Harvest Finance exploits.
05

Liquidation Slippage & Efficiency

The liquidation process itself can fail or be inefficient. If the market is illiquid, selling the collateral may incur high slippage, potentially leaving debt undercollateralized. Protocols use mechanisms like gradual liquidations (selling collateral in chunks) and liquidation thresholds to mitigate this. Inefficient liquidations can result in bad debt for the protocol.

06

Mitigation Strategies for Users

Borrowers can mitigate liquidation risk by:

  • Maintaining a high Health Factor (e.g., >2.0) for a safety buffer.
  • Using stablecoins as collateral for less volatility.
  • Setting up price alerts and monitoring positions.
  • Utilizing decentralized insurance or hedging with derivatives. Protocols mitigate systemic risk with circuit breakers, dynamic LTVs, and over-collateralization requirements.
MECHANISM COMPARISON

Auto-Liquidation vs. Related Concepts

A technical comparison of automated risk management mechanisms in DeFi, highlighting key operational differences.

Feature / MetricAuto-LiquidationManual LiquidationPartial LiquidationAuto-Deleveraging (ADL)

Trigger Mechanism

Automated by smart contract at a fixed price threshold

Manually initiated by a liquidator or keeper

Automated, liquidates only enough to restore health

Automated, matches positions of profitable and underwater traders

Primary Goal

Protect protocol solvency by closing underwater positions

Profit opportunity for liquidators via arbitrage

Minimize user loss by closing only the necessary portion

Internalize losses within the system without external liquidators

Price Oracle Dependency

Critical; uses on-chain oracle for valuation

High; relies on oracle or market price for profitable execution

Critical; uses on-chain oracle for valuation

High; uses internal mark price or oracle for matching

Liquidation Penalty / Fee

Fixed fee (e.g., 5-15%) applied to liquidated collateral

Dynamic; profit is spread between market price and oracle price

Fixed fee applied to the liquidated portion

Typically none; positions are closed at the bankruptcy price

Speed / Latency

Near-instant upon threshold breach

Variable; depends on liquidator monitoring and gas costs

Near-instant upon threshold breach

Triggered at settlement intervals or by protocol logic

Capital Source

External liquidators providing capital

External liquidators providing capital

External liquidators providing capital

Internal; uses profits from winning traders within the system

Common Protocols

Aave, Compound, MakerDAO

Any protocol allowing manual calls

dYdX, Perpetual Protocol

Derivative DEXs (e.g., early versions of FTX, some perpetual exchanges)

User Experience Impact

Full position loss with penalty

Full position loss, potentially at a worse price

Partial position loss with penalty on that portion

Profitable positions can be forcibly reduced to cover system losses

DEBUNKED

Common Misconceptions About Auto-Liquidation

Auto-liquidation is a critical DeFi mechanism often misunderstood. This section clarifies the most frequent technical misconceptions about how liquidations work, their triggers, and their role in maintaining protocol solvency.

**Auto-liquidation is a specific type of forced sale executed automatically by a smart contract when a user's collateral ratio falls below a predefined threshold, known as the liquidation ratio or health factor. While all auto-liquidations are forced sales, not all forced sales are auto-liquidations. A forced sale can be manually triggered by a liquidator, whereas an auto-liquidation is a protocol-enforced, permissionless process. The key distinction is the automated, non-discretionary nature of the liquidation, which is designed to protect the protocol from undercollateralized debt positions by selling collateral at a discount (a liquidation penalty) to incentivize liquidators.

AUTO-LIQUIDATION

Frequently Asked Questions (FAQ)

Auto-liquidation is a critical risk management mechanism in DeFi lending protocols. These questions address its core mechanics, triggers, and implications for users.

Auto-liquidation is an automated process where a DeFi lending protocol sells a borrower's collateral to repay their debt when their loan's health factor or collateralization ratio falls below a predefined safe threshold. The process is triggered by smart contracts without human intervention to protect the protocol from bad debt. A liquidation bot or keeper typically executes the transaction, paying off the borrower's outstanding loan and receiving a portion of the seized collateral as a liquidation bonus or incentive. The remaining collateral, if any, is returned to the borrower, ensuring the protocol's solvency is maintained.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team