Transaction Hash:
Block:
21928125 at Feb-26-2025 04:29:59 AM +UTC
Transaction Fee:
0.00067471041964612 ETH
$1.87
Gas Used:
254,540 Gas / 2.650704878 Gwei
Emitted Events:
116 |
Permit2.Permit( owner=[Sender] 0x1ad70c74a424ef25eebf12163ac123e717c75249, token=TetherToken, spender=[Receiver] UniversalRouter, amount=1461501637330902918203684832716283019655932542975, expiration=1743136157, nonce=0 )
|
117 |
TetherToken.Transfer( from=[Sender] 0x1ad70c74a424ef25eebf12163ac123e717c75249, to=UniswapV2Pair, value=2311470257 )
|
118 |
WETH9.Transfer( src=UniswapV2Pair, dst=[Receiver] UniversalRouter, wad=924777788589583807 )
|
119 |
UniswapV2Pair.Sync( reserve0=4364677840868155077108, reserve1=10879039550916 )
|
120 |
UniswapV2Pair.Swap( sender=[Receiver] UniversalRouter, amount0In=0, amount1In=2311470257, amount0Out=924777788589583807, amount1Out=0, to=[Receiver] UniversalRouter )
|
121 |
WETH9.Transfer( src=UniswapV3Pool, dst=[Receiver] UniversalRouter, wad=17568623310859822158 )
|
122 |
TetherToken.Transfer( from=[Sender] 0x1ad70c74a424ef25eebf12163ac123e717c75249, to=UniswapV3Pool, value=43917934891 )
|
123 |
UniswapV3Pool.Swap( sender=[Receiver] UniversalRouter, recipient=[Receiver] UniversalRouter, amount0=-17568623310859822158, amount1=43917934891, sqrtPriceX96=3960854322010711897298122, liquidity=2898208524557651111, tick=-198083 )
|
124 |
WETH9.Transfer( src=[Receiver] UniversalRouter, dst=FeeCollector, wad=46233502748623514 )
|
125 |
WETH9.Withdrawal( src=[Receiver] UniversalRouter, wad=18447167596700782451 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x00000000...43aC78BA3 | (Uniswap Protocol: Permit2) | ||||
0x0d4a11d5...0471f1852 | |||||
0x11b815ef...14B7697F6 | (Uniswap V3: USDT 3) | ||||
0x1AD70C74...717c75249 |
0.033649139918376824 Eth
Nonce: 5
|
18.480142026199513155 Eth
Nonce: 6
| 18.446492886281136331 | ||
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 8.405838149647447581 Eth | 8.406347229647447581 Eth | 0.00050908 | |
0xC02aaA39...83C756Cc2 | 2,919,771.573002691822703727 Eth | 2,919,753.125835095121921276 Eth | 18.447167596700782451 | ||
0xdAC17F95...13D831ec7 |
Execution Trace
UniversalRouter.execute( commands=0x0A0800060C, inputs=[AAAAAAAAAAAAAAAA2sF/lY0u5SOiIGIGmUWXwT2DHscAAAAAAAAAAAAAAAD//////////////////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABn5iWdAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/yRo6/XA5XNSWxkfVpsydSyt/rQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABnvp+lAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQYM23CFUrNNHqNnAYer90mCR1TSCQ1W8cy3kPw9WqsPkBWfxV1DGqrmTT28+CbYZSWCTr17cCSYHRHeDM+38FPAbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAicY8sQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAA2sF/lY0u5SOiIGIGmUWXwT2DHscAAAAAAAAAAAAAAADAKqo5siP+jQoOXE8n6tkIPHVswg==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKObaBKwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAr2sF/lY0u5SOiIGIGmUWXwT2DHscAAfTAKqo5siP+jQoOXE8n6tkIPHVswgAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAwCqqObIj/o0KDlxPJ+rZCDx1bMIAAAAAAAAAAAAAAAAAAAD+4ToQOhDVk7muBrPgXy5+HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ, AAAAAAAAAAAAAAAAGtcMdKQk7yXuvxIWOsEj5xfHUkkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+9MwLQr2zLQ==], deadline=1740545978 )
Permit2.permit( owner=0x1AD70C74A424ef25eEBF12163AC123E717c75249, permitSingle=[{name:details, type:tuple, order:1, indexed:false, value:[{name:token, type:address, order:1, indexed:false, value:0xdAC17F958D2ee523a2206206994597C13D831ec7, valueString:0xdAC17F958D2ee523a2206206994597C13D831ec7}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1743136157, valueString:1743136157}, {name:nonce, type:uint48, order:4, indexed:false, value:0, valueString:0}], valueString:[{name:token, type:address, order:1, indexed:false, value:0xdAC17F958D2ee523a2206206994597C13D831ec7, valueString:0xdAC17F958D2ee523a2206206994597C13D831ec7}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1743136157, valueString:1743136157}, {name:nonce, type:uint48, order:4, indexed:false, value:0, valueString:0}]}, {name:spender, type:address, order:2, indexed:false, value:0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, valueString:0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD}, {name:sigDeadline, type:uint256, order:3, indexed:false, value:1740545957, valueString:1740545957}], signature=0x8336DC2154ACD347A8D9C061EAFDD26091D534824355BC732DE43F0F56AAC3E40567F15750C6AAB9934F6F3E09B619496093AF5EDC09260744778333EDFC14F01B )
-
Null: 0x000...001.bda56a04( )
-
Permit2.transferFrom( from=0x1AD70C74A424ef25eEBF12163AC123E717c75249, to=0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852, amount=2311470257, token=0xdAC17F958D2ee523a2206206994597C13D831ec7 )
-
TetherToken.transferFrom( _from=0x1AD70C74A424ef25eEBF12163AC123E717c75249, _to=0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852, _value=2311470257 )
-
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 0 )
-
UniswapV2Pair.STATICCALL( )
-
TetherToken.balanceOf( who=0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852 ) => ( 10879039550916 )
UniswapV2Pair.swap( amount0Out=924777788589583807, amount1Out=0, to=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, data=0x )
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 924777788589583807 )
UniswapV3Pool.swap( recipient=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, zeroForOne=False, amountSpecified=43917934891, sqrtPriceLimitX96=1461446703485210103287273052203988822378723970341, data=0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000001AD70C74A424EF25EEBF12163AC123E717C75249000000000000000000000000000000000000000000000000000000000000002BDAC17F958D2EE523A2206206994597C13D831EC70001F4C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000000000000000000000 ) => ( amount0=-17568623310859822158, amount1=43917934891 )
-
WETH9.transfer( dst=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, wad=17568623310859822158 ) => ( True )
-
TetherToken.balanceOf( who=0x11b815efB8f581194ae79006d24E0d814B7697F6 ) => ( 8091368937255 )
UniversalRouter.uniswapV3SwapCallback( amount0Delta=-17568623310859822158, amount1Delta=43917934891, data=0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000001AD70C74A424EF25EEBF12163AC123E717C75249000000000000000000000000000000000000000000000000000000000000002BDAC17F958D2EE523A2206206994597C13D831EC70001F4C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000000000000000000000 )
Permit2.transferFrom( from=0x1AD70C74A424ef25eEBF12163AC123E717c75249, to=0x11b815efB8f581194ae79006d24E0d814B7697F6, amount=43917934891, token=0xdAC17F958D2ee523a2206206994597C13D831ec7 )
-
TetherToken.transferFrom( _from=0x1AD70C74A424ef25eEBF12163AC123E717c75249, _to=0x11b815efB8f581194ae79006d24E0d814B7697F6, _value=43917934891 )
-
-
TetherToken.balanceOf( who=0x11b815efB8f581194ae79006d24E0d814B7697F6 ) => ( 8135286872146 )
-
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 18493401099449405965 )
-
WETH9.transfer( dst=0x000000fee13a103A10D593b9AE06b3e05F2E7E1c, wad=46233502748623514 ) => ( True )
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 18447167596700782451 )
WETH9.withdraw( wad=18447167596700782451 )
- ETH 18.447167596700782451
UniversalRouter.CALL( )
- ETH 18.447167596700782451
- ETH 18.447167596700782451
0x1ad70c74a424ef25eebf12163ac123e717c75249.CALL( )
execute[UniversalRouter (ln:16)]
execute[UniversalRouter (ln:21)]
execute[UniversalRouter (ln:21)]
File 1 of 7: UniversalRouter
File 2 of 7: Permit2
File 3 of 7: UniswapV2Pair
File 4 of 7: TetherToken
File 5 of 7: WETH9
File 6 of 7: UniswapV3Pool
File 7 of 7: 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 7: 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;
File 3 of 7: 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 7: TetherToken
12345678910111213141516pragma solidity ^0.4.17;/*** @title SafeMath* @dev Math operations with safety checks that throw on error*/library SafeMath {function mul(uint256 a, uint256 b) internal pure returns (uint256) {if (a == 0) {return 0;}uint256 c = a * b;assert(c / a == b);return c;}
File 5 of 7: 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 6 of 7: UniswapV3Pool
12345678910111213141516// SPDX-License-Identifier: BUSL-1.1pragma solidity =0.7.6;import './interfaces/IUniswapV3Pool.sol';import './NoDelegateCall.sol';import './libraries/LowGasSafeMath.sol';import './libraries/SafeCast.sol';import './libraries/Tick.sol';import './libraries/TickBitmap.sol';import './libraries/Position.sol';import './libraries/Oracle.sol';import './libraries/FullMath.sol';import './libraries/FixedPoint128.sol';import './libraries/TransferHelper.sol';import './libraries/TickMath.sol';import './libraries/LiquidityMath.sol';import './libraries/SqrtPriceMath.sol';
File 7 of 7: 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;