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
Usewhere
collateralis
priceis
Composes another plug inside this one.
Usewhere
collateral_valueis
lltvis
debtis
Composes another plug inside this one.
Usewhere
valueis
minimum_definitionis
Composes another plug inside this one.
Setto
Assigns a value to a named variable that later steps reference.
Bubble
Surfaces a value as an output of this plug.
Related plugs · 8
Not ready to run as it stands: it waits on values or a position of your own.