Swap on the Same Network

When making an exchange on the same network, the frontend calls the executeLocal function, passing in the parameters the addresses of the tokens (source and destination), the address of the recipient (optional), the amount in the source token, and the parameters of the exchange route.

The contract makes the exchange, then sends the target token to the recipient. If the recipient's address is not specified, it is set to the sender's address.

Last updated