Transaction Hash:
Block:
18627280 at Nov-22-2023 12:29:11 PM +UTC
Transaction Fee:
0.007757326933480845 ETH
$19.57
Gas Used:
237,045 Gas / 32.725123641 Gwei
Emitted Events:
314 |
Permit2.Permit( owner=[Sender] 0xa1164816742a17ab165f5b6d2502be25f06861a1, token=XGPT, spender=[Receiver] UniversalRouter, amount=1461501637330902918203684832716283019655932542975, expiration=1703248105, nonce=0 )
|
315 |
XGPT.Approval( owner=[Sender] 0xa1164816742a17ab165f5b6d2502be25f06861a1, spender=Permit2, value=0 )
|
316 |
XGPT.Transfer( from=UniswapV2Pair, to=0x000000000000000000000000000000000000dEaD, value=48502913395341255195 )
|
317 |
UniswapV2Pair.Sync( reserve0=19352662444741160822992, reserve1=9749390413611127674 )
|
318 |
XGPT.AutoNukeLP( )
|
319 |
XGPT.Transfer( from=[Sender] 0xa1164816742a17ab165f5b6d2502be25f06861a1, to=XGPT, value=5523568000000000492 )
|
320 |
XGPT.Transfer( from=[Sender] 0xa1164816742a17ab165f5b6d2502be25f06861a1, to=UniswapV2Pair, value=132565632000000011831 )
|
321 |
WETH9.Transfer( src=UniswapV2Pair, dst=[Receiver] UniversalRouter, wad=66131281328606313 )
|
322 |
UniswapV2Pair.Sync( reserve0=19485228076741160834823, reserve1=9683259132282521361 )
|
323 |
UniswapV2Pair.Swap( sender=[Receiver] UniversalRouter, amount0In=132565632000000011831, amount1In=0, amount0Out=0, amount1Out=66131281328606313, to=[Receiver] UniversalRouter )
|
324 |
WETH9.Withdrawal( src=[Receiver] UniversalRouter, wad=66131281328606313 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x00000000...43aC78BA3 | (Uniswap Protocol: Permit2) | ||||
0x2e95bD33...249a89cb7 | |||||
0x51FE05eA...e960BaF64 | |||||
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 13.550813250425614354 Eth | 13.550836954925614354 Eth | 0.0000237045 | |
0xa1164816...5f06861A1 |
0.024600837052504721 Eth
Nonce: 9
|
0.082974791447630189 Eth
Nonce: 10
| 0.058373954395125468 | ||
0xC02aaA39...83C756Cc2 | 3,050,464.541044360132108611 Eth | 3,050,464.474913078803502298 Eth | 0.066131281328606313 |
Execution Trace
UniversalRouter.execute( commands=0x0A080C, inputs=[AAAAAAAAAAAAAAAAUf4F6sFSSUkI/x671Q4RbpYLr2QAAAAAAAAAAAAAAAD//////////////////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlhYDpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/yRo6/XA5XNSWxkfVpsydSyt/rQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlXfrxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQTuiLrMZeh1wrnJyeGKTUr6Kdtw6CkQfPPREB6jRq288Zj+/zzNM3RHP/GRLPcQHdggpKMUFoFGlQOJejlxSjrEbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAd8X2PFpd8wIwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADf6CNMakeCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAUf4F6sFSSUkI/x671Q4RbpYLr2QAAAAAAAAAAAAAAADAKqo5siP+jQoOXE8n6tkIPHVswg==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1/sbQKXzaw==], deadline=1700656691 )
Permit2.permit( owner=0xa1164816742a17AB165f5b6d2502bE25f06861A1, permitSingle=[{name:details, type:tuple, order:1, indexed:false, value:[{name:token, type:address, order:1, indexed:false, value:0x51FE05eAc152494908ff1EbbD50e116e960BaF64, valueString:0x51FE05eAc152494908ff1EbbD50e116e960BaF64}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1703248105, valueString:1703248105}, {name:nonce, type:uint48, order:4, indexed:false, value:0, valueString:0}], valueString:[{name:token, type:address, order:1, indexed:false, value:0x51FE05eAc152494908ff1EbbD50e116e960BaF64, valueString:0x51FE05eAc152494908ff1EbbD50e116e960BaF64}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1703248105, valueString:1703248105}, {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:1700657905, valueString:1700657905}], signature=0x3BA22EB3197A1D70AE727278629352BE8A76DC3A0A441F3CF44407A8D1AB6F3C663FBFCF334CDD11CFFC644B3DC40776082928C505A051A540E25E8E5C528EB11B )
-
Null: 0x000...001.7d7f8d56( )
-
Permit2.transferFrom( from=0xa1164816742a17AB165f5b6d2502bE25f06861A1, to=0x2e95bD33C562eCe0335E7478ee0437a249a89cb7, amount=138089200000000012323, token=0x51FE05eAc152494908ff1EbbD50e116e960BaF64 )
XGPT.transferFrom( from=0xa1164816742a17AB165f5b6d2502bE25f06861A1, to=0x2e95bD33C562eCe0335E7478ee0437a249a89cb7, amount=138089200000000012323 ) => ( True )
-
XGPT.balanceOf( account=0x2e95bD33C562eCe0335E7478ee0437a249a89cb7 ) => ( 19401165358136502078187 )
UniswapV2Pair.CALL( )
-
XGPT.balanceOf( account=0x2e95bD33C562eCe0335E7478ee0437a249a89cb7 ) => ( 19352662444741160822992 )
-
WETH9.balanceOf( 0x2e95bD33C562eCe0335E7478ee0437a249a89cb7 ) => ( 9749390413611127674 )
-
-
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 0 )
-
UniswapV2Pair.STATICCALL( )
-
XGPT.balanceOf( account=0x2e95bD33C562eCe0335E7478ee0437a249a89cb7 ) => ( 19485228076741160834823 )
UniswapV2Pair.swap( amount0Out=0, amount1Out=66131281328606313, to=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, data=0x )
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 66131281328606313 )
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 66131281328606313 )
WETH9.withdraw( wad=66131281328606313 )
- ETH 0.066131281328606313
UniversalRouter.CALL( )
- ETH 0.066131281328606313
- ETH 0.066131281328606313
0xa1164816742a17ab165f5b6d2502be25f06861a1.CALL( )
execute[UniversalRouter (ln:16)]
execute[UniversalRouter (ln:21)]
execute[UniversalRouter (ln:21)]
File 1 of 5: UniversalRouter
File 2 of 5: Permit2
File 3 of 5: XGPT
File 4 of 5: UniswapV2Pair
File 5 of 5: WETH9
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: 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 5: XGPT
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 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 5 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;