Transaction Hash:
Block:
21925196 at Feb-25-2025 06:40:35 PM +UTC
Transaction Fee:
0.000313401631773902 ETH
$1.12
Gas Used:
164,479 Gas / 1.905420338 Gwei
Emitted Events:
305 |
Permit2.Permit( owner=[Sender] 0xe1385a3ff219cd6ae70cb06c037a3c88877977b3, token=Token, spender=[Receiver] UniversalRouter, amount=1461501637330902918203684832716283019655932542975, expiration=1743100910, nonce=0 )
|
306 |
WETH9.Transfer( src=UniswapV3Pool, dst=[Receiver] UniversalRouter, wad=3947502357748409 )
|
307 |
Token.Transfer( from=[Sender] 0xe1385a3ff219cd6ae70cb06c037a3c88877977b3, to=UniswapV3Pool, value=3999498578648251 )
|
308 |
UniswapV3Pool.Swap( sender=[Receiver] UniversalRouter, recipient=[Receiver] UniversalRouter, amount0=3999498578648251, amount1=-3947502357748409, sqrtPriceX96=78715377417745873368359721540, liquidity=6029653548909473522534, tick=-130 )
|
309 |
WETH9.Transfer( src=[Receiver] UniversalRouter, dst=FeeCollector, wad=9868755894371 )
|
310 |
WETH9.Withdrawal( src=[Receiver] UniversalRouter, wad=3937633601854038 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x00000000...43aC78BA3 | (Uniswap Protocol: Permit2) | ||||
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 10.664778757425850091 Eth | 10.664860996925850091 Eth | 0.0000822395 | |
0x97Ad7506...7F007a706 | |||||
0xC02aaA39...83C756Cc2 | 2,911,068.711655498655496338 Eth | 2,911,068.7077178650536423 Eth | 0.003937633601854038 | ||
0xCd530bEE...760b5bC5a | (Uniswap V3: beraSTONE 4) | ||||
0xe1385A3f...8877977B3 |
0.001960629640935382 Eth
Nonce: 3
|
0.005584861611015518 Eth
Nonce: 4
| 0.003624231970080136 |
Execution Trace
UniversalRouter.execute( commands=0x0A00060C, inputs=[AAAAAAAAAAAAAAAAl611Bksg+yskR/7U+pU79/AHpwYAAAAAAAAAAAAAAAD//////////////////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABn5ZvuAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/yRo6/XA5XNSWxkfVpsydSyt/rQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABnvhX2AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQcIpEodSVEABpvJQYtHxaYIdh/KhYF1Ndddyrv2uiF1RZq/l7fThHJBKUR2hUAW2rgwWMjlWD0RDxvOJy3W4Ts8bAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADjWF1A9cuwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArl611Bksg+yskR/7U+pU79/AHpwYAAGTAKqo5siP+jQoOXE8n6tkIPHVswgAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAwCqqObIj/o0KDlxPJ+rZCDx1bMIAAAAAAAAAAAAAAAAAAAD+4ToQOhDVk7muBrPgXy5+HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADVK4if6S+w==], deadline=1740509423 )
Permit2.permit( owner=0xe1385A3ff219cd6AE70Cb06c037A3C88877977B3, 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:1743100910, valueString:1743100910}, {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:1743100910, valueString:1743100910}, {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:1740510710, valueString:1740510710}], signature=0xC229128752544001A6F25062D1F169821D87F2A1605D4D75D772AEFDAE885D5166AFE5EDF4E11C904A511DA15005B6AE0C163239560F4443C6F389CB75B84ECF1B )
-
Null: 0x000...001.f391a60f( )
-
UniswapV3Pool.swap( recipient=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, zeroForOne=True, amountSpecified=3999498578648251, sqrtPriceLimitX96=4295128740, data=0x0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000E1385A3FF219CD6AE70CB06C037A3C88877977B3000000000000000000000000000000000000000000000000000000000000002B97AD75064B20FB2B2447FED4FA953BF7F007A706000064C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000000000000000000000 ) => ( amount0=3999498578648251, amount1=-3947502357748409 )
-
WETH9.transfer( dst=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, wad=3947502357748409 ) => ( True )
-
Token.balanceOf( account=0xCd530bEEad88e30e3B672Eb52993bf7760b5bC5a ) => ( 302908751945440975196 )
UniversalRouter.uniswapV3SwapCallback( amount0Delta=3999498578648251, amount1Delta=-3947502357748409, data=0x0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000E1385A3FF219CD6AE70CB06C037A3C88877977B3000000000000000000000000000000000000000000000000000000000000002B97AD75064B20FB2B2447FED4FA953BF7F007A706000064C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000000000000000000000 )
Permit2.transferFrom( from=0xe1385A3ff219cd6AE70Cb06c037A3C88877977B3, to=0xCd530bEEad88e30e3B672Eb52993bf7760b5bC5a, amount=3999498578648251, token=0x97Ad75064b20fb2B2447feD4fa953bF7F007a706 )
-
Token.transferFrom( from=0xe1385A3ff219cd6AE70Cb06c037A3C88877977B3, to=0xCd530bEEad88e30e3B672Eb52993bf7760b5bC5a, value=3999498578648251 ) => ( True )
-
-
Token.balanceOf( account=0xCd530bEEad88e30e3B672Eb52993bf7760b5bC5a ) => ( 302912751444019623447 )
-
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 3947502357748409 )
-
WETH9.transfer( dst=0x000000fee13a103A10D593b9AE06b3e05F2E7E1c, wad=9868755894371 ) => ( True )
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 3937633601854038 )
WETH9.withdraw( wad=3937633601854038 )
- ETH 0.003937633601854038
UniversalRouter.CALL( )
- ETH 0.003937633601854038
- ETH 0.003937633601854038
0xe1385a3ff219cd6ae70cb06c037a3c88877977b3.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;