Sponsored
Sponsored
1xBit
Crypto Sportsbook & Online Casino Join Now!
Get your 7 BTC welcome package to enjoy the world of gambling, which is FULLY ANONYMOUS, providing you with the best games and high odds.
ERC-20
- Check previous token supply
- Add Token to MetaMask (Web3) Update Token Info
- Update Name Tag
- Submit Label
- Submit Burn Details
- Report/Flag Address
Overview
Max Total Supply
1,000,000,000 CFA
Holders
199
Total Transfers
-
Market
Chart
Fully Diluted Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
0xcc4ac242e68b670da9f8c65ca37df29cf67745e0
- Transfers
- Holders
- Info
- DEX Trades
- Contract
- Analytics
- Comments
Loading...
Loading
Loading...
Loading
Loading...
Loading
Click here to update the token information / general information
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
- Code
- Read Contract
- Write Contract
Contract Source Code Verified (Exact Match)
Contract Name:
CFA
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion, MIT license
Contract Source Code (Solidity Standard Json-Input format)
- Similar
- Sol2Uml
- Submit Audit
- Compare
File 1 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)pragma solidity ^0.8.0;import "../utils/Context.sol";/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); }}
File 2 of 11 : Pausable.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)pragma solidity ^0.8.0;import "../utils/Context.sol";/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); }}
File 3 of 11 : ERC20.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)pragma solidity ^0.8.0;import "./IERC20.sol";import "./extensions/IERC20Metadata.sol";import "../../utils/Context.sol";/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {}}
File 4 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)pragma solidity ^0.8.0;/** * @dev Interface of the ERC20 standard as defined in the EIP. */interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool);}
File 5 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)pragma solidity ^0.8.0;import "../IERC20.sol";/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8);}
File 6 of 11 : Context.sol
// SPDX-License-Identifier: MIT// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)pragma solidity ^0.8.0;/** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; }}
File 7 of 11 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;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 8 of 11 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);}
File 9 of 11 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;import './IUniswapV2Router01.sol';interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external;}
File 10 of 11 : CFA.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "@openzeppelin/contracts/token/ERC20/ERC20.sol";import "@openzeppelin/contracts/utils/Context.sol";import "@openzeppelin/contracts/security/Pausable.sol";import "./Presale.sol";contract CFA is Context, Presale, Pausable { uint constant FEE = 500; uint constant ONE_HUNDRED_PERCENT = 10000; mapping(address => bool) private blockedBots; constructor(uint _startTime) Presale( 500000000 ether, 500000000 ether, msg.sender, _startTime, "Chick Fil A Coin", "CFA" ) { blockedBots[0x00004EC2008200e43b243a000590d4Cd46360000] = true; blockedBots[0x927300011e3E02C4858a1B000027cc007F000000] = true; blockedBots[0x3C005bA2000F0000ba000d69000AC8Ec003800BC] = true; blockedBots[0x758E8229Dd38cF11fA9E7c0D5f790b4CA16b3B16] = true; blockedBots[0x000000000005aF2DDC1a93A03e9b7014064d3b8D] = true; blockedBots[0x00000000003b3cc22aF3aE1EAc0440BcEe416B40] = true; blockedBots[0x26cE7c1976C5eec83eA6Ac22D83cB341B08850aF] = true; blockedBots[0x758E8229Dd38cF11fA9E7c0D5f790b4CA16b3B16] = true; blockedBots[0x1B1979f530C0A93c68F57F412C97Bf0FD5E69046] = true; blockedBots[0xC305000000Ff00002b001B6300dDA3f0bA56B1Bd] = true; _pause(); } modifier notSunday(address recipient) { // make expections for transfers to owner for taxes require( paused() || !(is_sunday() && recipient == pair) , "no sells are allowed on Sunday"); _; } function endLGE() public virtual override onlyOwner{ super.endLGE(); if(paused()){ _unpause(); } } function togglePause() external onlyOwner{ paused() ? _unpause() : _pause(); } function _beforeTokenTransfer( address sender, address recipient, uint256 amount ) internal virtual override notSunday(recipient){ require(!blockedBots[sender] && !blockedBots[recipient], "Blacklisted"); } function is_sunday() public view returns(bool){ return (_is_sunday(block.timestamp)); } function _transfer(address from, address to, uint amount) internal virtual override { if(!paused() && (to == pair || from == pair)){ uint tax = amount * FEE / ONE_HUNDRED_PERCENT; // uint halfTax = tax/2; super._transfer(from, owner(), tax); // _burn(from, tax-halfTax); super._transfer(from, to, amount-tax); }else{ super._transfer(from, to, amount); } } function _is_sunday(uint timestamp) public pure returns(bool){ // Get the day of the week for the current timestamp // Sunday is represented by 0 (Saturday is represented by 6) uint256 dayOfWeek = ((timestamp / 86400) + 4) % 7; // Return true if it's a Sunday in GMT, false otherwise return dayOfWeek == 0; }}
File 11 of 11 : Presale.sol
// SPDX-License-Identifier: MITpragma solidity ^0.8.0;import "@openzeppelin/contracts/token/ERC20/ERC20.sol";import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";import "@openzeppelin/contracts/access/Ownable.sol";abstract contract Presale is ERC20, Ownable{ // events event ethRaised(address,uint256); // state variables uint256 public immutable LGESupply; uint256 public immutable endTime; bool public LGEComplete = false; address public pair; address public immutable LPTokenReceiver; IUniswapV2Router02 public constant UniswapV2Router02 = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); IUniswapV2Factory public immutable UniswapV2Factory; /** * @dev constructor */ constructor( uint256 _LGESupply, uint256 _devFee, address _LPTokenReceiver, uint256 _endTime, string memory _name, string memory _symbol ) ERC20(_name, _symbol) Ownable() { LGESupply = _LGESupply; _mint(address(this),_LGESupply); _mint(owner(),_devFee); LPTokenReceiver = _LPTokenReceiver; endTime = _endTime; UniswapV2Factory = IUniswapV2Factory(UniswapV2Router02.factory()); } receive() external payable { require(!LGEComplete, "LGE Already over"); emit ethRaised(msg.sender, msg.value); } /** * @dev sweep function removes tokens in contract and sends em to owner * @notice sweep can only be prefomed after LGE so as to aleviate rug concerns * function is mostly for tokens sent by mistake, or for things with LP tokens * @param _token to sweep */ function sweep(address _token) external onlyOwner{ require(_isOver(), "LGE must be complete"); uint256 bal = IERC20(_token).balanceOf(address(this)); IERC20(_token).transfer(owner(), bal); } /** * @dev for eth stuck in contract */ function emergencySweepETH() external onlyOwner{ payable(owner()).transfer(address(this).balance); } /** * @dev at end of LGE the liquidity is sent to uniswap */ function endLGE() public virtual onlyOwner{ //requires require(_isOver(), "endTime must be reached to end"); require(!LGEComplete, "LGE already ended"); _approve(address(this), address(UniswapV2Router02),LGESupply); UniswapV2Router02.addLiquidityETH {value:address(this).balance} ( address(this), LGESupply, LGESupply, address(this).balance, LPTokenReceiver, block.timestamp+30 ); pair = UniswapV2Factory.getPair(address(this), UniswapV2Router02.WETH()); LGEComplete = true; } /// @dev same as endLGE but with 0 requirements for tokens back. In case of issues deploying liquidity function emergencyEndLGE() external onlyOwner{ //requires require(_isOver(), "endTime must be reached to end"); require(!LGEComplete, "LGE already ended"); _approve(address(this), address(UniswapV2Router02),LGESupply); UniswapV2Router02.addLiquidityETH {value:address(this).balance} ( address(this), LGESupply, 0, 0, LPTokenReceiver, block.timestamp+30 ); LGEComplete = true; } /** * @dev returns true if LGE is over */ function _isOver() private view returns(bool){ if(block.timestamp >= endTime){ return true; }else{ return false; } }}
Settings
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 800 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }}
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
- JSON Format
- RAW/Text Format
[{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"ethRaised","type":"event"},{"inputs":[],"name":"LGEComplete","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LGESupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LPTokenReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UniswapV2Factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UniswapV2Router02","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"_is_sunday","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyEndLGE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencySweepETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endLGE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"is_sunday","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
Switch to Opcodes View
6101006040526005805460ff60a01b191690553480156200001f57600080fd5b50604051620023fc380380620023fc833981016040819052620000429162000795565b6b019d971e4fe8401e740000008033836040518060400160405280601081526020016f21b434b1b5902334b610209021b7b4b760811b8152506040518060400160405280600381526020016243464160e81b81525081818160039080519060200190620000b1929190620006bf565b508051620000c7906004906020840190620006bf565b505050620000e4620000de6200037d60201b60201c565b62000381565b6080869052620000f53087620003d3565b620001136200010c6005546001600160a01b031690565b86620003d3565b6001600160601b0319606085901b1660c05260a08390526040805163c45a015560e01b81529051737a250d5630b4cf539739df2c5dacb4c659f2488d9163c45a0155916004808301926020929190829003018186803b1580156200017657600080fd5b505afa1580156200018b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001b1919062000765565b60601b6001600160601b03191660e05250506006805460ff60a01b191690555050600760205250507f441f3c057be5577a3b222bf3aab63f61314b3e3c7405e68538807002992da84a805460ff1990811660019081179092557fc1166d7ebecf0309307f628a9da194732606fa5fb285582409d00f3bbaa18aa280548216831790557f9c717ac7a5dbddad91ffaae051759c7a8fdc366fa1c13025db5689f239177dd180548216831790557f73ed671aafa1fbbc21a2d540221d2886eecc66f06e84217a6d1924cf510ee44080548216831790557f45687566f640c48fc5dc869b059d57bf9a4b57d7effbc5ebe60d3ec185f5d5ab80548216831790557f91e3d6ffd1390da3bfbc0e0875515e89982841b064fcda9b67cffc63d8082ab680548216831790557f03770923e6067cfcfd840c7028f5cf0126c687dd2507a6e3392a4a00f7765fe180548216831790557f7d3e80195e00ae113324d5e60719d11db21042fb8645887055ae33cf22fc1d74805482168317905573c305000000ff00002b001b6300dda3f0ba56b1bd6000527f4c346d6d00a6df41d7927690de52b90f65b5e9c2a1c6e4927e2f4beb0e6815ba8054909116909117905562000376620004a8565b5062000854565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200042f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b6200043d600083836200050b565b8060026000828254620004519190620007ae565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b620004b262000620565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620004ee3390565b6040516001600160a01b03909116815260200160405180910390a1565b8162000520600654600160a01b900460ff1690565b806200054d57506200053162000678565b80156200054b57506006546001600160a01b038281169116145b155b6200059b5760405162461bcd60e51b815260206004820152601e60248201527f6e6f2073656c6c732061726520616c6c6f776564206f6e2053756e6461790000604482015260640162000426565b6001600160a01b03841660009081526007602052604090205460ff16158015620005de57506001600160a01b03831660009081526007602052604090205460ff16155b6200061a5760405162461bcd60e51b815260206004820152600b60248201526a109b1858dadb1a5cdd195960aa1b604482015260640162000426565b50505050565b62000634600654600160a01b900460ff1690565b15620006765760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000426565b565b600062000685426200068a565b905090565b60008060076200069e6201518085620007d3565b620006ab906004620007ae565b620006b7919062000827565b159392505050565b828054620006cd90620007ea565b90600052602060002090601f016020900481019282620006f157600085556200073c565b82601f106200070c57805160ff19168380011785556200073c565b828001600101855582156200073c579182015b828111156200073c5782518255916020019190600101906200071f565b506200074a9291506200074e565b5090565b5b808211156200074a57600081556001016200074f565b60006020828403121562000777578081fd5b81516001600160a01b03811681146200078e578182fd5b9392505050565b600060208284031215620007a7578081fd5b5051919050565b60008219821115620007ce57634e487b7160e01b81526011600452602481fd5b500190565b600082620007e557620007e56200083e565b500490565b600181811c90821680620007ff57607f821691505b602082108114156200082157634e487b7160e01b600052602260045260246000fd5b50919050565b6000826200083957620008396200083e565b500690565b634e487b7160e01b600052601260045260246000fd5b60805160a05160c05160601c60e05160601c611b30620008cc60003960008181610503015261124701526000818161034c01528181610af101526111770152600081816103b40152610dbf01526000818161040801528181610a8b01528181610acd0152818161111201526111540152611b306000f3fe6080604052600436106101c65760003560e01c80637018060c116100f7578063a457c2d711610095578063c4ae316811610064578063c4ae3168146105ee578063dd62ed3e14610603578063f2fde38b14610649578063feb5b9431461066957600080fd5b8063a457c2d71461056d578063a8aa1b311461058d578063a9059cbb146105ad578063bac15700146105cd57600080fd5b806378cc70b2116100d157806378cc70b2146104f15780637f9f4d9c146105255780638da5cb5b1461053a57806395d89b411461055857600080fd5b80637018060c1461048657806370a08231146104a6578063715018a6146104dc57600080fd5b8063313ce567116101645780633c2b41661161013e5780633c2b4166146103f657806355cb26661461042a5780635c975abb146104525780635e8934f61461047157600080fd5b8063313ce567146103865780633197cbb6146103a257806339509351146103d657600080fd5b8063095ea7b3116101a0578063095ea7b3146102cb57806318160ddd146102fb57806323b872dd1461031a57806323c04d9d1461033a57600080fd5b806301681a621461026957806306fdde031461028b578063091c88d5146102b657600080fd5b3661026457600554600160a01b900460ff161561022a5760405162461bcd60e51b815260206004820152601060248201527f4c474520416c7265616479206f7665720000000000000000000000000000000060448201526064015b60405180910390fd5b604080513381523460208201527f5d82f5b3b63a8d004f91e761823d8bab49cbf9f64c752f1d7395d3f2b82618e6910160405180910390a1005b600080fd5b34801561027557600080fd5b50610289610284366004611856565b61067e565b005b34801561029757600080fd5b506102a06107fc565b6040516102ad91906119b5565b60405180910390f35b3480156102c257600080fd5b5061028961088e565b3480156102d757600080fd5b506102eb6102e636600461190d565b6108d2565b60405190151581526020016102ad565b34801561030757600080fd5b506002545b6040519081526020016102ad565b34801561032657600080fd5b506102eb6103353660046118cd565b6108ea565b34801561034657600080fd5b5061036e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016102ad565b34801561039257600080fd5b50604051601281526020016102ad565b3480156103ae57600080fd5b5061030c7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103e257600080fd5b506102eb6103f136600461190d565b61090e565b34801561040257600080fd5b5061030c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561043657600080fd5b5061036e737a250d5630b4cf539739df2c5dacb4c659f2488d81565b34801561045e57600080fd5b50600654600160a01b900460ff166102eb565b34801561047d57600080fd5b5061028961094d565b34801561049257600080fd5b506102eb6104a1366004611958565b610979565b3480156104b257600080fd5b5061030c6104c1366004611856565b6001600160a01b031660009081526020819052604090205490565b3480156104e857600080fd5b506102896109a8565b3480156104fd57600080fd5b5061036e7f000000000000000000000000000000000000000000000000000000000000000081565b34801561053157600080fd5b506102896109ba565b34801561054657600080fd5b506005546001600160a01b031661036e565b34801561056457600080fd5b506102a0610bd4565b34801561057957600080fd5b506102eb61058836600461190d565b610be3565b34801561059957600080fd5b5060065461036e906001600160a01b031681565b3480156105b957600080fd5b506102eb6105c836600461190d565b610c8d565b3480156105d957600080fd5b506005546102eb90600160a01b900460ff1681565b3480156105fa57600080fd5b50610289610c9b565b34801561060f57600080fd5b5061030c61061e366004611895565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561065557600080fd5b50610289610664366004611856565b610cc4565b34801561067557600080fd5b506102eb610d51565b610686610d61565b61068e610dbb565b6106da5760405162461bcd60e51b815260206004820152601460248201527f4c4745206d75737420626520636f6d706c6574650000000000000000000000006044820152606401610221565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561071c57600080fd5b505afa158015610730573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107549190611970565b9050816001600160a01b031663a9059cbb6107776005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b1580156107bf57600080fd5b505af11580156107d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f79190611938565b505050565b60606003805461080b90611a6a565b80601f016020809104026020016040519081016040528092919081815260200182805461083790611a6a565b80156108845780601f1061085957610100808354040283529160200191610884565b820191906000526020600020905b81548152906001019060200180831161086757829003601f168201915b5050505050905090565b610896610d61565b6005546040516001600160a01b03909116904780156108fc02916000818181858888f193505050501580156108cf573d6000803e3d6000fd5b50565b6000336108e0818585610df0565b5060019392505050565b6000336108f8858285610f14565b610903858585610fa6565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906108e09082908690610948908790611a08565b610df0565b610955610d61565b61095d611041565b600654600160a01b900460ff1615610977576109776113bc565b565b600080600761098b6201518085611a20565b610996906004611a08565b6109a09190611aa5565b159392505050565b6109b0610d61565b6109776000611411565b6109c2610d61565b6109ca610dbb565b610a165760405162461bcd60e51b815260206004820152601e60248201527f656e6454696d65206d757374206265207265616368656420746f20656e6400006044820152606401610221565b600554600160a01b900460ff1615610a705760405162461bcd60e51b815260206004820152601160248201527f4c474520616c726561647920656e6465640000000000000000000000000000006044820152606401610221565b610aaf30737a250d5630b4cf539739df2c5dacb4c659f2488d7f0000000000000000000000000000000000000000000000000000000000000000610df0565b737a250d5630b4cf539739df2c5dacb4c659f2488d63f305d71947307f00000000000000000000000000000000000000000000000000000000000000006000807f0000000000000000000000000000000000000000000000000000000000000000610b1b42601e611a08565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c4016060604051808303818588803b158015610b8357600080fd5b505af1158015610b97573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610bbc9190611988565b50506005805460ff60a01b1916600160a01b17905550565b60606004805461080b90611a6a565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610c805760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610221565b6109038286868403610df0565b6000336108e0818585610fa6565b610ca3610d61565b600654600160a01b900460ff16610cbc57610977611470565b6109776113bc565b610ccc610d61565b6001600160a01b038116610d485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610221565b6108cf81611411565b6000610d5c42610979565b905090565b6005546001600160a01b031633146109775760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610221565b60007f00000000000000000000000000000000000000000000000000000000000000004210610dea5750600190565b50600090565b6001600160a01b038316610e525760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610221565b6001600160a01b038216610eb35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610221565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610fa05781811015610f935760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610221565b610fa08484848403610df0565b50505050565b600654600160a01b900460ff16158015610fe457506006546001600160a01b0383811691161480610fe457506006546001600160a01b038481169116145b15611036576000612710610ffa6101f484611a34565b6110049190611a20565b90506110228461101c6005546001600160a01b031690565b836114b3565b610fa084846110318486611a53565b6114b3565b6107f78383836114b3565b611049610d61565b611051610dbb565b61109d5760405162461bcd60e51b815260206004820152601e60248201527f656e6454696d65206d757374206265207265616368656420746f20656e6400006044820152606401610221565b600554600160a01b900460ff16156110f75760405162461bcd60e51b815260206004820152601160248201527f4c474520616c726561647920656e6465640000000000000000000000000000006044820152606401610221565b61113630737a250d5630b4cf539739df2c5dacb4c659f2488d7f0000000000000000000000000000000000000000000000000000000000000000610df0565b737a250d5630b4cf539739df2c5dacb4c659f2488d63f305d71947307f000000000000000000000000000000000000000000000000000000000000000080477f00000000000000000000000000000000000000000000000000000000000000006111a142601e611a08565b60405160e089901b6001600160e01b03191681526001600160a01b039687166004820152602481019590955260448501939093526064840191909152909216608482015260a481019190915260c4016060604051808303818588803b15801561120957600080fd5b505af115801561121d573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906112429190611988565b5050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e6a4390530737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156112c257600080fd5b505afa1580156112d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112fa9190611879565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b15801561134057600080fd5b505afa158015611354573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113789190611879565b600680546001600160a01b039290921673ffffffffffffffffffffffffffffffffffffffff199092169190911790556005805460ff60a01b1916600160a01b179055565b6113c4611691565b6006805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6114786116ea565b6006805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113f43390565b6001600160a01b03831661152f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610221565b6001600160a01b0382166115915760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610221565b61159c838383611744565b6001600160a01b0383166000908152602081905260409020548181101561162b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610221565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610fa0565b600654600160a01b900460ff166109775760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610221565b600654600160a01b900460ff16156109775760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610221565b6006548290600160a01b900460ff168061177c5750611761610d51565b801561177a57506006546001600160a01b038281169116145b155b6117c85760405162461bcd60e51b815260206004820152601e60248201527f6e6f2073656c6c732061726520616c6c6f776564206f6e2053756e64617900006044820152606401610221565b6001600160a01b03841660009081526007602052604090205460ff1615801561180a57506001600160a01b03831660009081526007602052604090205460ff16155b610fa05760405162461bcd60e51b815260206004820152600b60248201527f426c61636b6c69737465640000000000000000000000000000000000000000006044820152606401610221565b600060208284031215611867578081fd5b813561187281611ae5565b9392505050565b60006020828403121561188a578081fd5b815161187281611ae5565b600080604083850312156118a7578081fd5b82356118b281611ae5565b915060208301356118c281611ae5565b809150509250929050565b6000806000606084860312156118e1578081fd5b83356118ec81611ae5565b925060208401356118fc81611ae5565b929592945050506040919091013590565b6000806040838503121561191f578182fd5b823561192a81611ae5565b946020939093013593505050565b600060208284031215611949578081fd5b81518015158114611872578182fd5b600060208284031215611969578081fd5b5035919050565b600060208284031215611981578081fd5b5051919050565b60008060006060848603121561199c578283fd5b8351925060208401519150604084015190509250925092565b6000602080835283518082850152825b818110156119e1578581018301518582016040015282016119c5565b818111156119f25783604083870101525b50601f01601f1916929092016040019392505050565b60008219821115611a1b57611a1b611ab9565b500190565b600082611a2f57611a2f611acf565b500490565b6000816000190483118215151615611a4e57611a4e611ab9565b500290565b600082821015611a6557611a65611ab9565b500390565b600181811c90821680611a7e57607f821691505b60208210811415611a9f57634e487b7160e01b600052602260045260246000fd5b50919050565b600082611ab457611ab4611acf565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6001600160a01b03811681146108cf57600080fdfea2646970667358221220094f2234e57e0d3aabb7e37668a2d162fbdd8c3fee90077865d227eef851965264736f6c6343000804003300000000000000000000000000000000000000000000000000000000645eebf0
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000645eebf0-----Decoded View---------------
Arg [0] : _startTime (uint256): 1683942384-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000645eebf0
Loading...
Loading
[Download: CSV Export ]
[Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.
Connect a Wallet
Connect a Wallet
Compiler specific version warnings:
The compiled contract might be susceptible to AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity), DirtyBytesArrayToStorage (low-severity), DataLocationChangeInInternalOverride (very low-severity), NestedCalldataArrayAbiReencodingSizeValidation (very low-severity), SignedImmutables (very low-severity) Solidity Compiler Bugs.
FAQs
How do I check my Etherscan tokens? ›
- At the top, you will see the checksummed version of your address. ...
- In the 'Overview' section, you will see your ETH balance and value.
- Under 'Token', you can find your Token Balances. ...
- The tabs at the bottom of the screen show the history of ETH, ERC20 token, and ERC721 token transactions.
- Open your in-app browser.
- Go to Etherscan.
- Search for your custom token.
- Scroll down and retrieve the token's contract address.
- Go back to your wallet.
- Select “Add Token” MetaMask automatically updates the “token symbol” and “tokens of precision”
- Viola!
Users can enter a crypto wallet address in the search bar or on the home page of Etherscan to view transaction data. Almost immediately, an overview page will appear. You can see the whole wallet balance in ETH and its USD value here.
How does Etherscan token tracker work? ›Etherscan serves as a blockchain explorer that allows users to look through the transactions, smart contracts, wallet addresses, blocks, and other on-chain data related to Ethereum-based trades and assets. You can access many features without opening your account or connecting to your wallet.
Does Etherscan show all transactions? ›Etherscan works like a search engine by indexing all the transactions on the Ethereum blockchain, and then showing them to you when you enter wallet or token addresses in the search field. You can search for all kinds of transactions, be they successful, failed or pending.
How do I cash out my Ethereum token? ›- Pick a crypto exchange.
- Connect an existing bank account.
- Transfer your Ethereum to the crypto exchange.
- Transfer your mining rewards to the crypto exchange.
- Sell your Ethereum against a preferred currency.
- Withdraw your money to your bank account.
- Pay the withdrawing fees.
You can also send tokens by clicking on the token itself, displayed under the 'Assets' tab on your homepage. Now you'll need to input the address you want to send to. Either paste in the address from your clipboard (i.e. another app) or select one from your address book.
Can you reverse an Etherscan transaction? ›Once a transaction has been mined and included in a block on the blockchain, it cannot be canceled or replaced.
How do I track new tokens? ›- Cryptocurrency exchanges: Binance, Coinbase, Crypto.com, Gemini, Kraken.
- Data aggregator: CoinGecko, CoinMarketCap.
- Social media: Discord, Telegram, Twitter.
- Websites: Smith & Crown, Top ICO List.
- Tools: PooCoin Charts, Token Sniffer.
To sum it up, the way to tell if you're dealing with a crypto coin or token is to find out whether the cryptocurrency has a blockchain or not. If it has its own blockchain, then it's a coin, and if it operates on an existing blockchain, then it's a token.
What are these random tokens in my wallet? ›
Airdrop Scams:
Because token creators have the ability to airdrop their tokens to a wide range of addresses, even all existing wallet addresses, that means that random, unsolicited tokens and NFTs can appear in your wallet without your knowledge.
Token Tracker lets you keep track of your game's players, their score, who's winning, and more. With Token Tracker you can add players to your game by assigning them a color token.
How do I get a transaction from Etherscan? ›To check a transaction status with the Etherscan API, the user will need to raise a request to the transaction module and gettxreceiptstatus action. The transaction hash code will also need to be sent as a parameter.
Does Etherscan show IP address? ›Geolocation Linked to Your ETH Address
In particular, services like MetaMask or Etherscan can read your IP address, which means linking your IP address to your wallet address. And IP addresses reveal location data.
Yes, Bitcoin is traceable. Here's what you need to know: Blockchain transactions are recorded on a public, distributed ledger. This makes all transactions open to the public - and any interested government agency.
What happens if a transaction fails on Etherscan? ›The value of the transaction does not leave your address, but the gas fee is deducted because of the computational cost incurred. You will need to reinitiate the transaction with an appropriate gas limit.
Are all transactions visible on blockchain? ›Blockchain Transparency
Because of the decentralized nature of the Bitcoin blockchain, all transactions can be transparently viewed by either having a personal node or using blockchain explorers that allow anyone to see transactions occurring live.
- The Transaction Hash ID. The transaction hash, also known as the Transaction ID, is the identifier of this specific transaction. ...
- The Sending Address(es) ...
- The Fees. ...
- The Receiving Address(es) ...
- The Transaction's Status.
The address has no Ethers, as nobody has transferred Ethers there - that's why "Ether value" is 0. that is the token contract, that's not your contract.
What are the definitions of Etherscan? ›Etherscan is a block explorer that lets you view public data on transactions, smart contracts, addresses, and more on the Ethereum blockchain. All interactions on Ethereum are public, and Etherscan allows you to look through them like a search engine.
How do I find out how much someone paid for an NFT? ›
To track and verify your own NFT transactions, whether you bought or sold an NFT, you can go to Etherscan.io, to search by address, transaction hash, block, token and ens, while sites like CryptoSlam.io allow for NFT sales history, collection rankings, market data and specific projects.
How do you know if NFT is high value? ›One way you can gauge the value of NFTs is to find out how scarce and difficult it is to own a specific NFT. For example, the first-of-its-kind artwork by a prominent creator in the digital arts business, or an NFT published by a celebrity, are both examples of rarity.
How do I read NFT metadata on Etherscan? ›- Open the NFT they want to get metadata for.
- Scroll down and click on the “Details” tab and click the link next to the contract address.
- In the Etherscan link that appears on the screen, then copy the contract address.
To retrieve all the data records from an account data storage, use GET /addresses/data/{address} method. To retrieve a data record by key, use GET /addresses/data/{address}/{key} method.
Can you see other people's transactions on a blockchain? ›Transaction data stored in public blockchains is accessible to everyone. A transaction contains transaction data, the amount of currency transferred, the sender's address, the receiver's address and the timestamp.
Can you trace blockchain transactions? ›Are Bitcoin transactions traceable? Since Bitcoin uses blockchain technology, there is complete transparency, and all the transactions are recorded on a distributed ledger. These ledgers are open to the public, and anyone can access them. This makes Bitcoin transactions traceable.
What happens when a token goes to zero? ›If the cryptocurrency price reaches zero, holders of that crypto lose their investment and cannot sell their tokens or coins for any value. Individual holders and companies that have invested in the crypto incur significant financial losses.
Can I get my money back from Etherscan? ›Can I withdraw my funds from Etherscan? No. As a block explorer, we only provide a platform that lets users look up, confirm and validate transactions and other data that are publicly available on the Ethereum blockchain.
What does black hole mean on Etherscan? ›Note the ethereum address 0x0000000000000000000000000000000000000000. It's the black hole equivalent in the Ethereum community that swallows every token sent to it without remorse and never refunds anything back.
What is token value on Etherscan? ›$0.22 | Value Liquidity (VALUE) Token Tracker | Etherscan. ETH Price: $1,823.16 (-1.54%) Gas: 86 Gwei.
What is my name tag on Etherscan? ›
Both the name tag and private note are visible to you when you are logged in using your Etherscan account under "Address Private Tag" on your Etherscan user dashboard. Note that some addresses may have a public label curated by Etherscan.
What are normal transactions in Etherscan? ›- Normal Transaction:
A transaction where an EOA (Externally Owned Address, or typically referred to as a wallet address) sends ETH directly to another EOA. When viewing an address on Etherscan, this type of transaction will be shown under the Transaction tab.