Transaction Hash:
Block:
17782429 at Jul-27-2023 05:50:23 AM +UTC
Transaction Fee:
0.00198767312170293 ETH
$5.00
Gas Used:
108,357 Gas / 18.34374449 Gwei
Emitted Events:
518 |
WETH9.Deposit( dst=[Receiver] UniversalRouter, wad=573671320842863660 )
|
519 |
WETH9.Transfer( src=[Receiver] UniversalRouter, dst=UniswapV2Pair, wad=573671320842863660 )
|
520 |
MongCoin.Transfer( from=UniswapV2Pair, to=[Sender] 0xd01777f28cbbb8b8bad19a99bb133b1af356490f, value=66834383690362107235429256889 )
|
521 |
UniswapV2Pair.Sync( reserve0=33128564760689926944912002530989, reserve1=284078833411745037758 )
|
522 |
UniswapV2Pair.Swap( sender=[Receiver] UniversalRouter, amount0In=0, amount1In=573671320842863660, amount0Out=66834383690362107235429256889, amount1Out=0, to=[Sender] 0xd01777f28cbbb8b8bad19a99bb133b1af356490f )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x1ce27055...f8B47FD9C | |||||
0x1f9090aa...8e676c326
Miner
| 0.699835411325116965 Eth | 0.699846247025116965 Eth | 0.0000108357 | ||
0x7054b0F9...80162775C | |||||
0xC02aaA39...83C756Cc2 | 3,420,066.265534620812290312 Eth | 3,420,066.839205941655153972 Eth | 0.57367132084286366 | ||
0xd01777F2...Af356490f |
0.58367132084286366 Eth
Nonce: 171
|
0.00801232687829707 Eth
Nonce: 172
| 0.57565899396456659 |
Execution Trace
ETH 0.57367132084286366
UniversalRouter.execute( commands=0x0B08, inputs=[AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH9hcG4KsELA==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH9hcG4KsELAAAAAAAAAAAAAAAAAAAAAAAAAAA1uEPponPwzk/quISAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAwCqqObIj/o0KDlxPJ+rZCDx1bMIAAAAAAAAAAAAAAAAc4nBVfB9oz7V3uFZ2YxC/i0f9nA==], deadline=1690438787 )
- ETH 0.57367132084286366
WETH9.CALL( )
-
WETH9.transfer( dst=0x7054b0F980a7EB5B3a6B3446F3c947D80162775C, wad=573671320842863660 ) => ( True )
-
MongCoin.balanceOf( account=0xd01777F28CBbb8B8bAD19A99BB133B1Af356490f ) => ( 40000000000000000000000000000 )
-
UniswapV2Pair.STATICCALL( )
-
WETH9.balanceOf( 0x7054b0F980a7EB5B3a6B3446F3c947D80162775C ) => ( 284078833411745037758 )
UniswapV2Pair.swap( amount0Out=66834383690362107235429256889, amount1Out=0, to=0xd01777F28CBbb8B8bAD19A99BB133B1Af356490f, data=0x )
-
MongCoin.transfer( to=0xd01777F28CBbb8B8bAD19A99BB133B1Af356490f, amount=66834383690362107235429256889 ) => ( True )
-
MongCoin.balanceOf( account=0x7054b0F980a7EB5B3a6B3446F3c947D80162775C ) => ( 33128564760689926944912002530989 )
-
WETH9.balanceOf( 0x7054b0F980a7EB5B3a6B3446F3c947D80162775C ) => ( 284078833411745037758 )
-
-
MongCoin.balanceOf( account=0xd01777F28CBbb8B8bAD19A99BB133B1Af356490f ) => ( 106834383690362107235429256889 )
execute[UniversalRouter (ln:16)]
execute[UniversalRouter (ln:21)]
execute[UniversalRouter (ln:21)]
File 1 of 4: UniversalRouter
File 2 of 4: WETH9
File 3 of 4: UniswapV2Pair
File 4 of 4: MongCoin
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 4: 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 3 of 4: 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 4: MongCoin
12345678910111213141516// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)pragma solidity ^0.8.0;import "./IERC20.sol";import "./extensions/IERC20Metadata.sol";import "../../utils/Context.sol";/*** @dev Implementation of the {IERC20} interface.** This implementation is agnostic to the way tokens are created. This means* that a supply mechanism has to be added in a derived contract using {_mint}.* For a generic mechanism see {ERC20PresetMinterPauser}.** TIP: For a detailed writeup see our guide* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How* to implement supply mechanisms].