Skip to content

Liquidation on Morpho

Overview

Liquidation is a critical risk management mechanism in the Morpho protocol that protects lenders' capital by ensuring borrowers maintain healthy collateral positions. Morpho offers two liquidation approaches:

  1. Standard Liquidation: A built-in mechanism at the protocol core that allows full or partial position liquidation when a borrower's Loan-To-Value (LTV) exceeds the Liquidation Loan-To-Value (LLTV) threshold.

  2. Pre-Liquidation: An opt-in mechanism implemented in an external contract that enables smaller, incremental liquidations before reaching the standard liquidation threshold, creating a safety cushion for borrowers.

Understanding Loan-To-Value (LTV)

Before exploring the liquidation mechanisms, it's essential to understand how LTV is calculated and what it represents.

How to Calculate LTV

The Loan-To-Value ratio is a key risk metric that measures the proportion of debt relative to collateral value. To calculate the LTV of a position on Morpho, use the following formula:

LTV=BORROWED_AMOUNT  ORACLE_PRICECOLLATERAL_AMOUNT  ORACLE_PRICE_SCALE\text{LTV} = \frac{\text{BORROWED\_AMOUNT} \space * \space \text{ORACLE\_PRICE}}{\text{COLLATERAL\_AMOUNT} \space * \space \text{ORACLE\_PRICE\_SCALE}}

Where:

  • BORROWED_AMOUNT: The amount of borrowed assets of the user
  • ORACLE_PRICE: The oracle price returned by the oracle of the market
  • COLLATERAL_AMOUNT: The amount of collateral assets provided by the user
  • ORACLE_PRICE_SCALE: 1e36

Standard Liquidation

The standard liquidation mechanism is the primary defense against borrower defaults and is built directly into the Morpho core contracts.

When Is a Position Liquidatable?

A position becomes liquidatable when its LTV exceeds the market's Liquidation Loan-To-Value (LLTV) which can happen due to:

  • Collateral value decreasing
  • Debt increasing due to accrued interest
  • A combination of both factors

How Standard Liquidation Works

When a position becomes liquidatable, any external party (a liquidator) can repay part or all of the borrower's debt in exchange for an equivalent amount of collateral plus a liquidation bonus.

Liquidation Incentive Factor (LIF)

The liquidation bonus is determined by the Liquidation Incentive Factor (LIF), which depends on the market's LLTV:

LIF=min(M,1βLLTV+(1β)), with β=0.3 and M=1.15.\text{LIF} = \min(M, \frac{1}{\beta*\text{LLTV}+(1-\beta)}), \text{ with } \beta = 0.3 \text{ and } M= 1.15.
LIF vs LLTV graph

Liquidation Incentive Factor in relation to the Liquidation Loan-To-Value

Standard Liquidation Step-by-Step

Initial Position

A borrower deposits $100k of collateral in a market with LLTV = 86% and borrows $70k. Due to accrued interest (an example could be provided with only collateral price depreciation), the loan value increases to $86.01k.

  • Position status: LTV = 86.01% > LLTV (86%) → Liquidatable

Liquidation Process

  • Liquidator identifies the unhealthy position
  • Liquidator repays the $86.01k debt
  • LIF calculation: 1.05 (for 86% LLTV market)
  • Seized collateral: $86.01k × 1.05 = $90.31k

After Liquidation

  • Borrower: Debt cleared, retains $9.69k of collateral
  • Liquidator: Spent $86.01k, received $90.31k in collateral
  • Profit for liquidator: $4.3k minus gas fees and any swap costs

Practical Consideration

For this liquidation to be profitable, the liquidator must ensure: $4.3k > (Gas fees + potential swap fees + potential price slippage costs)

Key Features of Standard Liquidation

  • Liquidation Amount: Liquidators can repay up to 100% of the borrower's debt in a single transaction
  • Trigger: Only activates when LTV > LLTV
  • Incentive: Fixed LIF based on the market's LLTV
  • Borrower Impact: Potentially significant one-time liquidation
  • Implementation: Built into the Morpho core contract

