Morpho: Check Health Factor Vs. Min Threshold
0x484428507A212cA56D71baa27Ca6089a6dB63a88

What this does

This plug derives a Morpho Blue position's health factor from collateral value, loan-to-value, and debt, then checks it against a minimum threshold. It asks the caller for collateral, price, lltv, debt, and minimum_health_factor. It fires whenever it is run, returning a boolean about whether the computed health factor clears the supplied floor. Computing the ratio by hand or feeding a stale price returns a health reading that no longer matches the position, so any gating decision built on it can be wrong.

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