Skip to content

Collateral, LTV & Health

When a user borrows from a Morpho Market, their position's safety is determined by the relationship between their collateral, their debt, and the market's risk parameters. Understanding and clearly displaying these metrics is one of the most critical responsibilities when building a borrow integration.

This page explains the core concepts of Collateral, Loan-to-Value (LTV), and Health Factor.

Collateral

In Morpho, collateral is the asset a user supplies to a market to secure their loan. For example, in a wstETH/WETH market, wstETH is the collateral. This collateral acts as a guarantee for lenders that the protocol can recover funds if the borrower defaults.

A user's collateral is specific to each market; it is not cross-margined at the market level. Also, the action to supply collateral does not generate yield.

Understanding Loan-To-Value (LTV)

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

Liquidation Loan-to-Value (LLTV)

The Liquidation Loan-to-Value (LLTV) is the maximum LTV a position can reach before it becomes eligible for liquidation. It is a fixed, immutable parameter for each market, chosen from a DAO-approved list at the time of creation.

The rule is simple and absolute: If LTVLLTV, the position can be liquidated.

For example, if a market's LLTV is 86%, a user's position is at risk of liquidation as soon as their LTV reaches or exceeds 86%.

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.

The Role of Oracles

The accuracy of LTV and Health Factor calculations depends on the Oracle Price.

  • Dynamic Pricing: The oracle provides the real-time exchange rate between the collateral and loan assets. This price is the most dynamic variable in the health calculation.
  • Oracle Complexity: The oracle for a market might not be a single price feed. It could be a combination of feeds (e.g., wstETH -> stETH and stETH -> ETH) or rely on other onchain data.
  • Risk Exposure: The reliability of your LTV and Health Factor display is a direct reflection of the oracle's reliability. Any latency, inaccuracy, or manipulation of the oracle's price can directly impact user positions.

When displaying market information, it is crucial to also provide transparency about the oracle being used.

Integration Best Practices

For any application with a borrow interface, a primary goal should be to help users avoid liquidation.

  1. Display Health Factor Prominently: This should be the most visible metric on any position management dashboard. Use visual aids like colors (green, yellow, red) or progress bars to indicate safety levels.

  2. Clearly State the LLTV: Users must know the exact "point of no return" for their position. Display the market's LLTV alongside the user's current LTV.

  3. Implement Proactive Alerts: When a user's Health Factor drops below a certain safe threshold (e.g., 1.1), trigger notifications in your UI or via other channels to prompt them to add more collateral or repay part of their loan.

  4. Incorporate Safety Buffers: Do not allow users to borrow the maximum amount that would place their Health Factor exactly at 1.0. Your interface should enforce a safety margin, for example, by limiting borrows to a Health Factor of 1.05 or higher.

  5. Simulate Transactions: Before submitting a borrow or withdrawCollateral transaction, simulate its effect on the user's Health Factor. Show the user what their new Health Factor will be before they sign the transaction.

By following these best practices, you can build a borrow experience that is not only functional but also safe and transparent for your users.

Next Up: Learn what happens when the Health Factor drops below 1.0 in the Liquidation concept page.