What this does
This plug computes a required amount by multiplying two caller inputs, then composes Morpho's Check Minimum Threshold to test it and surfaces the boolean result. It asks the caller for available_amount, needed_amount, and multiplier_definition at execution time. It runs whenever a caller executes it, returning the meets_required_amount flag from the composed threshold check. Computing the product and running the Morpho check by hand risks a mismatched required_amount or a stale threshold read.
Actions · 5





Related plugs · 8