Partial liquidation is a risk mitigation mechanism used in overcollateralized lending protocols like Aave and Compound. It is triggered when a user's health factor or collateral ratio falls below a predefined safety threshold but remains above the level that would necessitate a full liquidation. Instead of closing the entire loan position, the protocol's liquidation bots or keepers sell a calculated portion of the borrower's collateral on the open market, using the proceeds to repay a corresponding portion of the outstanding debt. This action increases the remaining collateral ratio, bringing the position back to a safe state.
Partial Liquidation
What is Partial Liquidation?
A risk management process in decentralized finance (DeFi) where a portion of a borrower's collateral is automatically sold to repay a portion of their debt, restoring their loan's health without closing the entire position.
The primary goal is to protect the protocol's solvency while minimizing disruption for the borrower. For example, if ETH price drops, causing a user's loan-to-value (LTV) to rise dangerously, a partial liquidation might sell 30% of their collateralized ETH to repay 30% of their borrowed USDC. This is less punitive than a full liquidation, which would close the position entirely, incur higher penalty fees, and leave the borrower with no remaining collateral. The exact amount liquidated is calculated by the protocol's smart contracts to restore the health factor to just above the safe threshold.
Key technical aspects include the liquidation threshold, which determines when the process begins, and the liquidation penalty, a fee added to the debt repaid, which serves as an incentive for liquidators. The mechanism relies on liquidation bots competing to execute these transactions for profit. This design creates a more resilient system by allowing positions to be corrected gradually during market volatility, reducing systemic risk and potential bad debt for the protocol, compared to the all-or-nothing approach of traditional full liquidations.
How Does Partial Liquidation Work?
A detailed explanation of the process where a portion of a user's collateral is automatically sold to repay debt when their loan's health factor falls below a critical threshold, preventing a full account wipeout.
Partial liquidation is a risk management mechanism in decentralized finance (DeFi) lending protocols where only a portion of an undercollateralized position is automatically closed to restore its financial health. It is triggered when a user's health factor—a ratio of collateral value to borrowed value—drops below a predefined liquidation threshold but remains above the level that would necessitate a full liquidation. This process involves a liquidator (a bot or user) purchasing a calculated amount of the user's collateral at a discount, using the proceeds to repay a corresponding portion of the user's outstanding debt, and keeping the discount as profit. The primary goal is to deleverage the position incrementally, giving the borrower a chance to rectify their collateralization without losing their entire stake.
The mechanics are governed by precise, on-chain calculations. When the health factor dips into the 'liquidation zone,' the protocol calculates a liquidation bonus (or discount) and a close factor. The close factor determines the maximum percentage of the borrowed assets that can be liquidated in a single transaction, often capped (e.g., 50%). The liquidator repays that portion of the debt and receives an equivalent value of the borrower's collateral, plus the bonus. For example, with a 5% liquidation bonus, repaying $100 of debt might grant the liquidator $105 worth of collateral. This action increases the remaining position's health factor, ideally bringing it back above the safe threshold. Protocols like Aave and Compound implement variations of this model.
This mechanism benefits all parties involved. For the borrower, it acts as a buffer, preventing total loss and allowing for recovery by adding more collateral or repaying debt. For the protocol, it mitigates systemic risk by ensuring bad debt is resolved promptly, protecting the solvency of the lending pool. For liquidators, it creates a competitive market for providing this essential service, incentivized by the liquidation bonus. The process is typically executed in a single blockchain transaction via smart contracts, ensuring transparency and immutability. Parameters like liquidation thresholds, bonuses, and close factors are set by protocol governance and are critical to the system's stability and user experience.
Key considerations include liquidation penalties, which are fees paid by the borrower from their collateral, and liquidation efficiency, which depends on market liquidity and bot competition. In volatile markets, a cascade of partial liquidations can occur if asset prices continue to fall. Advanced users may employ strategies like setting up health factor alerts or using debt recycling techniques to manage their positions proactively. Understanding partial liquidation is crucial for anyone engaging in DeFi borrowing, as it defines the precise conditions under which their collateral is at risk and the safety nets provided by the protocol's design.
Key Features of Partial Liquidation
Partial liquidation is a risk management mechanism in DeFi lending protocols that allows a borrower to repay a portion of their debt to restore their collateralization ratio above the liquidation threshold, avoiding a full account seizure.
Gradual Risk Reduction
Unlike a full liquidation, which closes a position entirely, a partial liquidation allows a borrower to repay only the minimum required debt to bring their Health Factor or Collateralization Ratio back to a safe level. This is calculated as the difference between the current ratio and the liquidation threshold.
- Example: If a position is 5% under-collateralized, only that 5% deficit is liquidated, not the entire loan.
Collateral Preservation
The primary benefit for the borrower is retaining ownership of the majority of their collateral assets. The protocol sells or transfers only enough collateral to cover the liquidated debt portion plus a liquidation penalty.
- Key Term: The Liquidation Close Factor dictates the maximum percentage of a borrower's debt that can be liquidated in a single transaction, often enabling partial processes.
Liquidator Incentive Structure
Liquidators are incentivized to perform partial liquidations through a liquidation bonus (or discount). They repay the borrower's debt and receive a proportional amount of the borrower's collateral at a favorable price.
- Mechanism: For a debt of 100 DAI, a liquidator might repay it and receive $105 worth of ETH collateral, profiting from the 5% discount.
Protocol Stability Mechanism
Partial liquidations enhance protocol stability by preventing large, disorderly sell-offs of collateral that could cause market volatility. They allow for a more gradual and less disruptive resolution of under-collateralized positions, protecting the solvency of the lending pool.
- Contrasts with Full Liquidation, which can create larger market impacts and more severe losses for borrowers.
Related Concept: Soft vs. Hard Liquidation
Soft Liquidation (or partial liquidation) involves a limited debt repayment. Hard Liquidation closes the entire position. The choice between them is often governed by protocol parameters like the closeFactor and the severity of the collateral shortfall.
- Key Differentiator: The borrower's remaining debt and collateral after the event.
Partial vs. Full Liquidation
A comparison of the key operational differences between partial and full liquidation events in DeFi lending protocols.
| Feature | Partial Liquidation | Full Liquidation |
|---|---|---|
Trigger Condition | Borrower's health factor falls below a protocol-defined threshold but remains above 1.0 | Borrower's health factor falls to or below 1.0 |
Amount Liquidated | A portion of the collateral, sufficient to restore the health factor above the safe threshold | The entire collateral position for the undercollateralized debt |
Impact on Position | Position remains open; borrower retains remaining collateral and debt | Position is closed; all collateral is seized, and debt is cleared |
Liquidation Penalty | Applied only to the liquidated collateral portion (e.g., 5-15%) | Applied to the entire collateral position |
Gas Cost for Liquidator | Lower, as transaction involves a smaller swap | Higher, due to the larger transaction size |
Common Protocols | Aave, Compound V3, Euler | MakerDAO (historically), Compound V2 |
Market Impact | Minimized slippage due to smaller trades | Higher potential for slippage and market disruption |
Protocols Using Partial Liquidation
Partial liquidation is a risk management mechanism adopted by leading DeFi lending protocols to protect solvency while minimizing user impact. These platforms automatically sell a portion of a borrower's collateral to repay debt when their health factor falls below a safe threshold.
Mechanism & Incentives
The core mechanism involves:
- Health Factor Monitoring: Continuous calculation of a position's collateral-to-debt ratio.
- Liquidation Threshold: The specific health factor level that triggers the process.
- Liquidator Incentive: A liquidation bonus (e.g., 5-10%) paid from the borrower's collateral to the liquidator.
- Partial Repayment: Only the minimum amount needed to restore the health factor above the safe threshold is liquidated, preserving the user's remaining collateral.
Benefits Over Full Liquidation
Partial liquidation offers significant advantages:
- Reduced User Impact: Borrowers retain a portion of their collateral and their position remains open.
- Lower Market Impact: Selling smaller collateral amounts minimizes price slippage in volatile markets.
- System Stability: Prevents cascading liquidations that can occur when large positions are dumped simultaneously.
- Improved UX: Users have a chance to rectify their position by adding more collateral or repaying debt after a partial event.
Key Parameters
Protocols configure their partial liquidation systems via governance-controlled parameters:
- Liquidation Close Factor: The maximum percentage of a borrow that can be repaid in one liquidation (e.g., 50%).
- Liquidation Bonus/Penalty: The discount liquidators receive on purchased collateral.
- Liquidation Threshold: The collateral ratio at which a position becomes eligible for liquidation.
- Health Factor: The real-time metric (Total Collateral in ETH / Total Borrow in ETH) that determines safety.
Security & Risk Considerations
Partial liquidation is a risk management mechanism in DeFi lending protocols that seizes a portion of a borrower's collateral to repay a loan that has fallen below its required health threshold, aiming to restore the position's safety and avoid a full liquidation.
Core Mechanism & Health Factor
A partial liquidation is triggered when a borrower's Health Factor (HF) falls below the protocol's liquidation threshold but remains above 1.0. The protocol algorithmically calculates the minimum collateral needed to be sold to repay enough debt and restore the HF to a safe level, typically just above the threshold. This contrasts with a full liquidation, which occurs if the HF drops to or below 1.0, where the entire position is closed.
Liquidation Penalty & Incentives
To incentivize liquidators (third-party bots or users) to execute the transaction, the protocol applies a liquidation penalty (or bonus). The liquidator purchases the seized collateral at a discount (e.g., 5-10%) to its market value. This discount serves as their profit and compensates for the risk and gas costs involved in the transaction. The penalty is paid by the borrower, increasing their effective loss.
Key Risk: Liquidation Cascades
A primary systemic risk is a liquidation cascade or death spiral. During high volatility, many positions may be liquidated simultaneously, flooding the market with collateral assets. This can cause:
- Sharp price declines for the collateral asset.
- Further liquidations as prices drop, creating a feedback loop.
- Potential insolvency for the protocol if liquidators cannot keep up, leaving undercollateralized debt.
Maximizing Capital Efficiency
For borrowers, partial liquidation is a critical feature for capital efficiency. It allows a position to be corrected without being completely wiped out, preserving the remaining collateral and debt. This enables more aggressive borrowing strategies (higher Loan-to-Value ratios) while providing a safety buffer. Protocols like Aave and Compound implement this to reduce user attrition from total loss events.
Oracle Manipulation Risk
The process depends entirely on price oracles for asset valuation. Manipulation of these oracles (e.g., via flash loan attacks) can create false liquidation triggers. A malicious actor could temporarily depress an asset's oracle price, causing healthy positions to be partially liquidated at an unfair discount, which the attacker can then profit from as the liquidator.
Gas Wars & Miner Extractable Value (MEV)
Liquidations are often executed by bots competing for profitable opportunities. This leads to gas wars, where bots bid up transaction fees to be first in line, making it expensive for smaller participants. This competition is a form of Miner Extractable Value (MEV). The high gas costs can erode the liquidator's discount profit and may delay liquidations during network congestion, increasing protocol risk.
Visualizing the Process
A step-by-step breakdown of how a partial liquidation event is triggered and executed within a DeFi lending protocol, illustrating the automated process that protects lenders and the borrower's remaining position.
A partial liquidation is triggered when a borrower's collateralization ratio falls below the protocol's liquidation threshold but remains above the level that would necessitate a full account closure. This automated process begins with a liquidation bot or keeper detecting the undercollateralized position on-chain. The liquidator then repays a portion of the borrower's outstanding debt, typically up to a close factor limit (e.g., 50%), in exchange for a discounted seizure of a corresponding portion of the borrower's collateral, plus a liquidation bonus as an incentive.
The execution follows a precise mathematical formula. For example, if a borrower has 10 ETH as collateral and a debt of 15,000 DAI, and the price of ETH drops so the health factor falls to 0.95 (below the 1.0 threshold), a liquidator might repay 5,000 DAI of the debt. In return, they receive a calculated amount of ETH collateral, valued at slightly less than 5,000 DAI, with the discount (e.g., 5%) serving as their profit. This reduces the borrower's debt and improves their health factor, ideally bringing it back above the dangerous threshold.
This mechanism is crucial for protocol solvency, as it ensures bad debt is minimized without wiping out the borrower entirely. The borrower retains the majority of their collateral and can continue using the protocol, albeit with a reduced position. Key parameters governing this process—liquidation threshold, close factor, and liquidation bonus—are set by governance and are visible in the protocol's smart contracts, creating a transparent and predictable system for managing risk.
Common Misconceptions
Clarifying frequent misunderstandings about the mechanics and implications of partial liquidations in DeFi lending protocols.
A partial liquidation is a risk management mechanism in DeFi lending protocols where only a portion of an undercollateralized loan is automatically repaid and the corresponding collateral is seized, rather than closing the entire position. It works by calculating the exact amount needed to restore the user's health factor above the safe threshold (e.g., 1.0). A liquidator repays that specific portion of the debt and receives a proportional amount of the user's collateral, plus a liquidation bonus. The remaining loan and collateral stay active, allowing the borrower to retain their position.
Technical Details
Partial liquidation is a risk management mechanism in DeFi lending protocols that automatically sells a portion of a borrower's collateral to repay their debt when their position becomes undercollateralized, preventing a full account wipeout.
Partial liquidation is a risk management mechanism in decentralized finance (DeFi) lending protocols that automatically sells a portion of a borrower's collateral to repay their debt when their loan-to-value (LTV) ratio exceeds a predefined liquidation threshold. Unlike a full liquidation, it does not close the entire position. The process is triggered by keepers or liquidator bots when a user's health factor falls below 1.0. A specific amount of collateral is seized, sold at a discount (the liquidation penalty), and the proceeds are used to repay the outstanding debt, restoring the health factor above the safe threshold. This allows the borrower to retain the remainder of their collateral and keep their position open.
Key steps:
- Health Factor Drops: Market volatility causes the collateral value to fall relative to the debt.
- Liquidation Trigger: A keeper identifies the undercollateralized position.
- Collateral Seizure & Sale: The protocol liquidates a calculated portion of the collateral.
- Debt Repayment & Bonus: The sale repays debt, and the liquidator receives a bonus (the discount).
- Position Stabilized: The remaining position's health factor is restored.
Frequently Asked Questions
Partial liquidation is a critical risk management mechanism in DeFi lending protocols. These questions address how it works, its triggers, and its impact on users.
Partial liquidation is a risk management process where a decentralized lending protocol automatically sells a portion of a borrower's collateral to repay a portion of their debt when their loan's health factor falls below a critical threshold but is not yet fully insolvent. The process works by a keeper or the protocol itself executing a liquidation function, converting a defined percentage of the undercollateralized position's collateral into the borrowed asset to reduce the outstanding loan. This mechanism is designed to be less punitive than a full liquidation, allowing the borrower to retain some of their collateral and potentially restore their position's health without being completely wiped out. Protocols like Aave and Compound implement specific liquidation bonuses and close factors to govern this process.
Get In Touch
today.
Our experts will offer a free quote and a 30min call to discuss your project.