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