Transaction Hash:
Block:
18900223 at Dec-30-2023 06:50:23 PM +UTC
Transaction Fee:
0.003587769920246061 ETH
$9.94
Gas Used:
156,189 Gas / 22.970695249 Gwei
Emitted Events:
14 |
Permit2.Permit( owner=[Sender] 0x8875791187aec618f1ba655872e03fea049c2ee1, token=OrdiswapToken, spender=[Receiver] UniversalRouter, amount=1461501637330902918203684832716283019655932542975, expiration=1706554203, nonce=0 )
|
15 |
OrdiswapToken.Approval( owner=[Sender] 0x8875791187aec618f1ba655872e03fea049c2ee1, spender=Permit2, value=239680623815859411981731 )
|
16 |
OrdiswapToken.Transfer( from=[Sender] 0x8875791187aec618f1ba655872e03fea049c2ee1, to=UniswapV2Pair, value=100000000000000000000000 )
|
17 |
WETH9.Transfer( src=UniswapV2Pair, dst=[Sender] 0x8875791187aec618f1ba655872e03fea049c2ee1, wad=2031270537652393007 )
|
18 |
UniswapV2Pair.Sync( reserve0=15867029917295104098760494, reserve1=321234737585610749819 )
|
19 |
UniswapV2Pair.Swap( sender=[Receiver] UniversalRouter, amount0In=100000000000000000000000, amount1In=0, amount0Out=0, amount1Out=2031270537652393007, to=[Sender] 0x8875791187aec618f1ba655872e03fea049c2ee1 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x00000000...43aC78BA3 | (Uniswap Protocol: Permit2) | ||||
0x88757911...a049C2eE1 |
0.111744707376314907 Eth
Nonce: 610
|
0.108156937456068846 Eth
Nonce: 611
| 0.003587769920246061 | ||
0x8AB2ff01...2D152B83c | |||||
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 5.026846356366806023 Eth | 5.026861975266806023 Eth | 0.0000156189 | |
0xC02aaA39...83C756Cc2 | |||||
0xFE9e7931...6e84bD8E3 |
Execution Trace
UniversalRouter.execute( commands=0x0A08, inputs=[AAAAAAAAAAAAAAAAirL/ARaieamZUMZqEimJYtFSuDwAAAAAAAAAAAAAAAD//////////////////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlt/NbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/yRo6/XA5XNSWxkfVpsydSyt/rQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlkG1jAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQb5zoDT0o/nTz4PKhSYBQmT/Sc5BoHb8DIdO9ywzFuSofmTWrTcq1g76BrhKJAFgQdy4/HCXBoPsdQLDH+hsXCQbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFS0Cx+FK9oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwvDltQpS6NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAirL/ARaieamZUMZqEimJYtFSuDwAAAAAAAAAAAAAAADAKqo5siP+jQoOXE8n6tkIPHVswg==], deadline=1703962799 )
Permit2.permit( owner=0x8875791187aec618f1Ba655872e03Fea049C2eE1, permitSingle=[{name:details, type:tuple, order:1, indexed:false, value:[{name:token, type:address, order:1, indexed:false, value:0x8AB2ff0116A279a99950C66A12298962D152B83c, valueString:0x8AB2ff0116A279a99950C66A12298962D152B83c}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1706554203, valueString:1706554203}, {name:nonce, type:uint48, order:4, indexed:false, value:0, valueString:0}], valueString:[{name:token, type:address, order:1, indexed:false, value:0x8AB2ff0116A279a99950C66A12298962D152B83c, valueString:0x8AB2ff0116A279a99950C66A12298962D152B83c}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1706554203, valueString:1706554203}, {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:1703964003, valueString:1703964003}], signature=0xBE73A034F4A3F9D3CF83CA8526014264FF49CE41A076FC0C874EF72C3316E4A87E64D6AD372AD60EFA06B84A24016041DCB8FC70970683EC7502C31FE86C5C241B )
-
Null: 0x000...001.77e2415d( )
-
Permit2.transferFrom( from=0x8875791187aec618f1Ba655872e03Fea049C2eE1, to=0xFE9e7931e55C514C33d489c88582Fa36e84bD8E3, amount=100000000000000000000000, token=0x8AB2ff0116A279a99950C66A12298962D152B83c )
-
OrdiswapToken.transferFrom( from=0x8875791187aec618f1Ba655872e03Fea049C2eE1, to=0xFE9e7931e55C514C33d489c88582Fa36e84bD8E3, amount=100000000000000000000000 ) => ( True )
-
-
WETH9.balanceOf( 0x8875791187aec618f1Ba655872e03Fea049C2eE1 ) => ( 446507328427258076 )
-
UniswapV2Pair.STATICCALL( )
-
OrdiswapToken.balanceOf( account=0xFE9e7931e55C514C33d489c88582Fa36e84bD8E3 ) => ( 15867029917295104098760494 )
UniswapV2Pair.swap( amount0Out=0, amount1Out=2031270537652393007, to=0x8875791187aec618f1Ba655872e03Fea049C2eE1, data=0x )
-
WETH9.transfer( dst=0x8875791187aec618f1Ba655872e03Fea049C2eE1, wad=2031270537652393007 ) => ( True )
-
OrdiswapToken.balanceOf( account=0xFE9e7931e55C514C33d489c88582Fa36e84bD8E3 ) => ( 15867029917295104098760494 )
-
WETH9.balanceOf( 0xFE9e7931e55C514C33d489c88582Fa36e84bD8E3 ) => ( 321234737585610749819 )
-
-
WETH9.balanceOf( 0x8875791187aec618f1Ba655872e03Fea049C2eE1 ) => ( 2477777866079651083 )
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: OrdiswapToken
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: OrdiswapToken
12345678910111213141516// SPDX-License-Identifier: MITpragma solidity 0.8.19;pragma experimental ABIEncoderV2;import "@openzeppelin/contracts@4.9.3/access/Ownable.sol";import "@openzeppelin/contracts@4.9.3/utils/math/SafeMath.sol";import "@openzeppelin/contracts@4.9.3/token/ERC20/ERC20.sol";import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol";import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol";import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";interface IUniswapV3Router is ISwapRouter {function factory() external pure returns (address);}contract OrdiswapToken is ERC20, Ownable {using SafeMath for uint256;IUniswapV2Router02 public immutable uniswapV2Router;
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;