What this does
This plug checks whether a Morpho Blue market holds enough available liquidity to cover a required borrow amount. It asks the caller for the market, a debt figure, and a multiplier_definition that scales the required amount. It runs when invoked, deriving the market's liquidity from supplied assets minus borrowed assets and comparing it against the scaled requirement. Reading this liquidity by hand or from a stale figure risks committing to a market that cannot fund the intended borrow.
Actions · 4




Related plugs · 8