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





Related plugs · 8