Execution

swapUniswap(
        address tokenIn,
        address tokenOut,
        uint256 amountIn,
        uint256 amountOutMin
    ) external payable nonReentrant {

Executes swap on Uniswap v2

swapOneInch(
        address tokenIn,
        address tokenOut,
        uint256 amount,
        uint256 minReturn,
        bytes32[] calldata pools
    ) external payable nonReentrant

Executes swap on InchRouter

swapOneInchUniV3(
        address tokenIn,
        address tokenOut,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) external payable nonReentrant

Executes swaps on Uniswap v3 through uniswap

Last updated