Transaction Hash:
Block:
21925222 at Feb-25-2025 06:45:47 PM +UTC
Transaction Fee:
0.0003454059 ETH
$0.97
Gas Used:
164,479 Gas / 2.1 Gwei
Emitted Events:
552 |
Permit2.Permit( owner=[Sender] 0xc4e06ef14a1789223a519b2f69526764dddecc17, token=Token, spender=[Receiver] UniversalRouter, amount=1461501637330902918203684832716283019655932542975, expiration=1743101222, nonce=0 )
|
553 |
WETH9.Transfer( src=UniswapV3Pool, dst=[Receiver] UniversalRouter, wad=2960081386728415 )
|
554 |
Token.Transfer( from=[Sender] 0xc4e06ef14a1789223a519b2f69526764dddecc17, to=UniswapV3Pool, value=2999081743069823 )
|
555 |
UniswapV3Pool.Swap( sender=[Receiver] UniversalRouter, recipient=[Receiver] UniversalRouter, amount0=2999081743069823, amount1=-2960081386728415, sqrtPriceX96=78715247759086400009938782038, liquidity=6029653548909473522534, tick=-130 )
|
556 |
WETH9.Transfer( src=[Receiver] UniversalRouter, dst=FeeCollector, wad=7400203466821 )
|
557 |
WETH9.Withdrawal( src=[Receiver] UniversalRouter, wad=2952681183261594 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x00000000...43aC78BA3 | (Uniswap Protocol: Permit2) | ||||
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 10.723593783977755558 Eth | 10.723703207237885238 Eth | 0.00010942326012968 | |
0x97Ad7506...7F007a706 | |||||
0xC02aaA39...83C756Cc2 | 2,912,401.636986872996965321 Eth | 2,912,401.634034191813703727 Eth | 0.002952681183261594 | ||
0xC4E06eF1...4dDDecC17 |
0.001958090576611473 Eth
Nonce: 3
|
0.004565365859873067 Eth
Nonce: 4
| 0.002607275283261594 | ||
0xCd530bEE...760b5bC5a | (Uniswap V3: beraSTONE 4) |
Execution Trace
UniversalRouter.execute( commands=0x0A00060C, inputs=[AAAAAAAAAAAAAAAAl611Bksg+yskR/7U+pU79/AHpwYAAAAAAAAAAAAAAAD//////////////////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABn5Z0mAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/yRo6/XA5XNSWxkfVpsydSyt/rQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABnvhcuAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQRc/35F9viT9XEIH5Oya2DRp6ysV/Gne8W/rTAdkRMIvNrzTuIQRmyAJlJwnb5eE/Jab/e34qJ+zfonQ5VokxTkcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACqemIfKyfwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArl611Bksg+yskR/7U+pU79/AHpwYAAGTAKqo5siP+jQoOXE8n6tkIPHVswgAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAwCqqObIj/o0KDlxPJ+rZCDx1bMIAAAAAAAAAAAAAAAAAAAD+4ToQOhDVk7muBrPgXy5+HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACf2RxZWGeQ==], deadline=1740509723 )
Permit2.permit( owner=0xC4E06eF14a1789223A519b2F69526764dDDecC17, permitSingle=[{name:details, type:tuple, order:1, indexed:false, value:[{name:token, type:address, order:1, indexed:false, value:0x97Ad75064b20fb2B2447feD4fa953bF7F007a706, valueString:0x97Ad75064b20fb2B2447feD4fa953bF7F007a706}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1743101222, valueString:1743101222}, {name:nonce, type:uint48, order:4, indexed:false, value:0, valueString:0}], valueString:[{name:token, type:address, order:1, indexed:false, value:0x97Ad75064b20fb2B2447feD4fa953bF7F007a706, valueString:0x97Ad75064b20fb2B2447feD4fa953bF7F007a706}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1743101222, valueString:1743101222}, {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:1740511022, valueString:1740511022}], signature=0x173FDF917DBE24FD5C4207E4EC9AD83469EB2B15FC69DEF16FEB4C076444C22F36BCD3B884119B2009949C276F9784FC969BFDEDF8A89FB37E89D0E55A24C5391C )
-
Null: 0x000...001.a2f032b7( )
-
UniswapV3Pool.swap( recipient=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, zeroForOne=True, amountSpecified=2999081743069823, sqrtPriceLimitX96=4295128740, data=0x0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000C4E06EF14A1789223A519B2F69526764DDDECC17000000000000000000000000000000000000000000000000000000000000002B97AD75064B20FB2B2447FED4FA953BF7F007A706000064C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000000000000000000000 ) => ( amount0=2999081743069823, amount1=-2960081386728415 )
-
WETH9.transfer( dst=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, wad=2960081386728415 ) => ( True )
-
Token.balanceOf( account=0xCd530bEEad88e30e3B672Eb52993bf7760b5bC5a ) => ( 302919750024341341521 )
UniversalRouter.uniswapV3SwapCallback( amount0Delta=2999081743069823, amount1Delta=-2960081386728415, data=0x0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000C4E06EF14A1789223A519B2F69526764DDDECC17000000000000000000000000000000000000000000000000000000000000002B97AD75064B20FB2B2447FED4FA953BF7F007A706000064C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000000000000000000000 )
Permit2.transferFrom( from=0xC4E06eF14a1789223A519b2F69526764dDDecC17, to=0xCd530bEEad88e30e3B672Eb52993bf7760b5bC5a, amount=2999081743069823, token=0x97Ad75064b20fb2B2447feD4fa953bF7F007a706 )
-
Token.transferFrom( from=0xC4E06eF14a1789223A519b2F69526764dDDecC17, to=0xCd530bEEad88e30e3B672Eb52993bf7760b5bC5a, value=2999081743069823 ) => ( True )
-
-
Token.balanceOf( account=0xCd530bEEad88e30e3B672Eb52993bf7760b5bC5a ) => ( 302922749106084411344 )
-
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 2960081386728415 )
-
WETH9.transfer( dst=0x000000fee13a103A10D593b9AE06b3e05F2E7E1c, wad=7400203466821 ) => ( True )
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 2952681183261594 )
WETH9.withdraw( wad=2952681183261594 )
- ETH 0.002952681183261594
UniversalRouter.CALL( )
- ETH 0.002952681183261594
- ETH 0.002952681183261594
0xc4e06ef14a1789223a519b2f69526764dddecc17.CALL( )
execute[UniversalRouter (ln:16)]
execute[UniversalRouter (ln:21)]
execute[UniversalRouter (ln:21)]
File 1 of 6: UniversalRouter
File 2 of 6: Permit2
File 3 of 6: UniswapV3Pool
File 4 of 6: WETH9
File 5 of 6: Token
File 6 of 6: 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 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;
File 3 of 6: 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 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: Token
12345678910111213141516// SPDX-License-Identifier: BUSL-1.1pragma solidity 0.8.26;import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";contract Token is ERC20, AccessControl {bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");constructor(string memory _name,string memory _symbol) ERC20(_name, _symbol) {_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);}function mint(address _to, uint256 _amount) external onlyRole(MINTER_ROLE) {_mint(_to, _amount);}
File 6 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;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;