0x7c is the address of ERC20_TRANSFER_ID/PAIR_SWAP_ID bytes in the memory.
According to https://ethervm.io/ ,
this calls a method in another contract. For example, the first line calls the transfer function (ERC20_TRANSFER_ID) of the token, and the calldata is bytecodes from 0x7c to (0x7c+0x44), which means calling token.transfer(pair, amountIn), right? I'm confused because the amountIn is the amount of WETH and why transfer tokens to the pair address? And where can I find the signature of the contract function (for example, transfer(address,uint256), 0xa9059cbb) ? Thanks!
Hi, I'm confused by the usage of the call function in the Sandwich contract.
0x7c is the address of ERC20_TRANSFER_ID/PAIR_SWAP_ID bytes in the memory. According to https://ethervm.io/ ,
this calls a method in another contract. For example, the first line calls the transfer function (ERC20_TRANSFER_ID) of the token, and the calldata is bytecodes from 0x7c to (0x7c+0x44), which means calling token.transfer(pair, amountIn), right? I'm confused because the amountIn is the amount of WETH and why transfer tokens to the pair address? And where can I find the signature of the contract function (for example, transfer(address,uint256), 0xa9059cbb) ? Thanks!