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





Related plugs · 8