ETH Price: $1,861.87 (-0.20%)

Transaction Decoder

Block:
19671724 at Apr-17-2024 12:51:11 AM +UTC
Transaction Fee:
0.00171722888659389 ETH $3.20
Gas Used:
174,149 Gas / 9.86068761 Gwei

Emitted Events:

111 Permit2.Permit( owner=[Sender] 0x1b4af3cf54a003dc2f107fab654428f8290ae17f, token=RIOToken, spender=[Receiver] UniversalRouter, amount=1461501637330902918203684832716283019655932542975, expiration=1715907047, nonce=0 )
112 WETH9.Transfer( src=0x5b7E3E37a1aa6369386e5939053779abd3597508, dst=[Receiver] UniversalRouter, wad=537222104237583617 )
113 RIOToken.Transfer( from=[Sender] 0x1b4af3cf54a003dc2f107fab654428f8290ae17f, to=0x5b7E3E37a1aa6369386e5939053779abd3597508, value=914535534001848185218 )
114 RIOToken.Approval( owner=[Sender] 0x1b4af3cf54a003dc2f107fab654428f8290ae17f, spender=Permit2, value=0 )
115 0x5b7e3e37a1aa6369386e5939053779abd3597508.0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67( 0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67, 0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad, 0x0000000000000000000000003fc91a3afd70395cd496c647d5a6cc9d4b2b7fad, fffffffffffffffffffffffffffffffffffffffffffffffff88b6757af6e52ff, 00000000000000000000000000000000000000000000003193bae6c1fc55f182, 00000000000000000000000000000000000000293837fe808f7eb7f0c6f5ebb6, 00000000000000000000000000000000000000000000045eb63e85edaf761097, 000000000000000000000000000000000000000000000000000000000001228d )
116 WETH9.Transfer( src=[Receiver] UniversalRouter, dst=FeeCollector, wad=1343055260593959 )
117 WETH9.Withdrawal( src=[Receiver] UniversalRouter, wad=535879048976989658 )

Account State Difference:

  Address   Before After State Difference Code
0x00000000...43aC78BA3
(Uniswap Protocol: Permit2)
0x1b4AF3cf...8290aE17F
0.424954819252654963 Eth
Nonce: 42
0.959116639343050731 Eth
Nonce: 43
0.534161820090395768
(Titan Builder)
6.262533582002955036 Eth6.262881880002955036 Eth0.000348298
0x5b7E3E37...bd3597508
(Uniswap V3: RIO)
0xC02aaA39...83C756Cc2 3,051,299.021607084987278303 Eth3,051,298.485728036010288645 Eth0.535879048976989658
0xf21661D0...fffAe4097

Execution Trace

