ETH Price: $2,778.51 (-0.88%)

Transaction Decoder

Block:
22542121 at May-23-2025 12:54:35 AM +UTC
Transaction Fee:
0.000850610471702112 ETH $2.36
Gas Used:
213,984 Gas / 3.975112493 Gwei

Emitted Events:

97 Permit2.Permit( owner=[Sender] 0x94e1279aa971b1b5c2e6b59cd84bfcf011f07bd1, token=opTradeAI, spender=[Receiver] UniversalRouter, amount=1461501637330902918203684832716283019655932542975, expiration=1750553656, nonce=0 )
98 opTradeAI.Transfer( from=[Sender] 0x94e1279aa971b1b5c2e6b59cd84bfcf011f07bd1, to=opTradeAI, value=15732509929123972917 )
99 opTradeAI.Transfer( from=[Sender] 0x94e1279aa971b1b5c2e6b59cd84bfcf011f07bd1, to=UniswapV2Pair, value=298917688653355485425 )
100 opTradeAI.Approval( owner=[Sender] 0x94e1279aa971b1b5c2e6b59cd84bfcf011f07bd1, spender=Permit2, value=115792089237316195423570985008687907853269984665640564039142933809330650181593 )
101 WETH9.Transfer( src=UniswapV2Pair, dst=[Receiver] UniversalRouter, wad=184883555176197936 )
102 UniswapV2Pair.Sync( reserve0=68611788170949552807150, reserve1=42379325916028853565 )
103 UniswapV2Pair.Swap( sender=[Receiver] UniversalRouter, amount0In=298917688653355485425, amount1In=0, amount0Out=0, amount1Out=184883555176197936, to=[Receiver] UniversalRouter )
104 WETH9.Transfer( src=[Receiver] UniversalRouter, dst=FeeCollector, wad=462208887940494 )
105 WETH9.Withdrawal( src=[Receiver] UniversalRouter, wad=184421346288257442 )

Account State Difference:

  Address   Before After State Difference Code
0x00000000...43aC78BA3
(Uniswap Protocol: Permit2)
0x72b658Bd...14476e417
0x910748C8...483230581
0x94E1279A...011F07bd1
0.241340338125863063 Eth
Nonce: 868
0.424911073942418393 Eth
Nonce: 869
0.18357073581655533
(beaverbuild)
9.852083070752214496 Eth9.85255980677059888 Eth0.000476736018384384
0xC02aaA39...83C756Cc2 2,808,994.666921449292499341 Eth2,808,994.482500103004241899 Eth0.184421346288257442

Execution Trace

UniversalRouter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963461 )
  • Permit2.permit( owner=0x94E1279AA971B1B5C2E6B59cD84BfcF011F07bd1, permitSingle=[{name:details, type:tuple, order:1, indexed:false, value:[{name:token, type:address, order:1, indexed:false, value:0x72b658Bd674f9c2B4954682f517c17D14476e417, valueString:0x72b658Bd674f9c2B4954682f517c17D14476e417}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1750553656, valueString:1750553656}, {name:nonce, type:uint48, order:4, indexed:false, value:0, valueString:0}], valueString:[{name:token, type:address, order:1, indexed:false, value:0x72b658Bd674f9c2B4954682f517c17D14476e417, valueString:0x72b658Bd674f9c2B4954682f517c17D14476e417}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1750553656, valueString:1750553656}, {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:1747963456, valueString:1747963456}], signature=0xB567172F80669C662153A3BA1B3D8E4B13239A18C834C211CC70297A17239ACD770A7DF62863C1907067B39710036B4FF35F230494FC01673CA89B5D42D635B71B )
    • Null: 0x000...001.23e4c980( )
    • Permit2.transferFrom( from=0x94E1279AA971B1B5C2E6B59cD84BfcF011F07bd1, to=0x910748C8F46285e29042B88f2E611fB483230581, amount=314650198582479458342, token=0x72b658Bd674f9c2B4954682f517c17D14476e417 )
      • opTradeAI.transferFrom( sender=0x94E1279AA971B1B5C2E6B59cD84BfcF011F07bd1, recipient=0x910748C8F46285e29042B88f2E611fB483230581, amount=314650198582479458342 ) => ( True )
      • WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 0 )
      • UniswapV2Pair.STATICCALL( )
      • opTradeAI.balanceOf( account=0x910748C8F46285e29042B88f2E611fB483230581 ) => ( 68611788170949552807150 )
      • UniswapV2Pair.swap( amount0Out=0, amount1Out=184883555176197936, to=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, data=0x )
        • WETH9.transfer( dst=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, wad=184883555176197936 ) => ( True )
        • opTradeAI.balanceOf( account=0x910748C8F46285e29042B88f2E611fB483230581 ) => ( 68611788170949552807150 )
        • WETH9.balanceOf( 0x910748C8F46285e29042B88f2E611fB483230581 ) => ( 42379325916028853565 )
        • WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 184883555176197936 )
        • WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 184883555176197936 )
        • WETH9.transfer( dst=0x000000fee13a103A10D593b9AE06b3e05F2E7E1c, wad=462208887940494 ) => ( True )
        • WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 184421346288257442 )
        • WETH9.withdraw( wad=184421346288257442 )
          • ETH 0.184421346288257442 UniversalRouter.CALL( )
          • ETH 0.184421346288257442 0x94e1279aa971b1b5c2e6b59cd84bfcf011f07bd1.CALL( )
            File 1 of 6: 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 6: 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 6: opTradeAI
            1
            2
            3
            4
            5
            6
            7
            8
            9
            10
            11
            12
            13
            14
            15
            16
            // SPDX-License-Identifier: MIT
            //
            // opTrade AI
            // Real-Time Crypto Intelligence Trading
            //
            // https://www.optrade.ai
            // https://x.com/optrade_ai
            // https://t.me/optrade_ai
            pragma solidity >=0.8.10 <0.9.0;
            abstract contract Context {
            function _msgSender() internal view virtual returns (address) {
            return msg.sender;
            }
            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

            File 4 of 6: 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 6: 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

            File 6 of 6: FeeCollector
            1
            2
            3
            4
            5
            6
            7
            8
            9
            10
            11
            12
            13
            14
            15
            16
            // SPDX-License-Identifier: GPL-2.0-or-later
            pragma solidity ^0.8.0;
            import {Owned} from "solmate/auth/Owned.sol";
            import {ERC20} from "solmate/tokens/ERC20.sol";
            import {SafeTransferLib} from "solmate/utils/SafeTransferLib.sol";
            import {IFeeCollector} from "./interfaces/IFeeCollector.sol";
            import {IPermit2} from "./external/IPermit2.sol";
            /// @notice The collector of protocol fees that will be used to swap and send to a fee recipient address.
            contract FeeCollector is Owned, IFeeCollector {
            using SafeTransferLib for ERC20;
            address public universalRouter;
            ERC20 public immutable feeToken;
            IPermit2 public immutable permit2;
            uint256 public constant MAX_APPROVAL_AMOUNT = type(uint256).max;
            uint160 public constant MAX_PERMIT2_APPROVAL_AMOUNT = type(uint160).max;
            uint48 public constant MAX_PERMIT2_DEADLINE = type(uint48).max;
            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX