ETH Price: $2,321.89 (-0.17%)

Contract

0xfD802E4F53c0d05410d6f24566c07608a0485885
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw All154645952022-09-03 9:34:58740 days ago1662197698IN
0xfD802E4F...8a0485885
0 ETH0.000226465.65298288
Pre Sale Mint154142712022-08-26 8:18:19748 days ago1661501899IN
0xfD802E4F...8a0485885
0.1 ETH0.000295979.16828792
Pre Sale Mint153640362022-08-18 8:52:36756 days ago1660812756IN
0xfD802E4F...8a0485885
0.05 ETH0.000319339.89203172
Partner Sale Min...153211092022-08-11 13:57:35763 days ago1660226255IN
0xfD802E4F...8a0485885
0.055 ETH0.0004255613
Pre Sale Mint153208302022-08-11 12:54:15763 days ago1660222455IN
0xfD802E4F...8a0485885
0.1 ETH0.0005697617.65605443
Set Sale Start153205582022-08-11 11:56:40763 days ago1660219000IN
0xfD802E4F...8a0485885
0 ETH0.000757929.1401592
Set Sale Start153205582022-08-11 11:56:40763 days ago1660219000IN
0xfD802E4F...8a0485885
0 ETH0.0005129521.36520562
Partner Sale Min...153205442022-08-11 11:53:34763 days ago1660218814IN
0xfD802E4F...8a0485885
0.055 ETH0.0025931927.87956825
Partner Sale Min...153205342022-08-11 11:51:19763 days ago1660218679IN
0xfD802E4F...8a0485885
0.165 ETH0.0032203223.44937585
Partner Sale Min...153205262022-08-11 11:47:59763 days ago1660218479IN
0xfD802E4F...8a0485885
0.055 ETH0.0028118518.34160593
Partner Sale Min...153204662022-08-11 11:33:36763 days ago1660217616IN
0xfD802E4F...8a0485885
0.055 ETH0.003231121.41110025
Partner Sale Min...153204332022-08-11 11:25:22763 days ago1660217122IN
0xfD802E4F...8a0485885
0.165 ETH0.001068898.01761761
Partner Sale Min...153204152022-08-11 11:21:40763 days ago1660216900IN
0xfD802E4F...8a0485885
0.055 ETH0.0015590610.16811886
Partner Sale Min...153204102022-08-11 11:20:53763 days ago1660216853IN
0xfD802E4F...8a0485885
0.11 ETH0.0019486612.55111796
Partner Sale Min...153203712022-08-11 11:11:20763 days ago1660216280IN
0xfD802E4F...8a0485885
0.165 ETH0.0015597411.35842077
Partner Sale Min...153203682022-08-11 11:10:05763 days ago1660216205IN
0xfD802E4F...8a0485885
0.055 ETH0.000793719
Partner Sale Min...153203672022-08-11 11:09:46763 days ago1660216186IN
0xfD802E4F...8a0485885
0.165 ETH0.001314629.5725259
Partner Sale Min...153203672022-08-11 11:09:46763 days ago1660216186IN
0xfD802E4F...8a0485885
0.165 ETH0.001151339.5725259
Partner Sale Min...153203622022-08-11 11:08:42763 days ago1660216122IN
0xfD802E4F...8a0485885
0.165 ETH0.001213858.83953993
Partner Sale Min...153203622022-08-11 11:08:42763 days ago1660216122IN
0xfD802E4F...8a0485885
0.165 ETH0.0013730910
Partner Sale Min...153203512022-08-11 11:06:40763 days ago1660216000IN
0xfD802E4F...8a0485885
0.11 ETH0.001397239
Partner Sale Min...153203172022-08-11 11:00:11763 days ago1660215611IN
0xfD802E4F...8a0485885
0.165 ETH0.0020070714.61252121
Partner Sale Min...153203132022-08-11 10:59:09763 days ago1660215549IN
0xfD802E4F...8a0485885
0.11 ETH0.0018592911.97380968
Partner Sale Min...153203072022-08-11 10:57:55763 days ago1660215475IN
0xfD802E4F...8a0485885
0.165 ETH0.0017711412.89580062
Partner Sale Min...153202852022-08-11 10:52:27763 days ago1660215147IN
0xfD802E4F...8a0485885
0.055 ETH0.0024691816.10468038
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
154645952022-09-03 9:34:58740 days ago1662197698
0xfD802E4F...8a0485885
89.08 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CryptoMaidsOnChainSale

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : CryptoMaidsOnChainSale.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./roles/AccessOperatable.sol";

// On Chain Maids Contract Interface(Main contract)
interface iCMOC {
  function mint(address to, uint256 quantity) external;
  function MAX_ELEMENTS() external returns (uint256);
  function totalSupply() external view returns (uint256);
}

