I am currently in the process of writing a smart contract in which I would like to implement some of the functionality of 1inch. The contract address of 1inch on the polygon network is on the following link:
I would like to write a function in solidity that makes a call to the swap function. The parameters of the swap functions are:
function swap( IAggregationExecutor caller, SwapDescription calldata desc, bytes calldata data )
I am unsure as to what to pass for
" IAggregationExecutor caller" and " bytes calldata data"
Do you guys have any ideas?