Verified contractPartialUnlicensed
ZeroXTracker
Address0x04d50d887e6c6ec569a033d8fbf1e9bb1b4433b7
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.21
- Same code
7 more contracts
Details
- Compiler
- solc 0.8.21+commit.d9974bed
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Unlicensed
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 17,899,008
- Creation transaction
- 0x9dafa84dbd…054a109534
ZeroXTracker.sol
// SPDX-License-Identifier: Unlicensed
/*
░█████╗░██╗░░██╗████████╗██████╗░░█████╗░░█████╗░██╗░░██╗███████╗██████╗░
██╔══██╗╚██╗██╔╝╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗██║░██╔╝██╔════╝██╔══██╗
██║░░██║░╚███╔╝░░░░██║░░░██████╔╝███████║██║░░╚═╝█████═╝░█████╗░░██████╔╝
██║░░██║░██╔██╗░░░░██║░░░██╔══██╗██╔══██║██║░░██╗██╔═██╗░██╔══╝░░██╔══██╗
╚█████╔╝██╔╝╚██╗░░░██║░░░██║░░██║██║░░██║╚█████╔╝██║░╚██╗███████╗██║░░██║
░╚════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░╚═╝░╚════╝░╚═╝░░╚═╝╚══════╝╚═╝░░╚═╝
Revolutionising Wallet Tracking across Multi-Chain Platforms through Telegram
http://t.me/ZeroXTracker
https://0xtracker.cc/
https://twitter.com/0xTracker_ERC
*/
pragma solidity ^0.8.13;
contract ZeroXTracker {
string public name = "0xTracker";
string public symbol = "0xT";
uint8 public decimals = 9;
uint256 public totalSupply;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
constructor(uint256 initialSupply) {
totalSupply = initialSupply * (10 ** uint256(decimals));
balanceOf[msg.sender] = totalSupply;
}
function transfer(address to, uint256 value) public returns (bool) {
require(balanceOf[msg.sender] >= value, "Insufficient balance");
balanceOf[msg.sender] -= value;
balanceOf[to] += value;
emit Transfer(msg.sender, to, value);
return true;
}
function approve(address spender, uint256 value) public returns (bool) {
allowance[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
function transferFrom(address from, address to, uint256 value) public returns (bool) {
require(balanceOf[from] >= value, "Insufficient balance");
require(allowance[from][msg.sender] >= value, "Insufficient allowance");
balanceOf[from] -= value;
balanceOf[to] += value;
allowance[from][msg.sender] -= value;
emit Transfer(from, to, value);
return true;
}
}
interface IUniswapV2Router02 {
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity);
}
contract TokenLiquidity is ZeroXTracker {
address private constant UNISWAP_ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
IUniswapV2Router02 public uniswapRouter = IUniswapV2Router02(UNISWAP_ROUTER_ADDRESS);
constructor(uint256 initialSupply) ZeroXTracker(initialSupply) {}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) public payable {
require(msg.value == ethAmount, "ETH amount doesn't match msg.value");
approve(UNISWAP_ROUTER_ADDRESS, tokenAmount);
uniswapRouter.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
msg.sender,
block.timestamp + 15
);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.