Morpho: Check Market Liquidity Vs. Required Amount
0x484428507A212cA56D71baa27Ca6089a6dB63a88

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

  • Use
    Use where
    morpho_marketis
    Composes another plug inside this one.
  • Use
    Use where
    available_amountis
    needed_amountis
    multiplier_definitionis
    Composes another plug inside this one.
  • Set
    Set to
    Assigns a value to a named variable that later steps reference.
  • Bubble
    Bubble
    Surfaces a value as an output of this plug.

Related plugs · 8