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
)