Transaction Hash:
Block:
20704444 at Sep-08-2024 07:37:23 AM +UTC
Transaction Fee:
0.0001421626360323 ETH
$0.44
Gas Used:
91,610 Gas / 1.55182443 Gwei
Emitted Events:
175 |
WETH9.Transfer( src=[Sender] 0x409062a018e3355f158f0d13df222e161df92d79, dst=ERC20Router, wad=15000000000000000 )
|
176 |
WETH9.Approval( src=ERC20Router, guy=ERC20Router, wad=15000000000000000 )
|
177 |
WETH9.Withdrawal( src=ERC20Router, wad=15000000000000000 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x409062a0...61Df92d79 |
0.047495508222342594 Eth
Nonce: 195
|
0.047353345586310294 Eth
Nonce: 196
| 0.0001421626360323 | ||
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 6.92081075617670147 Eth | 6.92085030655305443 Eth | 0.00003955037635296 | |
0xC02aaA39...83C756Cc2 | 2,878,515.862367331980249256 Eth | 2,878,515.847367331980249256 Eth | 0.015 | ||
0xf70da978...8dfA3dbEF | (Relay: Solver) | 421.511657498043074315 Eth | 421.526657498043074315 Eth | 0.015 |
Execution Trace
ApprovalProxy.transferAndMulticall( tokens=[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2], amounts=[15000000000000000], targets=[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0xf70da97812CB96acDF810712Aa562db8dfA3dbEF], datas=[CV6nswAAAAAAAAAAAAAAAKG+pf6RdFAEF0jbu+fprFeku+urAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADVKa6ehgAA=, Lhp9TQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1SmunoYAA, ], values=[0, 0, 15000000000000000], refundTo=0xf70da97812CB96acDF810712Aa562db8dfA3dbEF ) => ( 0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000A000000000000000000000000000000000000000000000000000000000000000C00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 )
-
WETH9.transferFrom( src=0x409062a018E3355f158f0D13dF222E161Df92d79, dst=0xA1BEa5fe917450041748Dbbbe7E9AC57A4bBEBaB, wad=15000000000000000 ) => ( True )
ERC20Router.delegatecallMulticall( targets=[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0xf70da97812CB96acDF810712Aa562db8dfA3dbEF], datas=[CV6nswAAAAAAAAAAAAAAAKG+pf6RdFAEF0jbu+fprFeku+urAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADVKa6ehgAA=, Lhp9TQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1SmunoYAA, ], values=[0, 0, 15000000000000000], refundTo=0xf70da97812CB96acDF810712Aa562db8dfA3dbEF ) => ( 0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000A000000000000000000000000000000000000000000000000000000000000000C00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 )
Multicaller.aggregate( targets=[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0xf70da97812CB96acDF810712Aa562db8dfA3dbEF], data=[CV6nswAAAAAAAAAAAAAAAKG+pf6RdFAEF0jbu+fprFeku+urAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADVKa6ehgAA=, Lhp9TQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1SmunoYAA, ], values=[0, 0, 15000000000000000], refundTo=0xf70da97812CB96acDF810712Aa562db8dfA3dbEF ) => ( [AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE=, , ] )
transferAndMulticall[ApprovalProxy (ln:37)]
ArrayLengthsMismatch[ApprovalProxy (ln:47)]
ArrayLengthsMismatch[ApprovalProxy (ln:51)]
safeTransferFrom[ApprovalProxy (ln:55)]
delegatecallMulticall[ApprovalProxy (ln:60)]
File 1 of 4: ApprovalProxy
File 2 of 4: ERC20Router
File 3 of 4: WETH9
File 4 of 4: Multicaller
12345678910111213141516// SPDX-License-Identifier: MITpragma solidity ^0.8.23;import {Ownable} from "solady/src/auth/Ownable.sol";import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";import {IERC20Router} from "../src/types/interfaces/IERC20Router.sol";contract ApprovalProxy is Ownable {using SafeERC20 for IERC20;error ArrayLengthsMismatch();error ERC20TransferFromFailed();error NativeTransferFailed();event RouterUpdated(address newRouter);address public router;receive() external payable {}constructor(address _owner, address _router) {_initializeOwner(_owner);
File 2 of 4: ERC20Router
12345678910111213141516// SPDX-License-Identifier: MITpragma solidity ^0.8.25;import {Ownable} from "solady/src/auth/Ownable.sol";import {Tstorish} from "tstorish/src/Tstorish.sol";import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";import {IERC1155} from "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";import {IAllowanceTransfer} from "permit2-relay/src/interfaces/IAllowanceTransfer.sol";import {ISignatureTransfer} from "permit2-relay/src/interfaces/ISignatureTransfer.sol";import {IPermit2} from "permit2-relay/src/interfaces/IPermit2.sol";import {RelayerWitness} from "./types/lib/RelayStructs.sol";import {IMulticaller} from "./types/interfaces/IMulticaller.sol";contract ERC20Router is Ownable, Tstorish {using SafeERC20 for IERC20;// --- Errors --- //
File 3 of 4: WETH9
12345678910111213141516// Copyright (C) 2015, 2016, 2017 Dapphub// This program is free software: you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation, either version 3 of the License, or// (at your option) any later version.// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.// You should have received a copy of the GNU General Public License// along with this program. If not, see <http://www.gnu.org/licenses/>.pragma solidity ^0.4.18;
File 4 of 4: Multicaller
12345678910111213141516// SPDX-License-Identifier: MITpragma solidity ^0.8.4;/*** @title Multicaller* @author vectorized.eth* @notice Contract that allows for efficient aggregation* of multiple calls in a single transaction.*/contract Multicaller {// =============================================================// ERRORS// =============================================================/*** @dev The lengths of the input arrays are not the same.*/error ArrayLengthsMismatch();