contract CryptoMaidsOnChainSale is AccessOperatable {
  using SafeMath for uint256;
  // target contract
  iCMOC public targetContract;
  string private _defaultURI;

  // record the remainings(pre sale)
  mapping(address => uint) public preSaleWhitelistRemaining;
  // record whitelist is used(pre sale)
  mapping(address => bool) public preSaleWhitelistUsed;

  // record the remainings(partner sale)
  mapping(address => uint) public partnerSaleWhitelistRemaining;
  // record whitelist is used(partner sale)
  mapping(address => bool) public partnerSaleWhitelistUsed;

  // end time
  uint256 public preSaleStart;
  uint256 public partnerSaleStart;
  uint256 public saleStart;

  // start time
  uint256 public preSaleEnd = 253404860400; //JS: new Date(9999, 12, 31).getTime() / 1000
  uint256 public partnerSaleEnd = 253404860400; //JS: new Date(9999, 12, 31).getTime() / 1000
  uint256 public saleEnd = 253404860400; // JS: new Date(9999, 12, 31).getTime() / 1000

  // supply and max per mint
  uint256 public maxSupply = 4000;
  uint256 public maxByMint = 20;

  // sale price
  uint256 public preSalePrice = 5 * 10 ** 16; // 0.05eth
  uint256 public partnerSalePrice = 6 * 10 ** 16; // 0.06eth
  uint256 public salePrice = 8 * 10 ** 16; // 0.08eth

  // merkle root(pre sale)
  bytes32 public preSaleMerkleRoot;
  // merkle root(partner sale)
  bytes32 public partnerSaleMerkleRoot;

  constructor(address token_) {
    require(token_ != address(0x0));
    // get contract
    targetContract = iCMOC(token_);
  }

  // public mint
  function mintNFT(uint256 nftNum) external payable {
    require(totalSupply().add(nftNum) <= maxSupply, "Exceeds total supply.");
    require(nftNum <= maxByMint, "Exceed Max by mint.");
    // nftNum must be positive.
    require(nftNum > 0, "The number of purchases is incorrect.");

    require(saleStart != 0 && block.timestamp > saleStart, "The sale hasn't started yet.");
    // limit by time
    require(block.timestamp <= saleEnd, "Sale ended");
    require(salePrice.mul(nftNum) == msg.value, "Incorrect eth amount.");

    targetContract.mint(msg.sender, nftNum);
  }

  // pre sale mint
  function preSaleMint(uint256 nftNum, uint256 totalAllocation, bytes32 leaf, bytes32[] calldata proof) external payable {
    require(preSaleStart != 0 && block.timestamp > preSaleStart , "yet");
    // limit by time
    require(block.timestamp <= preSaleEnd, "Sale was finished.");
    require(nftNum <= maxByMint, "Exceed Max by mint.");
    bytes32 solidityLeaf = keccak256(abi.encodePacked(msg.sender, totalAllocation));

    if(!preSaleWhitelistUsed[msg.sender]) {
      require(solidityLeaf == leaf, "Invalid Leaf.");
      require(MerkleProof.verify(proof, preSaleMerkleRoot, leaf), "Invalid Merkle Proof.");

      preSaleWhitelistUsed[msg.sender] = true;
      preSaleWhitelistRemaining[msg.sender] = totalAllocation;
    }

    require(nftNum > 0);
    require(preSalePrice.mul(nftNum) == msg.value, "Incorrect eth amount.");
    require(totalSupply().add(nftNum) <= maxSupply, "Exceeds total supply.");
    require(preSaleWhitelistRemaining[msg.sender] >= nftNum, "Exceeds remaining whitelist.");

    preSaleWhitelistRemaining[msg.sender] -= nftNum;
    targetContract.mint(msg.sender, nftNum);
  }

  // partner sale mint
  function partnerSaleMint(uint256 nftNum, uint256 totalAllocation, bytes32 leaf, bytes32[] calldata proof) external payable {
    require(partnerSaleStart != 0 && block.timestamp > partnerSaleStart , "yet");
    // limit by time
    require(block.timestamp <= partnerSaleEnd, "Sale was finished.");
    require(nftNum <= maxByMint, "Exceed Max by mint.");
    bytes32 solidityLeaf = keccak256(abi.encodePacked(msg.sender, totalAllocation));

    if(!partnerSaleWhitelistUsed[msg.sender]) {
      require(solidityLeaf == leaf, "Invalid Leaf.");
      require(MerkleProof.verify(proof, partnerSaleMerkleRoot, leaf), "Invalid Merkle Proof.");

      partnerSaleWhitelistUsed[msg.sender] = true;
      partnerSaleWhitelistRemaining[msg.sender] = totalAllocation;
    }

    require(nftNum > 0);
    require(partnerSalePrice.mul(nftNum) == msg.value, "Incorrect eth amount.");
    require(totalSupply().add(nftNum) <= maxSupply, "Exceeds total supply.");
    require(partnerSaleWhitelistRemaining[msg.sender] >= nftNum, "Exceeds remaining whitelist.");

    partnerSaleWhitelistRemaining[msg.sender] -= nftNum;
    targetContract.mint(msg.sender, nftNum);
  }

  function totalSupply() public view returns (uint256) {
    return targetContract.totalSupply();
  }

  // withdrow method
  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.");
  }

  // merkle root
  function setPreSaleMerkleRoot(bytes32 preSaleMerkleRoot_) public onlyOperator() {
    preSaleMerkleRoot = preSaleMerkleRoot_;
  }
  function setPartnerSaleMerkleRoot(bytes32 partnerSaleMerkleRoot_) public onlyOperator() {
    partnerSaleMerkleRoot = partnerSaleMerkleRoot_;
  }

  // start time
  function setPreSaleStart(uint256 preSaleStart_) public onlyOperator() {
    preSaleStart = preSaleStart_;
  }
  function setPartnerSaleStart(uint256 partnerSaleStart_) public onlyOperator() {
    partnerSaleStart = partnerSaleStart_;
  }
  function setSaleStart(uint256 saleStart_) public onlyOperator() {
    saleStart = saleStart_;
  }

  // end time
  function setPreSaleEnd(uint256 preSaleEnd_) public onlyOperator() {
    preSaleEnd = preSaleEnd_;
  }
  function setPartnerSaleEnd(uint256 partnerSaleEnd_) public onlyOperator() {
    partnerSaleEnd = partnerSaleEnd_;
  }
  function setSaleEnd(uint256 saleEnd_) public onlyOperator() {
    saleEnd = saleEnd_;
  }

  // selling price
  function setPreSalePrice(uint256 preSalePrice_) public onlyOperator() {
    preSalePrice = preSalePrice_;
  }
  function setPartnerSalePrice(uint256 partnerSalePrice_) public onlyOperator() {
    partnerSalePrice = partnerSalePrice_;
  }
  function setSalePrice(uint256 salePrice_) public onlyOperator() {
    salePrice = salePrice_;
  }

  function setMaxByMint(uint256 maxByMint_) public onlyOperator() {
    maxByMint = maxByMint_;
  }
  function setMaxSupply(uint256 maxSupply_) public onlyOperator() {
    maxSupply = maxSupply_;
  }
}

