ETH Price: $2,634.06 (-1.38%)
Gas: 1 Gwei

Token

REMIX! Mutants (REMIX 2)
 

Overview

Max Total Supply

0 REMIX 2

Holders

152

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
6 REMIX 2
0x4932454b53f194ccd92ce913c22c472cd57b31d6
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
RemixMutants

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 19 : AccessControl.sol
// SPDX-License-Identifier: MIT

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, _msgSender());
        _;
    }

    /**
     * @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 override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @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 {
        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 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 granted `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}.
     * ====
     */
    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);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 2 of 19 : IAccessControl.sol
// SPDX-License-Identifier: MIT

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 3 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 19 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 7 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 9 of 19 : Context.sol
// SPDX-License-Identifier: MIT

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 10 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

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 11 of 19 : MerkleProof.sol
// SPDX-License-Identifier: MIT

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.
 */
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) {
        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 = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

File 12 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

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 13 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

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);
}

File 14 of 19 : RemixMutants.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

/**
 * @title RemixMutants
 * @dev A gas-efficient ERC721 for the REMIX Mutants
 * @note Loosely based on Nuclear nerds ERC721 contract by @nftchance & @masonnft
 */

import "./access/AdminControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "lib/ERC721Optimized/tokens/ERC721OffChainEnumerable.sol";

contract RemixMutants is ERC721OffChainEnumerable, Pausable, ReentrancyGuard, AdminControl, Ownable {
  using Strings for uint256;

  uint256 public MAX_SUPPLY = 300;

  // ========== Immutable Variables ==========

  /// @notice Remix Contract Address
  address payable public immutable REMIX_CONTRACT_ADDRESS;
  /// @notice An address to withdraw balance to
  address payable public immutable PAYABLE_ADDRESS_1;
  /// @notice An address to send donations
  address payable public immutable DONATION_ADDRESS;

  // ========== Mutable Variables ==========

  string public baseURI;

  // Mint Windows
  enum MintWindowType {
    STAGE_1,
    STAGE_2,
    STAGE_3,
    STAGE_4,
    STAGE_5,
    ANY
  }

  mapping(MintWindowType => uint256) public stageStartTimes;

  mapping(address => uint256) public numberOfTokensMintedInAllowlistByAddress;

  bytes32 public allowlistMerkleTreeRoot;
  uint8 public allowlistWalletLimit = 1;
  uint256 public allowlistMintCostETH = 0;

  uint256 public generalMintCostETH = 0.01 ether;

  // Proxies
  mapping(address => bool) public projectProxy;

  // ========== Constructor ==========

  constructor(
    address payable _REMIX_CONTRACT_ADDRESS,
    address payable _DONATION_ADDRESS,
    address _payableAddress
  ) ERC721("REMIX! Mutants", "REMIX 2")
  {
    baseURI = "https://storageapi.fleek.co/apedao-bucket/remix-mutants/";
    REMIX_CONTRACT_ADDRESS = _REMIX_CONTRACT_ADDRESS;
    DONATION_ADDRESS = _DONATION_ADDRESS;

    PAYABLE_ADDRESS_1 = payable(_payableAddress);

    // Start with the current mint window as gold and pause sale
    _pause();
  }

  // ========== Minting ==========

  function mint(uint256 _quantity) public payable whenNotPaused nonReentrant {
    require(_quantity > 0, "Quantity must be greater than 0");
    require(isAllowlistStage() == false, "Allowlist is required for this mint window");
    require(hasRemix(), "You must be a Remix holder to mint");

    uint256 mintCost = calcluateMintCost(_quantity);

    internalMint(_msgSender(), _quantity);

    if (msg.value > mintCost) {
      DONATION_ADDRESS.call{value: msg.value - mintCost}("");
    }
  }

  /**
    * @notice Mints a token for the given address, if the address is on a allowlist.
   */
  function mintAllowlist(uint256 _quantity, MintWindowType stage, bytes32[] calldata proof) public payable whenNotPaused nonReentrant {
    require(_quantity > 0, "Quantity must be greater than 0");
    require(isAllowlistStage() == true, "Allowlist is not required for this mint window");
    require(block.timestamp >= stageStartTimes[stage], "Stage is not valid");

    string memory payload = string(abi.encodePacked(_msgSender()));
    require(_verify(_leaf(uint256(stage), payload), proof), "Invalid Merkle Tree proof supplied.");

    // Check Wallet Limit
    require(numberOfTokensMintedInAllowlistByAddress[msg.sender] + _quantity <= allowlistWalletLimit, "You have reached your wallet limit");

    uint256 mintCost = calcluateMintCost(_quantity);

    internalMint(_msgSender(), _quantity);

    if (msg.value > mintCost) {
      DONATION_ADDRESS.call{value: msg.value - mintCost}("");
    }

    numberOfTokensMintedInAllowlistByAddress[_msgSender()] += _quantity;
  }

  function calcluateMintCost(uint256 _quantity) internal view returns (uint256){
    uint256 mintPrice;

    if(isAllowlistStage()) {
      mintPrice = allowlistMintCostETH;
    } else {
      mintPrice = generalMintCostETH;
    }

    uint256 mintCost = mintPrice * _quantity;

    require(msg.value >= mintCost, "Insufficient ETH for minting");

    return mintCost;
  }

  function ownerMint(address _to) public onlyAdmin {
    internalMint(_to, 1);
  }

  function internalMint(address _to, uint256 _quantity) internal {
    uint256 totalSupply = _owners.length;
    require(totalSupply + _quantity <= MAX_SUPPLY, "Exceeds max supply.");

    for(uint i = 1; i <= _quantity; i++) {
        _mint(_to, totalSupply + i);
    }
  }

  function hasRemix() internal view returns (bool) {
    IERC721 remixContract = IERC721(REMIX_CONTRACT_ADDRESS);
    uint256 remixBalance = remixContract.balanceOf(msg.sender);

    return remixBalance > 0;
  }

  // @dev Any stage before the ANY stage is an allowlist stage
  function isAllowlistStage() internal view returns (bool) {
    return block.timestamp < stageStartTimes[MintWindowType.ANY];
  }

  // ========== Public Methods ==========

  function isRemixHolderRequired() public view returns (bool) {
    return !isAllowlistStage();
  }

  function getMintCostETH() public view returns (uint256) {
    if(isAllowlistStage()) {
      return allowlistMintCostETH;
    } else {
      return generalMintCostETH;
    }
  }

  function getWalletLimit() public view returns (uint16) {
    if(isAllowlistStage()) {
      return allowlistWalletLimit;
    } else {
      return 0;
    }
  }

  // ========== Admin ==========

  function setBaseURI(string memory _baseURI) public onlyAdmin {
    baseURI = _baseURI;
  }

  function setStageStartTimes(uint256[] calldata startTimes) public onlyAdmin {
    require(startTimes.length == 6, "Must supply 6 stage start times");
    require(startTimes[1] > startTimes[0], "Stage 2 must start after Stage 1");
    require(startTimes[2] > startTimes[1], "Stage 3 must start after Stage 2");
    require(startTimes[3] > startTimes[2], "Stage 4 must start after Stage 3");
    require(startTimes[4] > startTimes[3], "Stage 5 must start after Stage 4");
    require(startTimes[5] > startTimes[4], "Any Stage must start after Stage 5");

    stageStartTimes[MintWindowType.STAGE_1] = startTimes[0];
    stageStartTimes[MintWindowType.STAGE_2] = startTimes[1];
    stageStartTimes[MintWindowType.STAGE_3] = startTimes[2];
    stageStartTimes[MintWindowType.STAGE_4] = startTimes[3];
    stageStartTimes[MintWindowType.STAGE_5] = startTimes[4];
    stageStartTimes[MintWindowType.ANY] = startTimes[5];
  }

  function setAllowlistMintCostETH(uint256 _mintCost) public onlyAdmin {
    allowlistMintCostETH = _mintCost;
  }

  function setGeneralMintCostETH(uint256 _mintCost) public onlyAdmin {
    generalMintCostETH = _mintCost;
  }

  function setAllowlistMerkleTreeRoot(bytes32 _root) public onlyAdmin {
    allowlistMerkleTreeRoot = _root;
  }

  function withdraw() public onlyAdmin {
    PAYABLE_ADDRESS_1.call{value: address(this).balance}("");
  }

  function pause() public onlyAdmin {
    _pause();
  }

  function unpause() public onlyAdmin {
    _unpause();
  }

  function flipProxyState(address proxyAddress) public onlyAdmin {
    projectProxy[proxyAddress] = !projectProxy[proxyAddress];
  }

  // ========== MerkleTree Helpers ==========

  function _leaf(uint list, string memory payload) internal pure returns (bytes32) {
      return keccak256(abi.encodePacked(payload, list));
  }

  function _verify(bytes32 leaf, bytes32[] memory proof) internal view returns (bool) {
      return MerkleProof.verify(proof, allowlistMerkleTreeRoot, leaf);
  }

  // ============ Overrides ========

  function supportsInterface(bytes4 interfaceId) public view override(ERC721, AdminControl) returns (bool) {
    return super.supportsInterface(interfaceId);
  }

  function _beforeTokenTransfer(address from, address to, uint256 id) internal override(ERC721OffChainEnumerable) {
    super._beforeTokenTransfer(from, to, id);
  }

  function _mint(address account, uint256 id) internal override(ERC721) {
    super._mint(account, id);
  }

  function burn(uint256 tokenId) public {
    require(_isApprovedOrOwner(_msgSender(), tokenId), "Not approved to burn.");
    _burn(tokenId);
  }

  function _burn(uint256 id) internal override(ERC721) {
    super._burn(id);
  }

  function isApprovedForAll(address _owner, address operator) public view override returns (bool) {
    if(projectProxy[operator]) return true;
    return super.isApprovedForAll(_owner, operator);
  }

  function tokenURI(uint256 _tokenId) public view override returns (string memory) {
    require(_tokenId > 0 && _tokenId <= MAX_SUPPLY, "URI requested for invalid token");
    return
      bytes(baseURI).length > 0
        ? string(abi.encodePacked(baseURI, _tokenId.toString()))
        : baseURI;
  }
}

