ERC-20
Overview
Max Total Supply
250,000,000 AVATAR
Holders
277
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
2,577.2360586255666 AVATARValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AVATAR
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; contract AVATAR is ERC20, Ownable { uint256 private constant MAX_BPS = 100_00; uint256 public immutable start; uint256 public immutable end; uint256 public immutable initialPenalty; uint96 public fee; address public pair; bool private active; mapping(address => bool) public whitelisted; constructor() ERC20("Avatar Moon", "AVATAR", 18) { start = block.timestamp; initialPenalty = 7_00; // 7% end = block.timestamp + 30 days; fee = 3_33; // 3.33% active = false; require(initialPenalty <= MAX_BPS, "max penalty is 100%"); require(fee <= MAX_BPS, "max fee is 100%"); require(start <= end, "start must be <= end"); whitelisted[msg.sender] = true; _mint(msg.sender, 250_000_000e18); } function currentPenalty() public view returns (uint256 _penalty) { if (block.timestamp < end) { unchecked { uint256 _remaining = end - block.timestamp; _penalty = (initialPenalty * _remaining) / (end - start); } } } function _transfer(address sender_, address recipient_, uint256 amount_) internal override { if (!whitelisted[sender_]) { require(active, "!active"); uint256 _feeAmount = (amount_ * fee) / MAX_BPS; // Burn penalty if (sender_ != pair && block.timestamp < end) { uint256 _burnt = (amount_ * currentPenalty()) / MAX_BPS; if (_burnt > 0) { super._transfer(sender_, address(0), _burnt); // `_burnt` is always <= `amount_` unchecked { amount_ -= _burnt; } } } // Collect fee if (_feeAmount > 0) { super._transfer(sender_, owner(), _feeAmount); // `_feeAmount` is always <= `amount_` unchecked { amount_ -= _feeAmount; } } } super._transfer(sender_, recipient_, amount_); } function updatePair(address pair_) external onlyOwner { pair = pair_; active = true; } function updateFee(uint96 fee_) external onlyOwner { require(fee_ <= MAX_BPS, "max fee is 100%"); fee = fee_; } function toggleWhitelist(address address_) external onlyOwner { whitelisted[address_] = !whitelisted[address_]; } function sweep(IERC20 token_) external onlyOwner { if (address(token_) == address(0)) { Address.sendValue(payable(owner()), address(this).balance); } else { token_.transfer(owner(), token_.balanceOf(address(this))); } } }
// 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import {IERC20} from "./interfaces/IERC20.sol"; /* ███████╗██████╗ ██████╗ ██████╗ ██████╗ ██╔════╝██╔══██╗██╔════╝ ╚════██╗██╔═████╗ █████╗ ██████╔╝██║ █████╔╝██║██╔██║ ██╔══╝ ██╔══██╗██║ ██╔═══╝ ████╔╝██║ ███████╗██║ ██║╚██████╗ ███████╗╚██████╔╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═════╝ */ /** * @title Modern ERC-20 implementation. * @dev Acknowledgements to Solmate, OpenZeppelin, and DSS for inspiring this code. */ contract ERC20 is IERC20 { /**************/ /*** ERC-20 ***/ /**************/ string public override name; string public override symbol; uint8 public immutable override decimals; uint256 public override totalSupply; mapping(address => uint256) public override balanceOf; mapping(address => mapping(address => uint256)) public override allowance; /** * @param name_ The name of the token. * @param symbol_ The symbol of the token. * @param decimals_ The decimal precision used by the token. */ constructor( string memory name_, string memory symbol_, uint8 decimals_ ) { name = name_; symbol = symbol_; decimals = decimals_; } /**************************/ /*** External Functions ***/ /**************************/ function approve(address spender_, uint256 amount_) public virtual override returns (bool success_) { _approve(msg.sender, spender_, amount_); return true; } function decreaseAllowance(address spender_, uint256 subtractedAmount_) public virtual override returns (bool success_) { _decreaseAllowance(msg.sender, spender_, subtractedAmount_); return true; } function increaseAllowance(address spender_, uint256 addedAmount_) public virtual override returns (bool success_) { _approve(msg.sender, spender_, allowance[msg.sender][spender_] + addedAmount_); return true; } function transfer(address recipient_, uint256 amount_) public virtual override returns (bool success_) { _transfer(msg.sender, recipient_, amount_); return true; } function transferFrom( address owner_, address recipient_, uint256 amount_ ) public virtual override returns (bool success_) { _decreaseAllowance(owner_, msg.sender, amount_); _transfer(owner_, recipient_, amount_); return true; } /**************************/ /*** Internal Functions ***/ /**************************/ function _approve( address owner_, address spender_, uint256 amount_ ) internal { emit Approval(owner_, spender_, allowance[owner_][spender_] = amount_); } function _burn(address owner_, uint256 amount_) internal { balanceOf[owner_] -= amount_; // Cannot underflow because a user's balance will never be larger than the total supply. unchecked { totalSupply -= amount_; } emit Transfer(owner_, address(0), amount_); } function _decreaseAllowance( address owner_, address spender_, uint256 subtractedAmount_ ) internal { uint256 spenderAllowance = allowance[owner_][spender_]; // Cache to memory. if (spenderAllowance != type(uint256).max) { _approve(owner_, spender_, spenderAllowance - subtractedAmount_); } } function _mint(address recipient_, uint256 amount_) internal { totalSupply += amount_; // Cannot overflow because totalSupply would first overflow in the statement above. unchecked { balanceOf[recipient_] += amount_; } emit Transfer(address(0), recipient_, amount_); } function _transfer( address owner_, address recipient_, uint256 amount_ ) internal virtual { balanceOf[owner_] -= amount_; // Cannot overflow because minting prevents overflow of totalSupply, and sum of user balances == totalSupply. unchecked { balanceOf[recipient_] += amount_; } emit Transfer(owner_, recipient_, amount_); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; /// @title Interface of the ERC20 standard as defined in the EIP, including EIP-2612 permit functionality. interface IERC20 { /**************/ /*** Events ***/ /**************/ /** * @dev Emitted when one account has set the allowance of another account over their tokens. * @param owner_ Account that tokens are approved from. * @param spender_ Account that tokens are approved for. * @param amount_ Amount of tokens that have been approved. */ event Approval(address indexed owner_, address indexed spender_, uint256 amount_); /** * @dev Emitted when tokens have moved from one account to another. * @param owner_ Account that tokens have moved from. * @param recipient_ Account that tokens have moved to. * @param amount_ Amount of tokens that have been transferred. */ event Transfer(address indexed owner_, address indexed recipient_, uint256 amount_); /**************************/ /*** External Functions ***/ /**************************/ /** * @dev Function that allows one account to set the allowance of another account over their tokens. * Emits an {Approval} event. * @param spender_ Account that tokens are approved for. * @param amount_ Amount of tokens that have been approved. * @return success_ Boolean indicating whether the operation succeeded. */ function approve(address spender_, uint256 amount_) external returns (bool success_); /** * @dev Function that allows one account to decrease the allowance of another account over their tokens. * Emits an {Approval} event. * @param spender_ Account that tokens are approved for. * @param subtractedAmount_ Amount to decrease approval by. * @return success_ Boolean indicating whether the operation succeeded. */ function decreaseAllowance(address spender_, uint256 subtractedAmount_) external returns (bool success_); /** * @dev Function that allows one account to increase the allowance of another account over their tokens. * Emits an {Approval} event. * @param spender_ Account that tokens are approved for. * @param addedAmount_ Amount to increase approval by. * @return success_ Boolean indicating whether the operation succeeded. */ function increaseAllowance(address spender_, uint256 addedAmount_) external returns (bool success_); /** * @dev Moves an amount of tokens from `msg.sender` to a specified account. * Emits a {Transfer} event. * @param recipient_ Account that receives tokens. * @param amount_ Amount of tokens that are transferred. * @return success_ Boolean indicating whether the operation succeeded. */ function transfer(address recipient_, uint256 amount_) external returns (bool success_); /** * @dev Moves a pre-approved amount of tokens from a sender to a specified account. * Emits a {Transfer} event. * Emits an {Approval} event. * @param owner_ Account that tokens are moving from. * @param recipient_ Account that receives tokens. * @param amount_ Amount of tokens that are transferred. * @return success_ Boolean indicating whether the operation succeeded. */ function transferFrom( address owner_, address recipient_, uint256 amount_ ) external returns (bool success_); /**********************/ /*** View Functions ***/ /**********************/ /** * @dev Returns the allowance that one account has given another over their tokens. * @param owner_ Account that tokens are approved from. * @param spender_ Account that tokens are approved for. * @return allowance_ Allowance that one account has given another over their tokens. */ function allowance(address owner_, address spender_) external view returns (uint256 allowance_); /** * @dev Returns the amount of tokens owned by a given account. * @param account_ Account that owns the tokens. * @return balance_ Amount of tokens owned by a given account. */ function balanceOf(address account_) external view returns (uint256 balance_); /** * @dev Returns the decimal precision used by the token. * @return decimals_ The decimal precision used by the token. */ function decimals() external view returns (uint8 decimals_); /** * @dev Returns the name of the token. * @return name_ The name of the token. */ function name() external view returns (string memory name_); /** * @dev Returns the symbol of the token. * @return symbol_ The symbol of the token. */ function symbol() external view returns (string memory symbol_); /** * @dev Returns the total amount of tokens in existence. * @return totalSupply_ The total amount of tokens in existence. */ function totalSupply() external view returns (uint256 totalSupply_); }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"amount_","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":"owner_","type":"address"},{"indexed":true,"internalType":"address","name":"recipient_","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","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":"success_","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPenalty","outputs":[{"internalType":"uint256","name":"_penalty","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":"subtractedAmount_","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"success_","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"end","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"addedAmount_","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"success_","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialPenalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","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":[{"internalType":"address","name":"address_","type":"address"}],"name":"toggleWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success_","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"recipient_","type":"address"},{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success_","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"fee_","type":"uint96"}],"name":"updateFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair_","type":"address"}],"name":"updatePair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101006040523480156200001257600080fd5b50604080518082018252600b81526a20bb30ba30b91026b7b7b760a91b60208083019182528351808501909452600684526520ab20aa20a960d11b908401528151919291601291620000689160009190620002d3565b5081516200007e906001906020850190620002d3565b5060ff16608052506200009390503362000214565b4260a08190526102bc60e052620000ae9062278d0062000379565b60c052600580546001600160a01b031661014d60a01b1790556006805460ff60a01b1916905560e05161271010156200012e5760405162461bcd60e51b815260206004820152601360248201527f6d61782070656e616c747920697320313030250000000000000000000000000060448201526064015b60405180910390fd5b600554612710600160a01b9091046001600160601b03161115620001875760405162461bcd60e51b815260206004820152600f60248201526e6d617820666565206973203130302560881b604482015260640162000125565b60c05160a0511115620001dd5760405162461bcd60e51b815260206004820152601460248201527f7374617274206d757374206265203c3d20656e64000000000000000000000000604482015260640162000125565b336000818152600760205260409020805460ff191660011790556200020e906acecb8f27f4200f3a00000062000266565b620003dd565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80600260008282546200027a919062000379565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b828054620002e190620003a0565b90600052602060002090601f01602090048101928262000305576000855562000350565b82601f106200032057805160ff191683800117855562000350565b8280016001018555821562000350579182015b828111156200035057825182559160200191906001019062000333565b506200035e92915062000362565b5090565b5b808211156200035e576000815560010162000363565b600082198211156200039b57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620003b557607f821691505b60208210811415620003d757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610faa620004416000396000818161033f01526107760152600081816103e6015281816106e30152818161070e015281816107530152610b970152600081816103180152610732015260006102100152610faa6000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80638da5cb5b116100de578063be9a655511610097578063dd62ed3e11610071578063dd62ed3e14610384578063ddca3f43146103af578063efbe1c1c146103e1578063f2fde38b1461040857600080fd5b8063be9a655514610313578063cfd4b71d1461033a578063d936547e1461036157600080fd5b80638da5cb5b1461029a57806393f379ae146102bf57806395d89b41146102d2578063a457c2d7146102da578063a8aa1b31146102ed578063a9059cbb1461030057600080fd5b8063313ce56711610130578063313ce5671461020b57806339393ac914610244578063395093511461025757806370a082311461026a578063715018a61461028a578063833593991461029257600080fd5b806301681a621461017857806306fdde031461018d578063095ea7b3146101ab57806318160ddd146101ce5780631b56bbf9146101e557806323b872dd146101f8575b600080fd5b61018b610186366004610d1a565b61041b565b005b610195610569565b6040516101a29190610d3e565b60405180910390f35b6101be6101b9366004610d93565b6105f7565b60405190151581526020016101a2565b6101d760025481565b6040519081526020016101a2565b61018b6101f3366004610d1a565b61060d565b6101be610206366004610dbf565b61063c565b6102327f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016101a2565b61018b610252366004610d1a565b61065e565b6101be610265366004610d93565b61068f565b6101d7610278366004610d1a565b60036020526000908152604090205481565b61018b6106cb565b6101d76106df565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016101a2565b61018b6102cd366004610e00565b6107ab565b61019561082d565b6101be6102e8366004610d93565b61083a565b6006546102a7906001600160a01b031681565b6101be61030e366004610d93565b610847565b6101d77f000000000000000000000000000000000000000000000000000000000000000081565b6101d77f000000000000000000000000000000000000000000000000000000000000000081565b6101be61036f366004610d1a565b60076020526000908152604090205460ff1681565b6101d7610392366004610e29565b600460209081526000928352604080842090915290825290205481565b6005546103c990600160a01b90046001600160601b031681565b6040516001600160601b0390911681526020016101a2565b6101d77f000000000000000000000000000000000000000000000000000000000000000081565b61018b610416366004610d1a565b610854565b6104236108ca565b6001600160a01b03811661044f5761044c6104466005546001600160a01b031690565b47610924565b50565b806001600160a01b031663a9059cbb6104706005546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156104af57600080fd5b505afa1580156104c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e79190610e62565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561052d57600080fd5b505af1158015610541573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105659190610e7b565b5050565b6000805461057690610e9d565b80601f01602080910402602001604051908101604052809291908181526020018280546105a290610e9d565b80156105ef5780601f106105c4576101008083540402835291602001916105ef565b820191906000526020600020905b8154815290600101906020018083116105d257829003601f168201915b505050505081565b6000610604338484610a42565b50600192915050565b6106156108ca565b600680546001600160a81b0319166001600160a01b0390921691909117600160a01b179055565b6000610649843384610aa4565b610654848484610ae8565b5060019392505050565b6106666108ca565b6001600160a01b03166000908152600760205260409020805460ff19811660ff90911615179055565b3360008181526004602090815260408083206001600160a01b038716845290915281205490916106049185906106c6908690610eee565b610a42565b6106d36108ca565b6106dd6000610c30565b565b60007f00000000000000000000000000000000000000000000000000000000000000004210156107a8576000427f00000000000000000000000000000000000000000000000000000000000000000390507f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000003817f000000000000000000000000000000000000000000000000000000000000000002816107a3576107a3610f06565b049150505b90565b6107b36108ca565b612710816001600160601b031611156108055760405162461bcd60e51b815260206004820152600f60248201526e6d617820666565206973203130302560881b60448201526064015b60405180910390fd5b600580546001600160601b03909216600160a01b026001600160a01b03909216919091179055565b6001805461057690610e9d565b6000610604338484610aa4565b6000610604338484610ae8565b61085c6108ca565b6001600160a01b0381166108c15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107fc565b61044c81610c30565b6005546001600160a01b031633146106dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b804710156109745760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016107fc565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146109c1576040519150601f19603f3d011682016040523d82523d6000602084013e6109c6565b606091505b5050905080610a3d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016107fc565b505050565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038084166000908152600460209081526040808320938616835292905220546000198114610ae257610ae284846106c68585610f1c565b50505050565b6001600160a01b03831660009081526007602052604090205460ff16610c2557600654600160a01b900460ff16610b4b5760405162461bcd60e51b81526020600482015260076024820152662161637469766560c81b60448201526064016107fc565b60055460009061271090610b6f90600160a01b90046001600160601b031684610f33565b610b799190610f52565b6006549091506001600160a01b03858116911614801590610bb957507f000000000000000000000000000000000000000000000000000000000000000042105b15610bfb576000612710610bcb6106df565b610bd59085610f33565b610bdf9190610f52565b90508015610bf957610bf385600083610c82565b80830392505b505b8015610c2357610c1d84610c176005546001600160a01b031690565b83610c82565b80820391505b505b610a3d838383610c82565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831660009081526003602052604081208054839290610caa908490610f1c565b90915550506001600160a01b03808316600081815260036020526040908190208054850190555190918516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610a979085815260200190565b6001600160a01b038116811461044c57600080fd5b600060208284031215610d2c57600080fd5b8135610d3781610d05565b9392505050565b600060208083528351808285015260005b81811015610d6b57858101830151858201604001528201610d4f565b81811115610d7d576000604083870101525b50601f01601f1916929092016040019392505050565b60008060408385031215610da657600080fd5b8235610db181610d05565b946020939093013593505050565b600080600060608486031215610dd457600080fd5b8335610ddf81610d05565b92506020840135610def81610d05565b929592945050506040919091013590565b600060208284031215610e1257600080fd5b81356001600160601b0381168114610d3757600080fd5b60008060408385031215610e3c57600080fd5b8235610e4781610d05565b91506020830135610e5781610d05565b809150509250929050565b600060208284031215610e7457600080fd5b5051919050565b600060208284031215610e8d57600080fd5b81518015158114610d3757600080fd5b600181811c90821680610eb157607f821691505b60208210811415610ed257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610f0157610f01610ed8565b500190565b634e487b7160e01b600052601260045260246000fd5b600082821015610f2e57610f2e610ed8565b500390565b6000816000190483118215151615610f4d57610f4d610ed8565b500290565b600082610f6f57634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212209bd61de734f58d2c56a33d08bbbf5e0552317921912232799a44f1f646f172ae64736f6c63430008090033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c80638da5cb5b116100de578063be9a655511610097578063dd62ed3e11610071578063dd62ed3e14610384578063ddca3f43146103af578063efbe1c1c146103e1578063f2fde38b1461040857600080fd5b8063be9a655514610313578063cfd4b71d1461033a578063d936547e1461036157600080fd5b80638da5cb5b1461029a57806393f379ae146102bf57806395d89b41146102d2578063a457c2d7146102da578063a8aa1b31146102ed578063a9059cbb1461030057600080fd5b8063313ce56711610130578063313ce5671461020b57806339393ac914610244578063395093511461025757806370a082311461026a578063715018a61461028a578063833593991461029257600080fd5b806301681a621461017857806306fdde031461018d578063095ea7b3146101ab57806318160ddd146101ce5780631b56bbf9146101e557806323b872dd146101f8575b600080fd5b61018b610186366004610d1a565b61041b565b005b610195610569565b6040516101a29190610d3e565b60405180910390f35b6101be6101b9366004610d93565b6105f7565b60405190151581526020016101a2565b6101d760025481565b6040519081526020016101a2565b61018b6101f3366004610d1a565b61060d565b6101be610206366004610dbf565b61063c565b6102327f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff90911681526020016101a2565b61018b610252366004610d1a565b61065e565b6101be610265366004610d93565b61068f565b6101d7610278366004610d1a565b60036020526000908152604090205481565b61018b6106cb565b6101d76106df565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016101a2565b61018b6102cd366004610e00565b6107ab565b61019561082d565b6101be6102e8366004610d93565b61083a565b6006546102a7906001600160a01b031681565b6101be61030e366004610d93565b610847565b6101d77f00000000000000000000000000000000000000000000000000000000639bc91b81565b6101d77f00000000000000000000000000000000000000000000000000000000000002bc81565b6101be61036f366004610d1a565b60076020526000908152604090205460ff1681565b6101d7610392366004610e29565b600460209081526000928352604080842090915290825290205481565b6005546103c990600160a01b90046001600160601b031681565b6040516001600160601b0390911681526020016101a2565b6101d77f0000000000000000000000000000000000000000000000000000000063c3561b81565b61018b610416366004610d1a565b610854565b6104236108ca565b6001600160a01b03811661044f5761044c6104466005546001600160a01b031690565b47610924565b50565b806001600160a01b031663a9059cbb6104706005546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156104af57600080fd5b505afa1580156104c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e79190610e62565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561052d57600080fd5b505af1158015610541573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105659190610e7b565b5050565b6000805461057690610e9d565b80601f01602080910402602001604051908101604052809291908181526020018280546105a290610e9d565b80156105ef5780601f106105c4576101008083540402835291602001916105ef565b820191906000526020600020905b8154815290600101906020018083116105d257829003601f168201915b505050505081565b6000610604338484610a42565b50600192915050565b6106156108ca565b600680546001600160a81b0319166001600160a01b0390921691909117600160a01b179055565b6000610649843384610aa4565b610654848484610ae8565b5060019392505050565b6106666108ca565b6001600160a01b03166000908152600760205260409020805460ff19811660ff90911615179055565b3360008181526004602090815260408083206001600160a01b038716845290915281205490916106049185906106c6908690610eee565b610a42565b6106d36108ca565b6106dd6000610c30565b565b60007f0000000000000000000000000000000000000000000000000000000063c3561b4210156107a8576000427f0000000000000000000000000000000000000000000000000000000063c3561b0390507f00000000000000000000000000000000000000000000000000000000639bc91b7f0000000000000000000000000000000000000000000000000000000063c3561b03817f00000000000000000000000000000000000000000000000000000000000002bc02816107a3576107a3610f06565b049150505b90565b6107b36108ca565b612710816001600160601b031611156108055760405162461bcd60e51b815260206004820152600f60248201526e6d617820666565206973203130302560881b60448201526064015b60405180910390fd5b600580546001600160601b03909216600160a01b026001600160a01b03909216919091179055565b6001805461057690610e9d565b6000610604338484610aa4565b6000610604338484610ae8565b61085c6108ca565b6001600160a01b0381166108c15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107fc565b61044c81610c30565b6005546001600160a01b031633146106dd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fc565b804710156109745760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016107fc565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146109c1576040519150601f19603f3d011682016040523d82523d6000602084013e6109c6565b606091505b5050905080610a3d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016107fc565b505050565b6001600160a01b0383811660008181526004602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038084166000908152600460209081526040808320938616835292905220546000198114610ae257610ae284846106c68585610f1c565b50505050565b6001600160a01b03831660009081526007602052604090205460ff16610c2557600654600160a01b900460ff16610b4b5760405162461bcd60e51b81526020600482015260076024820152662161637469766560c81b60448201526064016107fc565b60055460009061271090610b6f90600160a01b90046001600160601b031684610f33565b610b799190610f52565b6006549091506001600160a01b03858116911614801590610bb957507f0000000000000000000000000000000000000000000000000000000063c3561b42105b15610bfb576000612710610bcb6106df565b610bd59085610f33565b610bdf9190610f52565b90508015610bf957610bf385600083610c82565b80830392505b505b8015610c2357610c1d84610c176005546001600160a01b031690565b83610c82565b80820391505b505b610a3d838383610c82565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831660009081526003602052604081208054839290610caa908490610f1c565b90915550506001600160a01b03808316600081815260036020526040908190208054850190555190918516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610a979085815260200190565b6001600160a01b038116811461044c57600080fd5b600060208284031215610d2c57600080fd5b8135610d3781610d05565b9392505050565b600060208083528351808285015260005b81811015610d6b57858101830151858201604001528201610d4f565b81811115610d7d576000604083870101525b50601f01601f1916929092016040019392505050565b60008060408385031215610da657600080fd5b8235610db181610d05565b946020939093013593505050565b600080600060608486031215610dd457600080fd5b8335610ddf81610d05565b92506020840135610def81610d05565b929592945050506040919091013590565b600060208284031215610e1257600080fd5b81356001600160601b0381168114610d3757600080fd5b60008060408385031215610e3c57600080fd5b8235610e4781610d05565b91506020830135610e5781610d05565b809150509250929050565b600060208284031215610e7457600080fd5b5051919050565b600060208284031215610e8d57600080fd5b81518015158114610d3757600080fd5b600181811c90821680610eb157607f821691505b60208210811415610ed257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610f0157610f01610ed8565b500190565b634e487b7160e01b600052601260045260246000fd5b600082821015610f2e57610f2e610ed8565b500390565b6000816000190483118215151615610f4d57610f4d610ed8565b500290565b600082610f6f57634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212209bd61de734f58d2c56a33d08bbbf5e0552317921912232799a44f1f646f172ae64736f6c63430008090033
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.