What this does
This plug routes a caller-supplied amount of one token into another through the solver and verifies the result. It asks the caller for amount_in, token_in, min_out, and token_out. It fires when a run is submitted, transferring the input to the solver and settling only if the token_out gained is greater than or equal to min_out, reverting otherwise. Routing by hand or against a stale min_out risks accepting an output below the intended floor or a failed settlement.
Actions · 9









Related plugs · 8