What this does
This plug routes a token swap by transferring sellToken to the solver and requiring the buyToken balance to increase by at least a caller-set floor. It asks the caller for account, sellAmount, sellToken, buyToken, and minReceive. It runs on demand and settles only when the post-routing buyToken balance is greater than or equal to the pre-routing balance plus minReceive, reverting otherwise. Setting minReceive by hand or against a stale price risks reverting or accepting a worse output than the market allows.
Actions · 11











Related plugs · 8