For the complete documentation index, see llms.txt. This page is also available as Markdown.

AggregationRouterV5

Git Source

Functions

swap

function swap(
    address executor,
    SwapDescription calldata desc,
    bytes calldata permit,
    bytes calldata data
)
    external
    payable
    returns (uint256 returnAmount, uint256 spentAmount);

Structs

SwapDescription

struct SwapDescription {
    ERC20 srcToken;
    ERC20 dstToken;
    address payable srcReceiver;
    address payable dstReceiver;
    uint256 amount;
    uint256 minReturnAmount;
    uint256 flags;
}

Was this helpful?