Check Required Amount
0x484428507A212cA56D71baa27Ca6089a6dB63a88

What this does

This plug derives a required amount by multiplying a needed_amount by a multiplier, then checks it through the Morpho minimum-threshold plug. It asks the caller for available_amount, needed_amount, and multiplier_definition at execution time. It runs whenever invoked, composing the Morpho: Check Minimum Threshold plug and surfacing a meets_required_amount flag. Computing the scaled requirement and running the threshold check by hand risks applying the wrong multiplier or reading a stale figure, returning an incorrect pass or fail result.

Actions · 5

  • Calculate
    Calculate
    Applies a binary arithmetic operation to two values and returns the result.
  • Set
    Set to
    Assigns a value to a named variable that later steps reference.
  • Use
    Use where
    valueis
    minimum_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