Pre-Liquidation

The pre-liquidation mechanism is an optional, opt-in feature that provides a safety buffer between healthy positions and standard liquidation.

What Is Pre-Liquidation?

Pre-liquidation allows partial position closure when a borrower's LTV exceeds a pre-defined threshold (preLLTV) but remains below the market's LLTV. This creates a cushion zone where borrowers face smaller, incremental liquidations rather than a single full liquidation.

How Pre-Liquidation Parameters Work

Pre-liquidation operates with 6 key parameters:

Pre-Liquidation Loan-To-Value (preLLTV)

The threshold at which pre-liquidation becomes possible

Pre-Liquidation Close Factors (preLCF₁ & preLCF₂)

The maximum percentage of debt that can be repaid in a single pre-liquidation. This scales linearly between preLCF₁ and preLCF₂ based on the position's LTV:

preLCF=LLTVLTVLLTVpreLLTVpreLCF1+LTVpreLLTVLLTVpreLLTVpreLCF2preLCF = \frac{LLTV - LTV}{LLTV - preLLTV} * preLCF_1 + \frac{LTV - preLLTV}{LLTV - preLLTV} * preLCF_2

Pre-Liquidation Incentive Factors (preLIF₁ & preLIF₂)

The bonus received by pre-liquidators, which can scale linearly between preLIF₁ and preLIF₂ based on position health.

Pre-Liquidation Oracle (PRE_LIQUIDATION_ORACLE)

The oracle used to assess whether or not a position can be preliquidated. It could be the same oracle of the market, or another oracle.

Pre-Liquidation Step-by-Step

Let's walk through an example of how pre-liquidation works in practice:

Step-by-Step Process

Case 1: Pre-Liquidation

Initial Position Setup

Alice deposits 1 WBTC as collateral valued at 100k USDC and borrows 70k USDC.
Her initial LTV is calculated as:

LTV=70,000/100,000=0.70(70%)LTV = 70,000 / 100,000 = 0.70 \quad (70\%)

Subscription to Pre-Liquidation

Alice opts into the pre-liquidation feature. Her position is set to be pre-liquidated when her LTV exceeds the preLLTV threshold of approximately 83%.

Market Price Movement to Pre-Liquidation Range

When the price of 1 WBTC falls to 84k USDC, the new collateral value becomes 84k USDC.
Her LTV then becomes:

LTV=70,000/84,0000.83(83%)LTV = 70,000 / 84,000 \approx 0.83 \quad (83\%)

At this stage, her position reaches the pre-liquidation trigger, yet the pre-liquidation close factor (preLCF) is very low – making liquidation at this point unprofitable.

Price Drops Further and Pre-Liquidation Becomes Profitable

The market continues to move and 1 WBTC reaches 83k USDC, so the collateral value now is 83k USDC.
Her updated LTV is:

LTV=70,000/83,0000.84(84%)LTV = 70,000 / 83,000 \approx 0.84 \quad (84\%)

Now the position is clearly in the pre-liquidation range. Under these conditions, the pre-liquidation close factor is recalculated using the formula:

preLCF=LLTVLTVLLTVpreLLTV×preLCF1+LTVpreLLTVLLTVpreLLTV×preLCF20.12preLCF = \frac{LLTV - LTV}{LLTV - preLLTV} \times preLCF_1 + \frac{LTV - preLLTV}{LLTV - preLLTV} \times preLCF_2 \approx 0.12

Under some assumptions, this means that approximately 12% of the debt becomes eligible for liquidation.

Executing the Pre-Liquidation

A liquidator repays 12% of Alice’s outstanding debt:

Debt Repaid=0.12×70,000=8,400USDCDebt\ Repaid = 0.12 \times 70,000 = 8,400 \, \text{USDC}

With a pre-liquidation incentive factor (preLIF) of roughly 1.04, the seized collateral is calculated as:

