Transaction Hash:
Block:
17580259 at Jun-28-2023 08:40:23 PM +UTC
Transaction Fee:
0.002912117667662208 ETH
$8.08
Gas Used:
124,914 Gas / 23.312980672 Gwei
Emitted Events:
195 |
MongCoin.Transfer( from=[Sender] 0xd01777f28cbbb8b8bad19a99bb133b1af356490f, to=UniswapV2Pair, value=3000000000000000000000000000 )
|
196 |
WETH9.Transfer( src=UniswapV2Pair, dst=[Receiver] UniversalRouter, wad=40982197811475565 )
|
197 |
UniswapV2Pair.Sync( reserve0=25886782425847754419863282084103, reserve1=354655396685151298046 )
|
198 |
UniswapV2Pair.Swap( sender=[Receiver] UniversalRouter, amount0In=3000000000000000000000000000, amount1In=0, amount0Out=0, amount1Out=40982197811475565, to=[Receiver] UniversalRouter )
|
199 |
WETH9.Withdrawal( src=[Receiver] UniversalRouter, wad=40982197811475565 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x1ce27055...f8B47FD9C | |||||
0x7054b0F9...80162775C | |||||
0xa2d4535b...9285Ad681
Miner
| (Fee Recipient: 0xa2d...681) | 10.970375791513016963 Eth | 10.970410625654752565 Eth | 0.000034834141735602 | |
0xC02aaA39...83C756Cc2 | 3,428,514.110260472695071628 Eth | 3,428,514.069278274883596063 Eth | 0.040982197811475565 | ||
0xd01777F2...Af356490f |
0.079014583606403736 Eth
Nonce: 132
|
0.117084663750217093 Eth
Nonce: 133
| 0.038070080143813357 |
Execution Trace
UniversalRouter.execute( commands=0x080C, inputs=[AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAmxirXfcYC2uAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACNW3e+FdH3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAHOJwVXwfaM+1d7hWdmMQv4tH/ZwAAAAAAAAAAAAAAADAKqo5siP+jQoOXE8n6tkIPHVswg==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjVt3vhXR9w==], deadline=1687986587 )
Permit2.transferFrom( from=0xd01777F28CBbb8B8bAD19A99BB133B1Af356490f, to=0x7054b0F980a7EB5B3a6B3446F3c947D80162775C, amount=3000000000000000000000000000, token=0x1ce270557C1f68Cfb577b856766310Bf8B47FD9C )
-
MongCoin.transferFrom( from=0xd01777F28CBbb8B8bAD19A99BB133B1Af356490f, to=0x7054b0F980a7EB5B3a6B3446F3c947D80162775C, amount=3000000000000000000000000000 ) => ( True )
-
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 0 )
-
UniswapV2Pair.STATICCALL( )
-
MongCoin.balanceOf( account=0x7054b0F980a7EB5B3a6B3446F3c947D80162775C ) => ( 25886782425847754419863282084103 )
UniswapV2Pair.swap( amount0Out=0, amount1Out=40982197811475565, to=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, data=0x )
-
WETH9.transfer( dst=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, wad=40982197811475565 ) => ( True )
-
MongCoin.balanceOf( account=0x7054b0F980a7EB5B3a6B3446F3c947D80162775C ) => ( 25886782425847754419863282084103 )
-
WETH9.balanceOf( 0x7054b0F980a7EB5B3a6B3446F3c947D80162775C ) => ( 354655396685151298046 )
-
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 40982197811475565 )
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 40982197811475565 )
WETH9.withdraw( wad=40982197811475565 )
- ETH 0.040982197811475565
UniversalRouter.CALL( )
- ETH 0.040982197811475565
- ETH 0.040982197811475565
0xd01777f28cbbb8b8bad19a99bb133b1af356490f.CALL( )
execute[UniversalRouter (ln:16)]
execute[UniversalRouter (ln:21)]
execute[UniversalRouter (ln:21)]
File 1 of 5: UniversalRouter
File 2 of 5: UniswapV2Pair
File 3 of 5: MongCoin
File 4 of 5: WETH9
File 5 of 5: Permit2
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: 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 3 of 5: 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].
File 4 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;
File 5 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;