Transaction Hash:
Block:
12623555 at Jun-13-2021 02:50:09 AM +UTC
Transaction Fee:
0.001392006 ETH
$3.75
Gas Used:
126,546 Gas / 11 Gwei
Emitted Events:
249 |
WETH9.Deposit( dst=UniswapV2Router02, wad=1247138058391965 )
|
250 |
WETH9.Transfer( src=UniswapV2Router02, dst=UniswapV2Pair, wad=1247138058391965 )
|
251 |
TokenMintERC20Token.Transfer( from=UniswapV2Pair, to=[Receiver] SwapProxy, value=474293759945117102148763 )
|
252 |
UniswapV2Pair.Sync( reserve0=420942031824483218325716091396, reserve1=1103532336901761505225 )
|
253 |
UniswapV2Pair.Swap( sender=UniswapV2Router02, amount0In=0, amount1In=1247138058391965, amount0Out=474293759945117102148763, amount1Out=0, to=[Receiver] SwapProxy )
|
254 |
TokenMintERC20Token.Transfer( from=[Receiver] SwapProxy, to=[Sender] 0x11ef9d2db12d1514bcc4c2250cf8674256ab94f4, value=474293759945117102148763 )
|
255 |
SwapProxy.TokensTraded( sender=[Sender] 0x11ef9d2db12d1514bcc4c2250cf8674256ab94f4, from=0xEeeeeEee...eeeeeEEeE, to=TokenMintERC20Token, fromAmount=1247138058391965, toAmount=474293759945117102148763, fee=6267025419055 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x11Ef9D2D...256Ab94F4 |
0.004763447252888979 Eth
Nonce: 5
|
0.002118036169077959 Eth
Nonce: 6
| 0.00264541108381102 | ||
0x382fFCe2...5BF282bA1 | (Coinbase: Fees) | 3.263972270375078442 Eth | 3.263978537400497497 Eth | 0.000006267025419055 | |
0x811beEd0...F7AF1954f | |||||
0x95aD61b0...f0B64C4cE | |||||
0xC02aaA39...83C756Cc2 | 6,378,503.843976612086266384 Eth | 6,378,503.845223750144658349 Eth | 0.001247138058391965 | ||
0xEA674fdD...16B898ec8
Miner
| (Ethermine) | 883.879775820705887527 Eth | 883.881167826705887527 Eth | 0.001392006 |
Execution Trace
ETH 0.00125340508381102
SwapProxy.swapETHForTokens( path=[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE], minAmount=467335086103152972596933, fee=6267025419055 )
- ETH 0.000006267025419055
Coinbase: Fees.CALL( )
ETH 0.001247138058391965
UniswapV2Router02.swapExactETHForTokens( amountOutMin=467335086103152972596933, path=[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE], to=0x8dF6084e3b84a65Ab9Dd2325b5422e5dEBD8944a, deadline=1623552609 ) => ( amounts=[1247138058391965, 474293759945117102148763] )
-
UniswapV2Pair.STATICCALL( )
- ETH 0.001247138058391965
WETH9.CALL( )
-
WETH9.transfer( dst=0x811beEd0119b4AfCE20D2583EB608C6F7AF1954f, wad=1247138058391965 ) => ( True )
UniswapV2Pair.swap( amount0Out=474293759945117102148763, amount1Out=0, to=0x8dF6084e3b84a65Ab9Dd2325b5422e5dEBD8944a, data=0x )
-
TokenMintERC20Token.transfer( recipient=0x8dF6084e3b84a65Ab9Dd2325b5422e5dEBD8944a, amount=474293759945117102148763 ) => ( True )
-
TokenMintERC20Token.balanceOf( account=0x811beEd0119b4AfCE20D2583EB608C6F7AF1954f ) => ( 420942031824483218325716091396 )
-
WETH9.balanceOf( 0x811beEd0119b4AfCE20D2583EB608C6F7AF1954f ) => ( 1103532336901761505225 )
-
-
-
TokenMintERC20Token.transfer( recipient=0x11Ef9D2Db12d1514BCc4c2250cf8674256Ab94F4, amount=474293759945117102148763 ) => ( 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.*/