Collateral Seized=8,400×1.048,736USDC(8.7kUSDC)Collateral\ Seized = 8,400 \times 1.04 \approx 8,736 \, \text{USDC} \quad (\approx 8.7k \, \text{USDC})

After this pre-liquidation event, Alice’s remaining debt adjusts to about 61.6k USDC and her collateral rebalances to around 74.3k USDC, effectively returning her LTV to near the preLLTV of 83%.


Case 2: Standard Liquidation (No Pre-Liquidation Executed)

Initial Position Setup

Alice deposits 1 WBTC as collateral valued at 100k USDC and borrows 70k USDC, giving an initial LTV of 70%.

No Pre-Liquidation Trigger

If no liquidator acts during the pre-liquidation phase (for example, due to rapid market movement or other factors), Alice’s position remains unchanged while the market continues to decline.

Market Price Movement to Trigger Standard Liquidation

When the price falls further to 81k USDC per WBTC, the collateral value is now 81k USDC and her LTV becomes:

LTV=70,000/81,0000.86(86%)LTV = 70,000 / 81,000 \approx 0.86 \quad (86\%)

As her LTV now exceeds the Liquidation Loan-To-Value (LLTV) of 86%, her position becomes eligible for standard liquidation.

Executing Standard Liquidation

A liquidator repays the full 70k USDC of debt. With a standard Liquidation Incentive Factor (LIF) of approximately 1.05, the collateral seized is computed as:

Collateral Seized=70,000×1.05=73,500USDCCollateral\ Seized = 70,000 \times 1.05 = 73,500 \, \text{USDC}

Thus, the full liquidation of Alice's position is executed.

After Liquidation

  • Alice: Her debt is cleared but she loses her collateral, with the net effect of incurring a higher loss.
  • Liquidator: Gains the liquidation bonus (the difference between repaid debt and seized collateral), though fees and slippage costs apply.
    In this case, the total loss for Alice is estimated to be around 2k USDC.

Key Features of Pre-Liquidation

  • Trigger Zone: Activates when preLLTV ≤ LTV < LLTV
  • Position Closure: Limited by preLCF (typically smaller than standard liquidation)
  • Incentive: Can be dynamic (preLIF), typically lower than the standard LIF
  • Borrower Impact: Smaller, incremental losses with position deleveraging
  • Implementation: Opt-in via PreLiquidation contract
  • Position After: Partially deleveraged, returns to potentially healthier LTV ratio (assuming parameters are wisely selected)

Comparing the Examples

AspectCase 1: Pre-Liquidation ExecutedCase 2: No Pre-Liquidation, Standard Liquidation
Trigger PointLTV climbs to ≈84% (with preLLTV at 83%)LTV reaches 86% (LLTV threshold)
Liquidated Debt PortionPartial: 12% of the debt (8.4k USDC)Full: 100% of the debt (70k USDC)
Liquidation IncentivePreLIF ≈ 1.04 (4% bonus)Standard LIF ≈ 1.05 (5% bonus)
Collateral Seized≈8.7k USDC worth for the liquidated portion≈72k USDC worth of collateral seized total
Post-Liquidation PositionPosition remains open; new debt ~61.6k USDC with ~74.3k USDC collateral; LTV restored to ≈83%Position is fully closed
Borrower’s LossApproximately $300 loss during partial liquidationHigher loss; approximately $2k incurred at full liquidation
Potential Future OutcomeIf price recovers, Alice’s position may improveNo recovery as the position is closed

Comparing Liquidation Mechanisms

AspectPre-LiquidationStandard Liquidation
Trigger ThresholdpreLLTV ≤ LTV < LLTVLTV ≥ LLTV
Position ClosureLimited by preLCF (typically less than 50% at preLLTV)Up to 100% of debt
IncentiveCan be dynamic, typically lower than LIFFixed LIF
Borrower ImpactSmaller, incremental lossesFull one-time loss
Position AfterPartially deleveraged, returns to healthier LTVUsually fully closed
ImplementationOpt-in via PreLiquidation contractBuilt into Morpho core
OracleMarket oracle or specialized oracleMarket oracle
Opt-in RequiredYes (additional protection)No (default protection)

