Morpho: Check Market Liquidity Vs. Required Amount
0x484428507A212cA56D71baa27Ca6089a6dB63a88

What this does

This plug reads a named Morpho market's available liquidity and returns whether it meets a required amount computed from a debt figure and a multiplier. It asks the caller for the market, the debt, and the multiplier_definition scaling factor. It runs on demand whenever the caller executes it, composing the Get Market Liquidity and Check Required Amount plugs inline. Checking market liquidity by hand or against a stale total risks acting on a market that cannot cover the required 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