Contract

This document is a contract description for optimal trade exchange. Developers, for in-depth code details and operational guidelines, please consult our GitHub repository.


Address

Aggregator Contract: 0x8af1C50eCD5167B97e14Fc25235580c84d5ea22F

Fuctions

// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity ^0.8.0;

interface IAggregator {
    struct MultiPathSwapOut {
        bytes[][] paths;
        address recipient;
        uint256 deadline;
        address tokenIn;
        address tokenOut;
        uint256[] amountIns;
        uint256 amountOutMinimum;
    }

    function multiPathSwapOut(
        MultiPathSwapOut calldata params
    )
        external
        payable
        returns (
            uint256 amountIn,
            uint256 amountOut,
            uint256 onlyOnePathAmountOut
        );
}

multiPathSwapOut

  • Used for exchanging an exact amount of tokens.

  • Utilized for optimal trade exchange.

Last updated