Morpho: Check Health Factor Vs. Min Threshold
0x484428507A212cA56D71baa27Ca6089a6dB63a88

What this does

This plug computes a Morpho position's health factor and reports whether it clears a minimum threshold. It asks the caller for the collateral amount, the collateral price, the market's lltv, the outstanding debt, and the minimum_health_factor to test against. It converts collateral to value, derives the health factor from value, lltv, and debt, then compares that figure to the supplied floor. Reading this by hand or against a stale price risks misjudging whether a position sits above its liquidation-related threshold.

Actions · 5

  • Use
    Use where
    collateralis
    priceis
    Composes another plug inside this one.
  • Use
    Use where
    collateral_valueis
    lltvis
    debtis
    Composes another plug inside this one.
  • Use
    Use where
    valueis
    minimum_definitionis
    Composes another plug inside this one.
  • Set
    Set to
    Assigns a value to a named variable that later steps reference.
  • Bubble
    Bubble
    Surfaces a value as an output of this plug.

Related plugs · 8