Swap tokens
Swap tokens

Plug · Acts onchain

Swaps one token for another through the solver over indexed liquidity. The input amount is transferred to the solver's executor, the route settles, and the socket's balance of the output token before and after is compared; the action requires amount_out meets the min_out floor or the transaction reverts, and returns amount_out. Set the amount to max to swap the full balance held. Native ETH works on either side. Reach for it to convert between assets mid-strategy, coiling amount_out into the deposit, repay, or transfer that follows.