- Ethereum
- Arbitrum
- Base
- Optimism
- Avalanche
- Polygon
- BSC
- Unichain
- Linea
Swap From EVM
To initiate a swap with an ERC20 token as input token you should first approve the required allowance to the forwarder contract or alternatively pass permit object to the contract.getSwapFromEvmTxPayload from SDK and then pass it to the Forwarder contract.
If you need to build the payload manually and use Mayan Forwarder, you should choose the right method based on your input token:
forwardERC20: Your input token is ERC20
swapAndForwardERC20: Similar toforwardERC20but you also need a swap in source chain before the actual bridging.
forwardEth: Your input token is the native token of chain
swapAndForwardEth: Similar toforwardEthbut you need a swap before the actual bridging.