ERC-20
Overview
Max Total Supply
1,000,000,000 AZTEC
Holders
81
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
3,548,189.500982802138395781 AZTECValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
AZTEC
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 1000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// TG: https://t.me/AztecFi // WEBSITE: https://www.aztecerc.com/ // X: https://x.com/aztec_fi // SPDX-License-Identifier: MIT pragma solidity >=0.8.24; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./interfaces/IUniswapV2Router02.sol"; import "./interfaces/IUniswapV2Factory.sol"; contract AZTEC is ERC20, Ownable { mapping(address => bool) private _isExcludedFromFee; address public Treasury; address private Distributor; address private constant DEAD = 0x000000000000000000000000000000000000dEaD; uint256 private _initialTax = 40; uint256 private _intermediateTax = 20; uint256 public finalBuyTax = 0; uint256 public finalSellTax = 10; uint256 private _blockAtLaunch; uint256 private _blockRemoveFirstLimits = 4; uint256 private _blockRemoveSecondLimits = 10; uint256 private _tTotal = 1_000_000_000 * 1e18; uint256 private _maxWalletSize = (_tTotal * 70) / 10000; // 0.7% of total supply uint256 private _swapThreshold = (_tTotal * 50) / 10000; // 0.5% of total supply IUniswapV2Router02 private router; address public pair; bool private initialized = false; bool public tradingOpen = false; bool private inSwap = false; bool private swapEnabled = false; constructor( address initialOwner ) ERC20("Aztec", "AZTEC") Ownable(initialOwner) { router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _approve(address(this), address(router), type(uint256).max); _mint(msg.sender, _tTotal); emit Transfer(address(0), msg.sender, _tTotal); } modifier lockTheSwap() { inSwap = true; _; inSwap = false; } function initializePair() external onlyOwner { require(!initialized, "Already initialized"); pair = IUniswapV2Factory(router.factory()).createPair( address(this), router.WETH() ); initialized = true; } function addExcludedFromFee(address account) external onlyOwner { _isExcludedFromFee[account] = true; } function setPair(address _pair) external onlyOwner { pair = _pair; } function setIsInitialized(bool _initialized) external onlyOwner { initialized = _initialized; } function setTreasury(address _treasury) external onlyOwner { Treasury = _treasury; } function setDistributor(address _distributor) external onlyOwner { Distributor = _distributor; _isExcludedFromFee[Distributor] = true; } function rescueTokens(address token, uint256 amount) external onlyOwner { IERC20(token).transfer(msg.sender, amount); } function rescueETH(uint256 amount) external onlyOwner { bool tmpSuccess; (tmpSuccess, ) = payable(msg.sender).call{value: amount, gas: 5000000}( "" ); } function removeLimits() external onlyOwner { _maxWalletSize = _tTotal; } function openTrading() external onlyOwner { require(!tradingOpen, "trading is already open"); swapEnabled = true; tradingOpen = true; _blockAtLaunch = block.number; } function setSwapThreshold(uint256 newTax) external onlyOwner { _swapThreshold = newTax; } function transfer( address recipient, uint256 amount ) public override returns (bool) { address sender = msg.sender; require(initialized || sender == owner(), "Not yet initialized"); if (sender == pair) { return update(sender, recipient, amount); } else { return _basicTransfer(sender, recipient, amount); } } function transferFrom( address sender, address recipient, uint256 amount ) public override returns (bool) { address spender = _msgSender(); _spendAllowance(sender, spender, amount); update(sender, recipient, amount); return true; } function update( address sender, address recipient, uint256 amount ) internal returns (bool) { require( _isExcludedFromFee[sender] || _isExcludedFromFee[recipient] || tradingOpen, "Not authorized to trade yet" ); uint256 blockSinceLaunch = block.number - _blockAtLaunch; if (blockSinceLaunch < _blockRemoveFirstLimits && _blockAtLaunch != 0) { if ( sender != owner() && recipient != owner() && recipient != DEAD ) { if (recipient != pair) { uint256 _limit = _maxWalletSize; require( _isExcludedFromFee[recipient] || (balanceOf(recipient) + amount <= _limit), "Transfer amount exceeds the MaxWallet size." ); } } } if (shouldSwapBack() && recipient == pair) { swapBack(); } uint256 amountReceived = (!shouldTakeFee(sender) || !shouldTakeFee(recipient)) ? amount : takeFee(sender, recipient, amount); _transfer(sender, recipient, amountReceived); return true; } function _basicTransfer( address sender, address recipient, uint256 amount ) internal returns (bool) { _transfer(sender, recipient, amount); return true; } function shouldTakeFee(address sender) internal view returns (bool) { return !_isExcludedFromFee[sender]; } function takeFee( address sender, address recipient, uint256 amount ) internal returns (uint256) { uint256 feeAmount = 0; uint256 blockSinceLaunch = block.number - _blockAtLaunch; uint256 tax; if (blockSinceLaunch > _blockRemoveSecondLimits) { if (sender == pair && recipient != pair) { tax = finalBuyTax; } else if (sender != pair && recipient == pair) { tax = finalSellTax; } } else if (blockSinceLaunch > _blockRemoveFirstLimits) { tax = _intermediateTax; } else { tax = _initialTax; } feeAmount = (amount * tax) / 100; if (feeAmount > 0) { _transfer(sender, address(this), feeAmount); } return amount - feeAmount; } function shouldSwapBack() internal view returns (bool) { return msg.sender != pair && !inSwap && swapEnabled && balanceOf(address(this)) >= _swapThreshold; } function swapBack() internal lockTheSwap { uint256 amountToSwap = _swapThreshold; address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); router.swapExactTokensForETHSupportingFeeOnTransferTokens( amountToSwap, 0, path, address(this), block.timestamp + 5 ); uint256 amountETHDev = address(this).balance; if (amountETHDev > 0) { bool tmpSuccess; (tmpSuccess, ) = payable(Treasury).call{ value: amountETHDev, gas: 30000 }(""); } } function mint(address to, uint256 value) external { require(msg.sender == Distributor, "Not authorized"); _mint(to, value); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}. * * 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]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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 ERC-20 * applications. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * 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 returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual 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 default value returned by this function, unless * it's 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 returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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 `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` 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 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Skips emitting an {Approval} event indicating an allowance update. This is not * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. * * 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 `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` 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. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` 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. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * * ```solidity * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC-20 standard. */ 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ 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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: GPL-3.0 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 migrator() 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; function setMigrator(address) external; }
// SPDX-License-Identifier: GPL-3.0 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); }
// SPDX-License-Identifier: GPL-3.0 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; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"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":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"},{"inputs":[],"name":"Treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addExcludedFromFee","outputs":[],"stateMutability":"nonpayable","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":"value","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":[],"name":"finalBuyTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalSellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initializePair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","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":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_distributor","type":"address"}],"name":"setDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_initialized","type":"bool"}],"name":"setIsInitialized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pair","type":"address"}],"name":"setPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newTax","type":"uint256"}],"name":"setSwapThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","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
608060405260286009556014600a556000600b55600a600c556004600e55600a600f556b033b2e3c9fd0803ce80000006010556127106010546046620000469190620004e8565b62000052919062000508565b6011556127106010546032620000699190620004e8565b62000075919062000508565b6012556014805463ffffffff60a01b191690553480156200009557600080fd5b506040516200214d3803806200214d833981016040819052620000b8916200052b565b8060405180604001604052806005815260200164417a74656360d81b81525060405180604001604052806005815260200164415a54454360d81b815250816003908162000106919062000603565b50600462000115828262000603565b5050506001600160a01b0381166200014857604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620001538162000230565b50601380546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d179055600160066000620001936005546001600160a01b031690565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff19968716179055308082526006909452919091208054909316600117909255601354620001eb921660001962000282565b620001ff336010546200029660201b60201c565b60105460405190815233906000906000805160206200212d8339815191529060200160405180910390a350620006e5565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002918383836001620002d4565b505050565b6001600160a01b038216620002c25760405163ec442f0560e01b8152600060048201526024016200013f565b620002d060008383620003b0565b5050565b6001600160a01b038416620003005760405163e602df0560e01b8152600060048201526024016200013f565b6001600160a01b0383166200032c57604051634a1406b160e11b8152600060048201526024016200013f565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015620003aa57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051620003a191815260200190565b60405180910390a35b50505050565b6001600160a01b038316620003df578060026000828254620003d39190620006cf565b90915550620004539050565b6001600160a01b03831660009081526020819052604090205481811015620004345760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016200013f565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620004715760028054829003905562000490565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03166000805160206200212d83398151915283604051620004c591815260200190565b60405180910390a3505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417620005025762000502620004d2565b92915050565b6000826200052657634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156200053e57600080fd5b81516001600160a01b03811681146200055657600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200058857607f821691505b602082108103620005a957634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000291576000816000526020600020601f850160051c81016020861015620005da5750805b601f850160051c820191505b81811015620005fb57828155600101620005e6565b505050505050565b81516001600160401b038111156200061f576200061f6200055d565b620006378162000630845462000573565b84620005af565b602080601f8311600181146200066f5760008415620006565750858301515b600019600386901b1c1916600185901b178555620005fb565b600085815260208120601f198616915b82811015620006a0578886015182559484019460019091019084016200067f565b5085821015620006bf5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620005025762000502620004d2565b611a3880620006f56000396000f3fe6080604052600436106101c65760003560e01c8063751039fc116100f7578063a8aa1b3111610095578063e6fe10b611610064578063e6fe10b61461051b578063f0f4426014610531578063f2fde38b14610551578063ffb54a991461057157600080fd5b8063a8aa1b3114610480578063a9059cbb146104a0578063c9567bf9146104c0578063dd62ed3e146104d557600080fd5b80638da5cb5b116100d15780638da5cb5b1461040d57806395d89b411461042b5780639d0014b1146104405780639e252f001461046057600080fd5b8063751039fc146103b857806375619ab5146103cd5780638187f516146103ed57600080fd5b806340c10f1911610164578063573761981161013e578063573761981461033757806358d375331461035757806370a082311461036d578063715018a6146103a357600080fd5b806340c10f19146102ca5780634fab9e4c146102ea578063563df32f146102ff57600080fd5b806318160ddd116101a057806318160ddd1461024f57806323b872dd1461026e578063313ce5671461028e5780633d59805b146102aa57600080fd5b8063013afd14146101d257806306fdde03146101f4578063095ea7b31461021f57600080fd5b366101cd57005b600080fd5b3480156101de57600080fd5b506101f26101ed36600461172c565b610592565b005b34801561020057600080fd5b506102096105d3565b6040516102169190611750565b60405180910390f35b34801561022b57600080fd5b5061023f61023a3660046117b4565b610665565b6040519015158152602001610216565b34801561025b57600080fd5b506002545b604051908152602001610216565b34801561027a57600080fd5b5061023f6102893660046117e0565b61067f565b34801561029a57600080fd5b5060405160128152602001610216565b3480156102b657600080fd5b506101f26102c5366004611821565b6106a4565b3480156102d657600080fd5b506101f26102e53660046117b4565b6106d0565b3480156102f657600080fd5b506101f261073d565b34801561030b57600080fd5b5060075461031f906001600160a01b031681565b6040516001600160a01b039091168152602001610216565b34801561034357600080fd5b506101f26103523660046117b4565b610965565b34801561036357600080fd5b50610260600b5481565b34801561037957600080fd5b50610260610388366004611821565b6001600160a01b031660009081526020819052604090205490565b3480156103af57600080fd5b506101f26109fc565b3480156103c457600080fd5b506101f2610a10565b3480156103d957600080fd5b506101f26103e8366004611821565b610a20565b3480156103f957600080fd5b506101f2610408366004611821565b610a6f565b34801561041957600080fd5b506005546001600160a01b031661031f565b34801561043757600080fd5b50610209610aa6565b34801561044c57600080fd5b506101f261045b36600461183e565b610ab5565b34801561046c57600080fd5b506101f261047b36600461183e565b610ac2565b34801561048c57600080fd5b5060145461031f906001600160a01b031681565b3480156104ac57600080fd5b5061023f6104bb3660046117b4565b610b1e565b3480156104cc57600080fd5b506101f2610bc8565b3480156104e157600080fd5b506102606104f0366004611857565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561052757600080fd5b50610260600c5481565b34801561053d57600080fd5b506101f261054c366004611821565b610c72565b34801561055d57600080fd5b506101f261056c366004611821565b610ca9565b34801561057d57600080fd5b5060145461023f90600160a81b900460ff1681565b61059a610d00565b60148054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6060600380546105e290611890565b80601f016020809104026020016040519081016040528092919081815260200182805461060e90611890565b801561065b5780601f106106305761010080835404028352916020019161065b565b820191906000526020600020905b81548152906001019060200180831161063e57829003601f168201915b5050505050905090565b600033610673818585610d46565b60019150505b92915050565b60003361068d858285610d53565b610698858585610dea565b50600195945050505050565b6106ac610d00565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b6008546001600160a01b0316331461072f5760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f72697a656400000000000000000000000000000000000060448201526064015b60405180910390fd5b610739828261106a565b5050565b610745610d00565b601454600160a01b900460ff161561079f5760405162461bcd60e51b815260206004820152601360248201527f416c726561647920696e697469616c697a6564000000000000000000000000006044820152606401610726565b601360009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081691906118ca565b6001600160a01b031663c9c6539630601360009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c91906118ca565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610901573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092591906118ca565b601480547fffffffffffffffffffffff000000000000000000000000000000000000000000166001600160a01b039290921691909117600160a01b179055565b61096d610d00565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156109d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f791906118e7565b505050565b610a04610d00565b610a0e60006110a0565b565b610a18610d00565b601054601155565b610a28610d00565b600880546001600160a01b0390921673ffffffffffffffffffffffffffffffffffffffff19909216821790556000908152600660205260409020805460ff19166001179055565b610a77610d00565b6014805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600480546105e290611890565b610abd610d00565b601255565b610aca610d00565b6040516000903390624c4b4090849084818181858888f193505050503d8060008114610b12576040519150601f19603f3d011682016040523d82523d6000602084013e610b17565b606091505b5050505050565b6014546000903390600160a01b900460ff1680610b4857506005546001600160a01b038281169116145b610b945760405162461bcd60e51b815260206004820152601360248201527f4e6f742079657420696e697469616c697a6564000000000000000000000000006044820152606401610726565b6014546001600160a01b0390811690821603610bbd57610bb5818585610dea565b915050610679565b610bb58185856110ff565b610bd0610d00565b601454600160a81b900460ff1615610c2a5760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e0000000000000000006044820152606401610726565b601480547fffffffffffffffff00ff00ffffffffffffffffffffffffffffffffffffffffff167701000100000000000000000000000000000000000000000017905543600d55565b610c7a610d00565b6007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610cb1610d00565b6001600160a01b038116610cf4576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610726565b610cfd816110a0565b50565b6005546001600160a01b03163314610a0e576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610726565b6109f78383836001611116565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610de45781811015610dd5576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024810182905260448101839052606401610726565b610de484848484036000611116565b50505050565b6001600160a01b03831660009081526006602052604081205460ff1680610e2957506001600160a01b03831660009081526006602052604090205460ff165b80610e3d5750601454600160a81b900460ff165b610e895760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420617574686f72697a656420746f2074726164652079657400000000006044820152606401610726565b6000600d5443610e99919061191a565b9050600e5481108015610ead5750600d5415155b15610fd6576005546001600160a01b03868116911614801590610ede57506005546001600160a01b03858116911614155b8015610ef557506001600160a01b03841661dead14155b15610fd6576014546001600160a01b03858116911614610fd6576011546001600160a01b03851660009081526006602052604090205460ff1680610f6257508084610f55876001600160a01b031660009081526020819052604090205490565b610f5f919061192d565b11155b610fd45760405162461bcd60e51b815260206004820152602b60248201527f5472616e7366657220616d6f756e74206578636565647320746865204d61785760448201527f616c6c65742073697a652e0000000000000000000000000000000000000000006064820152608401610726565b505b610fde61121d565b8015610ff757506014546001600160a01b038581169116145b1561100457611004611290565b6001600160a01b03851660009081526006602052604081205460ff1615158061104757506001600160a01b03851660009081526006602052604090205460ff1615155b61105b5761105686868661147c565b61105d565b835b9050610698868683611567565b6001600160a01b0382166110945760405163ec442f0560e01b815260006004820152602401610726565b610739600083836115db565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061110c848484611567565b5060019392505050565b6001600160a01b038416611159576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401610726565b6001600160a01b03831661119c576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401610726565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610de457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161120f91815260200190565b60405180910390a350505050565b6014546000906001600160a01b031633148015906112455750601454600160b01b900460ff16155b801561126e575060145477010000000000000000000000000000000000000000000000900460ff165b801561128b57506012543060009081526020819052604090205410155b905090565b6014805460ff60b01b1916600160b01b17905560125460408051600280825260608201835260009260208301908036833701905050905030816000815181106112db576112db611940565b6001600160a01b03928316602091820292909201810191909152601354604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa15801561134d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137191906118ca565b8160018151811061138457611384611940565b6001600160a01b0392831660209182029290920101526013541663791ac94783600084306113b342600561192d565b6040518663ffffffff1660e01b81526004016113d3959493929190611956565b600060405180830381600087803b1580156113ed57600080fd5b505af1158015611401573d6000803e3d6000fd5b50479250508115905061146a576007546040516000916001600160a01b03169061753090849084818181858888f193505050503d8060008114611460576040519150601f19603f3d011682016040523d82523d6000602084013e611465565b606091505b505050505b50506014805460ff60b01b1916905550565b600d5460009081908190611490904361191a565b90506000600f54821115611511576014546001600160a01b0388811691161480156114c957506014546001600160a01b03878116911614155b156114d75750600b54611529565b6014546001600160a01b0388811691161480159061150257506014546001600160a01b038781169116145b1561150c5750600c545b611529565b600e548211156115245750600a54611529565b506009545b606461153582876119c9565b61153f91906119e0565b9250821561155257611552873085611567565b61155c838661191a565b979650505050505050565b6001600160a01b0383166115aa576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610726565b6001600160a01b0382166115d45760405163ec442f0560e01b815260006004820152602401610726565b6109f78383835b6001600160a01b0383166116065780600260008282546115fb919061192d565b909155506116919050565b6001600160a01b03831660009081526020819052604090205481811015611672576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024810182905260448101839052606401610726565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166116ad576002805482900390556116cc565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161171191815260200190565b60405180910390a3505050565b8015158114610cfd57600080fd5b60006020828403121561173e57600080fd5b81356117498161171e565b9392505050565b60006020808352835180602085015260005b8181101561177e57858101830151858201604001528201611762565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610cfd57600080fd5b600080604083850312156117c757600080fd5b82356117d28161179f565b946020939093013593505050565b6000806000606084860312156117f557600080fd5b83356118008161179f565b925060208401356118108161179f565b929592945050506040919091013590565b60006020828403121561183357600080fd5b81356117498161179f565b60006020828403121561185057600080fd5b5035919050565b6000806040838503121561186a57600080fd5b82356118758161179f565b915060208301356118858161179f565b809150509250929050565b600181811c908216806118a457607f821691505b6020821081036118c457634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156118dc57600080fd5b81516117498161179f565b6000602082840312156118f957600080fd5b81516117498161171e565b634e487b7160e01b600052601160045260246000fd5b8181038181111561067957610679611904565b8082018082111561067957610679611904565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156119a85784516001600160a01b031683529383019391830191600101611983565b50506001600160a01b03969096166060850152505050608001529392505050565b808202811582820484141761067957610679611904565b6000826119fd57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220fe093c0efa927cf4ed93c69a15b927f114f371e4bbb6ef0e7eb9f7c325ab401564736f6c63430008180033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef0000000000000000000000008646c5a7438aec456263ed43031c4f3a4447ccc7
Deployed Bytecode
0x6080604052600436106101c65760003560e01c8063751039fc116100f7578063a8aa1b3111610095578063e6fe10b611610064578063e6fe10b61461051b578063f0f4426014610531578063f2fde38b14610551578063ffb54a991461057157600080fd5b8063a8aa1b3114610480578063a9059cbb146104a0578063c9567bf9146104c0578063dd62ed3e146104d557600080fd5b80638da5cb5b116100d15780638da5cb5b1461040d57806395d89b411461042b5780639d0014b1146104405780639e252f001461046057600080fd5b8063751039fc146103b857806375619ab5146103cd5780638187f516146103ed57600080fd5b806340c10f1911610164578063573761981161013e578063573761981461033757806358d375331461035757806370a082311461036d578063715018a6146103a357600080fd5b806340c10f19146102ca5780634fab9e4c146102ea578063563df32f146102ff57600080fd5b806318160ddd116101a057806318160ddd1461024f57806323b872dd1461026e578063313ce5671461028e5780633d59805b146102aa57600080fd5b8063013afd14146101d257806306fdde03146101f4578063095ea7b31461021f57600080fd5b366101cd57005b600080fd5b3480156101de57600080fd5b506101f26101ed36600461172c565b610592565b005b34801561020057600080fd5b506102096105d3565b6040516102169190611750565b60405180910390f35b34801561022b57600080fd5b5061023f61023a3660046117b4565b610665565b6040519015158152602001610216565b34801561025b57600080fd5b506002545b604051908152602001610216565b34801561027a57600080fd5b5061023f6102893660046117e0565b61067f565b34801561029a57600080fd5b5060405160128152602001610216565b3480156102b657600080fd5b506101f26102c5366004611821565b6106a4565b3480156102d657600080fd5b506101f26102e53660046117b4565b6106d0565b3480156102f657600080fd5b506101f261073d565b34801561030b57600080fd5b5060075461031f906001600160a01b031681565b6040516001600160a01b039091168152602001610216565b34801561034357600080fd5b506101f26103523660046117b4565b610965565b34801561036357600080fd5b50610260600b5481565b34801561037957600080fd5b50610260610388366004611821565b6001600160a01b031660009081526020819052604090205490565b3480156103af57600080fd5b506101f26109fc565b3480156103c457600080fd5b506101f2610a10565b3480156103d957600080fd5b506101f26103e8366004611821565b610a20565b3480156103f957600080fd5b506101f2610408366004611821565b610a6f565b34801561041957600080fd5b506005546001600160a01b031661031f565b34801561043757600080fd5b50610209610aa6565b34801561044c57600080fd5b506101f261045b36600461183e565b610ab5565b34801561046c57600080fd5b506101f261047b36600461183e565b610ac2565b34801561048c57600080fd5b5060145461031f906001600160a01b031681565b3480156104ac57600080fd5b5061023f6104bb3660046117b4565b610b1e565b3480156104cc57600080fd5b506101f2610bc8565b3480156104e157600080fd5b506102606104f0366004611857565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561052757600080fd5b50610260600c5481565b34801561053d57600080fd5b506101f261054c366004611821565b610c72565b34801561055d57600080fd5b506101f261056c366004611821565b610ca9565b34801561057d57600080fd5b5060145461023f90600160a81b900460ff1681565b61059a610d00565b60148054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6060600380546105e290611890565b80601f016020809104026020016040519081016040528092919081815260200182805461060e90611890565b801561065b5780601f106106305761010080835404028352916020019161065b565b820191906000526020600020905b81548152906001019060200180831161063e57829003601f168201915b5050505050905090565b600033610673818585610d46565b60019150505b92915050565b60003361068d858285610d53565b610698858585610dea565b50600195945050505050565b6106ac610d00565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b6008546001600160a01b0316331461072f5760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f72697a656400000000000000000000000000000000000060448201526064015b60405180910390fd5b610739828261106a565b5050565b610745610d00565b601454600160a01b900460ff161561079f5760405162461bcd60e51b815260206004820152601360248201527f416c726561647920696e697469616c697a6564000000000000000000000000006044820152606401610726565b601360009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107f2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061081691906118ca565b6001600160a01b031663c9c6539630601360009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c91906118ca565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015610901573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092591906118ca565b601480547fffffffffffffffffffffff000000000000000000000000000000000000000000166001600160a01b039290921691909117600160a01b179055565b61096d610d00565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156109d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f791906118e7565b505050565b610a04610d00565b610a0e60006110a0565b565b610a18610d00565b601054601155565b610a28610d00565b600880546001600160a01b0390921673ffffffffffffffffffffffffffffffffffffffff19909216821790556000908152600660205260409020805460ff19166001179055565b610a77610d00565b6014805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600480546105e290611890565b610abd610d00565b601255565b610aca610d00565b6040516000903390624c4b4090849084818181858888f193505050503d8060008114610b12576040519150601f19603f3d011682016040523d82523d6000602084013e610b17565b606091505b5050505050565b6014546000903390600160a01b900460ff1680610b4857506005546001600160a01b038281169116145b610b945760405162461bcd60e51b815260206004820152601360248201527f4e6f742079657420696e697469616c697a6564000000000000000000000000006044820152606401610726565b6014546001600160a01b0390811690821603610bbd57610bb5818585610dea565b915050610679565b610bb58185856110ff565b610bd0610d00565b601454600160a81b900460ff1615610c2a5760405162461bcd60e51b815260206004820152601760248201527f74726164696e6720697320616c7265616479206f70656e0000000000000000006044820152606401610726565b601480547fffffffffffffffff00ff00ffffffffffffffffffffffffffffffffffffffffff167701000100000000000000000000000000000000000000000017905543600d55565b610c7a610d00565b6007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b610cb1610d00565b6001600160a01b038116610cf4576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610726565b610cfd816110a0565b50565b6005546001600160a01b03163314610a0e576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610726565b6109f78383836001611116565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610de45781811015610dd5576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024810182905260448101839052606401610726565b610de484848484036000611116565b50505050565b6001600160a01b03831660009081526006602052604081205460ff1680610e2957506001600160a01b03831660009081526006602052604090205460ff165b80610e3d5750601454600160a81b900460ff165b610e895760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420617574686f72697a656420746f2074726164652079657400000000006044820152606401610726565b6000600d5443610e99919061191a565b9050600e5481108015610ead5750600d5415155b15610fd6576005546001600160a01b03868116911614801590610ede57506005546001600160a01b03858116911614155b8015610ef557506001600160a01b03841661dead14155b15610fd6576014546001600160a01b03858116911614610fd6576011546001600160a01b03851660009081526006602052604090205460ff1680610f6257508084610f55876001600160a01b031660009081526020819052604090205490565b610f5f919061192d565b11155b610fd45760405162461bcd60e51b815260206004820152602b60248201527f5472616e7366657220616d6f756e74206578636565647320746865204d61785760448201527f616c6c65742073697a652e0000000000000000000000000000000000000000006064820152608401610726565b505b610fde61121d565b8015610ff757506014546001600160a01b038581169116145b1561100457611004611290565b6001600160a01b03851660009081526006602052604081205460ff1615158061104757506001600160a01b03851660009081526006602052604090205460ff1615155b61105b5761105686868661147c565b61105d565b835b9050610698868683611567565b6001600160a01b0382166110945760405163ec442f0560e01b815260006004820152602401610726565b610739600083836115db565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600061110c848484611567565b5060019392505050565b6001600160a01b038416611159576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401610726565b6001600160a01b03831661119c576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401610726565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610de457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161120f91815260200190565b60405180910390a350505050565b6014546000906001600160a01b031633148015906112455750601454600160b01b900460ff16155b801561126e575060145477010000000000000000000000000000000000000000000000900460ff165b801561128b57506012543060009081526020819052604090205410155b905090565b6014805460ff60b01b1916600160b01b17905560125460408051600280825260608201835260009260208301908036833701905050905030816000815181106112db576112db611940565b6001600160a01b03928316602091820292909201810191909152601354604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa15801561134d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137191906118ca565b8160018151811061138457611384611940565b6001600160a01b0392831660209182029290920101526013541663791ac94783600084306113b342600561192d565b6040518663ffffffff1660e01b81526004016113d3959493929190611956565b600060405180830381600087803b1580156113ed57600080fd5b505af1158015611401573d6000803e3d6000fd5b50479250508115905061146a576007546040516000916001600160a01b03169061753090849084818181858888f193505050503d8060008114611460576040519150601f19603f3d011682016040523d82523d6000602084013e611465565b606091505b505050505b50506014805460ff60b01b1916905550565b600d5460009081908190611490904361191a565b90506000600f54821115611511576014546001600160a01b0388811691161480156114c957506014546001600160a01b03878116911614155b156114d75750600b54611529565b6014546001600160a01b0388811691161480159061150257506014546001600160a01b038781169116145b1561150c5750600c545b611529565b600e548211156115245750600a54611529565b506009545b606461153582876119c9565b61153f91906119e0565b9250821561155257611552873085611567565b61155c838661191a565b979650505050505050565b6001600160a01b0383166115aa576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610726565b6001600160a01b0382166115d45760405163ec442f0560e01b815260006004820152602401610726565b6109f78383835b6001600160a01b0383166116065780600260008282546115fb919061192d565b909155506116919050565b6001600160a01b03831660009081526020819052604090205481811015611672576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024810182905260448101839052606401610726565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166116ad576002805482900390556116cc565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161171191815260200190565b60405180910390a3505050565b8015158114610cfd57600080fd5b60006020828403121561173e57600080fd5b81356117498161171e565b9392505050565b60006020808352835180602085015260005b8181101561177e57858101830151858201604001528201611762565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610cfd57600080fd5b600080604083850312156117c757600080fd5b82356117d28161179f565b946020939093013593505050565b6000806000606084860312156117f557600080fd5b83356118008161179f565b925060208401356118108161179f565b929592945050506040919091013590565b60006020828403121561183357600080fd5b81356117498161179f565b60006020828403121561185057600080fd5b5035919050565b6000806040838503121561186a57600080fd5b82356118758161179f565b915060208301356118858161179f565b809150509250929050565b600181811c908216806118a457607f821691505b6020821081036118c457634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156118dc57600080fd5b81516117498161179f565b6000602082840312156118f957600080fd5b81516117498161171e565b634e487b7160e01b600052601160045260246000fd5b8181038181111561067957610679611904565b8082018082111561067957610679611904565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156119a85784516001600160a01b031683529383019391830191600101611983565b50506001600160a01b03969096166060850152505050608001529392505050565b808202811582820484141761067957610679611904565b6000826119fd57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220fe093c0efa927cf4ed93c69a15b927f114f371e4bbb6ef0e7eb9f7c325ab401564736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008646c5a7438aec456263ed43031c4f3a4447ccc7
-----Decoded View---------------
Arg [0] : initialOwner (address): 0x8646c5a7438AEC456263eD43031c4f3A4447ccC7
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008646c5a7438aec456263ed43031c4f3a4447ccc7
Loading...
Loading
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.