Transaction Hash:
Block:
19647574 at Apr-13-2024 03:34:47 PM +UTC
Transaction Fee:
0.00204882418766394 ETH
$7.51
Gas Used:
136,530 Gas / 15.006402898 Gwei
Emitted Events:
339 |
L1Token.Transfer( from=[Sender] 0xa8ab8dc3a156aa7aa0d8e6f4507017488ac50359, to=UniswapV2Pair, value=30000000000000000000 )
|
340 |
WETH9.Transfer( src=UniswapV2Pair, dst=[Receiver] UniversalRouter, wad=1531602570680379143 )
|
341 |
UniswapV2Pair.Sync( reserve0=4188240753696518622161, reserve1=212931201199247917210 )
|
342 |
UniswapV2Pair.Swap( sender=[Receiver] UniversalRouter, amount0In=30000000000000000000, amount1In=0, amount0Out=0, amount1Out=1531602570680379143, to=[Receiver] UniversalRouter )
|
343 |
WETH9.Transfer( src=[Receiver] UniversalRouter, dst=FeeCollector, wad=3829006426700947 )
|
344 |
WETH9.Withdrawal( src=[Receiver] UniversalRouter, wad=1527773564253678196 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x34cb778e...900BdEa26
Miner
| (Fee Recipient: 0x34...a26) | 1,674.737674889875408328 Eth | 1,674.737675026405408328 Eth | 0.00000013653 | |
0x8AFE4055...ca511d852 | |||||
0xa8ab8Dc3...88AC50359 |
13.421794503247644954 Eth
Nonce: 228
|
14.94751924331365921 Eth
Nonce: 229
| 1.525724740066014256 | ||
0xC02aaA39...83C756Cc2 | 3,049,987.2154934977752679 Eth | 3,049,985.687719933521589704 Eth | 1.527773564253678196 | ||
0xCB37089f...994d7a625 |
Execution Trace
UniversalRouter.execute( commands=0x08060C, inputs=[AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGgVWkNnbgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABU76NSWvo7SAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAiv5AVevIa9Kvs5QMAJXJrKUR2FIAAAAAAAAAAAAAAADAKqo5siP+jQoOXE8n6tkIPHVswg==, AAAAAAAAAAAAAAAAwCqqObIj/o0KDlxPJ+rZCDx1bMIAAAAAAAAAAAAAAAA3qPKVYSYC8ndNMx5WK+nmG4OjJwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVLlHZLWhSTQ==], deadline=1713022643 )
Permit2.transferFrom( from=0xa8ab8Dc3a156Aa7Aa0d8E6F4507017488AC50359, to=0xCB37089fC6A6faFF231B96e000300a6994d7a625, amount=30000000000000000000, token=0x8AFE4055Ebc86Bd2AFB3940c0095C9aca511d852 )
-
L1Token.transferFrom( sender=0xa8ab8Dc3a156Aa7Aa0d8E6F4507017488AC50359, recipient=0xCB37089fC6A6faFF231B96e000300a6994d7a625, amount=30000000000000000000 ) => ( True )
-
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 0 )
-
UniswapV2Pair.STATICCALL( )
-
L1Token.balanceOf( account=0xCB37089fC6A6faFF231B96e000300a6994d7a625 ) => ( 4188240753696518622161 )
UniswapV2Pair.swap( amount0Out=0, amount1Out=1531602570680379143, to=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, data=0x )
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 1531602570680379143 )
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 1531602570680379143 )
-
WETH9.transfer( dst=0x37a8f295612602f2774d331e562be9e61B83a327, wad=3829006426700947 ) => ( True )
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 1527773564253678196 )
WETH9.withdraw( wad=1527773564253678196 )
- ETH 1.527773564253678196
UniversalRouter.CALL( )
- ETH 1.527773564253678196
- ETH 1.527773564253678196
0xa8ab8dc3a156aa7aa0d8e6f4507017488ac50359.CALL( )
execute[UniversalRouter (ln:16)]
execute[UniversalRouter (ln:21)]
execute[UniversalRouter (ln:21)]
File 1 of 6: UniversalRouter
File 2 of 6: UniswapV2Pair
File 3 of 6: L1Token
File 4 of 6: WETH9
File 5 of 6: FeeCollector
File 6 of 6: Permit2
12345678910111213141516// SPDX-License-Identifier: GPL-3.0-or-laterpragma solidity ^0.8.17;// Command implementationsimport {Dispatcher} from './base/Dispatcher.sol';import {RewardsCollector} from './base/RewardsCollector.sol';import {RouterParameters, RouterImmutables} from './base/RouterImmutables.sol';import {Commands} from './libraries/Commands.sol';import {IUniversalRouter} from './interfaces/IUniversalRouter.sol';contract UniversalRouter is RouterImmutables, IUniversalRouter, Dispatcher, RewardsCollector {modifier checkDeadline(uint256 deadline) {if (block.timestamp > deadline) revert TransactionDeadlinePassed();_;}constructor(RouterParameters memory params) RouterImmutables(params) {}/// @inheritdoc IUniversalRouterfunction execute(bytes calldata commands, bytes[] calldata inputs, uint256 deadline)
File 2 of 6: UniswapV2Pair
12345678910111213141516// File: contracts/interfaces/IUniswapV2Pair.solpragma solidity >=0.5.0;interface IUniswapV2Pair {event Approval(address indexed owner, address indexed spender, uint value);event Transfer(address indexed from, address indexed to, uint value);function name() external pure returns (string memory);function symbol() external pure returns (string memory);function decimals() external pure returns (uint8);function totalSupply() external view returns (uint);function balanceOf(address owner) external view returns (uint);function allowance(address owner, address spender) external view returns (uint);function approve(address spender, uint value) external returns (bool);
File 3 of 6: L1Token
12345678910111213141516// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)pragma solidity ^0.8.0;import "../utils/Context.sol";/*** @dev Contract module which provides a basic access control mechanism, where* there is an account (an owner) that can be granted exclusive access to* specific functions.** By default, the owner account will be the one that deploys the contract. This* can later be changed with {transferOwnership}.** This module is used through inheritance. It will make available the modifier* `onlyOwner`, which can be applied to your functions to restrict their use to* the owner.*/
File 4 of 6: 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 5 of 6: FeeCollector
12345678910111213141516// SPDX-License-Identifier: GPL-2.0-or-laterpragma solidity ^0.8.0;import {Owned} from "solmate/auth/Owned.sol";import {ERC20} from "solmate/tokens/ERC20.sol";import {SafeTransferLib} from "solmate/utils/SafeTransferLib.sol";import {IFeeCollector} from "./interfaces/IFeeCollector.sol";import {IPermit2} from "./external/IPermit2.sol";/// @notice The collector of protocol fees that will be used to swap and send to a fee recipient address.contract FeeCollector is Owned, IFeeCollector {using SafeTransferLib for ERC20;error UniversalRouterCallFailed();address private immutable universalRouter;ERC20 private immutable feeToken;IPermit2 private immutable permit2;uint256 private constant MAX_APPROVAL_AMOUNT = type(uint256).max;uint160 private constant MAX_PERMIT2_APPROVAL_AMOUNT = type(uint160).max;
File 6 of 6: Permit2
12345678910111213141516// SPDX-License-Identifier: AGPL-3.0-onlypragma solidity >=0.8.0;/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation./// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.abstract contract ERC20 {/*//////////////////////////////////////////////////////////////EVENTS//////////////////////////////////////////////////////////////*/event Transfer(address indexed from, address indexed to, uint256 amount);event Approval(address indexed owner, address indexed spender, uint256 amount);/*//////////////////////////////////////////////////////////////METADATA STORAGE//////////////////////////////////////////////////////////////*/string public name;