Transaction Hash:
Block:
12603017 at Jun-09-2021 10:31:25 PM +UTC
Transaction Fee:
0.0022272096 ETH
$5.59
Gas Used:
126,546 Gas / 17.6 Gwei
Emitted Events:
274 |
WETH9.Deposit( dst=UniswapV2Router02, wad=1901031715705006 )
|
275 |
WETH9.Transfer( src=UniswapV2Router02, dst=UniswapV2Pair, wad=1901031715705006 )
|
276 |
TokenMintERC20Token.Transfer( from=UniswapV2Pair, to=[Receiver] SwapProxy, value=676989738250180598376985 )
|
277 |
UniswapV2Pair.Sync( reserve0=389138215235967920048748955732, reserve1=1089449428841935065959 )
|
278 |
UniswapV2Pair.Swap( sender=UniswapV2Router02, amount0In=0, amount1In=1901031715705006, amount0Out=676989738250180598376985, amount1Out=0, to=[Receiver] SwapProxy )
|
279 |
TokenMintERC20Token.Transfer( from=[Receiver] SwapProxy, to=[Sender] 0x11ef9d2db12d1514bcc4c2250cf8674256ab94f4, value=676989738250180598376985 )
|
280 |
SwapProxy.TokensTraded( sender=[Sender] 0x11ef9d2db12d1514bcc4c2250cf8674256ab94f4, from=0xEeeeeEee...eeeeeEEeE, to=TokenMintERC20Token, fromAmount=1901031715705006, toAmount=676989738250180598376985, fee=9552923194497 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x11Ef9D2D...256Ab94F4 |
0.007525333270730776 Eth
Nonce: 2
|
0.003387539031831273 Eth
Nonce: 3
| 0.004137794238899503 | ||
0x2A0eEe94...f753EA0f6
Miner
| 52.379527406881079095 Eth | 52.381754616481079095 Eth | 0.0022272096 | ||
0x382fFCe2...5BF282bA1 | (Coinbase: Fees) | 3.35794549460435105 Eth | 3.357955047527545547 Eth | 0.000009552923194497 | |
0x811beEd0...F7AF1954f | |||||
0x95aD61b0...f0B64C4cE | |||||
0xC02aaA39...83C756Cc2 | 6,382,939.727660619123634022 Eth | 6,382,939.729561650839339028 Eth | 0.001901031715705006 |
Execution Trace
ETH 0.001910584638899503
SwapProxy.swapETHForTokens( path=[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE], minAmount=666823631972632014389656, fee=9552923194497 )
- ETH 0.000009552923194497
Coinbase: Fees.CALL( )
ETH 0.001901031715705006
UniswapV2Router02.swapExactETHForTokens( amountOutMin=666823631972632014389656, path=[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE], to=0x8dF6084e3b84a65Ab9Dd2325b5422e5dEBD8944a, deadline=1623277885 ) => ( amounts=[1901031715705006, 676989738250180598376985] )
-
UniswapV2Pair.STATICCALL( )
- ETH 0.001901031715705006
WETH9.CALL( )
-
WETH9.transfer( dst=0x811beEd0119b4AfCE20D2583EB608C6F7AF1954f, wad=1901031715705006 ) => ( True )
UniswapV2Pair.swap( amount0Out=676989738250180598376985, amount1Out=0, to=0x8dF6084e3b84a65Ab9Dd2325b5422e5dEBD8944a, data=0x )
-
TokenMintERC20Token.transfer( recipient=0x8dF6084e3b84a65Ab9Dd2325b5422e5dEBD8944a, amount=676989738250180598376985 ) => ( True )
-
TokenMintERC20Token.balanceOf( account=0x811beEd0119b4AfCE20D2583EB608C6F7AF1954f ) => ( 389138215235967920048748955732 )
-
WETH9.balanceOf( 0x811beEd0119b4AfCE20D2583EB608C6F7AF1954f ) => ( 1089449428841935065959 )
-
-
-
TokenMintERC20Token.transfer( recipient=0x11Ef9D2Db12d1514BCc4c2250cf8674256Ab94F4, amount=676989738250180598376985 ) => ( True )
swapETHForTokens[SwapProxy (ln:44)]
_sendETH[SwapProxy (ln:54)]
add[SwapProxy (ln:56)]
sub[SwapProxy (ln:60)]
swapExactETHForTokens[SwapProxy (ln:61)]
_sendERC20[SwapProxy (ln:70)]
safeTransfer[SwapProxy (ln:204)]
TokensTraded[SwapProxy (ln:71)]
File 1 of 5: SwapProxy
File 2 of 5: WETH9
File 3 of 5: UniswapV2Router02
File 4 of 5: UniswapV2Pair
File 5 of 5: TokenMintERC20Token
12345678910111213141516// SPDX-License-Identifier: GNU-3.0pragma solidity =0.6.12;import '@openzeppelin/contracts/token/ERC20/IERC20.sol';import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';import '@openzeppelin/contracts/access/Ownable.sol';import '@openzeppelin/contracts/utils/ReentrancyGuard.sol';import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';/**@title Coinbase Wallet Swap ProxyThis contract is meant to be stateless and not meant to custody funds.Any funds sent directly to this contract may not be recoverable.*/contract SwapProxy is ReentrancyGuard, Ownable {using SafeERC20 for IERC20;using SafeMath for uint256;// ETH Indicator
File 2 of 5: 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 5: UniswapV2Router02
12345678910111213141516pragma solidity =0.6.6;interface IUniswapV2Factory {event PairCreated(address indexed token0, address indexed token1, address pair, uint);function feeTo() external view returns (address);function feeToSetter() external view returns (address);function getPair(address tokenA, address tokenB) external view returns (address pair);function allPairs(uint) external view returns (address pair);function allPairsLength() external view returns (uint);function createPair(address tokenA, address tokenB) external returns (address pair);function setFeeTo(address) external;function setFeeToSetter(address) external;
File 4 of 5: 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 5 of 5: TokenMintERC20Token
12345678910111213141516/***Submitted for verification at Etherscan.io on 2019-08-02*/// File: contracts\open-zeppelin-contracts\token\ERC20\IERC20.solpragma solidity ^0.5.0;/*** @dev Interface of the ERC20 standard as defined in the EIP. Does not include* the optional functions; to access them see `ERC20Detailed`.*/interface IERC20 {/*** @dev Returns the amount of tokens in existence.*/