File 2 of 10 : SafeMath.sol
// 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;
        }
    }
}

File 3 of 10 : MerkleProof.sol
// 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)
        }
    }
}

File 4 of 10 : AccessOperatable.sol
// 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);
    }
}

File 5 of 10 : AccessControl.sol
// 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());
        }
    }
}

File 6 of 10 : IAccessControl.sol
// 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;
}

File 7 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 10 : Strings.sol
// 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);
    }
}

File 9 of 10 : ERC165.sol
// 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;
    }
}

File 10 of 10 : IERC165.sol
// 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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":[{"internalType":"uint256","name":"nftNum","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"partnerSaleEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":"partnerSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"partnerSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"partnerSaleWhitelistRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"partnerSaleWhitelistUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"preSaleEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preSalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preSaleWhitelistRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"preSaleWhitelistUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"uint256","name":"partnerSaleEnd_","type":"uint256"}],"name":"setPartnerSaleEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"partnerSaleMerkleRoot_","type":"bytes32"}],"name":"setPartnerSaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"partnerSalePrice_","type":"uint256"}],"name":"setPartnerSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"partnerSaleStart_","type":"uint256"}],"name":"setPartnerSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"preSaleEnd_","type":"uint256"}],"name":"setPreSaleEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"preSaleMerkleRoot_","type":"bytes32"}],"name":"setPreSaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"preSalePrice_","type":"uint256"}],"name":"setPreSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"preSaleStart_","type":"uint256"}],"name":"setPreSaleStart","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":"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":"address","name":"withdrawAddress","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052643b001b4ff0600a55643b001b4ff0600b55643b001b4ff0600c55610fa0600d556014600e5566b1a2bc2ec50000600f5566d529ae9e86000060105567011c37937e0800006011553480156200005957600080fd5b5060405162002188380380620021888339810160408190526200007c91620001f8565b62000098600080516020620021688339815191526000620000fd565b620000b3600080516020620021688339815191523362000148565b6001805460ff191690556001600160a01b038116620000d157600080fd5b600180546001600160a01b0390921661010002610100600160a81b03199092169190911790556200022a565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b62000154828262000158565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000154576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001b43390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000602082840312156200020b57600080fd5b81516001600160a01b03811681146200022357600080fd5b9392505050565b611f2e806200023a6000396000f3fe6080604052600436106102935760003560e01c806382ad3f861161015a578063b84dd247116100c1578063d766ffc91161007a578063d766ffc91461078f578063e757c17d146107af578063e770cbec146107c5578063ef992b2b146107e5578063f51f96dd14610815578063fa09e6301461082b57600080fd5b8063b84dd247146106c6578063bd90df70146106d9578063c10b935814610716578063cac6ac9d1461072c578063d547741f14610759578063d5abeb011461077957600080fd5b80639870d7fe116101135780639870d7fe1461060e578063a217fddf1461062e578063a9e8bef614610643578063ab0bcc4114610663578063b252291a14610679578063b455c5fe146106a657600080fd5b806382ad3f861461056e5780638456cb59146105845780638d3d12951461059957806391d14854146105b957806392642744146105d9578063983d2737146105ec57600080fd5b80632f181f54116101fe57806343838845116101b757806343838845146104b25780635553c2b1146104c857806365fcfd24146104f85780636bc64e0f146105185780636f8b44b01461052e5780637d7eee421461054e57600080fd5b80632f181f54146104075780632f2ff15d1461042757806336568abe146104475780633bfd7620146104675780633d899c6d1461047d5780633f4ba83a1461049d57600080fd5b806318160ddd1161025057806318160ddd146103565780631919fed71461036b5780631cc6f2381461038b5780631d47c2cc146103a1578063248a9ca3146103b757806329748f04146103e757600080fd5b806301ffc9a7146102985780630d5624b3146102cd578063129183f3146102f1578063138a4e01146103065780631515fa6e1461031c57806316c61ccc1461033c575b600080fd5b3480156102a457600080fd5b506102b86102b3366004611bb6565b61084b565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e360075481565b6040519081526020016102c4565b6103046102ff366004611bf9565b610882565b005b34801561031257600080fd5b506102e3600e5481565b34801561032857600080fd5b50610304610337366004611b71565b610bd7565b34801561034857600080fd5b506001546102b89060ff1681565b34801561036257600080fd5b506102e3610c10565b34801561037757600080fd5b50610304610386366004611b71565b610c9b565b34801561039757600080fd5b506102e360135481565b3480156103ad57600080fd5b506102e360105481565b3480156103c357600080fd5b506102e36103d2366004611b71565b60009081526020819052604090206001015490565b3480156103f357600080fd5b50610304610402366004611b71565b610cd4565b34801561041357600080fd5b50610304610422366004611b71565b610d0d565b34801561043357600080fd5b50610304610442366004611b8a565b610d46565b34801561045357600080fd5b50610304610462366004611b8a565b610d70565b34801561047357600080fd5b506102e3600b5481565b34801561048957600080fd5b50610304610498366004611b71565b610dee565b3480156104a957600080fd5b50610304610e27565b3480156104be57600080fd5b506102e360125481565b3480156104d457600080fd5b506102b86104e3366004611b56565b60066020526000908152604090205460ff1681565b34801561050457600080fd5b50610304610513366004611b71565b610ee4565b34801561052457600080fd5b506102e3600a5481565b34801561053a57600080fd5b50610304610549366004611b71565b610f1d565b34801561055a57600080fd5b50610304610569366004611b71565b610f56565b34801561057a57600080fd5b506102e360085481565b34801561059057600080fd5b50610304610f8f565b3480156105a557600080fd5b506103046105b4366004611b71565b611045565b3480156105c557600080fd5b506102b86105d4366004611b8a565b61107e565b6103046105e7366004611b71565b6110a7565b3480156105f857600080fd5b506102e3600080516020611ed983398151915281565b34801561061a57600080fd5b50610304610629366004611b56565b611288565b34801561063a57600080fd5b506102e3600081565b34801561064f57600080fd5b5061030461065e366004611b71565b6112d7565b34801561066f57600080fd5b506102e360095481565b34801561068557600080fd5b506102e3610694366004611b56565b60056020526000908152604090205481565b3480156106b257600080fd5b506103046106c1366004611b71565b611310565b6103046106d4366004611bf9565b611349565b3480156106e557600080fd5b506001546106fe9061010090046001600160a01b031681565b6040516001600160a01b0390911681526020016102c4565b34801561072257600080fd5b506102e3600c5481565b34801561073857600080fd5b506102e3610747366004611b56565b60036020526000908152604090205481565b34801561076557600080fd5b50610304610774366004611b8a565b61161e565b34801561078557600080fd5b506102e3600d5481565b34801561079b57600080fd5b506103046107aa366004611b71565b611643565b3480156107bb57600080fd5b506102e3600f5481565b3480156107d157600080fd5b506103046107e0366004611b71565b61167c565b3480156107f157600080fd5b506102b8610800366004611b56565b60046020526000908152604090205460ff1681565b34801561082157600080fd5b506102e360115481565b34801561083757600080fd5b50610304610846366004611b56565b6116b5565b60006001600160e01b03198216637965db0b60e01b148061087c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60075415801590610894575060075442115b6108cb5760405162461bcd60e51b81526020600482015260036024820152621e595d60ea1b60448201526064015b60405180910390fd5b600a544211156109125760405162461bcd60e51b815260206004820152601260248201527129b0b632903bb0b9903334b734b9b432b21760711b60448201526064016108c2565b600e548511156109345760405162461bcd60e51b81526004016108c290611d31565b6040516bffffffffffffffffffffffff193360601b1660208201526034810185905260009060540160408051601f198184030181529181528151602092830120336000908152600490935291205490915060ff16610a78578381146109cb5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2102632b0b31760991b60448201526064016108c2565b610a0c8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060125491508790506116fe565b610a505760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21026b2b935b63290283937b7b31760591b60448201526064016108c2565b336000908152600460209081526040808320805460ff19166001179055600390915290208590555b60008611610a8557600080fd5b600f543490610a949088611714565b14610ab15760405162461bcd60e51b81526004016108c290611db7565b600d54610ac687610ac0610c10565b90611727565b1115610ae45760405162461bcd60e51b81526004016108c290611d5e565b33600090815260036020526040902054861115610b435760405162461bcd60e51b815260206004820152601c60248201527f457863656564732072656d61696e696e672077686974656c6973742e0000000060448201526064016108c2565b3360009081526003602052604081208054889290610b62908490611e1d565b90915550506001546040516340c10f1960e01b8152336004820152602481018890526101009091046001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610bb757600080fd5b505af1158015610bcb573d6000803e3d6000fd5b50505050505050505050565b610bef600080516020611ed98339815191523361107e565b610c0b5760405162461bcd60e51b81526004016108c290611d8d565b600c55565b600060018054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c5e57600080fd5b505afa158015610c72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c969190611be0565b905090565b610cb3600080516020611ed98339815191523361107e565b610ccf5760405162461bcd60e51b81526004016108c290611d8d565b601155565b610cec600080516020611ed98339815191523361107e565b610d085760405162461bcd60e51b81526004016108c290611d8d565b601255565b610d25600080516020611ed98339815191523361107e565b610d415760405162461bcd60e51b81526004016108c290611d8d565b600955565b600082815260208190526040902060010154610d6181611733565b610d6b838361173d565b505050565b6001600160a01b0381163314610de05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016108c2565b610dea82826117c1565b5050565b610e06600080516020611ed98339815191523361107e565b610e225760405162461bcd60e51b81526004016108c290611d8d565b601355565b610e3f600080516020611ed98339815191523361107e565b610e5b5760405162461bcd60e51b81526004016108c290611d8d565b60015460ff16610ea45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108c2565b6001805460ff191690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a1565b610efc600080516020611ed98339815191523361107e565b610f185760405162461bcd60e51b81526004016108c290611d8d565b600755565b610f35600080516020611ed98339815191523361107e565b610f515760405162461bcd60e51b81526004016108c290611d8d565b600d55565b610f6e600080516020611ed98339815191523361107e565b610f8a5760405162461bcd60e51b81526004016108c290611d8d565b600f55565b610fa7600080516020611ed98339815191523361107e565b610fc35760405162461bcd60e51b81526004016108c290611d8d565b60015460ff16156110095760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108c2565b6001805460ff1916811790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001610eda565b61105d600080516020611ed98339815191523361107e565b6110795760405162461bcd60e51b81526004016108c290611d8d565b600b55565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600d546110b682610ac0610c10565b11156110d45760405162461bcd60e51b81526004016108c290611d5e565b600e548111156110f65760405162461bcd60e51b81526004016108c290611d31565b600081116111545760405162461bcd60e51b815260206004820152602560248201527f546865206e756d626572206f662070757263686173657320697320696e636f726044820152643932b1ba1760d91b60648201526084016108c2565b60095415801590611166575060095442115b6111b25760405162461bcd60e51b815260206004820152601c60248201527f5468652073616c65206861736e27742073746172746564207965742e0000000060448201526064016108c2565b600c544211156111f15760405162461bcd60e51b815260206004820152600a60248201526914d85b1948195b99195960b21b60448201526064016108c2565b60115434906112009083611714565b1461121d5760405162461bcd60e51b81526004016108c290611db7565b6001546040516340c10f1960e01b8152336004820152602481018390526101009091046001600160a01b0316906340c10f1990604401600060405180830381600087803b15801561126d57600080fd5b505af1158015611281573d6000803e3d6000fd5b5050505050565b6112a0600080516020611ed98339815191523361107e565b6112bc5760405162461bcd60e51b81526004016108c290611d8d565b6112d4600080516020611ed983398151915282611826565b50565b6112ef600080516020611ed98339815191523361107e565b61130b5760405162461bcd60e51b81526004016108c290611d8d565b600855565b611328600080516020611ed98339815191523361107e565b6113445760405162461bcd60e51b81526004016108c290611d8d565b600e55565b6008541580159061135b575060085442115b61138d5760405162461bcd60e51b81526020600482015260036024820152621e595d60ea1b60448201526064016108c2565b600b544211156113d45760405162461bcd60e51b815260206004820152601260248201527129b0b632903bb0b9903334b734b9b432b21760711b60448201526064016108c2565b600e548511156113f65760405162461bcd60e51b81526004016108c290611d31565b6040516bffffffffffffffffffffffff193360601b1660208201526034810185905260009060540160408051601f198184030181529181528151602092830120336000908152600690935291205490915060ff1661153a5783811461148d5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2102632b0b31760991b60448201526064016108c2565b6114ce8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060135491508790506116fe565b6115125760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21026b2b935b63290283937b7b31760591b60448201526064016108c2565b336000908152600660209081526040808320805460ff19166001179055600590915290208590555b6000861161154757600080fd5b60105434906115569088611714565b146115735760405162461bcd60e51b81526004016108c290611db7565b600d5461158287610ac0610c10565b11156115a05760405162461bcd60e51b81526004016108c290611d5e565b336000908152600560205260409020548611156115ff5760405162461bcd60e51b815260206004820152601c60248201527f457863656564732072656d61696e696e672077686974656c6973742e0000000060448201526064016108c2565b3360009081526005602052604081208054889290610b62908490611e1d565b60008281526020819052604090206001015461163981611733565b610d6b83836117c1565b61165b600080516020611ed98339815191523361107e565b6116775760405162461bcd60e51b81526004016108c290611d8d565b601055565b611694600080516020611ed98339815191523361107e565b6116b05760405162461bcd60e51b81526004016108c290611d8d565b600a55565b6116cd600080516020611ed98339815191523361107e565b6116e95760405162461bcd60e51b81526004016108c290611d8d565b47806116f457600080fd5b610dea8247611830565b60008261170b85846118c6565b14949350505050565b60006117208284611dfe565b9392505050565b60006117208284611de6565b6112d4813361193a565b611747828261107e565b610dea576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561177d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6117cb828261107e565b15610dea576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610dea828261173d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461187d576040519150601f19603f3d011682016040523d82523d6000602084013e611882565b606091505b5050905080610d6b5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016108c2565b600081815b84518110156119325760008582815181106118e8576118e8611eac565b6020026020010151905080831161190e576000838152602082905260409020925061191f565b600081815260208490526040902092505b508061192a81611e7b565b9150506118cb565b509392505050565b611944828261107e565b610dea5761195c816001600160a01b0316601461199e565b61196783602061199e565b604051602001611978929190611c89565b60408051601f198184030181529082905262461bcd60e51b82526108c291600401611cfe565b606060006119ad836002611dfe565b6119b8906002611de6565b67ffffffffffffffff8111156119d0576119d0611ec2565b6040519080825280601f01601f1916602001820160405280156119fa576020820181803683370190505b509050600360fc1b81600081518110611a1557611a15611eac565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611a4457611a44611eac565b60200101906001600160f81b031916908160001a9053506000611a68846002611dfe565b611a73906001611de6565b90505b6001811115611aeb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611aa757611aa7611eac565b1a60f81b828281518110611abd57611abd611eac565b60200101906001600160f81b031916908160001a90535060049490941c93611ae481611e64565b9050611a76565b5083156117205760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108c2565b80356001600160a01b0381168114611b5157600080fd5b919050565b600060208284031215611b6857600080fd5b61172082611b3a565b600060208284031215611b8357600080fd5b5035919050565b60008060408385031215611b9d57600080fd5b82359150611bad60208401611b3a565b90509250929050565b600060208284031215611bc857600080fd5b81356001600160e01b03198116811461172057600080fd5b600060208284031215611bf257600080fd5b5051919050565b600080600080600060808688031215611c1157600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff80821115611c3e57600080fd5b818801915088601f830112611c5257600080fd5b813581811115611c6157600080fd5b8960208260051b8501011115611c7657600080fd5b9699959850939650602001949392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611cc1816017850160208801611e34565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611cf2816028840160208801611e34565b01602801949350505050565b6020815260008251806020840152611d1d816040850160208701611e34565b601f01601f19169190910160400192915050565b60208082526013908201527222bc31b2b2b21026b0bc10313c9036b4b73a1760691b604082015260600190565b60208082526015908201527422bc31b2b2b239903a37ba30b61039bab838363c9760591b604082015260600190565b60208082526010908201526f26bab9ba1031329037b832b930ba37b960811b604082015260600190565b60208082526015908201527424b731b7b93932b1ba1032ba341030b6b7bab73a1760591b604082015260600190565b60008219821115611df957611df9611e96565b500190565b6000816000190483118215151615611e1857611e18611e96565b500290565b600082821015611e2f57611e2f611e96565b500390565b60005b83811015611e4f578181015183820152602001611e37565b83811115611e5e576000848401525b50505050565b600081611e7357611e73611e96565b506000190190565b6000600019821415611e8f57611e8f611e96565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0ca26469706673582212203dae4af4c48cdf5ff9fa04c13bcf26bed844cf93c2835ccaaa62cfb58b3b838e64736f6c63430008060033523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0c0000000000000000000000005331fc7d77bfbca3a2875babddf6a2329bd9aefb

