Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Liquidation on Morpho

Morpho Liquidation Concept

Overview

Liquidation is a critical mechanism in the Morpho protocol that protects lenders' capital by ensuring borrowers maintain healthy collateral positions. Morpho liquidation is built into the protocol core and allows full or partial position liquidation when a borrower's Loan-To-Value (LTV) exceeds the Liquidation Loan-To-Value (LLTV) threshold.

Understanding Loan-To-Value (LTV)

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

How to Calculate LTV

The Loan-To-Value (LTV) 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_AMOUNTCOLLATERAL_VALUE_IN_LOAN_TOKEN×100%\text{LTV} = \frac{\text{BORROWED\_AMOUNT}}{\text{COLLATERAL\_VALUE\_IN\_LOAN\_TOKEN}} \times 100\%

The collateral value in loan token units is calculated as:

COLLATERAL_VALUE_IN_LOAN_TOKEN=COLLATERAL_AMOUNT × ORACLE_PRICEORACLE_PRICE_SCALE\text{COLLATERAL\_VALUE\_IN\_LOAN\_TOKEN} = \frac{\text{COLLATERAL\_AMOUNT } \times \text{ ORACLE\_PRICE}}{\text{ORACLE\_PRICE\_SCALE}}

Health Factor

The Health Factor is another crucial metric that indicates how close a position is to liquidation:

HEALTH_FACTOR=COLLATERAL_VALUE_IN_LOAN_TOKEN×LLTVBORROWED_AMOUNT\text{HEALTH\_FACTOR} = \frac{\text{COLLATERAL\_VALUE\_IN\_LOAN\_TOKEN} \times \text{LLTV}}{\text{BORROWED\_AMOUNT}}

A position is healthy when the Health Factor is greater than 1.0. When it falls below 1.0, the position becomes eligible for liquidation.

Liquidation Mechanism

Liquidation 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 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

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 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

Bad Debt Consideration

Morpho Vaults V2 - Loss Socialization

Morpho Vault V2 implements an automatic loss socialization mechanism where losses - including bad debt from underlying adapters - are detected and distributed proportionally across all shareholders through share price depreciation.

How It Works

  1. Loss Detection: Each adapter reports the actual current value of its investments via a realAssets() function. When bad debt occurs in an underlying adapter, this reported value automatically decreases.

  2. Loss Realization: During interest accrual, the vault compares the reported real asset value to its internally tracked total. If realAssets has dropped below the previously recorded totalAssets, the vault updates its accounting downward to reflect the loss.

  3. Automatic Socialization: Share value is determined via convertToAssets(), which computes shares × (totalAssets + 1) / (totalSupply + virtualShares). When totalAssets decreases, every share redeems for fewer assets. No shares are burned - all shareholders absorb the loss proportionally.

Important Considerations

  • Management fee continue to accrue even during loss periods.
  • Flash loan protection: The vault includes safeguards against share price manipulation around loss realization events, as losses are only accounted for once per transaction.

Legacy - Morpho Vaults V1

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

Morpho Vaults V1.0 - Bad Debt Realization (Legacy)

The Morpho Vaults created with the MetaMorpho FactoryV1.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 (Legacy)

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.

How are liquidations guaranteed for assets like cbBTC/stETH?

Liquidations in Morpho are driven by economic incentives rather than absolute guarantees. The protocol doesn't perform liquidations itself; instead, when a position becomes unhealthy, it becomes eligible for liquidation by external actors. The system is designed with incentives (via the Liquidation Incentive Factor) to make liquidations profitable enough that third parties will consistently execute them.

For assets like cbBTC or stETH, the key factor is whether the market's specific LIF provides enough incentive to outweigh potential costs associated with liquidating that particular collateral type. The ability to perform partial liquidations also helps with larger positions, as they can be liquidated incrementally by multiple parties or in several steps.

Who are the liquidators and what tools do they use?

Liquidators are permissionless participants in the Morpho ecosystem. Anyone who identifies an eligible position and has the necessary assets can perform a liquidation. The ecosystem includes a diverse range of participants, from sophisticated teams running automated bots to individuals.

At a basic level, performing a liquidation only requires access to an RPC node and a wallet with sufficient assets. However, competitive liquidators typically utilize automated bots that continuously monitor onchain data (loan positions, oracle prices) to identify and execute liquidations efficiently.

Some liquidators implement swap systems allowing them to seize collateral and repay loans without needing to hold the loan asset beforehand, effectively acting as a liquidity venue. The Morpho ecosystem also includes open-source liquidation bots that community members can deploy.

Liquidation Tools


By understanding liquidation mechanics, users can better manage their risk on Morpho and protect their positions from adverse market movements.