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





Related plugs · 8