Skip to content

A query about the structure of "data" parameter of Swap function in 1inch AggregationRouterV5. #99

@CLEILI

Description

@CLEILI

Hi there!

Now I want to know the structure of "data" so that I can parse it, the doc just says "see tests for usage example". It confused me. Does anyone know what it is? I would appreciate it if someone can tell me something about it.

A tip is that I found that sometimes the "data" begins with "0x00000000" but not the standard function signature.

The swap function in AggregationRouterV5 is like this

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions