Morpho: Collateral Value to Borrow Capacity
0x484428507A212cA56D71baa27Ca6089a6dB63a88

What this does

This plug computes borrow capacity from a supplied collateral value on Morpho by applying a loan to value ratio as a WAD scaled proportion. It asks the caller for collateral_value and lltv at execution time. It fires whenever the caller runs it with those two inputs, returning borrow_capacity as its output. Computing this by hand or against a stale lltv risks a borrow capacity figure that no longer matches the market's current parameters.

Actions · 3

  • Calculate proportional value
    Calculate of
    Calculates a proportion of a value using percent, basis points, WAD, or RAY units.
  • 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