Morpho: Check Market Liquidity Vs. Required Amount
Ethereum
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
Usewhere
morpho_marketis
Composes another plug inside this one.
Usewhere
available_amountis
needed_amountis
multiplier_definitionis
Composes another plug inside this one.
Setto
Assigns a value to a named variable that later steps reference.
Bubble
Surfaces a value as an output of this plug.
Related plugs · 8
Not ready to run as it stands: it waits on values or a position of your own.