Transaction Hash:
Block:
17420664 at Jun-06-2023 09:56:11 AM +UTC
Transaction Fee:
0.003094089438505104 ETH
$7.84
Gas Used:
151,188 Gas / 20.465178708 Gwei
Emitted Events:
123 |
WETH9.Deposit( dst=ZeroEx, wad=3095763282143150 )
|
124 |
StandardERC20.Transfer( from=UniswapV3Pool, to=[Receiver] ZeroExProxy, value=76882422427445552603513141 )
|
125 |
WETH9.Transfer( src=ZeroEx, dst=UniswapV3Pool, wad=3095763282143150 )
|
126 |
UniswapV3Pool.Swap( sender=ZeroEx, recipient=[Receiver] ZeroExProxy, amount0=-76882422427445552603513141, amount1=3095763282143150, sqrtPriceX96=501993813879664285958231, liquidity=123094708943328783371956638, tick=-239398 )
|
127 |
StandardERC20.Transfer( from=[Receiver] ZeroExProxy, to=[Sender] 0x03939985fc4bea9966c35b449a71deecf07a6265, value=76882422427445552603513141 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x03939985...cf07a6265 |
0.01009576328214315 Eth
Nonce: 4
|
0.003905910561494896 Eth
Nonce: 5
| 0.006189852720648254 | ||
0x9bf1D7D6...EEefa702E | |||||
0xC02aaA39...83C756Cc2 | 3,354,401.053972320042416781 Eth | 3,354,401.057068083324559931 Eth | 0.00309576328214315 | ||
0xDAFEA492...692c98Bc5
Miner
| (Flashbots: Builder) | 0.053264996916677477 Eth | 0.053567372916677477 Eth | 0.000302376 | |
0xdCe93ed9...2D1cC2777 | (Uniswap V3: BEN) |
Execution Trace
ETH 0.00309576328214315
ZeroExProxy.proxiedSwap( msgData=0x3598D8AB00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000003EF53FA623884C2F64BF490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002BC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000BB89BF1D7D63DD7A4CE167CF4866388226EEEFA702E000000000000000000000000000000000000000000869584CD000000000000000000000000382FFCE2287252F930E1C8DC9328DAC5BF282BA10000000000000000000000000000000000000000000000D71ABA1B39647F02A3, feeToken=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, inputToken=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, inputAmount=3095763282143150, outputToken=0x9bf1D7D63dD7a4ce167CF4866388226EEefa702E, fee=0 )
ETH 0.00309576328214315
ZeroEx.3598d8ab( )
ETH 0.00309576328214315
UniswapV3Feature.sellEthForTokenToUniswapV3( encodedPath=0xC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000BB89BF1D7D63DD7A4CE167CF4866388226EEEFA702E, minBuyAmount=76111554720848810885824329, recipient=0x0000000000000000000000000000000000000000 ) => ( buyAmount=76882422427445552603513141 )
- ETH 0.00309576328214315
WETH9.CALL( )
UniswapV3Pool.swap( recipient=0xe66B31678d6C16E9ebf358268a790B763C133750, zeroForOne=False, amountSpecified=3095763282143150, sqrtPriceLimitX96=1461446703485210103287273052203988822378723970341, data=0x000000000000000000000000C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC20000000000000000000000009BF1D7D63DD7A4CE167CF4866388226EEEFA702E0000000000000000000000000000000000000000000000000000000000000BB8000000000000000000000000DEF1C0DED9BEC7F1A1670819833240F027B25EFF ) => ( amount0=-76882422427445552603513141, amount1=3095763282143150 )
-
StandardERC20.transfer( to=0xe66B31678d6C16E9ebf358268a790B763C133750, amount=76882422427445552603513141 ) => ( True )
-
WETH9.balanceOf( 0xdCe93ed9ae7C53143e19cf799d156B72D1cC2777 ) => ( 690421703412759268420 )
ZeroEx.fa461e33( )
UniswapV3Feature.uniswapV3SwapCallback( amount0Delta=-76882422427445552603513141, amount1Delta=3095763282143150, data=0x000000000000000000000000C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC20000000000000000000000009BF1D7D63DD7A4CE167CF4866388226EEEFA702E0000000000000000000000000000000000000000000000000000000000000BB8000000000000000000000000DEF1C0DED9BEC7F1A1670819833240F027B25EFF )
-
WETH9.transfer( dst=0xdCe93ed9ae7C53143e19cf799d156B72D1cC2777, wad=3095763282143150 ) => ( True )
-
-
WETH9.balanceOf( 0xdCe93ed9ae7C53143e19cf799d156B72D1cC2777 ) => ( 690424799176041411570 )
-
- ETH 0.00309576328214315
-
StandardERC20.balanceOf( account=0xe66B31678d6C16E9ebf358268a790B763C133750 ) => ( 76882422427445552603513141 )
-
StandardERC20.transfer( to=0x03939985Fc4BeA9966C35B449a71Deecf07a6265, amount=76882422427445552603513141 ) => ( True )
proxiedSwap[ZeroExProxy (ln:70)]
_payFees[ZeroExProxy (ln:78)]
_sendETH[ZeroExProxy (ln:167)]
_sendERC20[ZeroExProxy (ln:169)]
safeTransferFrom[ZeroExProxy (ln:179)]
add[ZeroExProxy (ln:82)]
_sendERC20[ZeroExProxy (ln:90)]
safeTransferFrom[ZeroExProxy (ln:179)]
allowance[ZeroExProxy (ln:91)]
safeIncreaseAllowance[ZeroExProxy (ln:93)]
sub[ZeroExProxy (ln:93)]
call[ZeroExProxy (ln:96)]
_revertWithData[ZeroExProxy (ln:98)]
_sendETH[ZeroExProxy (ln:102)]
_revertWithData[ZeroExProxy (ln:104)]
balanceOf[ZeroExProxy (ln:107)]
safeTransfer[ZeroExProxy (ln:109)]
_revertWithData[ZeroExProxy (ln:111)]
_returnWithData[ZeroExProxy (ln:114)]
File 1 of 6: ZeroExProxy
File 2 of 6: WETH9
File 3 of 6: UniswapV3Pool
File 4 of 6: StandardERC20
File 5 of 6: ZeroEx
File 6 of 6: UniswapV3Feature
12345678910111213141516// SPDX-License-Identifier: GPL-3.0pragma solidity 0.6.12;interface IZeroEx {function getFunctionImplementation(bytes4 _signature) external returns (address);}// SPDX-License-Identifier: GPL-3.0pragma solidity 0.6.12;pragma experimental ABIEncoderV2;import "./IZeroEx.sol";import "@0x/contracts-utils/contracts/src/v06/LibBytesV06.sol";import "@0x/contracts-zero-ex/contracts/src/errors/LibProxyRichErrors.sol";import "@openzeppelin/contracts/token/ERC20/IERC20.sol";import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";import "@openzeppelin/contracts/access/Ownable.sol";/// @title Coinbase proxy contract for 0x proxy/// @dev A generic proxy contract which extracts a fee before delegationcontract ZeroExProxy is Ownable {
File 2 of 6: 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 3 of 6: 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 4 of 6: StandardERC20
12345678910111213141516// SPDX-License-Identifier: MIT// File: @openzeppelin/contracts/token/ERC20/IERC20.sol// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)pragma solidity ^0.8.0;/*** @dev Interface of the ERC20 standard as defined in the EIP.*/interface IERC20 {/*** @dev Emitted when `value` tokens are moved from one account (`from`) to* another (`to`).
File 5 of 6: ZeroEx
12345678910111213141516/*Copyright 2020 ZeroEx Intl.Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.*/pragma solidity ^0.6.5;pragma experimental ABIEncoderV2;import "@0x/contracts-utils/contracts/src/v06/LibBytesV06.sol";import "./migrations/LibBootstrap.sol";
File 6 of 6: UniswapV3Feature
12345678910111213141516// SPDX-License-Identifier: Apache-2.0/*Copyright 2023 ZeroEx Intl.Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.*/pragma solidity >=0.6.5 <0.9;interface IERC20Token {event Transfer(address indexed from, address indexed to, uint256 value);