Bad Debt Consideration

Morpho has different mechanisms for accounting for bad debts depending on the vault version.

Morpho Vaults v1.0 - Bad Debt Realization

The Morpho Vaults created with the MetaMorpho Factory v1.0 have a mechanism to account for and realize bad debt in the event it arises.

Typically, in other lending pool designs, accrued bad debt remains in the market forever until manual intervention to pay down the bad debt. If small enough, the markets can continue functioning. If it is significant, the market becomes unusable.

Morpho Vaults v1.0 treat bad debt differently. When a liquidation leaves an account with some remaining debt, and without collateral to cover it, the loss is realized and shared proportionally between all lenders.

As bad debt is realized at the time it occurs, a market can be used in perpetuity.

Morpho Vaults v1.1 - No Bad Debt Realization

The Morpho Vaults created with the MetaMorpho Factory v1.1 have a different mechanism as they do not realize bad debt and behave as other lending pools with accrued debt remaining in the market forever until manual intervention to pay down the bad debt.

Liquidation FAQ

At what price are liquidations done?

Liquidations occur at the current oracle price when a position's LTV exceeds the market's LLTV. The oracle price determines both when a position becomes liquidatable and the exchange rate during the liquidation process. The liquidator receives collateral valued at debt amount × LIF according to this oracle price, regardless of market conditions or price volatility elsewhere.

What happens if the collateral price continues to fall?

If the collateral price continues to fall after a position becomes liquidatable:

  • The position becomes increasingly attractive for liquidators as they can seize a larger percentage of the collateral relative to its real market value
  • Liquidators are incentivized to act quickly to capture this value
  • The protocol's design encourages prompt liquidations to minimize systemic risk
  • There is no price floor - the position remains liquidatable until someone repays the debt

What happens if the price recovers before liquidation happens?

If the collateral price recovers sufficiently before liquidation occurs:

  • The position's LTV may drop below the LLTV threshold
  • The position will no longer be liquidatable
  • The borrower retains their full collateral and remains responsible for their debt
  • This scenario highlights why borrowers should maintain a safety buffer below the LLTV

How do competing liquidators interact? Is it first-come-first-served?

Yes, liquidations operate on a first-come-first-served basis:

  • The first transaction that successfully executes the liquidation claims the opportunity
  • There is no auction or bidding mechanism
  • In competitive environments, this can lead to MEV (Maximal Extractable Value) opportunities and potential gas price wars
  • Advanced liquidators may use flashbots or other private transaction methods to secure their liquidation

Is there partial liquidation?

Yes. Liquidators can choose to liquidate any amount of the borrower's debt up to the full amount. This allows for optimizing gas costs against liquidation profits, especially for large positions where full liquidation might cause significant market impact.

Pre-Liquidation FAQ

Do I need to enable pre-liquidation manually?

Yes, pre-liquidation is an opt-in feature. Borrowers must explicitly authorize it and set their preferred parameters.

How much capital can pre-liquidation save?

The capital savings depend on several factors including market volatility and pre-liquidation parameters.

Can anyone perform pre-liquidations?

Yes, similar to standard liquidations, pre-liquidations are open to anyone who can identify eligible positions and execute the transaction. Some gated mechanisms can be implemented, but they are not pre-built at the pre-liquidation contract level.

How are pre-liquidation parameters determined?

Pre-liquidation parameters are fully customizable within their respective range. They should be determined using formulas that optimize for:

  • Creating a sufficient cushion zone between preLLTV and LLTV
  • Minimizing borrower losses while maintaining liquidator incentives
  • Ensuring the position returns to a healthy state after pre-liquidation

What happens if no one pre-liquidates my position?

If no pre-liquidation occurs and your position's LTV reaches the LLTV, it becomes eligible for standard liquidation, which may result in higher losses.

Liquidation Tools


By understanding both standard liquidation and pre-liquidation mechanisms, users can better manage their risk on Morpho and protect their positions from adverse market movements.