What this does
This plug computes a Morpho position's health factor by multiplying collateral_value by lltv and dividing by debt, rounding down. It asks the caller for collateral_value, lltv, and debt at execution time. It requires debt to be above zero before computing, since a zero debt would leave the division unresolved. Computing this by hand or reading it off a stale collateral, lltv, or debt figure yields a health factor that misstates how close the position sits to liquidation.
Actions · 6






Related plugs · 8