ETH Price: $3,070.71 (+2.69%)

Transaction Decoder

Block:
20611911 at Aug-26-2024 09:36:59 AM +UTC
Transaction Fee:
0.001570975581163296 ETH $4.82
Gas Used:
194,788 Gas / 8.065053192 Gwei

Emitted Events:

40 Permit2.Permit( owner=[Sender] 0x2cd89badcb8c65a76c66379f62d3cdfd2b353937, token=Meca, spender=[Receiver] UniversalRouter, amount=1116558950652307, expiration=1724666804, nonce=0 )
41 Meca.Transfer( from=[Sender] 0x2cd89badcb8c65a76c66379f62d3cdfd2b353937, to=Meca, value=301470916676122 )
42 Meca.Transfer( from=[Sender] 0x2cd89badcb8c65a76c66379f62d3cdfd2b353937, to=UniswapV2Pair, value=815088033976185 )
43 Meca.Approval( owner=[Sender] 0x2cd89badcb8c65a76c66379f62d3cdfd2b353937, spender=Permit2, value=8999999999999999999999999999999999999999999999998883441049347693 )
44 WETH9.Transfer( src=UniswapV2Pair, dst=[Receiver] UniversalRouter, wad=838 )
45 UniswapV2Pair.Sync( reserve0=815088033977378, reserve1=1 )
46 UniswapV2Pair.Swap( sender=[Receiver] UniversalRouter, amount0In=815088033976185, amount1In=0, amount0Out=0, amount1Out=838, to=[Receiver] UniversalRouter )
47 WETH9.Withdrawal( src=[Receiver] UniversalRouter, wad=838 )

Account State Difference:

  Address   Before After State Difference Code
0x00000000...43aC78BA3
(Uniswap Protocol: Permit2)
0x14678E51...F4F6AD9D3
0x2CD89BAd...d2B353937
0.073513163249861857 Eth
Nonce: 206
0.071942187668699399 Eth
Nonce: 207
0.001570975581162458
0x39335b4F...9719a4121
(beaverbuild)
6.131336215790358928 Eth6.131725791790358928 Eth0.000389576
0xC02aaA39...83C756Cc2 2,917,893.989234967750491125 Eth2,917,893.989234967750490287 Eth0.000000000000000838

Execution Trace

UniversalRouter.execute( commands=0x0A080C, inputs=[AAAAAAAAAAAAAAAAOTNbT4U2b8TDI3fR8VkuWXGaQSEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/eBI5/ZkwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmzFO0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/yRo6/XA5XNSWxkfVpsydSyt/rQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmzFO0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQQXgzI0gKBvAdJEF4SxAeMcW6w8hOfTFNOgjXmiwx5MOOwmcDhsDolk9UtTKehnF1FFOSlkB1+SPa/7RwdH2QRYcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/eBI5/ZkwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAOTNbT4U2b8TDI3fR8VkuWXGaQSEAAAAAAAAAAAAAAADAKqo5siP+jQoOXE8n6tkIPHVswg==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==], deadline=2576980377 )
  • Permit2.permit( owner=0x2CD89BAdcB8C65a76c66379F62d3CDFd2B353937, permitSingle=[{name:details, type:tuple, order:1, indexed:false, value:[{name:token, type:address, order:1, indexed:false, value:0x39335b4F85366fc4c32377d1f1592E59719a4121, valueString:0x39335b4F85366fc4c32377d1f1592E59719a4121}, {name:amount, type:uint160, order:2, indexed:false, value:1116558950652307, valueString:1116558950652307}, {name:expiration, type:uint48, order:3, indexed:false, value:1724666804, valueString:1724666804}, {name:nonce, type:uint48, order:4, indexed:false, value:0, valueString:0}], valueString:[{name:token, type:address, order:1, indexed:false, value:0x39335b4F85366fc4c32377d1f1592E59719a4121, valueString:0x39335b4F85366fc4c32377d1f1592E59719a4121}, {name:amount, type:uint160, order:2, indexed:false, value:1116558950652307, valueString:1116558950652307}, {name:expiration, type:uint48, order:3, indexed:false, value:1724666804, valueString:1724666804}, {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:1724666804, valueString:1724666804}], signature=0x05E0CC8D20281BC0749105E12C4078C716EB0F2139F4C534E8235E68B0C7930E3B099C0E1B03A2593D52D4CA7A19C5D4514E4A5901D7E48F6BFED1C1D1F641161C )
    • Null: 0x000...001.dc2f0145( )
    • Permit2.transferFrom( from=0x2CD89BAdcB8C65a76c66379F62d3CDFd2B353937, to=0x14678E510296Fb2e3c0dB93E1D4a25FF4F6AD9D3, amount=1116558950652307, token=0x39335b4F85366fc4c32377d1f1592E59719a4121 )
      • Meca.transferFrom( sender=0x2CD89BAdcB8C65a76c66379F62d3CDFd2B353937, recipient=0x14678E510296Fb2e3c0dB93E1D4a25FF4F6AD9D3, amount=1116558950652307 ) => ( True )
      • WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 0 )
      • UniswapV2Pair.STATICCALL( )
      • Meca.balanceOf( account=0x14678E510296Fb2e3c0dB93E1D4a25FF4F6AD9D3 ) => ( 815088033977378 )
      • UniswapV2Pair.swap( amount0Out=0, amount1Out=838, to=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, data=0x )
        • WETH9.transfer( dst=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, wad=838 ) => ( True )
        • Meca.balanceOf( account=0x14678E510296Fb2e3c0dB93E1D4a25FF4F6AD9D3 ) => ( 815088033977378 )
        • WETH9.balanceOf( 0x14678E510296Fb2e3c0dB93E1D4a25FF4F6AD9D3 ) => ( 1 )
        • WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 838 )
        • WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 838 )
        • WETH9.withdraw( wad=838 )
          • ETH 0.000000000000000838 UniversalRouter.CALL( )
          • ETH 0.000000000000000838 0x2cd89badcb8c65a76c66379f62d3cdfd2b353937.CALL( )
            File 1 of 5: UniversalRouter
            1
            2
            3
            4
            5
            6
            7
            8
            9
            10
            11
            12
            13
            14
            15
            16
            // SPDX-License-Identifier: GPL-3.0-or-later
            pragma solidity ^0.8.17;
            // Command implementations
            import {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 IUniversalRouter
            function execute(bytes calldata commands, bytes[] calldata inputs, uint256 deadline)
            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

            File 2 of 5: Permit2
            1
            2
            3
            4
            5
            6
            7
            8
            9
            10
            11
            12
            13
            14
            15
            16
            // SPDX-License-Identifier: AGPL-3.0-only
            pragma 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;
            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

            File 3 of 5: Meca
            1
            2
            3
            4
            5
            6
            7
            8
            9
            10
            11
            12
            13
            14
            15
            16
            /*
            Vitalik Tweet: https://x.com/VitalikButerin/status/1740515567621345689
            */
            // SPDX-License-Identifier: MIT
            pragma solidity 0.8.23;
            abstract contract Context {
            function _msgSender() internal view virtual returns (address) {
            return msg.sender;
            }
            }
            interface IERC20 {
            function totalSupply() external view returns (uint256);
            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

            File 4 of 5: UniswapV2Pair
            1
            2
            3
            4
            5
            6
            7
            8
            9
            10
            11
            12
            13
            14
            15
            16
            // File: contracts/interfaces/IUniswapV2Pair.sol
            pragma 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);
            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

            File 5 of 5: WETH9
            1
            2
            3
            4
            5
            6
            7
            8
            9
            10
            11
            12
            13
            14
            15
            16
            // 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;
            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX