Transaction Hash:
Block:
17420466 at Jun-06-2023 09:15:59 AM +UTC
Transaction Fee:
0.004823177585201433 ETH
$12.12
Gas Used:
243,237 Gas / 19.829127909 Gwei
Emitted Events:
105 |
WETH9.Deposit( dst=ZeroEx, wad=60714120612417860 )
|
106 |
Token.Transfer( from=UniswapV3Pool, to=[Receiver] ZeroExProxy, value=1914950708509078577272971 )
|
107 |
WETH9.Transfer( src=ZeroEx, dst=UniswapV3Pool, wad=53124855535865628 )
|
108 |
UniswapV3Pool.Swap( sender=ZeroEx, recipient=[Receiver] ZeroExProxy, amount0=53124855535865628, amount1=-1914950708509078577272971, sqrtPriceX96=475480011532276161348136700576617, liquidity=29204622243748097266481, tick=174003 )
|
109 |
WETH9.Transfer( src=ZeroEx, dst=UniswapV2Pair, wad=7589265076552232 )
|
110 |
Token.Transfer( from=UniswapV2Pair, to=[Receiver] ZeroExProxy, value=257918313248923778847197 )
|
111 |
UniswapV2Pair.Sync( reserve0=145297021113923830, reserve1=4694028271988617783637756 )
|
112 |
UniswapV2Pair.Swap( sender=ZeroEx, amount0In=7589265076552232, amount1In=0, amount0Out=0, amount1Out=257918313248923778847197, to=[Receiver] ZeroExProxy )
|
113 |
Token.Transfer( from=[Receiver] ZeroExProxy, to=[Sender] 0xc0054fed60171bc7c756f9fea08c7583e4853734, value=2172869021758002356120168 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x0BC81dcf...112F01bda | |||||
0x6725D829...B4289CDB8 | (Uniswap V3: LHINU) | ||||
0x95222290...5CC4BAfe5
Miner
| (beaverbuild) | 16.005153592309477472 Eth | 16.005640066309477472 Eth | 0.000486474 | |
0xC0054FEd...3E4853734 |
2.035986985264531699 Eth
Nonce: 9
|
1.970449687066912406 Eth
Nonce: 10
| 0.065537298197619293 | ||
0xC02aaA39...83C756Cc2 | 3,354,318.404729697708116112 Eth | 3,354,318.465443818320533972 Eth | 0.06071412061241786 | ||
0xCeDefE43...E2A41038d |
Execution Trace
ETH 0.06071412061241786
ZeroExProxy.proxiedSwap( msgData=0xF35B4733000000000000000000000000CEDEFE438860D2789DA6419B3A19CECE2A41038D000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000001BE51B8C2F75D84D913E3000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000BCBCC64EF58F1C0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002BC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2002710CEDEFE438860D2789DA6419B3A19CECE2A41038D0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000001AF66578FE8229000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000A0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000CEDEFE438860D2789DA6419B3A19CECE2A41038D869584CD000000000000000000000000382FFCE2287252F930E1C8DC9328DAC5BF282BA10000000000000000000000000000000000000000000000B346BA61E8647EF946, feeToken=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, inputToken=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, inputAmount=60714120612417860, outputToken=0xCeDefE438860D2789dA6419b3a19cEcE2A41038d, fee=0 )
ETH 0.06071412061241786
ZeroEx.f35b4733( )
ETH 0.06071412061241786
MultiplexFeature.multiplexBatchSellEthForToken( outputToken=0xCeDefE438860D2789dA6419b3a19cEcE2A41038d, calls=, minBuyAmount=2107682951105261732434915 ) => ( boughtAmount=2172869021758002356120168 )
- ETH 0.06071412061241786
WETH9.CALL( )
-
Token.balanceOf( account=0xe66B31678d6C16E9ebf358268a790B763C133750 ) => ( 0 )
ZeroEx.4a931ba1( )
UniswapV3Feature._sellHeldTokenForTokenToUniswapV3( encodedPath=0xC02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2002710CEDEFE438860D2789DA6419B3A19CECE2A41038D, sellAmount=53124855535865628, minBuyAmount=0, recipient=0xe66B31678d6C16E9ebf358268a790B763C133750 ) => ( buyAmount=1914950708509078577272971 )
UniswapV3Pool.swap( recipient=0xe66B31678d6C16E9ebf358268a790B763C133750, zeroForOne=True, amountSpecified=53124855535865628, sqrtPriceLimitX96=4295128740, data=0x000000000000000000000000C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000CEDEFE438860D2789DA6419B3A19CECE2A41038D0000000000000000000000000000000000000000000000000000000000002710000000000000000000000000DEF1C0DED9BEC7F1A1670819833240F027B25EFF ) => ( amount0=53124855535865628, amount1=-1914950708509078577272971 )
-
Token.transfer( recipient=0xe66B31678d6C16E9ebf358268a790B763C133750, amount=1914950708509078577272971 ) => ( True )
-
WETH9.balanceOf( 0x6725D829fd512fDDDc4bc078573D464B4289CDB8 ) => ( 1274438549688528909 )
-
ZeroEx.fa461e33( )
-
WETH9.balanceOf( 0x6725D829fd512fDDDc4bc078573D464B4289CDB8 ) => ( 1327563405224394537 )
-
ETH 0.06071412061241786
MultiplexFeature._batchSellUniswapV2External( params=[{name:inputToken, type:address, order:1, indexed:false, value:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, valueString:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2}, {name:outputToken, type:address, order:2, indexed:false, value:0xCeDefE438860D2789dA6419b3a19cEcE2A41038d, valueString:0xCeDefE438860D2789dA6419b3a19cEcE2A41038d}, {name:sellAmount, type:uint256, order:3, indexed:false, value:60714120612417860, valueString:60714120612417860}, {name:calls, type:tuple[], order:4, indexed:false}, {name:useSelfBalance, type:bool, order:5, indexed:false, value:true, valueString:True}, {name:recipient, type:address, order:6, indexed:false, value:0xe66B31678d6C16E9ebf358268a790B763C133750, valueString:0xe66B31678d6C16E9ebf358268a790B763C133750}, {name:payer, type:address, order:7, indexed:false, value:0xe66B31678d6C16E9ebf358268a790B763C133750, valueString:0xe66B31678d6C16E9ebf358268a790B763C133750}], wrappedCallData=0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000C02AAA39B223FE8D0A0E5C4F27EAD9083C756CC2000000000000000000000000CEDEFE438860D2789DA6419B3A19CECE2A41038D, sellAmount=7589265076552232 ) => ( boughtAmount=257918313248923778847197 )
-
WETH9.transfer( dst=0x0BC81dcfd28cc1Fab2c8b854368d524112F01bda, wad=7589265076552232 ) => ( True )
-
UniswapV2Pair.STATICCALL( )
UniswapV2Pair.swap( amount0Out=0, amount1Out=257918313248923778847197, to=0xe66B31678d6C16E9ebf358268a790B763C133750, data=0x )
-
Token.transfer( recipient=0xe66B31678d6C16E9ebf358268a790B763C133750, amount=257918313248923778847197 ) => ( True )
-
WETH9.balanceOf( 0x0BC81dcfd28cc1Fab2c8b854368d524112F01bda ) => ( 145297021113923830 )
-
Token.balanceOf( account=0x0BC81dcfd28cc1Fab2c8b854368d524112F01bda ) => ( 4694028271988617783637756 )
-
-
-
Token.balanceOf( account=0xe66B31678d6C16E9ebf358268a790B763C133750 ) => ( 2172869021758002356120168 )
- ETH 0.06071412061241786
-
Token.balanceOf( account=0xe66B31678d6C16E9ebf358268a790B763C133750 ) => ( 2172869021758002356120168 )
-
Token.transfer( recipient=0xC0054FEd60171bC7c756f9fea08C7583E4853734, amount=2172869021758002356120168 ) => ( 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 8: ZeroExProxy
File 2 of 8: WETH9
File 3 of 8: UniswapV3Pool
File 4 of 8: Token
File 5 of 8: ZeroEx
File 6 of 8: UniswapV2Pair
File 7 of 8: MultiplexFeature
File 8 of 8: 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 8: 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 8: 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 8: Token
12345678910111213141516// File: @openzeppelin/contracts/token/ERC20/IERC20.sol// SPDX-License-Identifier: MIT// 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`).** Note that `value` may be zero.
File 5 of 8: 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 8: UniswapV2Pair
12345678910111213141516// File: contracts/interfaces/IUniswapV2Pair.solpragma 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);
File 7 of 8: MultiplexFeature
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;pragma experimental ABIEncoderV2;import "@0x/contracts-erc20/src/IERC20Token.sol";
File 8 of 8: 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);