Transaction Hash:
Block:
17420667 at Jun-06-2023 09:56:47 AM +UTC
Transaction Fee:
0.00367444262429244 ETH
$10.12
Gas Used:
177,320 Gas / 20.722099167 Gwei
Emitted Events:
140 |
FiatTokenProxy.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x000000000000000000000000188d97924c6224523f53b95e05a38708066fb7e2, 0x000000000000000000000000e66b31678d6c16e9ebf358268a790b763c133750, 0000000000000000000000000000000000000000000000000000000000b575ce )
|
141 |
FiatTokenProxy.0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925( 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925, 0x000000000000000000000000e66b31678d6c16e9ebf358268a790b763c133750, 0x000000000000000000000000def1c0ded9bec7f1a1670819833240f027b25eff, 0000000000000000000000000000000000000000000000000000000000b575ce )
|
142 |
FiatTokenProxy.0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef( 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x000000000000000000000000e66b31678d6c16e9ebf358268a790b763c133750, 0x000000000000000000000000b4e16d0168e52d35cacd2c6185b44281ec28c9dc, 0000000000000000000000000000000000000000000000000000000000b575ce )
|
143 |
WETH9.Transfer( src=UniswapV2Pair, dst=ZeroEx, wad=6523057059064814 )
|
144 |
UniswapV2Pair.Sync( reserve0=27557209142338, reserve1=15161068467670766552286 )
|
145 |
UniswapV2Pair.Swap( sender=ZeroEx, amount0In=11892174, amount1In=0, amount0Out=0, amount1Out=6523057059064814, to=ZeroEx )
|
146 |
WETH9.Withdrawal( src=ZeroEx, wad=6523057059064814 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x188d9792...8066FB7e2 |
0.007903449964670346 Eth
Nonce: 50
|
0.01075206439944272 Eth
Nonce: 51
| 0.002848614434772374 | ||
0x4675C7e5...ef3b0a263
Miner
| (Coinbase: MEV Builder) | 0.270502180598980396 Eth | 0.270856820598980396 Eth | 0.00035464 | |
0xA0b86991...E3606eB48 | |||||
0xB4e16d01...1Ec28C9Dc | |||||
0xC02aaA39...83C756Cc2 | 3,354,410.958244030424988796 Eth | 3,354,410.951720973365923982 Eth | 0.006523057059064814 |
Execution Trace
ZeroExProxy.proxiedSwap( msgData=0xD9627AA400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000B575CE00000000000000000000000000000000000000000000000000167AB48BE3B6C500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000A0B86991C6218B36C1D19D4A2E9EB0CE3606EB48000000000000000000000000EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE869584CD000000000000000000000000382FFCE2287252F930E1C8DC9328DAC5BF282BA10000000000000000000000000000000000000000000000388F61541F647F02D1, feeToken=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, inputToken=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, inputAmount=11892174, outputToken=0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, fee=0 )
FiatTokenProxy.23b872dd( )
-
FiatTokenV2_1.transferFrom( from=0x188d97924c6224523F53B95e05a38708066FB7e2, to=0xe66B31678d6C16E9ebf358268a790B763C133750, value=11892174 ) => ( True )
-
FiatTokenProxy.dd62ed3e( )
-
FiatTokenV2_1.allowance( owner=0xe66B31678d6C16E9ebf358268a790B763C133750, spender=0xDef1C0ded9bec7F1a1670819833240f027b25EfF ) => ( 0 )
-
FiatTokenProxy.dd62ed3e( )
-
FiatTokenV2_1.allowance( owner=0xe66B31678d6C16E9ebf358268a790B763C133750, spender=0xDef1C0ded9bec7F1a1670819833240f027b25EfF ) => ( 0 )
-
FiatTokenProxy.095ea7b3( )
-
FiatTokenV2_1.approve( spender=0xDef1C0ded9bec7F1a1670819833240f027b25EfF, value=11892174 ) => ( True )
-
ZeroEx.d9627aa4( )
UniswapFeature.sellToUniswap( tokens=[0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE], sellAmount=11892174, minBuyAmount=6327365347292869, isSushi=False ) => ( buyAmount=6523057059064814 )
FiatTokenProxy.23b872dd( )
-
FiatTokenV2_1.transferFrom( from=0xe66B31678d6C16E9ebf358268a790B763C133750, to=0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc, value=11892174 ) => ( True )
-
-
UniswapV2Pair.STATICCALL( )
UniswapV2Pair.swap( amount0Out=0, amount1Out=6523057059064814, to=0xDef1C0ded9bec7F1a1670819833240f027b25EfF, data=0x )
-
WETH9.transfer( dst=0xDef1C0ded9bec7F1a1670819833240f027b25EfF, wad=6523057059064814 ) => ( True )
FiatTokenProxy.70a08231( )
-
FiatTokenV2_1.balanceOf( account=0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc ) => ( 27557209142338 )
-
-
WETH9.balanceOf( 0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc ) => ( 15161068467670766552286 )
-
WETH9.withdraw( wad=6523057059064814 )
- ETH 0.006523057059064814
ZeroEx.CALL( )
- ETH 0.006523057059064814
- ETH 0.006523057059064814
ZeroExProxy.CALL( )
- ETH 0.006523057059064814
0x188d97924c6224523f53b95e05a38708066fb7e2.CALL( )
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 7: ZeroExProxy
File 2 of 7: FiatTokenProxy
File 3 of 7: UniswapV2Pair
File 4 of 7: ZeroEx
File 5 of 7: WETH9
File 6 of 7: FiatTokenV2_1
File 7 of 7: UniswapFeature
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 7: FiatTokenProxy
12345678910111213141516pragma solidity ^0.4.24;// File: zos-lib/contracts/upgradeability/Proxy.sol/*** @title Proxy* @dev Implements delegation of calls to other contracts, with proper* forwarding of return values and bubbling of failures.* It defines a fallback function that delegates all calls to the address* returned by the abstract _implementation() internal function.*/contract Proxy {/*** @dev Fallback function.* Implemented entirely in `_fallback`.*/
File 3 of 7: 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 4 of 7: 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 5 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 6 of 7: FiatTokenV2_1
12345678910111213141516// File: @openzeppelin/contracts/math/SafeMath.sol// SPDX-License-Identifier: MITpragma solidity ^0.6.0;/*** @dev Wrappers over Solidity's arithmetic operations with added overflow* checks.** Arithmetic operations in Solidity wrap on overflow. This can easily result* in bugs, because programmers usually assume that an overflow raises an* error, which is the standard behavior in high level programming languages.* `SafeMath` restores this intuition by reverting the transaction when an* operation overflows.*
File 7 of 7: UniswapFeature
12345678910111213141516// SPDX-License-Identifier: Apache-2.0/*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-erc20/contracts/src/v06/IERC20TokenV06.sol";