Transaction Hash:
Block:
12473404 at May-20-2021 08:20:19 PM +UTC
Transaction Fee:
0.0123258564 ETH
$31.68
Gas Used:
143,658 Gas / 85.8 Gwei
Emitted Events:
139 |
WETH9.Deposit( dst=UniswapV2Router02, wad=35232837712946209 )
|
140 |
WETH9.Transfer( src=UniswapV2Router02, dst=UniswapV2Pair, wad=35232837712946209 )
|
141 |
TokenMintERC20Token.Transfer( from=UniswapV2Pair, to=[Receiver] SwapProxy, value=9919741632314886765015131 )
|
142 |
UniswapV2Pair.Sync( reserve0=584641738906273908408790002062, reserve1=2070330257223909732897 )
|
143 |
UniswapV2Pair.Swap( sender=UniswapV2Router02, amount0In=0, amount1In=35232837712946209, amount0Out=9919741632314886765015131, amount1Out=0, to=[Receiver] SwapProxy )
|
144 |
TokenMintERC20Token.Transfer( from=[Receiver] SwapProxy, to=[Sender] 0x11ef9d2db12d1514bcc4c2250cf8674256ab94f4, value=9919741632314886765015131 )
|
145 |
SwapProxy.TokensTraded( sender=[Sender] 0x11ef9d2db12d1514bcc4c2250cf8674256ab94f4, from=0xEeeeeEee...eeeeeEEeE, to=TokenMintERC20Token, fromAmount=35232837712946209, toAmount=9919741632314886765015131, fee=177049435743448 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x11Ef9D2D...256Ab94F4 |
0.07099474 Eth
Nonce: 0
|
0.023258996451310343 Eth
Nonce: 1
| 0.047735743548689657 | ||
0x382fFCe2...5BF282bA1 | (Coinbase: Fees) | 2.805076353359480516 Eth | 2.805253402795223964 Eth | 0.000177049435743448 | |
0x811beEd0...F7AF1954f | |||||
0x95aD61b0...f0B64C4cE | |||||
0xC02aaA39...83C756Cc2 | 6,319,301.763637019406034161 Eth | 6,319,301.79886985711898037 Eth | 0.035232837712946209 | ||
0xEA674fdD...16B898ec8
Miner
| (Ethermine) | 2,820.97769021346667844 Eth | 2,820.99001606986667844 Eth | 0.0123258564 |
Execution Trace
ETH 0.035409887148689657
SwapProxy.swapETHForTokens( path=[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE], minAmount=9777708924292245512607013, fee=177049435743448 )
- ETH 0.000177049435743448
Coinbase: Fees.CALL( )
ETH 0.035232837712946209
UniswapV2Router02.swapExactETHForTokens( amountOutMin=9777708924292245512607013, path=[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE], to=0x8dF6084e3b84a65Ab9Dd2325b5422e5dEBD8944a, deadline=1621542019 ) => ( amounts=[35232837712946209, 9919741632314886765015131] )
-
UniswapV2Pair.STATICCALL( )
- ETH 0.035232837712946209
WETH9.CALL( )
-
WETH9.transfer( dst=0x811beEd0119b4AfCE20D2583EB608C6F7AF1954f, wad=35232837712946209 ) => ( True )
UniswapV2Pair.swap( amount0Out=9919741632314886765015131, amount1Out=0, to=0x8dF6084e3b84a65Ab9Dd2325b5422e5dEBD8944a, data=0x )
-
TokenMintERC20Token.transfer( recipient=0x8dF6084e3b84a65Ab9Dd2325b5422e5dEBD8944a, amount=9919741632314886765015131 ) => ( True )
-
TokenMintERC20Token.balanceOf( account=0x811beEd0119b4AfCE20D2583EB608C6F7AF1954f ) => ( 584641738906273908408790002062 )
-
WETH9.balanceOf( 0x811beEd0119b4AfCE20D2583EB608C6F7AF1954f ) => ( 2070330257223909732897 )
-
-
-
TokenMintERC20Token.transfer( recipient=0x11Ef9D2Db12d1514BCc4c2250cf8674256Ab94F4, amount=9919741632314886765015131 ) => ( 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.*/