Deployed Bytecode

0x6080604052600436106102935760003560e01c806382ad3f861161015a578063b84dd247116100c1578063d766ffc91161007a578063d766ffc91461078f578063e757c17d146107af578063e770cbec146107c5578063ef992b2b146107e5578063f51f96dd14610815578063fa09e6301461082b57600080fd5b8063b84dd247146106c6578063bd90df70146106d9578063c10b935814610716578063cac6ac9d1461072c578063d547741f14610759578063d5abeb011461077957600080fd5b80639870d7fe116101135780639870d7fe1461060e578063a217fddf1461062e578063a9e8bef614610643578063ab0bcc4114610663578063b252291a14610679578063b455c5fe146106a657600080fd5b806382ad3f861461056e5780638456cb59146105845780638d3d12951461059957806391d14854146105b957806392642744146105d9578063983d2737146105ec57600080fd5b80632f181f54116101fe57806343838845116101b757806343838845146104b25780635553c2b1146104c857806365fcfd24146104f85780636bc64e0f146105185780636f8b44b01461052e5780637d7eee421461054e57600080fd5b80632f181f54146104075780632f2ff15d1461042757806336568abe146104475780633bfd7620146104675780633d899c6d1461047d5780633f4ba83a1461049d57600080fd5b806318160ddd1161025057806318160ddd146103565780631919fed71461036b5780631cc6f2381461038b5780631d47c2cc146103a1578063248a9ca3146103b757806329748f04146103e757600080fd5b806301ffc9a7146102985780630d5624b3146102cd578063129183f3146102f1578063138a4e01146103065780631515fa6e1461031c57806316c61ccc1461033c575b600080fd5b3480156102a457600080fd5b506102b86102b3366004611bb6565b61084b565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e360075481565b6040519081526020016102c4565b6103046102ff366004611bf9565b610882565b005b34801561031257600080fd5b506102e3600e5481565b34801561032857600080fd5b50610304610337366004611b71565b610bd7565b34801561034857600080fd5b506001546102b89060ff1681565b34801561036257600080fd5b506102e3610c10565b34801561037757600080fd5b50610304610386366004611b71565b610c9b565b34801561039757600080fd5b506102e360135481565b3480156103ad57600080fd5b506102e360105481565b3480156103c357600080fd5b506102e36103d2366004611b71565b60009081526020819052604090206001015490565b3480156103f357600080fd5b50610304610402366004611b71565b610cd4565b34801561041357600080fd5b50610304610422366004611b71565b610d0d565b34801561043357600080fd5b50610304610442366004611b8a565b610d46565b34801561045357600080fd5b50610304610462366004611b8a565b610d70565b34801561047357600080fd5b506102e3600b5481565b34801561048957600080fd5b50610304610498366004611b71565b610dee565b3480156104a957600080fd5b50610304610e27565b3480156104be57600080fd5b506102e360125481565b3480156104d457600080fd5b506102b86104e3366004611b56565b60066020526000908152604090205460ff1681565b34801561050457600080fd5b50610304610513366004611b71565b610ee4565b34801561052457600080fd5b506102e3600a5481565b34801561053a57600080fd5b50610304610549366004611b71565b610f1d565b34801561055a57600080fd5b50610304610569366004611b71565b610f56565b34801561057a57600080fd5b506102e360085481565b34801561059057600080fd5b50610304610f8f565b3480156105a557600080fd5b506103046105b4366004611b71565b611045565b3480156105c557600080fd5b506102b86105d4366004611b8a565b61107e565b6103046105e7366004611b71565b6110a7565b3480156105f857600080fd5b506102e3600080516020611ed983398151915281565b34801561061a57600080fd5b50610304610629366004611b56565b611288565b34801561063a57600080fd5b506102e3600081565b34801561064f57600080fd5b5061030461065e366004611b71565b6112d7565b34801561066f57600080fd5b506102e360095481565b34801561068557600080fd5b506102e3610694366004611b56565b60056020526000908152604090205481565b3480156106b257600080fd5b506103046106c1366004611b71565b611310565b6103046106d4366004611bf9565b611349565b3480156106e557600080fd5b506001546106fe9061010090046001600160a01b031681565b6040516001600160a01b0390911681526020016102c4565b34801561072257600080fd5b506102e3600c5481565b34801561073857600080fd5b506102e3610747366004611b56565b60036020526000908152604090205481565b34801561076557600080fd5b50610304610774366004611b8a565b61161e565b34801561078557600080fd5b506102e3600d5481565b34801561079b57600080fd5b506103046107aa366004611b71565b611643565b3480156107bb57600080fd5b506102e3600f5481565b3480156107d157600080fd5b506103046107e0366004611b71565b61167c565b3480156107f157600080fd5b506102b8610800366004611b56565b60046020526000908152604090205460ff1681565b34801561082157600080fd5b506102e360115481565b34801561083757600080fd5b50610304610846366004611b56565b6116b5565b60006001600160e01b03198216637965db0b60e01b148061087c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60075415801590610894575060075442115b6108cb5760405162461bcd60e51b81526020600482015260036024820152621e595d60ea1b60448201526064015b60405180910390fd5b600a544211156109125760405162461bcd60e51b815260206004820152601260248201527129b0b632903bb0b9903334b734b9b432b21760711b60448201526064016108c2565b600e548511156109345760405162461bcd60e51b81526004016108c290611d31565b6040516bffffffffffffffffffffffff193360601b1660208201526034810185905260009060540160408051601f198184030181529181528151602092830120336000908152600490935291205490915060ff16610a78578381146109cb5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2102632b0b31760991b60448201526064016108c2565b610a0c8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060125491508790506116fe565b610a505760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21026b2b935b63290283937b7b31760591b60448201526064016108c2565b336000908152600460209081526040808320805460ff19166001179055600390915290208590555b60008611610a8557600080fd5b600f543490610a949088611714565b14610ab15760405162461bcd60e51b81526004016108c290611db7565b600d54610ac687610ac0610c10565b90611727565b1115610ae45760405162461bcd60e51b81526004016108c290611d5e565b33600090815260036020526040902054861115610b435760405162461bcd60e51b815260206004820152601c60248201527f457863656564732072656d61696e696e672077686974656c6973742e0000000060448201526064016108c2565b3360009081526003602052604081208054889290610b62908490611e1d565b90915550506001546040516340c10f1960e01b8152336004820152602481018890526101009091046001600160a01b0316906340c10f1990604401600060405180830381600087803b158015610bb757600080fd5b505af1158015610bcb573d6000803e3d6000fd5b50505050505050505050565b610bef600080516020611ed98339815191523361107e565b610c0b5760405162461bcd60e51b81526004016108c290611d8d565b600c55565b600060018054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c5e57600080fd5b505afa158015610c72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c969190611be0565b905090565b610cb3600080516020611ed98339815191523361107e565b610ccf5760405162461bcd60e51b81526004016108c290611d8d565b601155565b610cec600080516020611ed98339815191523361107e565b610d085760405162461bcd60e51b81526004016108c290611d8d565b601255565b610d25600080516020611ed98339815191523361107e565b610d415760405162461bcd60e51b81526004016108c290611d8d565b600955565b600082815260208190526040902060010154610d6181611733565b610d6b838361173d565b505050565b6001600160a01b0381163314610de05760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016108c2565b610dea82826117c1565b5050565b610e06600080516020611ed98339815191523361107e565b610e225760405162461bcd60e51b81526004016108c290611d8d565b601355565b610e3f600080516020611ed98339815191523361107e565b610e5b5760405162461bcd60e51b81526004016108c290611d8d565b60015460ff16610ea45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108c2565b6001805460ff191690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a1565b610efc600080516020611ed98339815191523361107e565b610f185760405162461bcd60e51b81526004016108c290611d8d565b600755565b610f35600080516020611ed98339815191523361107e565b610f515760405162461bcd60e51b81526004016108c290611d8d565b600d55565b610f6e600080516020611ed98339815191523361107e565b610f8a5760405162461bcd60e51b81526004016108c290611d8d565b600f55565b610fa7600080516020611ed98339815191523361107e565b610fc35760405162461bcd60e51b81526004016108c290611d8d565b60015460ff16156110095760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108c2565b6001805460ff1916811790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001610eda565b61105d600080516020611ed98339815191523361107e565b6110795760405162461bcd60e51b81526004016108c290611d8d565b600b55565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600d546110b682610ac0610c10565b11156110d45760405162461bcd60e51b81526004016108c290611d5e565b600e548111156110f65760405162461bcd60e51b81526004016108c290611d31565b600081116111545760405162461bcd60e51b815260206004820152602560248201527f546865206e756d626572206f662070757263686173657320697320696e636f726044820152643932b1ba1760d91b60648201526084016108c2565b60095415801590611166575060095442115b6111b25760405162461bcd60e51b815260206004820152601c60248201527f5468652073616c65206861736e27742073746172746564207965742e0000000060448201526064016108c2565b600c544211156111f15760405162461bcd60e51b815260206004820152600a60248201526914d85b1948195b99195960b21b60448201526064016108c2565b60115434906112009083611714565b1461121d5760405162461bcd60e51b81526004016108c290611db7565b6001546040516340c10f1960e01b8152336004820152602481018390526101009091046001600160a01b0316906340c10f1990604401600060405180830381600087803b15801561126d57600080fd5b505af1158015611281573d6000803e3d6000fd5b5050505050565b6112a0600080516020611ed98339815191523361107e565b6112bc5760405162461bcd60e51b81526004016108c290611d8d565b6112d4600080516020611ed983398151915282611826565b50565b6112ef600080516020611ed98339815191523361107e565b61130b5760405162461bcd60e51b81526004016108c290611d8d565b600855565b611328600080516020611ed98339815191523361107e565b6113445760405162461bcd60e51b81526004016108c290611d8d565b600e55565b6008541580159061135b575060085442115b61138d5760405162461bcd60e51b81526020600482015260036024820152621e595d60ea1b60448201526064016108c2565b600b544211156113d45760405162461bcd60e51b815260206004820152601260248201527129b0b632903bb0b9903334b734b9b432b21760711b60448201526064016108c2565b600e548511156113f65760405162461bcd60e51b81526004016108c290611d31565b6040516bffffffffffffffffffffffff193360601b1660208201526034810185905260009060540160408051601f198184030181529181528151602092830120336000908152600690935291205490915060ff1661153a5783811461148d5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b2102632b0b31760991b60448201526064016108c2565b6114ce8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060135491508790506116fe565b6115125760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21026b2b935b63290283937b7b31760591b60448201526064016108c2565b336000908152600660209081526040808320805460ff19166001179055600590915290208590555b6000861161154757600080fd5b60105434906115569088611714565b146115735760405162461bcd60e51b81526004016108c290611db7565b600d5461158287610ac0610c10565b11156115a05760405162461bcd60e51b81526004016108c290611d5e565b336000908152600560205260409020548611156115ff5760405162461bcd60e51b815260206004820152601c60248201527f457863656564732072656d61696e696e672077686974656c6973742e0000000060448201526064016108c2565b3360009081526005602052604081208054889290610b62908490611e1d565b60008281526020819052604090206001015461163981611733565b610d6b83836117c1565b61165b600080516020611ed98339815191523361107e565b6116775760405162461bcd60e51b81526004016108c290611d8d565b601055565b611694600080516020611ed98339815191523361107e565b6116b05760405162461bcd60e51b81526004016108c290611d8d565b600a55565b6116cd600080516020611ed98339815191523361107e565b6116e95760405162461bcd60e51b81526004016108c290611d8d565b47806116f457600080fd5b610dea8247611830565b60008261170b85846118c6565b14949350505050565b60006117208284611dfe565b9392505050565b60006117208284611de6565b6112d4813361193a565b611747828261107e565b610dea576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561177d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6117cb828261107e565b15610dea576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610dea828261173d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461187d576040519150601f19603f3d011682016040523d82523d6000602084013e611882565b606091505b5050905080610d6b5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016108c2565b600081815b84518110156119325760008582815181106118e8576118e8611eac565b6020026020010151905080831161190e576000838152602082905260409020925061191f565b600081815260208490526040902092505b508061192a81611e7b565b9150506118cb565b509392505050565b611944828261107e565b610dea5761195c816001600160a01b0316601461199e565b61196783602061199e565b604051602001611978929190611c89565b60408051601f198184030181529082905262461bcd60e51b82526108c291600401611cfe565b606060006119ad836002611dfe565b6119b8906002611de6565b67ffffffffffffffff8111156119d0576119d0611ec2565b6040519080825280601f01601f1916602001820160405280156119fa576020820181803683370190505b509050600360fc1b81600081518110611a1557611a15611eac565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611a4457611a44611eac565b60200101906001600160f81b031916908160001a9053506000611a68846002611dfe565b611a73906001611de6565b90505b6001811115611aeb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611aa757611aa7611eac565b1a60f81b828281518110611abd57611abd611eac565b60200101906001600160f81b031916908160001a90535060049490941c93611ae481611e64565b9050611a76565b5083156117205760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108c2565b80356001600160a01b0381168114611b5157600080fd5b919050565b600060208284031215611b6857600080fd5b61172082611b3a565b600060208284031215611b8357600080fd5b5035919050565b60008060408385031215611b9d57600080fd5b82359150611bad60208401611b3a565b90509250929050565b600060208284031215611bc857600080fd5b81356001600160e01b03198116811461172057600080fd5b600060208284031215611bf257600080fd5b5051919050565b600080600080600060808688031215611c1157600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff80821115611c3e57600080fd5b818801915088601f830112611c5257600080fd5b813581811115611c6157600080fd5b8960208260051b8501011115611c7657600080fd5b9699959850939650602001949392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611cc1816017850160208801611e34565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611cf2816028840160208801611e34565b01602801949350505050565b6020815260008251806020840152611d1d816040850160208701611e34565b601f01601f19169190910160400192915050565b60208082526013908201527222bc31b2b2b21026b0bc10313c9036b4b73a1760691b604082015260600190565b60208082526015908201527422bc31b2b2b239903a37ba30b61039bab838363c9760591b604082015260600190565b60208082526010908201526f26bab9ba1031329037b832b930ba37b960811b604082015260600190565b60208082526015908201527424b731b7b93932b1ba1032ba341030b6b7bab73a1760591b604082015260600190565b60008219821115611df957611df9611e96565b500190565b6000816000190483118215151615611e1857611e18611e96565b500290565b600082821015611e2f57611e2f611e96565b500390565b60005b83811015611e4f578181015183820152602001611e37565b83811115611e5e576000848401525b50505050565b600081611e7357611e73611e96565b506000190190565b6000600019821415611e8f57611e8f611e96565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe523a704056dcd17bcf83bed8b68c59416dac1119be77755efe3bde0a64e46e0ca26469706673582212203dae4af4c48cdf5ff9fa04c13bcf26bed844cf93c2835ccaaa62cfb58b3b838e64736f6c63430008060033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000005331fc7d77bfbca3a2875babddf6a2329bd9aefb

-----Decoded View---------------
Arg [0] : token_ (address): 0x5331fc7d77bfBCa3A2875BABDdf6A2329BD9AEFB

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005331fc7d77bfbca3a2875babddf6a2329bd9aefb


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.