hey guys
I am calling swap method of AggregationRouterV5 in 1inch from my contract.
But I don't know what should I input for permit and data parameter.
Can you please share me an example?
Jan 5, 2024, 12:54 AM
etherscan is full of examples =)
https://etherscan.io/address/0x1111111254eeb25477b68fb85ed929f73a960582
paste the calldata here
https://openchain.xyz/tools/abi
https://openchain.xyz/tools/abi
re-organize your ideas with the new data
Jan 5, 2024, 12:56 AM
I can't understand how this data bytes parameter of swap method used in the code. Can you explain me what datas this byte is made of?
Jan 5, 2024, 1:00 AM
it's the permit, hashed data that is checked for integrity.
If you don't know, check ERC20Permit from openZeppelin
It's the same logic used to mint random generated NFTs by centralized servers
If you don't know, check ERC20Permit from openZeppelin
It's the same logic used to mint random generated NFTs by centralized servers
Jan 5, 2024, 1:04 AM
Not permit, I mean data bytes parameter of swap function.
Jan 5, 2024, 1:05 AM
that should be an example
https://github.com/tangtj/bsc-contract-database/blob/7f04f769d370ea91c581748a74896497ea919a9c/source/0x717472857a7860DABf914ED9e9335A78E47267b1#L804
https://github.com/tangtj/bsc-contract-database/blob/7f04f769d370ea91c581748a74896497ea919a9c/source/0x717472857a7860DABf914ED9e9335A78E47267b1#L804
Jan 5, 2024, 1:09 AM
There is no code how the executeData is made of. Could you please share any other example?
Jan 5, 2024, 1:53 AM
You need to search :)
I've not used the v5 router manually, yet
I've not used the v5 router manually, yet
Jan 5, 2024, 2:30 AM