File 15 of 19 : AdminControl.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./IAdminControl.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Context.sol";

abstract contract AdminControl is AccessControl {

  bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

  constructor() {
    _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
    _setupRole(ADMIN_ROLE, _msgSender());
  }

  // ========== Modifiers ==========

  modifier onlyAdmin() {
    require(hasRole(ADMIN_ROLE, _msgSender()), "Caller is not an admin");
    _;
  }

  /**
  * @dev See {IERC165-supportsInterface}.
  */
  function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
    return interfaceId == type(IAdminControl).interfaceId || super.supportsInterface(interfaceId);
  }
}

File 16 of 19 : IAdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AdminControl declared to support ERC165 detection.
 */
interface IAdminControl {

}

File 17 of 19 : Address.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;

library Address {
    function isContract(address account) internal view returns (bool) {
        uint size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

File 18 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./Address.sol";

abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;
    
    string private _name;
    string private _symbol;

    // Mapping from token ID to owner address
    address[] internal _owners;

    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) 
        public 
        view 
        virtual 
        override 
        returns (uint) 
    {
        require(owner != address(0), "ERC721: balance query for the zero address");

        uint count;
        for( uint i; i < _owners.length; ++i ){
          if( owner == _owners[i] )
            ++count;
        }
        return count;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        address owner = _owners[tokenId - 1];
        require(
            owner != address(0),
            "ERC721: owner query for nonexistent token"
        );
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        require(
            _exists(tokenId),
            "ERC721: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return (tokenId - 1) < _owners.length && _owners[tokenId - 1] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId)
        internal
        view
        virtual
        returns (bool)
    {
        require(
            _exists(tokenId),
            "ERC721: operator query for nonexistent token"
        );
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId - 1] = address(0);

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(
            ERC721.ownerOf(tokenId) == from,
            "ERC721: transfer of token that is not own"
        );
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId - 1] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try
                IERC721Receiver(to).onERC721Received(
                    _msgSender(),
                    from,
                    tokenId,
                    _data
                )
            returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert(
                        "ERC721: transfer to non ERC721Receiver implementer"
                    );
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 19 of 19 : ERC721OffChainEnumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "./ERC721.sol";

/**
 * @dev This adds enumerability of all the token ids in the contract as well as all token ids owned by each
 * account but rips out the core of the gas-wasting processing that comes from OpenZeppelin.
 */
abstract contract ERC721OffChainEnumerable is ERC721 {
    uint256 numBurned = 0;

    /**
     * @dev Similiar to {IERC721Enumerable-totalSupply}.
     */
    function totalTokens() public view virtual returns (uint256) {
        return _owners.length - numBurned;
    }

    /**
     * @dev Similar to {IERC721Enumerable-tokenByIndex}.
     */

    function getTokenByIndex(uint256 index) public view virtual returns (uint256) {
        require(index < totalTokens(), "ERC721OffChainEnumerable: global index out of bounds");
        uint256 count;

        // When a token is burned, the index of all tokens above that index
        // should be shifted by 1 to the left. Since we do not pop entries of _owners, we need
        // to add back the missing shift.
        for(uint i = 0; i < _owners.length; i++ ){
            if(_owners[i] == address(0)) count += 1;
            if(int(i) - int(count) == int(index)) return uint256(i) + 1;
        }
        require(false, "ERC721OffChainEnumerable: index not found");
    }

    /**
     * @dev Similiar to {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function getTokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256 tokenId) {
        require(index < balanceOf(owner), "ERC721OffChainEnumerable: owner index out of bounds");

        uint count;
        for(uint i; i < _owners.length; i++){
            if(owner == _owners[i]){
                if(count == index) return i + 1;
                else count++;
            }
        }

        revert("ERC721OffChainEnumerable: owner index out of bounds");
    }

    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        if( to == address(0) ){
            numBurned++;
        }

        super._beforeTokenTransfer(from, to, amount);
    }
}

Settings
{
  "evmVersion": "london",
  "libraries": {
    "contracts/RemixMutants.sol:RemixMutants": {
      "ApeDaoRemix": "0xfb61bd914d4cd5509ecbd4b16a0f96349e52db3d"
    }
  },
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_REMIX_CONTRACT_ADDRESS","type":"address"},{"internalType":"address payable","name":"_DONATION_ADDRESS","type":"address"},{"internalType":"address","name":"_payableAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DONATION_ADDRESS","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAYABLE_ADDRESS_1","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REMIX_CONTRACT_ADDRESS","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistMerkleTreeRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistMintCostETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistWalletLimit","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"flipProxyState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"generalMintCostETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintCostETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWalletLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRemixHolderRequired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"enum RemixMutants.MintWindowType","name":"stage","type":"uint8"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintAllowlist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numberOfTokensMintedInAllowlistByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"projectProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setAllowlistMerkleTreeRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintCost","type":"uint256"}],"name":"setAllowlistMintCostETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintCost","type":"uint256"}],"name":"setGeneralMintCostETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"startTimes","type":"uint256[]"}],"name":"setStageStartTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum RemixMutants.MintWindowType","name":"","type":"uint8"}],"name":"stageStartTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040526000600581905561012c600a55600f805460ff19166001179055601055662386f26fc100006011553480156200003957600080fd5b5060405162004154380380620041548339810160408190526200005c91620003dd565b604080518082018252600e81526d52454d495821204d7574616e747360901b6020808301918252835180850190945260078452662922a6a4ac101960c91b908401528151919291620000b1916000916200031e565b508051620000c79060019060208401906200031e565b50506006805460ff19169055506001600755620000e66000336200017a565b620001127fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775336200017a565b6200011d336200018a565b6040518060600160405280603881526020016200411c6038913980516200014d91600b916020909101906200031e565b506001600160a01b0380841660805282811660c052811660a05262000171620001dc565b5050506200046e565b6200018682826200027a565b5050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff1615620002275760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200025d3390565b6040516001600160a01b03909116815260200160405180910390a1565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16620001865760008281526008602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002da3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200032c9062000431565b90600052602060002090601f0160209004810192826200035057600085556200039b565b82601f106200036b57805160ff19168380011785556200039b565b828001600101855582156200039b579182015b828111156200039b5782518255916020019190600101906200037e565b50620003a9929150620003ad565b5090565b5b80821115620003a95760008155600101620003ae565b6001600160a01b0381168114620003da57600080fd5b50565b600080600060608486031215620003f357600080fd5b83516200040081620003c4565b60208501519093506200041381620003c4565b60408501519092506200042681620003c4565b809150509250925092565b600181811c908216806200044657607f821691505b602082108114156200046857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c051613c62620004ba60003960008181610a11015281816115f1015261233501526000818161089a0152610e2e01526000818161067c0152612a450152613c626000f3fe6080604052600436106103505760003560e01c80636c0360eb116101c6578063ac615f70116100f7578063e705224711610095578063f3b532471161006f578063f3b53247146109bf578063f73c814b146109df578063f8e726d1146109ff578063f9a2cf9e14610a3357600080fd5b8063e705224714610952578063e985e9c51461097f578063f2fde38b1461099f57600080fd5b8063b88d4fde116100d1578063b88d4fde146108dc578063bc5c6db2146108fc578063c87b56dd14610912578063d547741f1461093257600080fd5b8063ac615f7014610868578063b5f26dcf14610888578063b839d51d146108bc57600080fd5b80638456cb591161016457806395d89b411161013e57806395d89b411461080b578063a0712d6814610820578063a217fddf14610833578063a22cb4651461084857600080fd5b80638456cb59146107b85780638da5cb5b146107cd57806391d14854146107eb57600080fd5b806375b238fc116101a057806375b238fc146107285780637e1c0c091461074a57806382779df21461075f57806382bc60f61461078c57600080fd5b80636c0360eb146106de57806370a08231146106f3578063715018a61461071357600080fd5b80633ccfd60b116102a057806355c1cddd1161023e5780635c975abb116102185780635c975abb146106525780636113494c1461066a5780636352211e1461069e578063644b7a43146106be57600080fd5b806355c1cddd146105ec57806355f804b3146106025780635bab26e21461062257600080fd5b806342842e0e1161027a57806342842e0e1461056f57806342966c681461058f57806342d80362146105af578063517e511a146105c457600080fd5b80633ccfd60b146105255780633d7f95571461053a5780633f4ba83a1461055a57600080fd5b806323b872dd1161030d5780632f2ff15d116102e75780632f2ff15d146104ba57806332cb6b0c146104da57806336568abe146104f057806337736ce81461051057600080fd5b806323b872dd1461044a578063248a9ca31461046a57806329322e461461049a57600080fd5b806301ffc9a71461035557806306fdde031461038a578063081812fc146103ac578063095ea7b3146103e45780631e3bcc8e1461040657806322c82ec814610426575b600080fd5b34801561036157600080fd5b50610375610370366004613348565b610a46565b60405190151581526020015b60405180910390f35b34801561039657600080fd5b5061039f610a57565b60405161038191906133bd565b3480156103b857600080fd5b506103cc6103c73660046133d0565b610ae9565b6040516001600160a01b039091168152602001610381565b3480156103f057600080fd5b506104046103ff366004613405565b610b76565b005b34801561041257600080fd5b5061040461042136600461342f565b610c8c565b34801561043257600080fd5b5061043c60105481565b604051908152602001610381565b34801561045657600080fd5b5061040461046536600461344a565b610cce565b34801561047657600080fd5b5061043c6104853660046133d0565b60009081526008602052604090206001015490565b3480156104a657600080fd5b506104046104b53660046133d0565b610d00565b3480156104c657600080fd5b506104046104d5366004613486565b610d39565b3480156104e657600080fd5b5061043c600a5481565b3480156104fc57600080fd5b5061040461050b366004613486565b610d5f565b34801561051c57600080fd5b50610375610ddd565b34801561053157600080fd5b50610404610ded565b34801561054657600080fd5b506104046105553660046133d0565b610e8a565b34801561056657600080fd5b50610404610ec3565b34801561057b57600080fd5b5061040461058a36600461344a565b610f01565b34801561059b57600080fd5b506104046105aa3660046133d0565b610f1c565b3480156105bb57600080fd5b5061043c610f72565b3480156105d057600080fd5b506105d9610f8f565b60405161ffff9091168152602001610381565b3480156105f857600080fd5b5061043c600e5481565b34801561060e57600080fd5b5061040461061d36600461353e565b610fae565b34801561062e57600080fd5b5061037561063d36600461342f565b60126020526000908152604090205460ff1681565b34801561065e57600080fd5b5060065460ff16610375565b34801561067657600080fd5b506103cc7f000000000000000000000000000000000000000000000000000000000000000081565b3480156106aa57600080fd5b506103cc6106b93660046133d0565b610ff5565b3480156106ca57600080fd5b5061043c6106d93660046133d0565b61108b565b3480156106ea57600080fd5b5061039f6111ec565b3480156106ff57600080fd5b5061043c61070e36600461342f565b61127a565b34801561071f57600080fd5b50610404611348565b34801561073457600080fd5b5061043c600080516020613c0d83398151915281565b34801561075657600080fd5b5061043c6113ac565b34801561076b57600080fd5b5061043c61077a36600461342f565b600d6020526000908152604090205481565b34801561079857600080fd5b50600f546107a69060ff1681565b60405160ff9091168152602001610381565b3480156107c457600080fd5b506104046113c3565b3480156107d957600080fd5b506009546001600160a01b03166103cc565b3480156107f757600080fd5b50610375610806366004613486565b6113ff565b34801561081757600080fd5b5061039f61142a565b61040461082e3660046133d0565b611439565b34801561083f57600080fd5b5061043c600081565b34801561085457600080fd5b50610404610863366004613587565b611669565b34801561087457600080fd5b5061043c610883366004613405565b61172e565b34801561089457600080fd5b506103cc7f000000000000000000000000000000000000000000000000000000000000000081565b3480156108c857600080fd5b506104046108d73660046133d0565b6117ec565b3480156108e857600080fd5b506104046108f73660046135c3565b611825565b34801561090857600080fd5b5061043c60115481565b34801561091e57600080fd5b5061039f61092d3660046133d0565b61185d565b34801561093e57600080fd5b5061040461094d366004613486565b611994565b34801561095e57600080fd5b5061043c61096d36600461364e565b600c6020526000908152604090205481565b34801561098b57600080fd5b5061037561099a366004613669565b6119ba565b3480156109ab57600080fd5b506104046109ba36600461342f565b611a14565b3480156109cb57600080fd5b506104046109da3660046136df565b611adc565b3480156109eb57600080fd5b506104046109fa36600461342f565b611fa3565b348015610a0b57600080fd5b506103cc7f000000000000000000000000000000000000000000000000000000000000000081565b610404610a41366004613721565b612000565b6000610a51826123d5565b92915050565b606060008054610a669061377b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a929061377b565b8015610adf5780601f10610ab457610100808354040283529160200191610adf565b820191906000526020600020905b815481529060010190602001808311610ac257829003601f168201915b5050505050905090565b6000610af4826123f2565b610b5a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610b8182610ff5565b9050806001600160a01b0316836001600160a01b03161415610bef5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b51565b336001600160a01b0382161480610c0b5750610c0b81336119ba565b610c7d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b51565b610c878383612447565b505050565b610ca4600080516020613c0d833981519152336113ff565b610cc05760405162461bcd60e51b8152600401610b51906137b0565b610ccb8160016124b5565b50565b610cd9335b82612538565b610cf55760405162461bcd60e51b8152600401610b51906137e0565b610c878383836125fa565b610d18600080516020613c0d833981519152336113ff565b610d345760405162461bcd60e51b8152600401610b51906137b0565b601155565b600082815260086020526040902060010154610d558133612765565b610c8783836127c9565b6001600160a01b0381163314610dcf5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b51565b610dd9828261284f565b5050565b6000610de76128b6565b15905090565b610e05600080516020613c0d833981519152336113ff565b610e215760405162461bcd60e51b8152600401610b51906137b0565b6040516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016904790600081818185875af1925050503d8060008114610c87576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b610ea2600080516020613c0d833981519152336113ff565b610ebe5760405162461bcd60e51b8152600401610b51906137b0565b601055565b610edb600080516020613c0d833981519152336113ff565b610ef75760405162461bcd60e51b8152600401610b51906137b0565b610eff6128e7565b565b610c8783838360405180602001604052806000815250611825565b610f2533610cd3565b610f695760405162461bcd60e51b81526020600482015260156024820152742737ba1030b8383937bb32b2103a3790313ab9371760591b6044820152606401610b51565b610ccb8161297a565b6000610f7c6128b6565b15610f88575060105490565b5060115490565b6000610f996128b6565b15610fa85750600f5460ff1690565b50600090565b610fc6600080516020613c0d833981519152336113ff565b610fe25760405162461bcd60e51b8152600401610b51906137b0565b8051610dd990600b906020840190613299565b6000806002611005600185613847565b815481106110155761101561385e565b6000918252602090912001546001600160a01b0316905080610a515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b51565b60006110956113ac565b82106111005760405162461bcd60e51b815260206004820152603460248201527f4552433732314f6666436861696e456e756d657261626c653a20676c6f62616c60448201527320696e646578206f7574206f6620626f756e647360601b6064820152608401610b51565b6000805b60025481101561118b5760006001600160a01b03166002828154811061112c5761112c61385e565b6000918252602090912001546001600160a01b0316141561115557611152600183613874565b91505b83611160838361388c565b141561117957611171816001613874565b949350505050565b80611183816138cb565b915050611104565b5060405162461bcd60e51b815260206004820152602960248201527f4552433732314f6666436861696e456e756d657261626c653a20696e646578206044820152681b9bdd08199bdd5b9960ba1b6064820152608401610b51565b50919050565b600b80546111f99061377b565b80601f01602080910402602001604051908101604052809291908181526020018280546112259061377b565b80156112725780601f1061124757610100808354040283529160200191611272565b820191906000526020600020905b81548152906001019060200180831161125557829003601f168201915b505050505081565b60006001600160a01b0382166112e55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b51565b6000805b60025481101561134157600281815481106113065761130661385e565b6000918252602090912001546001600160a01b03858116911614156113315761132e826138cb565b91505b61133a816138cb565b90506112e9565b5092915050565b6009546001600160a01b031633146113a25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b51565b610eff6000612983565b6005546002546000916113be91613847565b905090565b6113db600080516020613c0d833981519152336113ff565b6113f75760405162461bcd60e51b8152600401610b51906137b0565b610eff6129d5565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610a669061377b565b60065460ff161561145c5760405162461bcd60e51b8152600401610b51906138e6565b600260075414156114af5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b51565b6002600755806115015760405162461bcd60e51b815260206004820152601f60248201527f5175616e74697479206d7573742062652067726561746572207468616e2030006044820152606401610b51565b6115096128b6565b156115695760405162461bcd60e51b815260206004820152602a60248201527f416c6c6f776c69737420697320726571756972656420666f722074686973206d604482015269696e742077696e646f7760b01b6064820152608401610b51565b611571612a2d565b6115c85760405162461bcd60e51b815260206004820152602260248201527f596f75206d75737420626520612052656d697820686f6c64657220746f206d696044820152611b9d60f21b6064820152608401610b51565b60006115d382612ad4565b90506115df33836124b5565b80341115611660576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661161b8234613847565b604051600081818185875af1925050503d8060008114611657576040519150601f19603f3d011682016040523d82523d6000602084013e61165c565b606091505b5050505b50506001600755565b6001600160a01b0382163314156116c25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b51565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006117398361127a565b82106117575760405162461bcd60e51b8152600401610b5190613910565b6000805b6002548110156117d357600281815481106117785761177861385e565b6000918252602090912001546001600160a01b03868116911614156117c157838214156117b3576117aa816001613874565b92505050610a51565b816117bd816138cb565b9250505b806117cb816138cb565b91505061175b565b5060405162461bcd60e51b8152600401610b5190613910565b611804600080516020613c0d833981519152336113ff565b6118205760405162461bcd60e51b8152600401610b51906137b0565b600e55565b61182f3383612538565b61184b5760405162461bcd60e51b8152600401610b51906137e0565b61185784848484612b50565b50505050565b60606000821180156118715750600a548211155b6118bd5760405162461bcd60e51b815260206004820152601f60248201527f5552492072657175657374656420666f7220696e76616c696420746f6b656e006044820152606401610b51565b6000600b80546118cc9061377b565b90501161196357600b80546118e09061377b565b80601f016020809104026020016040519081016040528092919081815260200182805461190c9061377b565b80156119595780601f1061192e57610100808354040283529160200191611959565b820191906000526020600020905b81548152906001019060200180831161193c57829003601f168201915b5050505050610a51565b600b61196e83612b83565b60405160200161197f92919061397f565b60405160208183030381529060405292915050565b6000828152600860205260409020600101546119b08133612765565b610c87838361284f565b6001600160a01b03811660009081526012602052604081205460ff16156119e357506001610a51565b6001600160a01b0380841660009081526004602090815260408083209386168352929052205460ff165b9392505050565b6009546001600160a01b03163314611a6e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b51565b6001600160a01b038116611ad35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b51565b610ccb81612983565b611af4600080516020613c0d833981519152336113ff565b611b105760405162461bcd60e51b8152600401610b51906137b0565b60068114611b605760405162461bcd60e51b815260206004820152601f60248201527f4d75737420737570706c7920362073746167652073746172742074696d6573006044820152606401610b51565b81816000818110611b7357611b7361385e565b9050602002013582826001818110611b8d57611b8d61385e565b9050602002013511611be15760405162461bcd60e51b815260206004820181905260248201527f53746167652032206d75737420737461727420616674657220537461676520316044820152606401610b51565b81816001818110611bf457611bf461385e565b9050602002013582826002818110611c0e57611c0e61385e565b9050602002013511611c625760405162461bcd60e51b815260206004820181905260248201527f53746167652033206d75737420737461727420616674657220537461676520326044820152606401610b51565b81816002818110611c7557611c7561385e565b9050602002013582826003818110611c8f57611c8f61385e565b9050602002013511611ce35760405162461bcd60e51b815260206004820181905260248201527f53746167652034206d75737420737461727420616674657220537461676520336044820152606401610b51565b81816003818110611cf657611cf661385e565b9050602002013582826004818110611d1057611d1061385e565b9050602002013511611d645760405162461bcd60e51b815260206004820181905260248201527f53746167652035206d75737420737461727420616674657220537461676520346044820152606401610b51565b81816004818110611d7757611d7761385e565b9050602002013582826005818110611d9157611d9161385e565b9050602002013511611df05760405162461bcd60e51b815260206004820152602260248201527f416e79205374616765206d757374207374617274206166746572205374616765604482015261203560f01b6064820152608401610b51565b81816000818110611e0357611e0361385e565b60008052600c60209081520291909101357f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e8555081816001818110611e4a57611e4a61385e565b6001600052600c60209081520291909101357fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c555081816002818110611e9257611e9261385e565b6002600052600c60209081520291909101357f5d6016397a73f5e079297ac5a36fef17b4d9c3831618e63ab105738020ddd720555081816003818110611eda57611eda61385e565b6003600052600c60209081520291909101357fc0da782485e77ae272268ae0a3ff44c1552ecb60b3743924de17a815e0a3cfd7555081816004818110611f2257611f2261385e565b6004600052600c60209081520291909101357f5b84bb9e0f5aa9cc45a8bb66468db5d4816d1e75ff86b5e1f1dd8d144dab8097555081816005818110611f6a57611f6a61385e565b6005600052600c60209081520291909101357f2cd9ebf6ff19cdd7ffcc447d7c7d47b5991f5c7392a04512134e765802361fa655505050565b611fbb600080516020613c0d833981519152336113ff565b611fd75760405162461bcd60e51b8152600401610b51906137b0565b6001600160a01b03166000908152601260205260409020805460ff19811660ff90911615179055565b60065460ff16156120235760405162461bcd60e51b8152600401610b51906138e6565b600260075414156120765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b51565b6002600755836120c85760405162461bcd60e51b815260206004820152601f60248201527f5175616e74697479206d7573742062652067726561746572207468616e2030006044820152606401610b51565b6120d06128b6565b15156001146121385760405162461bcd60e51b815260206004820152602e60248201527f416c6c6f776c697374206973206e6f7420726571756972656420666f7220746860448201526d6973206d696e742077696e646f7760901b6064820152608401610b51565b600c600084600581111561214e5761214e613a26565b600581111561215f5761215f613a26565b8152602001908152602001600020544210156121b25760405162461bcd60e51b815260206004820152601260248201527114dd1859d9481a5cc81b9bdd081d985b1a5960721b6044820152606401610b51565b604080513360601b6bffffffffffffffffffffffff191660208201528151601481830301815260349091019091526122376121fe8560058111156121f8576121f8613a26565b83612c81565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612cb492505050565b61228f5760405162461bcd60e51b815260206004820152602360248201527f496e76616c6964204d65726b6c6520547265652070726f6f6620737570706c6960448201526232b21760e91b6064820152608401610b51565b600f54336000908152600d602052604090205460ff909116906122b3908790613874565b111561230c5760405162461bcd60e51b815260206004820152602260248201527f596f752068617665207265616368656420796f75722077616c6c6574206c696d6044820152611a5d60f21b6064820152608401610b51565b600061231786612ad4565b905061232333876124b5565b803411156123a4576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661235f8234613847565b604051600081818185875af1925050503d806000811461239b576040519150601f19603f3d011682016040523d82523d6000602084013e6123a0565b606091505b5050505b336000908152600d6020526040812080548892906123c3908490613874565b90915550506001600755505050505050565b60006001600160e01b031982161580610a515750610a5182612cc3565b600254600090612403600184613847565b108015610a5157506000600261241a600185613847565b8154811061242a5761242a61385e565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061247c82610ff5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600254600a546124c58383613874565b11156125095760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b6044820152606401610b51565b60015b82811161185757612526846125218385613874565b612ce8565b80612530816138cb565b91505061250c565b6000612543826123f2565b6125a45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b51565b60006125af83610ff5565b9050806001600160a01b0316846001600160a01b031614806125ea5750836001600160a01b03166125df84610ae9565b6001600160a01b0316145b80611171575061117181856119ba565b826001600160a01b031661260d82610ff5565b6001600160a01b0316146126755760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b51565b6001600160a01b0382166126d75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b51565b6126e2838383612cf2565b6126ed600082612447565b8160026126fb600184613847565b8154811061270b5761270b61385e565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b61276f82826113ff565b610dd957612787816001600160a01b03166014612cfd565b612792836020612cfd565b6040516020016127a3929190613a3c565b60408051601f198184030181529082905262461bcd60e51b8252610b51916004016133bd565b6127d382826113ff565b610dd95760008281526008602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561280b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61285982826113ff565b15610dd95760008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6005600052600c6020527f2cd9ebf6ff19cdd7ffcc447d7c7d47b5991f5c7392a04512134e765802361fa654421090565b60065460ff166129305760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b51565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610ccb81612e99565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff16156129f85760405162461bcd60e51b8152600401610b51906138e6565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861295d3390565b6040516370a0823160e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000009082906001600160a01b038316906370a082319060240160206040518083038186803b158015612a9357600080fd5b505afa158015612aa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612acb9190613ab1565b15159392505050565b600080612adf6128b6565b15612aed5750601054612af2565b506011545b6000612afe8483613aca565b905080341015611a0d5760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742045544820666f72206d696e74696e67000000006044820152606401610b51565b612b5b8484846125fa565b612b6784848484612f31565b6118575760405162461bcd60e51b8152600401610b5190613ae9565b606081612ba75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612bd15780612bbb816138cb565b9150612bca9050600a83613b51565b9150612bab565b60008167ffffffffffffffff811115612bec57612bec6134b2565b6040519080825280601f01601f191660200182016040528015612c16576020820181803683370190505b5090505b841561117157612c2b600183613847565b9150612c38600a86613b65565b612c43906030613874565b60f81b818381518110612c5857612c5861385e565b60200101906001600160f81b031916908160001a905350612c7a600a86613b51565b9450612c1a565b60008183604051602001612c96929190613b79565b60405160208183030381529060405280519060200120905092915050565b6000611a0d82600e548561303e565b60006001600160e01b03198216637965db0b60e01b1480610a515750610a51826130ed565b610dd9828261313d565b610c87838383613271565b60606000612d0c836002613aca565b612d17906002613874565b67ffffffffffffffff811115612d2f57612d2f6134b2565b6040519080825280601f01601f191660200182016040528015612d59576020820181803683370190505b509050600360fc1b81600081518110612d7457612d7461385e565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612da357612da361385e565b60200101906001600160f81b031916908160001a9053506000612dc7846002613aca565b612dd2906001613874565b90505b6001811115612e4a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612e0657612e0661385e565b1a60f81b828281518110612e1c57612e1c61385e565b60200101906001600160f81b031916908160001a90535060049490941c93612e4381613b9b565b9050612dd5565b508315611a0d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b51565b6000612ea482610ff5565b9050612eb281600084612cf2565b612ebd600083612447565b60006002612ecc600185613847565b81548110612edc57612edc61385e565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405184928416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b1561303357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f75903390899088908890600401613bb2565b602060405180830381600087803b158015612f8f57600080fd5b505af1925050508015612fbf575060408051601f3d908101601f19168201909252612fbc91810190613bef565b60015b613019573d808015612fed576040519150601f19603f3d011682016040523d82523d6000602084013e612ff2565b606091505b5080516130115760405162461bcd60e51b8152600401610b5190613ae9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611171565b506001949350505050565b600081815b85518110156130e25760008682815181106130605761306061385e565b602002602001015190508083116130a25760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506130cf565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806130da816138cb565b915050613043565b509092149392505050565b60006001600160e01b031982166380ac58cd60e01b148061311e57506001600160e01b03198216635b5e139f60e01b145b80610a5157506301ffc9a760e01b6001600160e01b0319831614610a51565b6001600160a01b0382166131935760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b51565b61319c816123f2565b156131e95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b51565b6131f560008383612cf2565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b038216610c87576005805490600061328f836138cb565b9190505550505050565b8280546132a59061377b565b90600052602060002090601f0160209004810192826132c7576000855561330d565b82601f106132e057805160ff191683800117855561330d565b8280016001018555821561330d579182015b8281111561330d5782518255916020019190600101906132f2565b5061331992915061331d565b5090565b5b80821115613319576000815560010161331e565b6001600160e01b031981168114610ccb57600080fd5b60006020828403121561335a57600080fd5b8135611a0d81613332565b60005b83811015613380578181015183820152602001613368565b838111156118575750506000910152565b600081518084526133a9816020860160208601613365565b601f01601f19169290920160200192915050565b602081526000611a0d6020830184613391565b6000602082840312156133e257600080fd5b5035919050565b80356001600160a01b038116811461340057600080fd5b919050565b6000806040838503121561341857600080fd5b613421836133e9565b946020939093013593505050565b60006020828403121561344157600080fd5b611a0d826133e9565b60008060006060848603121561345f57600080fd5b613468846133e9565b9250613476602085016133e9565b9150604084013590509250925092565b6000806040838503121561349957600080fd5b823591506134a9602084016133e9565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156134e3576134e36134b2565b604051601f8501601f19908116603f0116810190828211818310171561350b5761350b6134b2565b8160405280935085815286868601111561352457600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561355057600080fd5b813567ffffffffffffffff81111561356757600080fd5b8201601f8101841361357857600080fd5b611171848235602084016134c8565b6000806040838503121561359a57600080fd5b6135a3836133e9565b9150602083013580151581146135b857600080fd5b809150509250929050565b600080600080608085870312156135d957600080fd5b6135e2856133e9565b93506135f0602086016133e9565b925060408501359150606085013567ffffffffffffffff81111561361357600080fd5b8501601f8101871361362457600080fd5b613633878235602084016134c8565b91505092959194509250565b80356006811061340057600080fd5b60006020828403121561366057600080fd5b611a0d8261363f565b6000806040838503121561367c57600080fd5b613685836133e9565b91506134a9602084016133e9565b60008083601f8401126136a557600080fd5b50813567ffffffffffffffff8111156136bd57600080fd5b6020830191508360208260051b85010111156136d857600080fd5b9250929050565b600080602083850312156136f257600080fd5b823567ffffffffffffffff81111561370957600080fd5b61371585828601613693565b90969095509350505050565b6000806000806060858703121561373757600080fd5b843593506137476020860161363f565b9250604085013567ffffffffffffffff81111561376357600080fd5b61376f87828801613693565b95989497509550505050565b600181811c9082168061378f57607f821691505b602082108114156111e657634e487b7160e01b600052602260045260246000fd5b60208082526016908201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008282101561385957613859613831565b500390565b634e487b7160e01b600052603260045260246000fd5b6000821982111561388757613887613831565b500190565b60008083128015600160ff1b8501841216156138aa576138aa613831565b6001600160ff1b03840183138116156138c5576138c5613831565b50500390565b60006000198214156138df576138df613831565b5060010190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526033908201527f4552433732314f6666436861696e456e756d657261626c653a206f776e657220604082015272696e646578206f7574206f6620626f756e647360681b606082015260800190565b60008151613975818560208601613365565b9290920192915050565b600080845481600182811c91508083168061399b57607f831692505b60208084108214156139bb57634e487b7160e01b86526022600452602486fd5b8180156139cf57600181146139e057613a0d565b60ff19861689528489019650613a0d565b60008b81526020902060005b86811015613a055781548b8201529085019083016139ec565b505084890196505b505050505050613a1d8185613963565b95945050505050565b634e487b7160e01b600052602160045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613a74816017850160208801613365565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613aa5816028840160208801613365565b01602801949350505050565b600060208284031215613ac357600080fd5b5051919050565b6000816000190483118215151615613ae457613ae4613831565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613b6057613b60613b3b565b500490565b600082613b7457613b74613b3b565b500690565b60008351613b8b818460208801613365565b9190910191825250602001919050565b600081613baa57613baa613831565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613be590830184613391565b9695505050505050565b600060208284031215613c0157600080fd5b8151611a0d8161333256fea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a26469706673582212201e84407f5051a91ace954f5c145d0064b41ba502efa7a3931f315eed688425d964736f6c6343000809003368747470733a2f2f73746f726167656170692e666c65656b2e636f2f61706564616f2d6275636b65742f72656d69782d6d7574616e74732f000000000000000000000000fb61bd914d4cd5509ecbd4b16a0f96349e52db3d00000000000000000000000010e1439455bd2624878b243819e31cfee9eb721c000000000000000000000000bda1e2757f9a8973926120f6977756b2468b79bb

Deployed Bytecode

0x6080604052600436106103505760003560e01c80636c0360eb116101c6578063ac615f70116100f7578063e705224711610095578063f3b532471161006f578063f3b53247146109bf578063f73c814b146109df578063f8e726d1146109ff578063f9a2cf9e14610a3357600080fd5b8063e705224714610952578063e985e9c51461097f578063f2fde38b1461099f57600080fd5b8063b88d4fde116100d1578063b88d4fde146108dc578063bc5c6db2146108fc578063c87b56dd14610912578063d547741f1461093257600080fd5b8063ac615f7014610868578063b5f26dcf14610888578063b839d51d146108bc57600080fd5b80638456cb591161016457806395d89b411161013e57806395d89b411461080b578063a0712d6814610820578063a217fddf14610833578063a22cb4651461084857600080fd5b80638456cb59146107b85780638da5cb5b146107cd57806391d14854146107eb57600080fd5b806375b238fc116101a057806375b238fc146107285780637e1c0c091461074a57806382779df21461075f57806382bc60f61461078c57600080fd5b80636c0360eb146106de57806370a08231146106f3578063715018a61461071357600080fd5b80633ccfd60b116102a057806355c1cddd1161023e5780635c975abb116102185780635c975abb146106525780636113494c1461066a5780636352211e1461069e578063644b7a43146106be57600080fd5b806355c1cddd146105ec57806355f804b3146106025780635bab26e21461062257600080fd5b806342842e0e1161027a57806342842e0e1461056f57806342966c681461058f57806342d80362146105af578063517e511a146105c457600080fd5b80633ccfd60b146105255780633d7f95571461053a5780633f4ba83a1461055a57600080fd5b806323b872dd1161030d5780632f2ff15d116102e75780632f2ff15d146104ba57806332cb6b0c146104da57806336568abe146104f057806337736ce81461051057600080fd5b806323b872dd1461044a578063248a9ca31461046a57806329322e461461049a57600080fd5b806301ffc9a71461035557806306fdde031461038a578063081812fc146103ac578063095ea7b3146103e45780631e3bcc8e1461040657806322c82ec814610426575b600080fd5b34801561036157600080fd5b50610375610370366004613348565b610a46565b60405190151581526020015b60405180910390f35b34801561039657600080fd5b5061039f610a57565b60405161038191906133bd565b3480156103b857600080fd5b506103cc6103c73660046133d0565b610ae9565b6040516001600160a01b039091168152602001610381565b3480156103f057600080fd5b506104046103ff366004613405565b610b76565b005b34801561041257600080fd5b5061040461042136600461342f565b610c8c565b34801561043257600080fd5b5061043c60105481565b604051908152602001610381565b34801561045657600080fd5b5061040461046536600461344a565b610cce565b34801561047657600080fd5b5061043c6104853660046133d0565b60009081526008602052604090206001015490565b3480156104a657600080fd5b506104046104b53660046133d0565b610d00565b3480156104c657600080fd5b506104046104d5366004613486565b610d39565b3480156104e657600080fd5b5061043c600a5481565b3480156104fc57600080fd5b5061040461050b366004613486565b610d5f565b34801561051c57600080fd5b50610375610ddd565b34801561053157600080fd5b50610404610ded565b34801561054657600080fd5b506104046105553660046133d0565b610e8a565b34801561056657600080fd5b50610404610ec3565b34801561057b57600080fd5b5061040461058a36600461344a565b610f01565b34801561059b57600080fd5b506104046105aa3660046133d0565b610f1c565b3480156105bb57600080fd5b5061043c610f72565b3480156105d057600080fd5b506105d9610f8f565b60405161ffff9091168152602001610381565b3480156105f857600080fd5b5061043c600e5481565b34801561060e57600080fd5b5061040461061d36600461353e565b610fae565b34801561062e57600080fd5b5061037561063d36600461342f565b60126020526000908152604090205460ff1681565b34801561065e57600080fd5b5060065460ff16610375565b34801561067657600080fd5b506103cc7f000000000000000000000000fb61bd914d4cd5509ecbd4b16a0f96349e52db3d81565b3480156106aa57600080fd5b506103cc6106b93660046133d0565b610ff5565b3480156106ca57600080fd5b5061043c6106d93660046133d0565b61108b565b3480156106ea57600080fd5b5061039f6111ec565b3480156106ff57600080fd5b5061043c61070e36600461342f565b61127a565b34801561071f57600080fd5b50610404611348565b34801561073457600080fd5b5061043c600080516020613c0d83398151915281565b34801561075657600080fd5b5061043c6113ac565b34801561076b57600080fd5b5061043c61077a36600461342f565b600d6020526000908152604090205481565b34801561079857600080fd5b50600f546107a69060ff1681565b60405160ff9091168152602001610381565b3480156107c457600080fd5b506104046113c3565b3480156107d957600080fd5b506009546001600160a01b03166103cc565b3480156107f757600080fd5b50610375610806366004613486565b6113ff565b34801561081757600080fd5b5061039f61142a565b61040461082e3660046133d0565b611439565b34801561083f57600080fd5b5061043c600081565b34801561085457600080fd5b50610404610863366004613587565b611669565b34801561087457600080fd5b5061043c610883366004613405565b61172e565b34801561089457600080fd5b506103cc7f000000000000000000000000bda1e2757f9a8973926120f6977756b2468b79bb81565b3480156108c857600080fd5b506104046108d73660046133d0565b6117ec565b3480156108e857600080fd5b506104046108f73660046135c3565b611825565b34801561090857600080fd5b5061043c60115481565b34801561091e57600080fd5b5061039f61092d3660046133d0565b61185d565b34801561093e57600080fd5b5061040461094d366004613486565b611994565b34801561095e57600080fd5b5061043c61096d36600461364e565b600c6020526000908152604090205481565b34801561098b57600080fd5b5061037561099a366004613669565b6119ba565b3480156109ab57600080fd5b506104046109ba36600461342f565b611a14565b3480156109cb57600080fd5b506104046109da3660046136df565b611adc565b3480156109eb57600080fd5b506104046109fa36600461342f565b611fa3565b348015610a0b57600080fd5b506103cc7f00000000000000000000000010e1439455bd2624878b243819e31cfee9eb721c81565b610404610a41366004613721565b612000565b6000610a51826123d5565b92915050565b606060008054610a669061377b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a929061377b565b8015610adf5780601f10610ab457610100808354040283529160200191610adf565b820191906000526020600020905b815481529060010190602001808311610ac257829003601f168201915b5050505050905090565b6000610af4826123f2565b610b5a5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610b8182610ff5565b9050806001600160a01b0316836001600160a01b03161415610bef5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b51565b336001600160a01b0382161480610c0b5750610c0b81336119ba565b610c7d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b51565b610c878383612447565b505050565b610ca4600080516020613c0d833981519152336113ff565b610cc05760405162461bcd60e51b8152600401610b51906137b0565b610ccb8160016124b5565b50565b610cd9335b82612538565b610cf55760405162461bcd60e51b8152600401610b51906137e0565b610c878383836125fa565b610d18600080516020613c0d833981519152336113ff565b610d345760405162461bcd60e51b8152600401610b51906137b0565b601155565b600082815260086020526040902060010154610d558133612765565b610c8783836127c9565b6001600160a01b0381163314610dcf5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b51565b610dd9828261284f565b5050565b6000610de76128b6565b15905090565b610e05600080516020613c0d833981519152336113ff565b610e215760405162461bcd60e51b8152600401610b51906137b0565b6040516001600160a01b037f000000000000000000000000bda1e2757f9a8973926120f6977756b2468b79bb16904790600081818185875af1925050503d8060008114610c87576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b610ea2600080516020613c0d833981519152336113ff565b610ebe5760405162461bcd60e51b8152600401610b51906137b0565b601055565b610edb600080516020613c0d833981519152336113ff565b610ef75760405162461bcd60e51b8152600401610b51906137b0565b610eff6128e7565b565b610c8783838360405180602001604052806000815250611825565b610f2533610cd3565b610f695760405162461bcd60e51b81526020600482015260156024820152742737ba1030b8383937bb32b2103a3790313ab9371760591b6044820152606401610b51565b610ccb8161297a565b6000610f7c6128b6565b15610f88575060105490565b5060115490565b6000610f996128b6565b15610fa85750600f5460ff1690565b50600090565b610fc6600080516020613c0d833981519152336113ff565b610fe25760405162461bcd60e51b8152600401610b51906137b0565b8051610dd990600b906020840190613299565b6000806002611005600185613847565b815481106110155761101561385e565b6000918252602090912001546001600160a01b0316905080610a515760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b51565b60006110956113ac565b82106111005760405162461bcd60e51b815260206004820152603460248201527f4552433732314f6666436861696e456e756d657261626c653a20676c6f62616c60448201527320696e646578206f7574206f6620626f756e647360601b6064820152608401610b51565b6000805b60025481101561118b5760006001600160a01b03166002828154811061112c5761112c61385e565b6000918252602090912001546001600160a01b0316141561115557611152600183613874565b91505b83611160838361388c565b141561117957611171816001613874565b949350505050565b80611183816138cb565b915050611104565b5060405162461bcd60e51b815260206004820152602960248201527f4552433732314f6666436861696e456e756d657261626c653a20696e646578206044820152681b9bdd08199bdd5b9960ba1b6064820152608401610b51565b50919050565b600b80546111f99061377b565b80601f01602080910402602001604051908101604052809291908181526020018280546112259061377b565b80156112725780601f1061124757610100808354040283529160200191611272565b820191906000526020600020905b81548152906001019060200180831161125557829003601f168201915b505050505081565b60006001600160a01b0382166112e55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b51565b6000805b60025481101561134157600281815481106113065761130661385e565b6000918252602090912001546001600160a01b03858116911614156113315761132e826138cb565b91505b61133a816138cb565b90506112e9565b5092915050565b6009546001600160a01b031633146113a25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b51565b610eff6000612983565b6005546002546000916113be91613847565b905090565b6113db600080516020613c0d833981519152336113ff565b6113f75760405162461bcd60e51b8152600401610b51906137b0565b610eff6129d5565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610a669061377b565b60065460ff161561145c5760405162461bcd60e51b8152600401610b51906138e6565b600260075414156114af5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b51565b6002600755806115015760405162461bcd60e51b815260206004820152601f60248201527f5175616e74697479206d7573742062652067726561746572207468616e2030006044820152606401610b51565b6115096128b6565b156115695760405162461bcd60e51b815260206004820152602a60248201527f416c6c6f776c69737420697320726571756972656420666f722074686973206d604482015269696e742077696e646f7760b01b6064820152608401610b51565b611571612a2d565b6115c85760405162461bcd60e51b815260206004820152602260248201527f596f75206d75737420626520612052656d697820686f6c64657220746f206d696044820152611b9d60f21b6064820152608401610b51565b60006115d382612ad4565b90506115df33836124b5565b80341115611660576001600160a01b037f00000000000000000000000010e1439455bd2624878b243819e31cfee9eb721c1661161b8234613847565b604051600081818185875af1925050503d8060008114611657576040519150601f19603f3d011682016040523d82523d6000602084013e61165c565b606091505b5050505b50506001600755565b6001600160a01b0382163314156116c25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b51565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006117398361127a565b82106117575760405162461bcd60e51b8152600401610b5190613910565b6000805b6002548110156117d357600281815481106117785761177861385e565b6000918252602090912001546001600160a01b03868116911614156117c157838214156117b3576117aa816001613874565b92505050610a51565b816117bd816138cb565b9250505b806117cb816138cb565b91505061175b565b5060405162461bcd60e51b8152600401610b5190613910565b611804600080516020613c0d833981519152336113ff565b6118205760405162461bcd60e51b8152600401610b51906137b0565b600e55565b61182f3383612538565b61184b5760405162461bcd60e51b8152600401610b51906137e0565b61185784848484612b50565b50505050565b60606000821180156118715750600a548211155b6118bd5760405162461bcd60e51b815260206004820152601f60248201527f5552492072657175657374656420666f7220696e76616c696420746f6b656e006044820152606401610b51565b6000600b80546118cc9061377b565b90501161196357600b80546118e09061377b565b80601f016020809104026020016040519081016040528092919081815260200182805461190c9061377b565b80156119595780601f1061192e57610100808354040283529160200191611959565b820191906000526020600020905b81548152906001019060200180831161193c57829003601f168201915b5050505050610a51565b600b61196e83612b83565b60405160200161197f92919061397f565b60405160208183030381529060405292915050565b6000828152600860205260409020600101546119b08133612765565b610c87838361284f565b6001600160a01b03811660009081526012602052604081205460ff16156119e357506001610a51565b6001600160a01b0380841660009081526004602090815260408083209386168352929052205460ff165b9392505050565b6009546001600160a01b03163314611a6e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b51565b6001600160a01b038116611ad35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b51565b610ccb81612983565b611af4600080516020613c0d833981519152336113ff565b611b105760405162461bcd60e51b8152600401610b51906137b0565b60068114611b605760405162461bcd60e51b815260206004820152601f60248201527f4d75737420737570706c7920362073746167652073746172742074696d6573006044820152606401610b51565b81816000818110611b7357611b7361385e565b9050602002013582826001818110611b8d57611b8d61385e565b9050602002013511611be15760405162461bcd60e51b815260206004820181905260248201527f53746167652032206d75737420737461727420616674657220537461676520316044820152606401610b51565b81816001818110611bf457611bf461385e565b9050602002013582826002818110611c0e57611c0e61385e565b9050602002013511611c625760405162461bcd60e51b815260206004820181905260248201527f53746167652033206d75737420737461727420616674657220537461676520326044820152606401610b51565b81816002818110611c7557611c7561385e565b9050602002013582826003818110611c8f57611c8f61385e565b9050602002013511611ce35760405162461bcd60e51b815260206004820181905260248201527f53746167652034206d75737420737461727420616674657220537461676520336044820152606401610b51565b81816003818110611cf657611cf661385e565b9050602002013582826004818110611d1057611d1061385e565b9050602002013511611d645760405162461bcd60e51b815260206004820181905260248201527f53746167652035206d75737420737461727420616674657220537461676520346044820152606401610b51565b81816004818110611d7757611d7761385e565b9050602002013582826005818110611d9157611d9161385e565b9050602002013511611df05760405162461bcd60e51b815260206004820152602260248201527f416e79205374616765206d757374207374617274206166746572205374616765604482015261203560f01b6064820152608401610b51565b81816000818110611e0357611e0361385e565b60008052600c60209081520291909101357f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e8555081816001818110611e4a57611e4a61385e565b6001600052600c60209081520291909101357fd421a5181c571bba3f01190c922c3b2a896fc1d84e86c9f17ac10e67ebef8b5c555081816002818110611e9257611e9261385e565b6002600052600c60209081520291909101357f5d6016397a73f5e079297ac5a36fef17b4d9c3831618e63ab105738020ddd720555081816003818110611eda57611eda61385e565b6003600052600c60209081520291909101357fc0da782485e77ae272268ae0a3ff44c1552ecb60b3743924de17a815e0a3cfd7555081816004818110611f2257611f2261385e565b6004600052600c60209081520291909101357f5b84bb9e0f5aa9cc45a8bb66468db5d4816d1e75ff86b5e1f1dd8d144dab8097555081816005818110611f6a57611f6a61385e565b6005600052600c60209081520291909101357f2cd9ebf6ff19cdd7ffcc447d7c7d47b5991f5c7392a04512134e765802361fa655505050565b611fbb600080516020613c0d833981519152336113ff565b611fd75760405162461bcd60e51b8152600401610b51906137b0565b6001600160a01b03166000908152601260205260409020805460ff19811660ff90911615179055565b60065460ff16156120235760405162461bcd60e51b8152600401610b51906138e6565b600260075414156120765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b51565b6002600755836120c85760405162461bcd60e51b815260206004820152601f60248201527f5175616e74697479206d7573742062652067726561746572207468616e2030006044820152606401610b51565b6120d06128b6565b15156001146121385760405162461bcd60e51b815260206004820152602e60248201527f416c6c6f776c697374206973206e6f7420726571756972656420666f7220746860448201526d6973206d696e742077696e646f7760901b6064820152608401610b51565b600c600084600581111561214e5761214e613a26565b600581111561215f5761215f613a26565b8152602001908152602001600020544210156121b25760405162461bcd60e51b815260206004820152601260248201527114dd1859d9481a5cc81b9bdd081d985b1a5960721b6044820152606401610b51565b604080513360601b6bffffffffffffffffffffffff191660208201528151601481830301815260349091019091526122376121fe8560058111156121f8576121f8613a26565b83612c81565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250612cb492505050565b61228f5760405162461bcd60e51b815260206004820152602360248201527f496e76616c6964204d65726b6c6520547265652070726f6f6620737570706c6960448201526232b21760e91b6064820152608401610b51565b600f54336000908152600d602052604090205460ff909116906122b3908790613874565b111561230c5760405162461bcd60e51b815260206004820152602260248201527f596f752068617665207265616368656420796f75722077616c6c6574206c696d6044820152611a5d60f21b6064820152608401610b51565b600061231786612ad4565b905061232333876124b5565b803411156123a4576001600160a01b037f00000000000000000000000010e1439455bd2624878b243819e31cfee9eb721c1661235f8234613847565b604051600081818185875af1925050503d806000811461239b576040519150601f19603f3d011682016040523d82523d6000602084013e6123a0565b606091505b5050505b336000908152600d6020526040812080548892906123c3908490613874565b90915550506001600755505050505050565b60006001600160e01b031982161580610a515750610a5182612cc3565b600254600090612403600184613847565b108015610a5157506000600261241a600185613847565b8154811061242a5761242a61385e565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061247c82610ff5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600254600a546124c58383613874565b11156125095760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b6044820152606401610b51565b60015b82811161185757612526846125218385613874565b612ce8565b80612530816138cb565b91505061250c565b6000612543826123f2565b6125a45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b51565b60006125af83610ff5565b9050806001600160a01b0316846001600160a01b031614806125ea5750836001600160a01b03166125df84610ae9565b6001600160a01b0316145b80611171575061117181856119ba565b826001600160a01b031661260d82610ff5565b6001600160a01b0316146126755760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b51565b6001600160a01b0382166126d75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b51565b6126e2838383612cf2565b6126ed600082612447565b8160026126fb600184613847565b8154811061270b5761270b61385e565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b61276f82826113ff565b610dd957612787816001600160a01b03166014612cfd565b612792836020612cfd565b6040516020016127a3929190613a3c565b60408051601f198184030181529082905262461bcd60e51b8252610b51916004016133bd565b6127d382826113ff565b610dd95760008281526008602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561280b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61285982826113ff565b15610dd95760008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6005600052600c6020527f2cd9ebf6ff19cdd7ffcc447d7c7d47b5991f5c7392a04512134e765802361fa654421090565b60065460ff166129305760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610b51565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610ccb81612e99565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff16156129f85760405162461bcd60e51b8152600401610b51906138e6565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861295d3390565b6040516370a0823160e01b81523360048201526000907f000000000000000000000000fb61bd914d4cd5509ecbd4b16a0f96349e52db3d9082906001600160a01b038316906370a082319060240160206040518083038186803b158015612a9357600080fd5b505afa158015612aa7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612acb9190613ab1565b15159392505050565b600080612adf6128b6565b15612aed5750601054612af2565b506011545b6000612afe8483613aca565b905080341015611a0d5760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742045544820666f72206d696e74696e67000000006044820152606401610b51565b612b5b8484846125fa565b612b6784848484612f31565b6118575760405162461bcd60e51b8152600401610b5190613ae9565b606081612ba75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612bd15780612bbb816138cb565b9150612bca9050600a83613b51565b9150612bab565b60008167ffffffffffffffff811115612bec57612bec6134b2565b6040519080825280601f01601f191660200182016040528015612c16576020820181803683370190505b5090505b841561117157612c2b600183613847565b9150612c38600a86613b65565b612c43906030613874565b60f81b818381518110612c5857612c5861385e565b60200101906001600160f81b031916908160001a905350612c7a600a86613b51565b9450612c1a565b60008183604051602001612c96929190613b79565b60405160208183030381529060405280519060200120905092915050565b6000611a0d82600e548561303e565b60006001600160e01b03198216637965db0b60e01b1480610a515750610a51826130ed565b610dd9828261313d565b610c87838383613271565b60606000612d0c836002613aca565b612d17906002613874565b67ffffffffffffffff811115612d2f57612d2f6134b2565b6040519080825280601f01601f191660200182016040528015612d59576020820181803683370190505b509050600360fc1b81600081518110612d7457612d7461385e565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612da357612da361385e565b60200101906001600160f81b031916908160001a9053506000612dc7846002613aca565b612dd2906001613874565b90505b6001811115612e4a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612e0657612e0661385e565b1a60f81b828281518110612e1c57612e1c61385e565b60200101906001600160f81b031916908160001a90535060049490941c93612e4381613b9b565b9050612dd5565b508315611a0d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b51565b6000612ea482610ff5565b9050612eb281600084612cf2565b612ebd600083612447565b60006002612ecc600185613847565b81548110612edc57612edc61385e565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405184928416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60006001600160a01b0384163b1561303357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f75903390899088908890600401613bb2565b602060405180830381600087803b158015612f8f57600080fd5b505af1925050508015612fbf575060408051601f3d908101601f19168201909252612fbc91810190613bef565b60015b613019573d808015612fed576040519150601f19603f3d011682016040523d82523d6000602084013e612ff2565b606091505b5080516130115760405162461bcd60e51b8152600401610b5190613ae9565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611171565b506001949350505050565b600081815b85518110156130e25760008682815181106130605761306061385e565b602002602001015190508083116130a25760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506130cf565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806130da816138cb565b915050613043565b509092149392505050565b60006001600160e01b031982166380ac58cd60e01b148061311e57506001600160e01b03198216635b5e139f60e01b145b80610a5157506301ffc9a760e01b6001600160e01b0319831614610a51565b6001600160a01b0382166131935760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b51565b61319c816123f2565b156131e95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b51565b6131f560008383612cf2565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b038216610c87576005805490600061328f836138cb565b9190505550505050565b8280546132a59061377b565b90600052602060002090601f0160209004810192826132c7576000855561330d565b82601f106132e057805160ff191683800117855561330d565b8280016001018555821561330d579182015b8281111561330d5782518255916020019190600101906132f2565b5061331992915061331d565b5090565b5b80821115613319576000815560010161331e565b6001600160e01b031981168114610ccb57600080fd5b60006020828403121561335a57600080fd5b8135611a0d81613332565b60005b83811015613380578181015183820152602001613368565b838111156118575750506000910152565b600081518084526133a9816020860160208601613365565b601f01601f19169290920160200192915050565b602081526000611a0d6020830184613391565b6000602082840312156133e257600080fd5b5035919050565b80356001600160a01b038116811461340057600080fd5b919050565b6000806040838503121561341857600080fd5b613421836133e9565b946020939093013593505050565b60006020828403121561344157600080fd5b611a0d826133e9565b60008060006060848603121561345f57600080fd5b613468846133e9565b9250613476602085016133e9565b9150604084013590509250925092565b6000806040838503121561349957600080fd5b823591506134a9602084016133e9565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156134e3576134e36134b2565b604051601f8501601f19908116603f0116810190828211818310171561350b5761350b6134b2565b8160405280935085815286868601111561352457600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561355057600080fd5b813567ffffffffffffffff81111561356757600080fd5b8201601f8101841361357857600080fd5b611171848235602084016134c8565b6000806040838503121561359a57600080fd5b6135a3836133e9565b9150602083013580151581146135b857600080fd5b809150509250929050565b600080600080608085870312156135d957600080fd5b6135e2856133e9565b93506135f0602086016133e9565b925060408501359150606085013567ffffffffffffffff81111561361357600080fd5b8501601f8101871361362457600080fd5b613633878235602084016134c8565b91505092959194509250565b80356006811061340057600080fd5b60006020828403121561366057600080fd5b611a0d8261363f565b6000806040838503121561367c57600080fd5b613685836133e9565b91506134a9602084016133e9565b60008083601f8401126136a557600080fd5b50813567ffffffffffffffff8111156136bd57600080fd5b6020830191508360208260051b85010111156136d857600080fd5b9250929050565b600080602083850312156136f257600080fd5b823567ffffffffffffffff81111561370957600080fd5b61371585828601613693565b90969095509350505050565b6000806000806060858703121561373757600080fd5b843593506137476020860161363f565b9250604085013567ffffffffffffffff81111561376357600080fd5b61376f87828801613693565b95989497509550505050565b600181811c9082168061378f57607f821691505b602082108114156111e657634e487b7160e01b600052602260045260246000fd5b60208082526016908201527521b0b63632b91034b9903737ba1030b71030b236b4b760511b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008282101561385957613859613831565b500390565b634e487b7160e01b600052603260045260246000fd5b6000821982111561388757613887613831565b500190565b60008083128015600160ff1b8501841216156138aa576138aa613831565b6001600160ff1b03840183138116156138c5576138c5613831565b50500390565b60006000198214156138df576138df613831565b5060010190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526033908201527f4552433732314f6666436861696e456e756d657261626c653a206f776e657220604082015272696e646578206f7574206f6620626f756e647360681b606082015260800190565b60008151613975818560208601613365565b9290920192915050565b600080845481600182811c91508083168061399b57607f831692505b60208084108214156139bb57634e487b7160e01b86526022600452602486fd5b8180156139cf57600181146139e057613a0d565b60ff19861689528489019650613a0d565b60008b81526020902060005b86811015613a055781548b8201529085019083016139ec565b505084890196505b505050505050613a1d8185613963565b95945050505050565b634e487b7160e01b600052602160045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613a74816017850160208801613365565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613aa5816028840160208801613365565b01602801949350505050565b600060208284031215613ac357600080fd5b5051919050565b6000816000190483118215151615613ae457613ae4613831565b500290565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613b6057613b60613b3b565b500490565b600082613b7457613b74613b3b565b500690565b60008351613b8b818460208801613365565b9190910191825250602001919050565b600081613baa57613baa613831565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613be590830184613391565b9695505050505050565b600060208284031215613c0157600080fd5b8151611a0d8161333256fea49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775a26469706673582212201e84407f5051a91ace954f5c145d0064b41ba502efa7a3931f315eed688425d964736f6c63430008090033

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

000000000000000000000000fb61bd914d4cd5509ecbd4b16a0f96349e52db3d00000000000000000000000010e1439455bd2624878b243819e31cfee9eb721c000000000000000000000000bda1e2757f9a8973926120f6977756b2468b79bb

-----Decoded View---------------
Arg [0] : _REMIX_CONTRACT_ADDRESS (address): 0xfb61bD914d4Cd5509ECbd4B16A0F96349e52DB3d
Arg [1] : _DONATION_ADDRESS (address): 0x10E1439455BD2624878b243819E31CfEE9eb721C
Arg [2] : _payableAddress (address): 0xbda1E2757f9A8973926120F6977756B2468B79bb

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000fb61bd914d4cd5509ecbd4b16a0f96349e52db3d
Arg [1] : 00000000000000000000000010e1439455bd2624878b243819e31cfee9eb721c
Arg [2] : 000000000000000000000000bda1e2757f9a8973926120f6977756b2468b79bb


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.