Transaction Hash:
Block:
20537367 at Aug-15-2024 11:40:59 PM +UTC
Transaction Fee:
0.000568876970404761 ETH
$1.44
Gas Used:
152,679 Gas / 3.725967359 Gwei
Emitted Events:
120 |
WETH9.Deposit( dst=[Receiver] UniversalRouter, wad=6000000000000000 )
|
121 |
WETH9.Transfer( src=[Receiver] UniversalRouter, dst=UniswapV2Pair, wad=6000000000000000 )
|
122 |
Tonken.Transfer( from=UniswapV2Pair, to=[Receiver] UniversalRouter, value=548334885054479 )
|
123 |
UniswapV2Pair.Sync( reserve0=677111613298644650, reserve1=7392875759965664094 )
|
124 |
UniswapV2Pair.Swap( sender=[Receiver] UniversalRouter, amount0In=0, amount1In=6000000000000000, amount0Out=548334885054479, amount1Out=0, to=[Receiver] UniversalRouter )
|
125 |
Tonken.Transfer( from=[Receiver] UniversalRouter, to=FeeCollector, value=1370837212636 )
|
126 |
Tonken.Transfer( from=[Receiver] UniversalRouter, to=[Sender] 0xca0db17a64f938f9e4b44e963da1206fad148ae1, value=546964047841843 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x194D0233...A873947DA | |||||
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 6.713329120149246539 Eth | 6.713634478149246539 Eth | 0.000305358 | |
0xC02aaA39...83C756Cc2 | 2,872,954.098967732944340962 Eth | 2,872,954.104967732944340962 Eth | 0.006 | ||
0xca0dB17a...fAd148aE1 |
0.013493021366976043 Eth
Nonce: 80
|
0.006924144396571282 Eth
Nonce: 81
| 0.006568876970404761 | ||
0xCeBcB466...899bC4b0D |
Execution Trace
ETH 0.006
UniversalRouter.execute( commands=0x0B080604, inputs=[AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFVD33KcAAA==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFVD33KcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB8Dn+h2tcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAwCqqObIj/o0KDlxPJ+rZCDx1bMIAAAAAAAAAAAAAAAAZTQIzsAg/cOMsKuSjRoQqhzlH2g==, AAAAAAAAAAAAAAAAGU0CM7AIP3DjLCrko0aEKoc5R9oAAAAAAAAAAAAAAAAAAAD+4ToQOhDVk7muBrPgXy5+HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ, AAAAAAAAAAAAAAAAGU0CM7AIP3DjLCrko0aEKoc5R9oAAAAAAAAAAAAAAADKDbF6ZPk4+eS0TpY9oSBvrRSK4QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB7vxoxc0C], deadline=1723764212278 )
- ETH 0.006
WETH9.CALL( )
-
WETH9.transfer( dst=0xCeBcB46647942dc4F6BfcD5aA0DA45F899bC4b0D, wad=6000000000000000 ) => ( True )
-
Tonken.balanceOf( account=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 0 )
-
UniswapV2Pair.STATICCALL( )
-
WETH9.balanceOf( 0xCeBcB46647942dc4F6BfcD5aA0DA45F899bC4b0D ) => ( 7392875759965664094 )
UniswapV2Pair.swap( amount0Out=548334885054479, amount1Out=0, to=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, data=0x )
-
Tonken.balanceOf( account=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 548334885054479 )
-
Tonken.balanceOf( account=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 548334885054479 )
-
Tonken.transfer( recipient=0x000000fee13a103A10D593b9AE06b3e05F2E7E1c, amount=1370837212636 ) => ( True )
-
Tonken.balanceOf( account=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 546964047841843 )
-
Tonken.transfer( recipient=0xca0dB17a64F938F9e4B44e963da1206fAd148aE1, amount=546964047841843 ) => ( True )
execute[UniversalRouter (ln:16)]
execute[UniversalRouter (ln:21)]
execute[UniversalRouter (ln:21)]
File 1 of 5: UniversalRouter
File 2 of 5: WETH9
File 3 of 5: UniswapV2Pair
File 4 of 5: Tonken
File 5 of 5: FeeCollector
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 5: 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 3 of 5: 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 4 of 5: Tonken
12345678910111213141516// SPDX-License-Identifier: MITpragma solidity ^0.8.26;interface IERC20 {function totalSupply() external view returns (uint256);function balanceOf(address account) external view returns (uint256);function transfer(address recipient, uint256 amount)externalreturns (bool);function allowance(address owner, address spender)externalviewreturns (uint256);
File 5 of 5: 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;address public universalRouter;ERC20 public immutable feeToken;IPermit2 public immutable permit2;uint256 public constant MAX_APPROVAL_AMOUNT = type(uint256).max;uint160 public constant MAX_PERMIT2_APPROVAL_AMOUNT = type(uint160).max;uint48 public constant MAX_PERMIT2_DEADLINE = type(uint48).max;