ETH Price: $2,746.34 (-0.92%)

Transaction Decoder

Block:
21315576 at Dec-02-2024 02:59:47 PM +UTC
Transaction Fee:
0.005219008315613616 ETH $14.33
Gas Used:
177,168 Gas / 29.457962587 Gwei

Emitted Events:

145 Permit2.Permit( owner=[Sender] 0x7d1e77766ee72262b4536cb80f0d271b09b6e6b0, token=Andy, spender=[Receiver] UniversalRouter, amount=1461501637330902918203684832716283019655932542975, expiration=1735743563, nonce=1 )
146 WETH9.Transfer( src=UniswapV3Pool, dst=[Receiver] UniversalRouter, wad=109532168458160104 )
147 Andy.Transfer( from=[Sender] 0x7d1e77766ee72262b4536cb80f0d271b09b6e6b0, to=UniswapV3Pool, value=1604170262863054050300826 )
148 Andy.Approval( owner=[Sender] 0x7d1e77766ee72262b4536cb80f0d271b09b6e6b0, spender=Permit2, value=4585829737136945949699174 )
149 UniswapV3Pool.Swap( sender=[Receiver] UniversalRouter, recipient=[Receiver] UniversalRouter, amount0=1604170262863054050300826, amount1=-109532168458160104, sqrtPriceX96=20805380273177072897053669, liquidity=2835477077934534281518428, tick=-164906 )
150 WETH9.Transfer( src=[Receiver] UniversalRouter, dst=FeeCollector, wad=273830421145400 )
151 WETH9.Withdrawal( src=[Receiver] UniversalRouter, wad=109258338037014704 )

Account State Difference:

  Address   Before After State Difference Code
0x00000000...43aC78BA3
(Uniswap Protocol: Permit2)
0x2B857448...92941284E
(Uniswap V3: ANDY 2)
(Titan Builder)
9.10504938043774252 Eth9.105475945738279768 Eth0.000426565300537248
0x68BbEd6A...5597fc91E
0x7d1E7776...B09b6e6b0
0.009216754426817076 Eth
Nonce: 37
0.113256084148218164 Eth
Nonce: 38
0.104039329721401088
0xC02aaA39...83C756Cc2 2,842,370.054963709666918308 Eth2,842,369.945705371629903604 Eth0.109258338037014704

Execution Trace

UniversalRouter.execute( commands=0x0A00060C, inputs=[AAAAAAAAAAAAAAAAaLvtakcZTv8c9RS1DqkYlVl/yR4AAAAAAAAAAAAAAAD//////////////////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABndVhLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAA/yRo6/XA5XNSWxkfVpsydSyt/rQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABnTdJTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQTQYR0cptyory2fKe4kNHBqNKCgaS3GxiNuQUjojwIn+DlOV2Msr61E1zJdWErk0BvYyKgIF8BL8Rw54lnQzZascAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAABU7I+g/+iHCYTmgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAraLvtakcZTv8c9RS1DqkYlVl/yR4AJxDAKqo5siP+jQoOXE8n6tkIPHVswgAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAwCqqObIj/o0KDlxPJ+rZCDx1bMIAAAAAAAAAAAAAAAAAAAD+4ToQOhDVk7muBrPgXy5+HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ, AAAAAAAAAAAAAAAAfR53dm7nImK0U2y4Dw0nGwm25rAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABb+11lSlysg==], deadline=1733153373 )
  • Permit2.permit( owner=0x7d1E77766EE72262b4536cb80F0D271B09b6e6b0, permitSingle=[{name:details, type:tuple, order:1, indexed:false, value:[{name:token, type:address, order:1, indexed:false, value:0x68BbEd6A47194EFf1CF514B50Ea91895597fc91E, valueString:0x68BbEd6A47194EFf1CF514B50Ea91895597fc91E}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1735743563, valueString:1735743563}, {name:nonce, type:uint48, order:4, indexed:false, value:1, valueString:1}], valueString:[{name:token, type:address, order:1, indexed:false, value:0x68BbEd6A47194EFf1CF514B50Ea91895597fc91E, valueString:0x68BbEd6A47194EFf1CF514B50Ea91895597fc91E}, {name:amount, type:uint160, order:2, indexed:false, value:1461501637330902918203684832716283019655932542975, valueString:1461501637330902918203684832716283019655932542975}, {name:expiration, type:uint48, order:3, indexed:false, value:1735743563, valueString:1735743563}, {name:nonce, type:uint48, order:4, indexed:false, value:1, valueString:1}]}, {name:spender, type:address, order:2, indexed:false, value:0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, valueString:0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD}, {name:sigDeadline, type:uint256, order:3, indexed:false, value:1733153363, valueString:1733153363}], signature=0x3418474729B72A2BCB67CA7B890D1C1A8D28281A4B71B188DB90523A23C089FE0E5395D8CB2BEB5135CC975612B93406F6322A0205F012FC470E7896743365AB1C )
    • Null: 0x000...001.42e01f4d( )
    • UniswapV3Pool.swap( recipient=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, zeroForOne=True, amountSpecified=1604170262863054050300826, sqrtPriceLimitX96=4295128740, data=0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000007D1E77766EE72262B4536CB80F0D271B09B6E6B0000000000000000000000000000000000000000000000000000000000000002B68BBED6A47194EFF1CF514B50EA91895597FC91E002710C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000000000000000000000 ) => ( amount0=1604170262863054050300826, amount1=-109532168458160104 )
      • WETH9.transfer( dst=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, wad=109532168458160104 ) => ( True )
      • Andy.balanceOf( account=0x2B8574482d62D8DF670DfD3bE15F2f092941284E ) => ( 598623880182880408192242927 )
      • UniversalRouter.uniswapV3SwapCallback( amount0Delta=1604170262863054050300826, amount1Delta=-109532168458160104, data=0x00000000000000000000000000000000000000000000000000000000000000400000000000000000000000007D1E77766EE72262B4536CB80F0D271B09B6E6B0000000000000000000000000000000000000000000000000000000000000002B68BBED6A47194EFF1CF514B50EA91895597FC91E002710C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000000000000000000000 )
        • Permit2.transferFrom( from=0x7d1E77766EE72262b4536cb80F0D271B09b6e6b0, to=0x2B8574482d62D8DF670DfD3bE15F2f092941284E, amount=1604170262863054050300826, token=0x68BbEd6A47194EFf1CF514B50Ea91895597fc91E )
          • Andy.transferFrom( sender=0x7d1E77766EE72262b4536cb80F0D271B09b6e6b0, recipient=0x2B8574482d62D8DF670DfD3bE15F2f092941284E, amount=1604170262863054050300826 ) => ( True )
          • Andy.balanceOf( account=0x2B8574482d62D8DF670DfD3bE15F2f092941284E ) => ( 600228050445743462242543753 )
          • WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 109532168458160104 )
          • WETH9.transfer( dst=0x000000fee13a103A10D593b9AE06b3e05F2E7E1c, wad=273830421145400 ) => ( True )
          • WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 109258338037014704 )
          • WETH9.withdraw( wad=109258338037014704 )
            • ETH 0.109258338037014704 UniversalRouter.CALL( )
            • ETH 0.109258338037014704 0x7d1e77766ee72262b4536cb80f0d271b09b6e6b0.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: UniswapV3Pool
              1
              2
              3
              4
              5
              6
              7
              8
              9
              10
              11
              12
              13
              14
              15
              16
              // SPDX-License-Identifier: BUSL-1.1
              pragma solidity =0.7.6;
              import './interfaces/IUniswapV3Pool.sol';
              import './NoDelegateCall.sol';
              import './libraries/LowGasSafeMath.sol';
              import './libraries/SafeCast.sol';
              import './libraries/Tick.sol';
              import './libraries/TickBitmap.sol';
              import './libraries/Position.sol';
              import './libraries/Oracle.sol';
              import './libraries/FullMath.sol';
              import './libraries/FixedPoint128.sol';
              import './libraries/TransferHelper.sol';
              import './libraries/TickMath.sol';
              import './libraries/LiquidityMath.sol';
              import './libraries/SqrtPriceMath.sol';
              XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

              File 4 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 5 of 6: Andy
              1
              2
              3
              4
              5
              6
              7
              8
              9
              10
              11
              12
              13
              14
              15
              16
              /*
              * SPDX-License-Identifier: MIT
              * https://boysclubandy.com
              * https://x.com/andycoinonerc
              * https://t.me/TheOnlyAndyLeft
              */
              pragma solidity 0.8.19;
              library SafeMath {
              /**
              * @dev Returns the addition of two unsigned integers, with an overflow flag.
              *
              * _Available since v3.4._
              */
              function tryAdd(
              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