Transaction Hash:
Block:
20488099 at Aug-09-2024 02:37:23 AM +UTC
Transaction Fee:
0.000349970653698132 ETH
$0.66
Gas Used:
145,356 Gas / 2.407679447 Gwei
Emitted Events:
158 |
WETH9.Transfer( src=UniswapV3Pool, dst=[Receiver] UniversalRouter, wad=43081153682256906 )
|
159 |
TransparentUpgradeableProxy.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x000000000000000000000000accd3452cd59e9c091e45842afc6ce65eefba885, 0x000000000000000000000000c0487ad4ebc33acaec7fb796c6e6214ad89afb20, 000000000000000000000000000000000000000000000223388edb903a79c71c )
|
160 |
UniswapV3Pool.Swap( sender=[Receiver] UniversalRouter, recipient=[Receiver] UniversalRouter, amount0=-43081153682256906, amount1=10094444444444444444444, sqrtPriceX96=38314375134795710155310218274990, liquidity=19075384906150515399120, tick=123631 )
|
161 |
WETH9.Transfer( src=[Receiver] UniversalRouter, dst=FeeCollector, wad=107702884205642 )
|
162 |
WETH9.Withdrawal( src=[Receiver] UniversalRouter, wad=42973450798051264 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x4838B106...B0BAD5f97
Miner
| (Titan Builder) | 8.616795383358504337 Eth | 8.616932148818904337 Eth | 0.0001367654604 | |
0xAcCD3452...5EefBa885 |
0.107313192965904537 Eth
Nonce: 30
|
0.149936673110257669 Eth
Nonce: 31
| 0.042623480144353132 | ||
0xC02aaA39...83C756Cc2 | 2,834,015.731911143680108931 Eth | 2,834,015.688937692882057667 Eth | 0.042973450798051264 | ||
0xc0487aD4...AD89Afb20 | (Uniswap V3: ECL) | ||||
0xF857C938...0a5227E03 |
Execution Trace
UniversalRouter.execute( commands=0x00060C, inputs=[AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiM4jtuQOnnHHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACXKSd+kJ7MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAr+FfJOIKcKlNVf7P7schdEKUifgMAC7jAKqo5siP+jQoOXE8n6tkIPHVswgAAAAAAAAAAAAAAAAAAAAAAAAAAAA==, AAAAAAAAAAAAAAAAwCqqObIj/o0KDlxPJ+rZCDx1bMIAAAAAAAAAAAAAAAAAAAD+4ToQOhDVk7muBrPgXy5+HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZ, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlyknfpCezA==], deadline=1723171595 )
UniswapV3Pool.swap( recipient=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, zeroForOne=False, amountSpecified=10094444444444444444444, sqrtPriceLimitX96=1461446703485210103287273052203988822378723970341, data=0x0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000ACCD3452CD59E9C091E45842AFC6CE65EEFBA885000000000000000000000000000000000000000000000000000000000000002BF857C938829C2A53557FB3FBB1C85D10A5227E03000BB8C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000000000000000000000 ) => ( amount0=-43081153682256906, amount1=10094444444444444444444 )
-
WETH9.transfer( dst=0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD, wad=43081153682256906 ) => ( True )
TransparentUpgradeableProxy.70a08231( )
-
EclToken.balanceOf( account=0xc0487aD4EbC33aCAec7Fb796c6E6214AD89Afb20 ) => ( 9351344868329506970697483 )
-
UniversalRouter.uniswapV3SwapCallback( amount0Delta=-43081153682256906, amount1Delta=10094444444444444444444, data=0x0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000ACCD3452CD59E9C091E45842AFC6CE65EEFBA885000000000000000000000000000000000000000000000000000000000000002BF857C938829C2A53557FB3FBB1C85D10A5227E03000BB8C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000000000000000000000 )
Permit2.transferFrom( from=0xAcCD3452Cd59E9C091e45842Afc6Ce65EefBa885, to=0xc0487aD4EbC33aCAec7Fb796c6E6214AD89Afb20, amount=10094444444444444444444, token=0xF857C938829c2A53557fB3fbb1C85d10a5227E03 )
TransparentUpgradeableProxy.23b872dd( )
-
EclToken.transferFrom( from=0xAcCD3452Cd59E9C091e45842Afc6Ce65EefBa885, to=0xc0487aD4EbC33aCAec7Fb796c6E6214AD89Afb20, amount=10094444444444444444444 ) => ( True )
-
TransparentUpgradeableProxy.70a08231( )
-
EclToken.balanceOf( account=0xc0487aD4EbC33aCAec7Fb796c6E6214AD89Afb20 ) => ( 9361439312773951415141927 )
-
-
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 43081153682256906 )
-
WETH9.transfer( dst=0x000000fee13a103A10D593b9AE06b3e05F2E7E1c, wad=107702884205642 ) => ( True )
-
WETH9.balanceOf( 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD ) => ( 42973450798051264 )
WETH9.withdraw( wad=42973450798051264 )
- ETH 0.042973450798051264
UniversalRouter.CALL( )
- ETH 0.042973450798051264
- ETH 0.042973450798051264
0xaccd3452cd59e9c091e45842afc6ce65eefba885.CALL( )
execute[UniversalRouter (ln:16)]
execute[UniversalRouter (ln:21)]
execute[UniversalRouter (ln:21)]
File 1 of 7: UniversalRouter
File 2 of 7: UniswapV3Pool
File 3 of 7: WETH9
File 4 of 7: TransparentUpgradeableProxy
File 5 of 7: FeeCollector
File 6 of 7: EclToken
File 7 of 7: 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 7: UniswapV3Pool
12345678910111213141516// SPDX-License-Identifier: BUSL-1.1pragma 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';
File 3 of 7: 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 4 of 7: TransparentUpgradeableProxy
12345678910111213141516// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)pragma solidity ^0.8.0;import "../utils/Context.sol";/*** @dev Contract module which provides a basic access control mechanism, where* there is an account (an owner) that can be granted exclusive access to* specific functions.** By default, the owner account will be the one that deploys the contract. This* can later be changed with {transferOwnership}.** This module is used through inheritance. It will make available the modifier* `onlyOwner`, which can be applied to your functions to restrict their use to* the owner.*/
File 5 of 7: FeeCollector
12345678910111213141516// SPDX-License-Identifier: GPL-2.0-or-laterpragma 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;
File 6 of 7: EclToken
12345678910111213141516// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)pragma solidity ^0.8.0;import "./IAccessControlUpgradeable.sol";import "../utils/ContextUpgradeable.sol";import "../utils/StringsUpgradeable.sol";import "../utils/introspection/ERC165Upgradeable.sol";import "../proxy/utils/Initializable.sol";/*** @dev Contract module that allows children to implement role-based access* control mechanisms. This is a lightweight version that doesn't allow enumerating role* members except through off-chain means by accessing the contract event logs. Some* applications may benefit from on-chain enumerability, for those cases see* {AccessControlEnumerable}.** Roles are referred to by their `bytes32` identifier. These should be exposed
File 7 of 7: 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;