Skip to main content

SushiXSwap

SushiXSwap enables cross chain swaps for SushiSwap users, using Stargate as the bridge. It supports: BentoBox, Wallet, Trident, Legacy AMM.

The full contract can be found here.

Functions

cook

function cook(
uint8[] memory actions,
uint256[] memory values,
bytes[] memory datas
) public payable override

Executes a set of actions and allows composability (contract calls) to other contracts.

Parameters

NameTypeDescription
actionsuint8[]array with sequence of actions to execute
valuesuint256[]one-to-one mapped array to actions; native token amount to send along with action
datasbytes[]one-to-one mapped array to actions; abi encoded data of function arguments