UniversalRouter.execute( commands=0x0A00060C, inputs=[AAAAAAAAAAAAAAAA8hZh0NHXbT7LjhufHJI9v/+uQJcAAAAAAAAAAAAAAAD//////////////////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmRqnnAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/yRo6/XA5XNSWxkfVpsydSyt/rQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmHyPvAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQY2+gJdm4Xdqi+GPyzrx34ZPktyQaw28CYS1StGb16fmE8P+s6PsDGVBdvP4JduQVwSb9xbac2KZcDj997orp50bAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADGTuubB/FXxggAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdmWmJIU3ROAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAr8hZh0NHXbT7LjhufHJI9v/+uQJcAC7jAKqo5siP+jQoOXE8n6tkIPHVswgAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAwCqqObIj/o0KDlxPJ+rZCDx1bMIAAAAAAAAAAAAAAAA3qPKVYSYC8ndNMx5WK+nmG4OjJwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ, AAAAAAAAAAAAAAAAG0rzz1SgA9wvEH+rZUQo+CkK4X8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHZlpiSFN0Tg==], deadline=1713316847 )
  • Permit2.permit( owner=0x1b4AF3cf54A003dc2f107fab654428f8290aE17F, permitSingle=[{name:details, type:tuple, order:1, indexed:false, value:[{name:token, type:address, order:1, indexed:false, value:0xf21661D0D1d76d3ECb8e1B9F1c923DBfffAe4097, valueString:0xf21661D0D1d76d3ECb8e1B9F1c923DBfffAe4097}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1715907047, valueString:1715907047}, {name:nonce, type:uint48, order:4, indexed:false, value:0, valueString:0}], valueString:[{name:token, type:address, order:1, indexed:false, value:0xf21661D0D1d76d3ECb8e1B9F1c923DBfffAe4097, valueString:0xf21661D0D1d76d3ECb8e1B9F1c923DBfffAe4097}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1715907047, valueString:1715907047}, {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:1713316847, valueString:1713316847}], signature=0x8DBE809766E1776A8BE18FCB3AF1DF864F92DC906B0DBC0984B54AD19BD7A7E613C3FEB3A3EC0C654176F3F825DB9057049BF716DA7362997038FDF7BA2BA79D1B )
    • Null: 0x000...001.3048b04e( )
    • Uniswap V3: RIO.128acb08( )
      • WETH9.transfer( dst=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, wad=537222104237583617 ) => ( True )
      • RIOToken.balanceOf( account=0x5b7E3E37a1aa6369386e5939053779abd3597508 ) => ( 621287332365220027632376 )
      • UniversalRouter.uniswapV3SwapCallback( amount0Delta=-537222104237583617, amount1Delta=914535534001848185218, data=0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000001B4AF3CF54A003DC2F107FAB654428F8290AE17F000000000000000000000000000000000000000000000000000000000000002BF21661D0D1D76D3ECB8E1B9F1C923DBFFFAE4097000BB8C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000000000000000000000 )
        • Permit2.transferFrom( from=0x1b4AF3cf54A003dc2f107fab654428f8290aE17F, to=0x5b7E3E37a1aa6369386e5939053779abd3597508, amount=914535534001848185218, token=0xf21661D0D1d76d3ECb8e1B9F1c923DBfffAe4097 )
          • RIOToken.transferFrom( sender=0x1b4AF3cf54A003dc2f107fab654428f8290aE17F, recipient=0x5b7E3E37a1aa6369386e5939053779abd3597508, amount=914535534001848185218 ) => ( True )
          • RIOToken.balanceOf( account=0x5b7E3E37a1aa6369386e5939053779abd3597508 ) => ( 622201867899221875817594 )
          • WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 537222104237583617 )
          • WETH9.transfer( dst=0x37a8f295612602f2774d331e562be9e61B83a327, wad=1343055260593959 ) => ( True )
          • WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 535879048976989658 )
          • WETH9.withdraw( wad=535879048976989658 )
            • ETH 0.535879048976989658 UniversalRouter.CALL( )
            • ETH 0.535879048976989658 0x1b4af3cf54a003dc2f107fab654428f8290ae17f.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: 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 4 of 5: RIOToken
              1
              2
              3
              4
              5
              6
              7
              8
              9
              10
              11
              12
              13
              14
              15
              16
              // File: @openzeppelin/contracts/GSN/Context.sol
              // SPDX-License-Identifier: MIT
              pragma solidity ^0.6.0;
              /*
              * @dev Provides information about the current execution context, including the
              * sender of the transaction and its data. While these are generally available
              * via msg.sender and msg.data, they should not be accessed in such a direct
              * manner, since when dealing with GSN meta-transactions the account sending and
              * paying for execution may not be the actual sender (as far as an application
              * is concerned).
              *
              * This contract is only required for intermediate, library-like contracts.
              */
              XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

              File 5 of 5: 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;
              error UniversalRouterCallFailed();
              address private immutable universalRouter;
              ERC20 private immutable feeToken;
              IPermit2 private immutable permit2;
              uint256 private constant MAX_APPROVAL_AMOUNT = type(uint256).max;
              uint160 private constant MAX_PERMIT2_APPROVAL_AMOUNT = type(uint160).max;
              XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX