What this does
This plug computes a Morpho position's health factor as collateral value scaled by loan-to-value divided by outstanding debt, rounded down. It asks the caller for collateral_value, lltv, and debt at execution time. It proceeds only when debt is greater than zero, reverting when no debt is present. Running this by hand or against stale collateral, lltv, or debt figures yields a health factor that misstates how close a position sits to liquidation.
Actions · 6






Related plugs · 8