Morpho: Collateral Amount to Collateral Value
0x484428507A212cA56D71baa27Ca6089a6dB63a88

What this does

This plug converts a collateral amount into a collateral value by multiplying it against a supplied price. It asks the caller for two figures: the collateral amount and the per-unit price. It runs whenever it is invoked, with no threshold or stored state gating execution. Computing this by hand or against a stale price yields a collateral value that misstates the position it feeds.

Actions · 2

  • Calculate
    Calculate
    Applies a binary arithmetic operation to two values and returns the result.
  • Bubble
    Bubble
    Surfaces a value as an output of this plug.

Related plugs · 8