ERC-20
Overview
Max Total Supply
1,000,000 MON
Holders
15
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
3,000.000000000000003 MONValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MON_Token
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// 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 // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract MON_Token is ERC20, ERC20Burnable, Ownable { bytes32 public merkleRoot; uint256 public cost = 0.001 ether; uint256 public maxTx = 1000 * 10 ** decimals(); uint256 public _totalSupply; mapping(address => uint256) balances; constructor() ERC20("Monkey Coin", "MON") { _totalSupply = 1000000 * 10 ** decimals(); balances[owner()] = _totalSupply; emit Transfer(address(0), owner(), _totalSupply); } function totalSupply() public view override returns (uint256) { return _totalSupply - balances[address(0)]; } function claim( uint256 _mintAmount, bytes32[] calldata _merkleProof ) public payable { require( _mintAmount > 0 && _mintAmount <= maxTx, "Invalid mint amount!" ); if (isAllowlist(_merkleProof)) { require(msg.value >= 0, "Insufficient funds!"); } else { require(msg.value >= cost * _mintAmount, "Insufficient funds!"); } _mint(msg.sender, _mintAmount); } function airdrop(uint256 _mintAmount, address _to) public payable { _mint(_to, _mintAmount); } function airdropBatch( uint256 _mintAmount, address[] calldata _recipients ) external onlyOwner { require(_recipients.length > 0, "Recipient list is empty"); for (uint256 i = 0; i < _recipients.length; i++) { _mint(_recipients[i], _mintAmount); } } function isAllowlist( bytes32[] calldata _merkleProof ) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); if (MerkleProof.verify(_merkleProof, merkleRoot, leaf)) { return true; } return false; } function setAllowlist(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } function setCost(uint256 _cost) public onlyOwner { cost = _cost; } function setMaxTx(uint256 _maxTx) public onlyOwner { maxTx = _maxTx * 10 ** decimals(); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
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":"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":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"airdrop","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address[]","name":"_recipients","type":"address[]"}],"name":"airdropBatch","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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isAllowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTx","type":"uint256"}],"name":"setMaxTx","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405266038d7ea4c680006007556200001d6012600a620002c8565b6200002b906103e862000396565b6008553480156200003b57600080fd5b506040518060400160405280600b81526020016a26b7b735b2bc9021b7b4b760a91b8152506040518060400160405280600381526020016226a7a760e91b815250816003908051906020019062000094929190620001d9565b508051620000aa906004906020840190620001d9565b505050620000c7620000c16200018360201b60201c565b62000187565b620000d56012600a620002c8565b620000e490620f424062000396565b6009819055600a6000620001006005546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020556200012d6005546001600160a01b031690565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6009546040516200017591815260200190565b60405180910390a36200040b565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001e790620003b8565b90600052602060002090601f0160209004810192826200020b576000855562000256565b82601f106200022657805160ff191683800117855562000256565b8280016001018555821562000256579182015b828111156200025657825182559160200191906001019062000239565b506200026492915062000268565b5090565b5b8082111562000264576000815560010162000269565b600181815b80851115620002c0578160001904821115620002a457620002a4620003f5565b80851615620002b257918102915b93841c939080029062000284565b509250929050565b6000620002d960ff841683620002e0565b9392505050565b600082620002f15750600162000390565b81620003005750600062000390565b8160018114620003195760028114620003245762000344565b600191505062000390565b60ff841115620003385762000338620003f5565b50506001821b62000390565b5060208310610133831016604e8410600b841016171562000369575081810a62000390565b6200037583836200027f565b80600019048211156200038c576200038c620003f5565b0290505b92915050565b6000816000190483118215151615620003b357620003b3620003f5565b500290565b600181811c90821680620003cd57607f821691505b60208210811415620003ef57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b611478806200041b6000396000f3fe60806040526004361061019c5760003560e01c8063715018a6116100ec578063a9059cbb1161008a578063bda6663811610064578063bda6663814610463578063cf1c73b214610483578063dd62ed3e146104a3578063f2fde38b146104c357600080fd5b8063a9059cbb14610410578063bc33718214610430578063bc63f02e1461045057600080fd5b80638da5cb5b116100c65780638da5cb5b14610393578063958aedeb146103bb57806395d89b41146103db578063a457c2d7146103f057600080fd5b8063715018a6146103485780637437681e1461035d57806379cc67901461037357600080fd5b80632f52ebb7116101595780633eaaf86b116101335780633eaaf86b146102bc57806342966c68146102d257806344a0d68a146102f257806370a082311461031257600080fd5b80632f52ebb71461026b578063313ce56714610280578063395093511461029c57600080fd5b806306fdde03146101a1578063095ea7b3146101cc57806313faede6146101fc57806318160ddd1461022057806323b872dd146102355780632eb4a7ab14610255575b600080fd5b3480156101ad57600080fd5b506101b66104e3565b6040516101c3919061122f565b60405180910390f35b3480156101d857600080fd5b506101ec6101e736600461113b565b610575565b60405190151581526020016101c3565b34801561020857600080fd5b5061021260075481565b6040519081526020016101c3565b34801561022c57600080fd5b5061021261058f565b34801561024157600080fd5b506101ec6102503660046110ff565b6105cd565b34801561026157600080fd5b5061021260065481565b61027e6102793660046111e3565b6105f1565b005b34801561028c57600080fd5b50604051601281526020016101c3565b3480156102a857600080fd5b506101ec6102b736600461113b565b6106c1565b3480156102c857600080fd5b5061021260095481565b3480156102de57600080fd5b5061027e6102ed3660046111a7565b6106e3565b3480156102fe57600080fd5b5061027e61030d3660046111a7565b6106f0565b34801561031e57600080fd5b5061021261032d3660046110b1565b6001600160a01b031660009081526020819052604090205490565b34801561035457600080fd5b5061027e6106fd565b34801561036957600080fd5b5061021260085481565b34801561037f57600080fd5b5061027e61038e36600461113b565b610711565b34801561039f57600080fd5b506005546040516001600160a01b0390911681526020016101c3565b3480156103c757600080fd5b506101ec6103d6366004611165565b61072a565b3480156103e757600080fd5b506101b66107bf565b3480156103fc57600080fd5b506101ec61040b36600461113b565b6107ce565b34801561041c57600080fd5b506101ec61042b36600461113b565b610849565b34801561043c57600080fd5b5061027e61044b3660046111a7565b610857565b61027e61045e3660046111c0565b61087b565b34801561046f57600080fd5b5061027e61047e3660046111e3565b610885565b34801561048f57600080fd5b5061027e61049e3660046111a7565b61092d565b3480156104af57600080fd5b506102126104be3660046110cc565b61093a565b3480156104cf57600080fd5b5061027e6104de3660046110b1565b610965565b6060600380546104f2906113c0565b80601f016020809104026020016040519081016040528092919081815260200182805461051e906113c0565b801561056b5780601f106105405761010080835404028352916020019161056b565b820191906000526020600020905b81548152906001019060200180831161054e57829003601f168201915b5050505050905090565b6000336105838185856109db565b60019150505b92915050565b6000808052600a6020527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e3546009546105c891906113a9565b905090565b6000336105db858285610aff565b6105e6858585610b73565b506001949350505050565b60008311801561060357506008548311155b61064b5760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b60448201526064015b60405180910390fd5b610655828261072a565b1561065f576106b2565b8260075461066d919061138a565b3410156106b25760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610642565b6106bc3384610d17565b505050565b6000336105838185856106d4838361093a565b6106de9190611284565b6109db565b6106ed3382610dd6565b50565b6106f8610f08565b600755565b610705610f08565b61070f6000610f62565b565b61071c823383610aff565b6107268282610dd6565b5050565b6040516bffffffffffffffffffffffff193360601b16602082015260009081906034016040516020818303038152906040528051906020012090506107a6848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506006549150849050610fb4565b156107b5576001915050610589565b5060009392505050565b6060600480546104f2906113c0565b600033816107dc828661093a565b90508381101561083c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610642565b6105e682868684036109db565b600033610583818585610b73565b61085f610f08565b61086b6012600a6112df565b610875908261138a565b60085550565b6107268183610d17565b61088d610f08565b806108da5760405162461bcd60e51b815260206004820152601760248201527f526563697069656e74206c69737420697320656d7074790000000000000000006044820152606401610642565b60005b81811015610927576109158383838181106108fa576108fa61142c565b905060200201602081019061090f91906110b1565b85610d17565b8061091f816113fb565b9150506108dd565b50505050565b610935610f08565b600655565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61096d610f08565b6001600160a01b0381166109d25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610642565b6106ed81610f62565b6001600160a01b038316610a3d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610642565b6001600160a01b038216610a9e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610642565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610b0b848461093a565b905060001981146109275781811015610b665760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610642565b61092784848484036109db565b6001600160a01b038316610bd75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610642565b6001600160a01b038216610c395760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610642565b6001600160a01b03831660009081526020819052604090205481811015610cb15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610642565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610927565b6001600160a01b038216610d6d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610642565b8060026000828254610d7f9190611284565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216610e365760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610642565b6001600160a01b03821660009081526020819052604090205481811015610eaa5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610642565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6005546001600160a01b0316331461070f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610642565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082610fc18584610fca565b14949350505050565b600081815b845181101561100f57610ffb82868381518110610fee57610fee61142c565b6020026020010151611017565b915080611007816113fb565b915050610fcf565b509392505050565b6000818310611033576000828152602084905260409020611042565b60008381526020839052604090205b9392505050565b80356001600160a01b038116811461106057600080fd5b919050565b60008083601f84011261107757600080fd5b50813567ffffffffffffffff81111561108f57600080fd5b6020830191508360208260051b85010111156110aa57600080fd5b9250929050565b6000602082840312156110c357600080fd5b61104282611049565b600080604083850312156110df57600080fd5b6110e883611049565b91506110f660208401611049565b90509250929050565b60008060006060848603121561111457600080fd5b61111d84611049565b925061112b60208501611049565b9150604084013590509250925092565b6000806040838503121561114e57600080fd5b61115783611049565b946020939093013593505050565b6000806020838503121561117857600080fd5b823567ffffffffffffffff81111561118f57600080fd5b61119b85828601611065565b90969095509350505050565b6000602082840312156111b957600080fd5b5035919050565b600080604083850312156111d357600080fd5b823591506110f660208401611049565b6000806000604084860312156111f857600080fd5b83359250602084013567ffffffffffffffff81111561121657600080fd5b61122286828701611065565b9497909650939450505050565b600060208083528351808285015260005b8181101561125c57858101830151858201604001528201611240565b8181111561126e576000604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561129757611297611416565b500190565b600181815b808511156112d75781600019048211156112bd576112bd611416565b808516156112ca57918102915b93841c93908002906112a1565b509250929050565b600061104260ff8416836000826112f857506001610589565b8161130557506000610589565b816001811461131b576002811461132557611341565b6001915050610589565b60ff84111561133657611336611416565b50506001821b610589565b5060208310610133831016604e8410600b8410161715611364575081810a610589565b61136e838361129c565b806000190482111561138257611382611416565b029392505050565b60008160001904831182151516156113a4576113a4611416565b500290565b6000828210156113bb576113bb611416565b500390565b600181811c908216806113d457607f821691505b602082108114156113f557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561140f5761140f611416565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212205c3c42df0b0bc388de13633d9c649ab06343b6741d48e26f7c6d2b55d7f8d5ed64736f6c63430008070033
Deployed Bytecode
0x60806040526004361061019c5760003560e01c8063715018a6116100ec578063a9059cbb1161008a578063bda6663811610064578063bda6663814610463578063cf1c73b214610483578063dd62ed3e146104a3578063f2fde38b146104c357600080fd5b8063a9059cbb14610410578063bc33718214610430578063bc63f02e1461045057600080fd5b80638da5cb5b116100c65780638da5cb5b14610393578063958aedeb146103bb57806395d89b41146103db578063a457c2d7146103f057600080fd5b8063715018a6146103485780637437681e1461035d57806379cc67901461037357600080fd5b80632f52ebb7116101595780633eaaf86b116101335780633eaaf86b146102bc57806342966c68146102d257806344a0d68a146102f257806370a082311461031257600080fd5b80632f52ebb71461026b578063313ce56714610280578063395093511461029c57600080fd5b806306fdde03146101a1578063095ea7b3146101cc57806313faede6146101fc57806318160ddd1461022057806323b872dd146102355780632eb4a7ab14610255575b600080fd5b3480156101ad57600080fd5b506101b66104e3565b6040516101c3919061122f565b60405180910390f35b3480156101d857600080fd5b506101ec6101e736600461113b565b610575565b60405190151581526020016101c3565b34801561020857600080fd5b5061021260075481565b6040519081526020016101c3565b34801561022c57600080fd5b5061021261058f565b34801561024157600080fd5b506101ec6102503660046110ff565b6105cd565b34801561026157600080fd5b5061021260065481565b61027e6102793660046111e3565b6105f1565b005b34801561028c57600080fd5b50604051601281526020016101c3565b3480156102a857600080fd5b506101ec6102b736600461113b565b6106c1565b3480156102c857600080fd5b5061021260095481565b3480156102de57600080fd5b5061027e6102ed3660046111a7565b6106e3565b3480156102fe57600080fd5b5061027e61030d3660046111a7565b6106f0565b34801561031e57600080fd5b5061021261032d3660046110b1565b6001600160a01b031660009081526020819052604090205490565b34801561035457600080fd5b5061027e6106fd565b34801561036957600080fd5b5061021260085481565b34801561037f57600080fd5b5061027e61038e36600461113b565b610711565b34801561039f57600080fd5b506005546040516001600160a01b0390911681526020016101c3565b3480156103c757600080fd5b506101ec6103d6366004611165565b61072a565b3480156103e757600080fd5b506101b66107bf565b3480156103fc57600080fd5b506101ec61040b36600461113b565b6107ce565b34801561041c57600080fd5b506101ec61042b36600461113b565b610849565b34801561043c57600080fd5b5061027e61044b3660046111a7565b610857565b61027e61045e3660046111c0565b61087b565b34801561046f57600080fd5b5061027e61047e3660046111e3565b610885565b34801561048f57600080fd5b5061027e61049e3660046111a7565b61092d565b3480156104af57600080fd5b506102126104be3660046110cc565b61093a565b3480156104cf57600080fd5b5061027e6104de3660046110b1565b610965565b6060600380546104f2906113c0565b80601f016020809104026020016040519081016040528092919081815260200182805461051e906113c0565b801561056b5780601f106105405761010080835404028352916020019161056b565b820191906000526020600020905b81548152906001019060200180831161054e57829003601f168201915b5050505050905090565b6000336105838185856109db565b60019150505b92915050565b6000808052600a6020527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e3546009546105c891906113a9565b905090565b6000336105db858285610aff565b6105e6858585610b73565b506001949350505050565b60008311801561060357506008548311155b61064b5760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b60448201526064015b60405180910390fd5b610655828261072a565b1561065f576106b2565b8260075461066d919061138a565b3410156106b25760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610642565b6106bc3384610d17565b505050565b6000336105838185856106d4838361093a565b6106de9190611284565b6109db565b6106ed3382610dd6565b50565b6106f8610f08565b600755565b610705610f08565b61070f6000610f62565b565b61071c823383610aff565b6107268282610dd6565b5050565b6040516bffffffffffffffffffffffff193360601b16602082015260009081906034016040516020818303038152906040528051906020012090506107a6848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506006549150849050610fb4565b156107b5576001915050610589565b5060009392505050565b6060600480546104f2906113c0565b600033816107dc828661093a565b90508381101561083c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610642565b6105e682868684036109db565b600033610583818585610b73565b61085f610f08565b61086b6012600a6112df565b610875908261138a565b60085550565b6107268183610d17565b61088d610f08565b806108da5760405162461bcd60e51b815260206004820152601760248201527f526563697069656e74206c69737420697320656d7074790000000000000000006044820152606401610642565b60005b81811015610927576109158383838181106108fa576108fa61142c565b905060200201602081019061090f91906110b1565b85610d17565b8061091f816113fb565b9150506108dd565b50505050565b610935610f08565b600655565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61096d610f08565b6001600160a01b0381166109d25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610642565b6106ed81610f62565b6001600160a01b038316610a3d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610642565b6001600160a01b038216610a9e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610642565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610b0b848461093a565b905060001981146109275781811015610b665760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610642565b61092784848484036109db565b6001600160a01b038316610bd75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610642565b6001600160a01b038216610c395760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610642565b6001600160a01b03831660009081526020819052604090205481811015610cb15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610642565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610927565b6001600160a01b038216610d6d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610642565b8060026000828254610d7f9190611284565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216610e365760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610642565b6001600160a01b03821660009081526020819052604090205481811015610eaa5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610642565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6005546001600160a01b0316331461070f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610642565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082610fc18584610fca565b14949350505050565b600081815b845181101561100f57610ffb82868381518110610fee57610fee61142c565b6020026020010151611017565b915080611007816113fb565b915050610fcf565b509392505050565b6000818310611033576000828152602084905260409020611042565b60008381526020839052604090205b9392505050565b80356001600160a01b038116811461106057600080fd5b919050565b60008083601f84011261107757600080fd5b50813567ffffffffffffffff81111561108f57600080fd5b6020830191508360208260051b85010111156110aa57600080fd5b9250929050565b6000602082840312156110c357600080fd5b61104282611049565b600080604083850312156110df57600080fd5b6110e883611049565b91506110f660208401611049565b90509250929050565b60008060006060848603121561111457600080fd5b61111d84611049565b925061112b60208501611049565b9150604084013590509250925092565b6000806040838503121561114e57600080fd5b61115783611049565b946020939093013593505050565b6000806020838503121561117857600080fd5b823567ffffffffffffffff81111561118f57600080fd5b61119b85828601611065565b90969095509350505050565b6000602082840312156111b957600080fd5b5035919050565b600080604083850312156111d357600080fd5b823591506110f660208401611049565b6000806000604084860312156111f857600080fd5b83359250602084013567ffffffffffffffff81111561121657600080fd5b61122286828701611065565b9497909650939450505050565b600060208083528351808285015260005b8181101561125c57858101830151858201604001528201611240565b8181111561126e576000604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561129757611297611416565b500190565b600181815b808511156112d75781600019048211156112bd576112bd611416565b808516156112ca57918102915b93841c93908002906112a1565b509250929050565b600061104260ff8416836000826112f857506001610589565b8161130557506000610589565b816001811461131b576002811461132557611341565b6001915050610589565b60ff84111561133657611336611416565b50506001821b610589565b5060208310610133831016604e8410600b8410161715611364575081810a610589565b61136e838361129c565b806000190482111561138257611382611416565b029392505050565b60008160001904831182151516156113a4576113a4611416565b500290565b6000828210156113bb576113bb611416565b500390565b600181811c908216806113d457607f821691505b602082108114156113f557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561140f5761140f611416565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212205c3c42df0b0bc388de13633d9c649ab06343b6741d48e26f7c6d2b55d7f8d5ed64736f6c63430008070033
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.