Transaction Hash:
Block:
13807820 at Dec-15-2021 05:23:20 AM +UTC
Transaction Fee:
0.007504387508085324 ETH
$13.92
Gas Used:
101,604 Gas / 73.859173931 Gwei
Emitted Events:
104 |
WETH9.Deposit( dst=[Receiver] UniswapV2Router02, wad=50000000000000000 )
|
105 |
WETH9.Transfer( src=[Receiver] UniswapV2Router02, dst=UniswapV2Pair, wad=50000000000000000 )
|
106 |
IDEX.Transfer( from=UniswapV2Pair, to=[Sender] 0x408bae146b1f7cadcda88476a7349a3fa5de6a81, value=640412178986873352608 )
|
107 |
UniswapV2Pair.Sync( reserve0=50551416246158141522195, reserve1=3984947183324313417 )
|
108 |
UniswapV2Pair.Swap( sender=[Receiver] UniswapV2Router02, amount0In=0, amount1In=50000000000000000, amount0Out=640412178986873352608, amount1Out=0, to=[Sender] 0x408bae146b1f7cadcda88476a7349a3fa5de6a81 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0x408BAE14...FA5dE6A81 |
0.072794209320670432 Eth
Nonce: 4
|
0.015289821812585108 Eth
Nonce: 5
| 0.057504387508085324 | ||
0x537B6bd3...Da5670aaD
Miner
| (Miner: 0x537...aaD) | 34.516596342771556775 Eth | 34.516748748771556775 Eth | 0.000152406 | |
0xB7052682...F5CbDcfAE | |||||
0xC02aaA39...83C756Cc2 | 7,278,989.40147703384948478 Eth | 7,278,989.45147703384948478 Eth | 0.05 | ||
0xFCFe058E...935FE0A64 |
Execution Trace
ETH 0.05
UniswapV2Router02.swapExactETHForTokens( amountOutMin=637226048743157564784, path=[0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0xB705268213D593B8FD88d3FDEFF93AFF5CbDcfAE], to=0x408BAE146B1F7CadcDA88476a7349A3FA5dE6A81, deadline=1639547419 ) => ( amounts=[50000000000000000, 640412178986873352608] )
swapExactETHForTokens[UniswapV2Router02 (ln:467)]
getAmountsOut[UniswapV2Router02 (ln:476)]
getReserves[UniswapV2Library (ln:739)]
sortTokens[UniswapV2Library (ln:702)]
getReserves[UniswapV2Library (ln:703)]
pairFor[UniswapV2Library (ln:703)]
sortTokens[UniswapV2Library (ln:691)]
deposit[UniswapV2Router02 (ln:478)]
transfer[UniswapV2Router02 (ln:479)]
pairFor[UniswapV2Router02 (ln:479)]
sortTokens[UniswapV2Library (ln:691)]
_swap[UniswapV2Router02 (ln:480)]
sortTokens[UniswapV2Router02 (ln:430)]
pairFor[UniswapV2Router02 (ln:433)]
sortTokens[UniswapV2Library (ln:691)]
swap[UniswapV2Router02 (ln:434)]
pairFor[UniswapV2Router02 (ln:434)]
sortTokens[UniswapV2Library (ln:691)]
File 1 of 4: UniswapV2Router02
File 2 of 4: WETH9
File 3 of 4: UniswapV2Pair
File 4 of 4: IDEX
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 2 of 4: 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 4: 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 4: IDEX
12345678910111213141516pragma solidity ^0.5.6;/*** @title SafeMath* @dev Unsigned math operations with safety checks that revert on error.*/library SafeMath {/*** @dev Multiplies two unsigned integers, reverts on overflow.*/function mul(uint256 a, uint256 b) internal pure returns (uint256) {// Gas optimization: this is cheaper than requiring 'a' not being zero, but the// benefit is lost if 'b' is also tested.// See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522if (a == 0) {return 0;