Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 241 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw All | 15667644 | 833 days ago | IN | 0 ETH | 0.00037835 | ||||
Add Operator | 15666367 | 834 days ago | IN | 0 ETH | 0.00043705 | ||||
Set Sale End | 15475541 | 862 days ago | IN | 0 ETH | 0.00030213 | ||||
Set Sale End | 15475541 | 862 days ago | IN | 0 ETH | 0.00020872 | ||||
Mint NFT | 15475170 | 862 days ago | IN | 0.02 ETH | 0.00053742 | ||||
Mint NFT | 15474842 | 862 days ago | IN | 0.04 ETH | 0.00048553 | ||||
Mint NFT | 15474795 | 862 days ago | IN | 0.02 ETH | 0.00160859 | ||||
Mint NFT | 15474679 | 862 days ago | IN | 0.02 ETH | 0.00084632 | ||||
Mint NFT | 15474621 | 862 days ago | IN | 0.04 ETH | 0.00093811 | ||||
Mint NFT | 15474229 | 862 days ago | IN | 0.02 ETH | 0.00036761 | ||||
Mint NFT | 15474219 | 862 days ago | IN | 0.02 ETH | 0.00056146 | ||||
Mint NFT | 15473854 | 862 days ago | IN | 0.02 ETH | 0.00060713 | ||||
Mint NFT | 15473676 | 862 days ago | IN | 0.02 ETH | 0.00198635 | ||||
Mint NFT | 15473215 | 862 days ago | IN | 0.02 ETH | 0.00079742 | ||||
Mint NFT | 15473006 | 862 days ago | IN | 0.02 ETH | 0.00334235 | ||||
Mint NFT | 15472677 | 862 days ago | IN | 0.1 ETH | 0.00095188 | ||||
Mint NFT | 15472475 | 862 days ago | IN | 0.02 ETH | 0.000602 | ||||
Mint NFT | 15472427 | 862 days ago | IN | 0.04 ETH | 0.00104708 | ||||
Mint NFT | 15472303 | 862 days ago | IN | 0.04 ETH | 0.00087479 | ||||
Mint NFT | 15472177 | 862 days ago | IN | 0.02 ETH | 0.00117152 | ||||
Mint NFT | 15472177 | 862 days ago | IN | 0.02 ETH | 0.00117152 | ||||
Mint NFT | 15472146 | 862 days ago | IN | 0.04 ETH | 0.00112317 | ||||
Mint NFT | 15472086 | 862 days ago | IN | 0.06 ETH | 0.00205522 | ||||
Mint NFT | 15472074 | 862 days ago | IN | 0.04 ETH | 0.00187134 | ||||
Mint NFT | 15472066 | 862 days ago | IN | 0.02 ETH | 0.00315251 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15667644 | 833 days ago | 8.955 ETH |
Loading...
Loading
Contract Name:
MetazedSale
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./roles/AccessOperatable.sol"; interface iCMOC { function mint(address to, uint256 quantity) external; function totalSupply() external view returns (uint256); } contract MetazedSale is AccessOperatable { using SafeMath for uint256; iCMOC public targetContract; mapping(address => uint256) public whitelistRemaining; mapping(address => bool) public whitelistUsed; uint256 public saleStart; uint256 public whitelistSaleStart; uint256 public saleEnd = 253404860400; uint256 public whitelistSaleEnd = 253404860400; uint256 public maxSupply = 3333; uint256 public maxByMint = 20; uint256 public whitelistSalePrice = 0.015 * 10**18; uint256 public salePrice = 0.02 * 10**18; bytes32 public merkleRoot; constructor(address token_) { require(token_ != address(0x0)); targetContract = iCMOC(token_); } function mintNFT(uint256 nftNum) external payable { require(totalSupply().add(nftNum) <= maxSupply, "Exceeds total supply."); require(nftNum <= maxByMint, "Exceed Max by mint."); require(nftNum > 0, "The number of purchases is incorrect."); require( saleStart != 0 && block.timestamp > saleStart, "The sale hasn't started yet." ); require(block.timestamp <= saleEnd, "Sale ended"); require(salePrice.mul(nftNum) == msg.value, "Incorrect eth amount."); targetContract.mint(msg.sender, nftNum); } function whitelistMint( uint256 nftNum, uint256 totalAllocation, bytes32 leaf, bytes32[] calldata proof ) external payable { require( whitelistSaleStart != 0 && block.timestamp > whitelistSaleStart, "The pre sale hasn't started yet." ); require(block.timestamp <= whitelistSaleEnd, "Sale was finished."); require(nftNum <= maxByMint, "Exceed Max by mint."); bytes32 solidityLeaf = keccak256( abi.encodePacked(msg.sender, totalAllocation) ); if (!whitelistUsed[msg.sender]) { require(solidityLeaf == leaf, "Invalid Leaf."); require( MerkleProof.verify(proof, merkleRoot, leaf), "Invalid Merkle Proof." ); whitelistUsed[msg.sender] = true; whitelistRemaining[msg.sender] = totalAllocation; } require(nftNum > 0, "The number of purchases is incorrect."); require( whitelistSalePrice.mul(nftNum) == msg.value, "Incorrect eth amount." ); require(totalSupply().add(nftNum) <= maxSupply, "Exceeds total supply."); require( whitelistRemaining[msg.sender] >= nftNum, "Exceeds remaining whitelist." ); whitelistRemaining[msg.sender] -= nftNum; targetContract.mint(msg.sender, nftNum); } function totalSupply() public view returns (uint256) { return targetContract.totalSupply(); } function withdrawAll(address withdrawAddress) public onlyOperator { uint256 balance = address(this).balance; require(balance > 0); _withdraw(withdrawAddress, address(this).balance); } function _withdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call{ value: _amount }(""); require(success, "Transfer failed."); } // setters function setMerkleRoot(bytes32 merkleRoot_) public onlyOperator { merkleRoot = merkleRoot_; } function setWhitelistSaleStart(uint256 whitelistSaleStart_) public onlyOperator { whitelistSaleStart = whitelistSaleStart_; } function setSaleStart(uint256 saleStart_) public onlyOperator { saleStart = saleStart_; } function setWhitelistSaleEnd(uint256 whitelistSaleEnd_) public onlyOperator { whitelistSaleEnd = whitelistSaleEnd_; } function setSaleEnd(uint256 saleEnd_) public onlyOperator { saleEnd = saleEnd_; } function setWhitelistSalePrice(uint256 whitelistSalePrice_) public onlyOperator { whitelistSalePrice = whitelistSalePrice_; } function setSalePrice(uint256 salePrice_) public onlyOperator { salePrice = salePrice_; } function setMaxByMint(uint256 maxByMint_) public onlyOperator { maxByMint = maxByMint_; } function setMaxSupply(uint256 maxSupply_) public onlyOperator { maxSupply = maxSupply_; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * 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. */ 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 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++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; abstract contract AccessOperatable is AccessControl { bytes32 public constant OPERATOR = keccak256("OPERATOR"); event Paused(address account); event Unpaused(address account); bool public _paused; constructor() { _setRoleAdmin(OPERATOR, DEFAULT_ADMIN_ROLE); _setupRole(OPERATOR, msg.sender); _paused = false; } function addOperator(address account) public onlyOperator() { _setupRole(OPERATOR, account); } modifier onlyOperator() { require(hasRole(OPERATOR, msg.sender), "Must be operator"); _; } modifier whenNotPaused() { require(!_paused, "Pausable: paused"); _; } modifier whenPaused() { require(_paused, "Pausable: not paused"); _; } function pause() public onlyOperator() whenNotPaused() { _paused = true; emit Paused(msg.sender); } function unpause() public onlyOperator() whenPaused() { _paused = false; emit Unpaused(msg.sender); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// 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 v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "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":[{"internalType":"address","name":"token_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxByMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftNum","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxByMint_","type":"uint256"}],"name":"setMaxByMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleEnd_","type":"uint256"}],"name":"setSaleEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"salePrice_","type":"uint256"}],"name":"setSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleStart_","type":"uint256"}],"name":"setSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"whitelistSaleEnd_","type":"uint256"}],"name":"setWhitelistSaleEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"whitelistSalePrice_","type":"uint256"}],"name":"setWhitelistSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"whitelistSaleStart_","type":"uint256"}],"name":"setWhitelistSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"targetContract","outputs":[{"internalType":"contract iCMOC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftNum","type":"uint256"},{"internalType":"uint256","name":"totalAllocation","type":"uint256"},{"internalType":"bytes32","name":"leaf","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSaleEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"withdrawAddress","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052643b001b4ff0600655643b001b4ff0600755610d05600855601460095566354a6ba7a18000600a5566470de4df820000600b553480156200004457600080fd5b5060405162001c9238038062001c928339810160408190526200006791620001e3565b6200008360008051602062001c728339815191526000620000e8565b6200009e60008051602062001c728339815191523362000133565b6001805460ff191690556001600160a01b038116620000bc57600080fd5b600180546001600160a01b0390921661010002610100600160a81b031990921691909117905562000215565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6200013f828262000143565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200013f576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200019f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600060208284031215620001f657600080fd5b81516001600160a01b03811681146200020e57600080fd5b9392505050565b611a4d80620002256000396000f3fe60806040526004361061021a5760003560e01c806391d1485411610123578063bd90df70116100ab578063d5abeb011161006f578063d5abeb01146105fb578063e63ec94714610611578063eaaddad21461063e578063f51f96dd14610654578063fa09e6301461066a57600080fd5b8063bd90df7014610552578063c10b93581461058f578063c1173250146105a5578063d1dbdba4146105bb578063d547741f146105db57600080fd5b80639fa719b5116100f25780639fa719b5146104d1578063a217fddf146104e7578063ab0bcc41146104fc578063b23695ca14610512578063b455c5fe1461053257600080fd5b806391d148541461045c578063926427441461047c578063983d27371461048f5780639870d7fe146104b157600080fd5b80632f181f54116101a65780633f4ba83a116101755780633f4ba83a146103df5780635bfe024d146103f45780636f8b44b0146104075780637cb64759146104275780638456cb591461044757600080fd5b80632f181f541461035f5780632f2ff15d1461037f5780633515fbdb1461039f57806336568abe146103bf57600080fd5b806318160ddd116101ed57806318160ddd146102b45780631919fed7146102c957806321328f9e146102e9578063248a9ca3146103195780632eb4a7ab1461034957600080fd5b806301ffc9a71461021f578063138a4e01146102545780631515fa6e1461027857806316c61ccc1461029a575b600080fd5b34801561022b57600080fd5b5061023f61023a36600461171b565b61068a565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061026a60095481565b60405190815260200161024b565b34801561028457600080fd5b506102986102933660046116d6565b6106c1565b005b3480156102a657600080fd5b5060015461023f9060ff1681565b3480156102c057600080fd5b5061026a610703565b3480156102d557600080fd5b506102986102e43660046116d6565b61078e565b3480156102f557600080fd5b5061023f6103043660046116bb565b60036020526000908152604090205460ff1681565b34801561032557600080fd5b5061026a6103343660046116d6565b60009081526020819052604090206001015490565b34801561035557600080fd5b5061026a600c5481565b34801561036b57600080fd5b5061029861037a3660046116d6565b6107c7565b34801561038b57600080fd5b5061029861039a3660046116ef565b610800565b3480156103ab57600080fd5b506102986103ba3660046116d6565b61082a565b3480156103cb57600080fd5b506102986103da3660046116ef565b610863565b3480156103eb57600080fd5b506102986108e1565b61029861040236600461175e565b61099e565b34801561041357600080fd5b506102986104223660046116d6565b610d91565b34801561043357600080fd5b506102986104423660046116d6565b610dca565b34801561045357600080fd5b50610298610e03565b34801561046857600080fd5b5061023f6104773660046116ef565b610eb9565b61029861048a3660046116d6565b610ee2565b34801561049b57600080fd5b5061026a6000805160206119f883398151915281565b3480156104bd57600080fd5b506102986104cc3660046116bb565b6110fb565b3480156104dd57600080fd5b5061026a60055481565b3480156104f357600080fd5b5061026a600081565b34801561050857600080fd5b5061026a60045481565b34801561051e57600080fd5b5061029861052d3660046116d6565b61114a565b34801561053e57600080fd5b5061029861054d3660046116d6565b611183565b34801561055e57600080fd5b506001546105779061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161024b565b34801561059b57600080fd5b5061026a60065481565b3480156105b157600080fd5b5061026a600a5481565b3480156105c757600080fd5b506102986105d63660046116d6565b6111bc565b3480156105e757600080fd5b506102986105f63660046116ef565b6111f5565b34801561060757600080fd5b5061026a60085481565b34801561061d57600080fd5b5061026a61062c3660046116bb565b60026020526000908152604090205481565b34801561064a57600080fd5b5061026a60075481565b34801561066057600080fd5b5061026a600b5481565b34801561067657600080fd5b506102986106853660046116bb565b61121a565b60006001600160e01b03198216637965db0b60e01b14806106bb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6106d96000805160206119f883398151915233610eb9565b6106fe5760405162461bcd60e51b81526004016106f590611896565b60405180910390fd5b600655565b600060018054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561075157600080fd5b505afa158015610765573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107899190611745565b905090565b6107a66000805160206119f883398151915233610eb9565b6107c25760405162461bcd60e51b81526004016106f590611896565b600b55565b6107df6000805160206119f883398151915233610eb9565b6107fb5760405162461bcd60e51b81526004016106f590611896565b600455565b60008281526020819052604090206001015461081b81611263565b610825838361126d565b505050565b6108426000805160206119f883398151915233610eb9565b61085e5760405162461bcd60e51b81526004016106f590611896565b600a55565b6001600160a01b03811633146108d35760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016106f5565b6108dd82826112f1565b5050565b6108f96000805160206119f883398151915233610eb9565b6109155760405162461bcd60e51b81526004016106f590611896565b60015460ff1661095e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016106f5565b6001805460ff191690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a1565b600554158015906109b0575060055442115b6109fc5760405162461bcd60e51b815260206004820181905260248201527f546865207072652073616c65206861736e27742073746172746564207965742e60448201526064016106f5565b600754421115610a435760405162461bcd60e51b815260206004820152601260248201527129b0b632903bb0b9903334b734b9b432b21760711b60448201526064016106f5565b600954851115610a8b5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b21026b0bc10313c9036b4b73a1760691b60448201526064016106f5565b6040516bffffffffffffffffffffffff193360601b1660208201526034810185905260009060540160408051601f198184030181529181528151602092830120336000908152600390935291205490915060ff16610bcf57838114610b225760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2102632b0b31760991b60448201526064016106f5565b610b6383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150879050611356565b610ba75760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21026b2b935b63290283937b7b31760591b60448201526064016106f5565b336000908152600360209081526040808320805460ff19166001179055600290915290208590555b60008611610bef5760405162461bcd60e51b81526004016106f5906118c0565b600a543490610bfe908861136c565b14610c435760405162461bcd60e51b815260206004820152601560248201527424b731b7b93932b1ba1032ba341030b6b7bab73a1760591b60448201526064016106f5565b600854610c5887610c52610703565b9061137f565b1115610c9e5760405162461bcd60e51b815260206004820152601560248201527422bc31b2b2b239903a37ba30b61039bab838363c9760591b60448201526064016106f5565b33600090815260026020526040902054861115610cfd5760405162461bcd60e51b815260206004820152601c60248201527f457863656564732072656d61696e696e672077686974656c6973742e0000000060448201526064016106f5565b3360009081526002602052604081208054889290610d1c90849061193c565b90915550506001546040516340c10f1960e01b8152336004820152602481018890526101009091046001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610d7157600080fd5b505af1158015610d85573d6000803e3d6000fd5b50505050505050505050565b610da96000805160206119f883398151915233610eb9565b610dc55760405162461bcd60e51b81526004016106f590611896565b600855565b610de26000805160206119f883398151915233610eb9565b610dfe5760405162461bcd60e51b81526004016106f590611896565b600c55565b610e1b6000805160206119f883398151915233610eb9565b610e375760405162461bcd60e51b81526004016106f590611896565b60015460ff1615610e7d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106f5565b6001805460ff1916811790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001610994565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600854610ef182610c52610703565b1115610f375760405162461bcd60e51b815260206004820152601560248201527422bc31b2b2b239903a37ba30b61039bab838363c9760591b60448201526064016106f5565b600954811115610f7f5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b21026b0bc10313c9036b4b73a1760691b60448201526064016106f5565b60008111610f9f5760405162461bcd60e51b81526004016106f5906118c0565b60045415801590610fb1575060045442115b610ffd5760405162461bcd60e51b815260206004820152601c60248201527f5468652073616c65206861736e27742073746172746564207965742e0000000060448201526064016106f5565b60065442111561103c5760405162461bcd60e51b815260206004820152600a60248201526914d85b1948195b99195960b21b60448201526064016106f5565b600b54349061104b908361136c565b146110905760405162461bcd60e51b815260206004820152601560248201527424b731b7b93932b1ba1032ba341030b6b7bab73a1760591b60448201526064016106f5565b6001546040516340c10f1960e01b8152336004820152602481018390526101009091046001600160a01b0316906340c10f1990604401600060405180830381600087803b1580156110e057600080fd5b505af11580156110f4573d6000803e3d6000fd5b5050505050565b6111136000805160206119f883398151915233610eb9565b61112f5760405162461bcd60e51b81526004016106f590611896565b6111476000805160206119f88339815191528261138b565b50565b6111626000805160206119f883398151915233610eb9565b61117e5760405162461bcd60e51b81526004016106f590611896565b600555565b61119b6000805160206119f883398151915233610eb9565b6111b75760405162461bcd60e51b81526004016106f590611896565b600955565b6111d46000805160206119f883398151915233610eb9565b6111f05760405162461bcd60e51b81526004016106f590611896565b600755565b60008281526020819052604090206001015461121081611263565b61082583836112f1565b6112326000805160206119f883398151915233610eb9565b61124e5760405162461bcd60e51b81526004016106f590611896565b478061125957600080fd5b6108dd8247611395565b611147813361142b565b6112778282610eb9565b6108dd576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556112ad3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6112fb8282610eb9565b156108dd576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600082611363858461148f565b14949350505050565b6000611378828461191d565b9392505050565b60006113788284611905565b6108dd828261126d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146113e2576040519150601f19603f3d011682016040523d82523d6000602084013e6113e7565b606091505b50509050806108255760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016106f5565b6114358282610eb9565b6108dd5761144d816001600160a01b03166014611503565b611458836020611503565b6040516020016114699291906117ee565b60408051601f198184030181529082905262461bcd60e51b82526106f591600401611863565b600081815b84518110156114fb5760008582815181106114b1576114b16119cb565b602002602001015190508083116114d757600083815260208290526040902092506114e8565b600081815260208490526040902092505b50806114f38161199a565b915050611494565b509392505050565b6060600061151283600261191d565b61151d906002611905565b67ffffffffffffffff811115611535576115356119e1565b6040519080825280601f01601f19166020018201604052801561155f576020820181803683370190505b509050600360fc1b8160008151811061157a5761157a6119cb565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106115a9576115a96119cb565b60200101906001600160f81b031916908160001a90535060006115cd84600261191d565b6115d8906001611905565b90505b6001811115611650576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061160c5761160c6119cb565b1a60f81b828281518110611622576116226119cb565b60200101906001600160f81b031916908160001a90535060049490941c9361164981611983565b90506115db565b5083156113785760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106f5565b80356001600160a01b03811681146116b657600080fd5b919050565b6000602082840312156116cd57600080fd5b6113788261169f565b6000602082840312156116e857600080fd5b5035919050565b6000806040838503121561170257600080fd5b823591506117126020840161169f565b90509250929050565b60006020828403121561172d57600080fd5b81356001600160e01b03198116811461137857600080fd5b60006020828403121561175757600080fd5b5051919050565b60008060008060006080868803121561177657600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff808211156117a357600080fd5b818801915088601f8301126117b757600080fd5b8135818111156117c657600080fd5b8960208260051b85010111156117db57600080fd5b9699959850939650602001949392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611826816017850160208801611953565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611857816028840160208801611953565b01602801949350505050565b6020815260008251806020840152611882816040850160208701611953565b601f01601f19169190910160400192915050565b60208082526010908201526f26bab9ba1031329037b832b930ba37b960811b604082015260600190565b60208082526025908201527f546865206e756d626572206f662070757263686173657320697320696e636f726040820152643932b1ba1760d91b606082015260800190565b60008219821115611918576119186119b5565b500190565b6000816000190483118215151615611937576119376119b5565b500290565b60008282101561194e5761194e6119b5565b500390565b60005b8381101561196e578181015183820152602001611956565b8381111561197d576000848401525b50505050565b600081611992576119926119b5565b506000190190565b60006000198214156119ae576119ae6119b5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0ca26469706673582212206c446f9f8fe5734ac8ca39985db7d59cc1bddac589f3e43a5f22a0bdc826936464736f6c63430008060033523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c00000000000000000000000040148c53d939e7ad887b0130013b1ffc4b1f6271
Deployed Bytecode
0x60806040526004361061021a5760003560e01c806391d1485411610123578063bd90df70116100ab578063d5abeb011161006f578063d5abeb01146105fb578063e63ec94714610611578063eaaddad21461063e578063f51f96dd14610654578063fa09e6301461066a57600080fd5b8063bd90df7014610552578063c10b93581461058f578063c1173250146105a5578063d1dbdba4146105bb578063d547741f146105db57600080fd5b80639fa719b5116100f25780639fa719b5146104d1578063a217fddf146104e7578063ab0bcc41146104fc578063b23695ca14610512578063b455c5fe1461053257600080fd5b806391d148541461045c578063926427441461047c578063983d27371461048f5780639870d7fe146104b157600080fd5b80632f181f54116101a65780633f4ba83a116101755780633f4ba83a146103df5780635bfe024d146103f45780636f8b44b0146104075780637cb64759146104275780638456cb591461044757600080fd5b80632f181f541461035f5780632f2ff15d1461037f5780633515fbdb1461039f57806336568abe146103bf57600080fd5b806318160ddd116101ed57806318160ddd146102b45780631919fed7146102c957806321328f9e146102e9578063248a9ca3146103195780632eb4a7ab1461034957600080fd5b806301ffc9a71461021f578063138a4e01146102545780631515fa6e1461027857806316c61ccc1461029a575b600080fd5b34801561022b57600080fd5b5061023f61023a36600461171b565b61068a565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061026a60095481565b60405190815260200161024b565b34801561028457600080fd5b506102986102933660046116d6565b6106c1565b005b3480156102a657600080fd5b5060015461023f9060ff1681565b3480156102c057600080fd5b5061026a610703565b3480156102d557600080fd5b506102986102e43660046116d6565b61078e565b3480156102f557600080fd5b5061023f6103043660046116bb565b60036020526000908152604090205460ff1681565b34801561032557600080fd5b5061026a6103343660046116d6565b60009081526020819052604090206001015490565b34801561035557600080fd5b5061026a600c5481565b34801561036b57600080fd5b5061029861037a3660046116d6565b6107c7565b34801561038b57600080fd5b5061029861039a3660046116ef565b610800565b3480156103ab57600080fd5b506102986103ba3660046116d6565b61082a565b3480156103cb57600080fd5b506102986103da3660046116ef565b610863565b3480156103eb57600080fd5b506102986108e1565b61029861040236600461175e565b61099e565b34801561041357600080fd5b506102986104223660046116d6565b610d91565b34801561043357600080fd5b506102986104423660046116d6565b610dca565b34801561045357600080fd5b50610298610e03565b34801561046857600080fd5b5061023f6104773660046116ef565b610eb9565b61029861048a3660046116d6565b610ee2565b34801561049b57600080fd5b5061026a6000805160206119f883398151915281565b3480156104bd57600080fd5b506102986104cc3660046116bb565b6110fb565b3480156104dd57600080fd5b5061026a60055481565b3480156104f357600080fd5b5061026a600081565b34801561050857600080fd5b5061026a60045481565b34801561051e57600080fd5b5061029861052d3660046116d6565b61114a565b34801561053e57600080fd5b5061029861054d3660046116d6565b611183565b34801561055e57600080fd5b506001546105779061010090046001600160a01b031681565b6040516001600160a01b03909116815260200161024b565b34801561059b57600080fd5b5061026a60065481565b3480156105b157600080fd5b5061026a600a5481565b3480156105c757600080fd5b506102986105d63660046116d6565b6111bc565b3480156105e757600080fd5b506102986105f63660046116ef565b6111f5565b34801561060757600080fd5b5061026a60085481565b34801561061d57600080fd5b5061026a61062c3660046116bb565b60026020526000908152604090205481565b34801561064a57600080fd5b5061026a60075481565b34801561066057600080fd5b5061026a600b5481565b34801561067657600080fd5b506102986106853660046116bb565b61121a565b60006001600160e01b03198216637965db0b60e01b14806106bb57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6106d96000805160206119f883398151915233610eb9565b6106fe5760405162461bcd60e51b81526004016106f590611896565b60405180910390fd5b600655565b600060018054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561075157600080fd5b505afa158015610765573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107899190611745565b905090565b6107a66000805160206119f883398151915233610eb9565b6107c25760405162461bcd60e51b81526004016106f590611896565b600b55565b6107df6000805160206119f883398151915233610eb9565b6107fb5760405162461bcd60e51b81526004016106f590611896565b600455565b60008281526020819052604090206001015461081b81611263565b610825838361126d565b505050565b6108426000805160206119f883398151915233610eb9565b61085e5760405162461bcd60e51b81526004016106f590611896565b600a55565b6001600160a01b03811633146108d35760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016106f5565b6108dd82826112f1565b5050565b6108f96000805160206119f883398151915233610eb9565b6109155760405162461bcd60e51b81526004016106f590611896565b60015460ff1661095e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016106f5565b6001805460ff191690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a1565b600554158015906109b0575060055442115b6109fc5760405162461bcd60e51b815260206004820181905260248201527f546865207072652073616c65206861736e27742073746172746564207965742e60448201526064016106f5565b600754421115610a435760405162461bcd60e51b815260206004820152601260248201527129b0b632903bb0b9903334b734b9b432b21760711b60448201526064016106f5565b600954851115610a8b5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b21026b0bc10313c9036b4b73a1760691b60448201526064016106f5565b6040516bffffffffffffffffffffffff193360601b1660208201526034810185905260009060540160408051601f198184030181529181528151602092830120336000908152600390935291205490915060ff16610bcf57838114610b225760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2102632b0b31760991b60448201526064016106f5565b610b6383838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150879050611356565b610ba75760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21026b2b935b63290283937b7b31760591b60448201526064016106f5565b336000908152600360209081526040808320805460ff19166001179055600290915290208590555b60008611610bef5760405162461bcd60e51b81526004016106f5906118c0565b600a543490610bfe908861136c565b14610c435760405162461bcd60e51b815260206004820152601560248201527424b731b7b93932b1ba1032ba341030b6b7bab73a1760591b60448201526064016106f5565b600854610c5887610c52610703565b9061137f565b1115610c9e5760405162461bcd60e51b815260206004820152601560248201527422bc31b2b2b239903a37ba30b61039bab838363c9760591b60448201526064016106f5565b33600090815260026020526040902054861115610cfd5760405162461bcd60e51b815260206004820152601c60248201527f457863656564732072656d61696e696e672077686974656c6973742e0000000060448201526064016106f5565b3360009081526002602052604081208054889290610d1c90849061193c565b90915550506001546040516340c10f1960e01b8152336004820152602481018890526101009091046001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610d7157600080fd5b505af1158015610d85573d6000803e3d6000fd5b50505050505050505050565b610da96000805160206119f883398151915233610eb9565b610dc55760405162461bcd60e51b81526004016106f590611896565b600855565b610de26000805160206119f883398151915233610eb9565b610dfe5760405162461bcd60e51b81526004016106f590611896565b600c55565b610e1b6000805160206119f883398151915233610eb9565b610e375760405162461bcd60e51b81526004016106f590611896565b60015460ff1615610e7d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016106f5565b6001805460ff1916811790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001610994565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600854610ef182610c52610703565b1115610f375760405162461bcd60e51b815260206004820152601560248201527422bc31b2b2b239903a37ba30b61039bab838363c9760591b60448201526064016106f5565b600954811115610f7f5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b21026b0bc10313c9036b4b73a1760691b60448201526064016106f5565b60008111610f9f5760405162461bcd60e51b81526004016106f5906118c0565b60045415801590610fb1575060045442115b610ffd5760405162461bcd60e51b815260206004820152601c60248201527f5468652073616c65206861736e27742073746172746564207965742e0000000060448201526064016106f5565b60065442111561103c5760405162461bcd60e51b815260206004820152600a60248201526914d85b1948195b99195960b21b60448201526064016106f5565b600b54349061104b908361136c565b146110905760405162461bcd60e51b815260206004820152601560248201527424b731b7b93932b1ba1032ba341030b6b7bab73a1760591b60448201526064016106f5565b6001546040516340c10f1960e01b8152336004820152602481018390526101009091046001600160a01b0316906340c10f1990604401600060405180830381600087803b1580156110e057600080fd5b505af11580156110f4573d6000803e3d6000fd5b5050505050565b6111136000805160206119f883398151915233610eb9565b61112f5760405162461bcd60e51b81526004016106f590611896565b6111476000805160206119f88339815191528261138b565b50565b6111626000805160206119f883398151915233610eb9565b61117e5760405162461bcd60e51b81526004016106f590611896565b600555565b61119b6000805160206119f883398151915233610eb9565b6111b75760405162461bcd60e51b81526004016106f590611896565b600955565b6111d46000805160206119f883398151915233610eb9565b6111f05760405162461bcd60e51b81526004016106f590611896565b600755565b60008281526020819052604090206001015461121081611263565b61082583836112f1565b6112326000805160206119f883398151915233610eb9565b61124e5760405162461bcd60e51b81526004016106f590611896565b478061125957600080fd5b6108dd8247611395565b611147813361142b565b6112778282610eb9565b6108dd576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556112ad3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6112fb8282610eb9565b156108dd576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600082611363858461148f565b14949350505050565b6000611378828461191d565b9392505050565b60006113788284611905565b6108dd828261126d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146113e2576040519150601f19603f3d011682016040523d82523d6000602084013e6113e7565b606091505b50509050806108255760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016106f5565b6114358282610eb9565b6108dd5761144d816001600160a01b03166014611503565b611458836020611503565b6040516020016114699291906117ee565b60408051601f198184030181529082905262461bcd60e51b82526106f591600401611863565b600081815b84518110156114fb5760008582815181106114b1576114b16119cb565b602002602001015190508083116114d757600083815260208290526040902092506114e8565b600081815260208490526040902092505b50806114f38161199a565b915050611494565b509392505050565b6060600061151283600261191d565b61151d906002611905565b67ffffffffffffffff811115611535576115356119e1565b6040519080825280601f01601f19166020018201604052801561155f576020820181803683370190505b509050600360fc1b8160008151811061157a5761157a6119cb565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106115a9576115a96119cb565b60200101906001600160f81b031916908160001a90535060006115cd84600261191d565b6115d8906001611905565b90505b6001811115611650576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061160c5761160c6119cb565b1a60f81b828281518110611622576116226119cb565b60200101906001600160f81b031916908160001a90535060049490941c9361164981611983565b90506115db565b5083156113785760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016106f5565b80356001600160a01b03811681146116b657600080fd5b919050565b6000602082840312156116cd57600080fd5b6113788261169f565b6000602082840312156116e857600080fd5b5035919050565b6000806040838503121561170257600080fd5b823591506117126020840161169f565b90509250929050565b60006020828403121561172d57600080fd5b81356001600160e01b03198116811461137857600080fd5b60006020828403121561175757600080fd5b5051919050565b60008060008060006080868803121561177657600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff808211156117a357600080fd5b818801915088601f8301126117b757600080fd5b8135818111156117c657600080fd5b8960208260051b85010111156117db57600080fd5b9699959850939650602001949392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611826816017850160208801611953565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611857816028840160208801611953565b01602801949350505050565b6020815260008251806020840152611882816040850160208701611953565b601f01601f19169190910160400192915050565b60208082526010908201526f26bab9ba1031329037b832b930ba37b960811b604082015260600190565b60208082526025908201527f546865206e756d626572206f662070757263686173657320697320696e636f726040820152643932b1ba1760d91b606082015260800190565b60008219821115611918576119186119b5565b500190565b6000816000190483118215151615611937576119376119b5565b500290565b60008282101561194e5761194e6119b5565b500390565b60005b8381101561196e578181015183820152602001611956565b8381111561197d576000848401525b50505050565b600081611992576119926119b5565b506000190190565b60006000198214156119ae576119ae6119b5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0ca26469706673582212206c446f9f8fe5734ac8ca39985db7d59cc1bddac589f3e43a5f22a0bdc826936464736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000040148c53d939e7ad887b0130013b1ffc4b1f6271
-----Decoded View---------------
Arg [0] : token_ (address): 0x40148c53D939e7aD887B0130013B1FFC4b1F6271
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000040148c53d939e7ad887b0130013b1ffc4b1f6271
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.