Morpho: Collateral Value to Borrow Capacity
0x484428507A212cA56D71baa27Ca6089a6dB63a88

What this does

This plug computes borrow capacity by taking the loan to value ratio as a WAD proportion of a collateral value. It asks the caller for collateral_value and lltv, both supplied at execution time. It fires whenever it is called, producing a single figure with no market reads or conditions. Computing this by hand or with a stale lltv or collateral value yields a borrow capacity that misstates what a position can safely draw.

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