ETH Price: $3,246.92 (+2.58%)
Gas: 2 Gwei

Token

Moon Treasury (MAL_TREASURY)
 

Overview

Max Total Supply

772 MAL_TREASURY

Holders

104

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 MAL_TREASURY
0x932b82e0a81d99fbb5bb272045c4a8ee5da3109e
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:
MoonTreasury

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-03-16
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;


// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
/**
 * @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);
}

// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.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;
}

// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
/**
 * @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);
}

// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.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);
}

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
 * @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;
    }
}

// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
/**
 * @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);
    }
}

// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.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;
    }
}

error ApprovalCallerNotOwnerNorApproved ();

error ApprovalQueryForNonexistentToken ();

error ApproveToCaller ();

error ApprovalToCurrentOwner ();

error BalanceQueryForZeroAddress ();

error MintedQueryForZeroAddress ();

error BurnedQueryForZeroAddress ();

error AuxQueryForZeroAddress ();

error MintToZeroAddress ();

error MintZeroQuantity ();

error OwnerIndexOutOfBounds ();

error OwnerQueryForNonexistentToken ();

error TokenIndexOutOfBounds ();

error TransferCallerNotOwnerNorApproved ();

error TransferFromIncorrectOwner ();

error TransferToNonERC721ReceiverImplementer ();

error TransferToZeroAddress ();

error URIQueryForNonexistentToken ();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) internal _operatorApprovals;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 1;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @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 override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        if (owner == address(0)) revert AuxQueryForZeroAddress();
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr && curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

    /**
     * @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 {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _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 {
        _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 {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex &&
            !_ownerships[tokenId].burned;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @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 {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, prevOwnership.addr);

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

interface IMAL {
  function depositMALFor(address user, uint256 amount) external;
}

interface ISTAKING {
  function balanceOf(address user) external view returns (uint256);
}

contract MoonTreasury is ERC721A {
    using SafeMath for uint256;
    using Strings for uint256;

    // Base URI
    string private _baseUri;

    // Max number of NFTs
    uint256 public constant MAX_SUPPLY = 5000;
    uint256 public constant INITIAL_DROP = 15000 ether;

    uint256 public treasuryPrice;
    mapping(address => bool) whitelisted;
    bool public whitelistSale;

    bool public saleIsActive;
    bool public apeOwnershipRequired;
    bool private metadataFinalised;

    mapping (address => bool) private _isAuthorised;
    address[] public authorisedLog;
    address public contract_owner;

    // Contracts
    IMAL public MAL;
    ISTAKING public STAKING;
    IERC721 public APES;

    event TreasuriesMinted(address indexed mintedBy, uint256 indexed tokensNumber);

    constructor(address _apes, address _staking, address _mal) ERC721A("Moon Treasury", "MAL_TREASURY") {
        APES = IERC721(address(_apes));
        STAKING = ISTAKING(address(_staking));
        MAL = IMAL(address(_mal));
        _isAuthorised[_staking] = true;
        contract_owner = _msgSender();

        _baseUri = "ipfs://QmYmi1MYWRd9Dt1VPTxZyGWHmd7scmi4AprEwevsJcLFAW/moon_treasury.json";
        apeOwnershipRequired = false;
        whitelistSale = true;

        treasuryPrice = 0.3 ether;
        saleIsActive = false;
    }

    modifier onlyAuthorised {
      require(_isAuthorised[_msgSender()], "Not Authorised");
      _;
    }

    modifier onlyOwner {
      require(_msgSender() == contract_owner, "Not contract owner");
      _;
    }

    function addWhitelisted(address[] memory wl_addresses) public onlyOwner{
        for (uint256 i = 0; i < wl_addresses.length; i++){
            whitelisted[wl_addresses[i]] = true;
        }
    }

    function isWhitelisted(address some_address) public view returns(bool){
        return whitelisted[some_address];
    }

    function disableWhitelistSale() public onlyOwner{
        require(whitelistSale, "Whitelist is already disabled");
        whitelistSale = false;
    }

    function authorise(address addressToAuth) public onlyOwner {
      _isAuthorised[addressToAuth] = true;
      authorisedLog.push(addressToAuth);
    }

    function unauthorise(address addressToUnAuth) public onlyOwner {
      _isAuthorised[addressToUnAuth] = false;
    }

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return (ERC721A._operatorApprovals[owner][operator] || _isAuthorised[operator]);
    }

    function owner() public view returns(address){
        return contract_owner;
    }

    function _validateApeOwnership(address user) internal view returns (bool) {
      if (!apeOwnershipRequired) return true;
      if (STAKING.balanceOf(user) > 0) {
        return true;
      }
      return APES.balanceOf(user) > 0;
    }

    function updateSaleStatus(bool is_sale_active) public onlyOwner {
      require(treasuryPrice != 0, "Price is not set");
      saleIsActive = is_sale_active;
    }

    function updateTreasuryPrice(uint256 _newPrice) public onlyOwner {
      require(!saleIsActive, "Pause sale before price update");
      treasuryPrice = _newPrice;
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
      require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
      return _baseUri;
    }

    function updateApeOwnershipRequirement(bool _isOwnershipRequired) public onlyOwner {
      apeOwnershipRequired = _isOwnershipRequired;
    }

    function withdraw() external onlyOwner {
      payable(contract_owner).transfer(address(this).balance);
    }

    function reserveForGiveaway(uint256 tokensToMint) public onlyOwner{
      require(tokensToMint > 0, "Min mint is 1 token");
      require(tokensToMint <= 50, "You can mint max 50 tokens per transaction");
      require(totalSupply().add(tokensToMint) <= MAX_SUPPLY, "Mint more tokens than allowed");

      _safeMint(_msgSender(), tokensToMint);
    }

    function giveaway(address[] memory receivers, uint256[] memory amounts) public onlyOwner{
        require(receivers.length == amounts.length, "Lists not same length");
        for (uint256 i = 0; i < receivers.length; i++){
            _safeMint(receivers[i], amounts[i]);
        }
    }

    function purchaseTreasury(uint256 tokensToMint) public payable {
      require(saleIsActive, "The mint has not started yet");
      require(_validateApeOwnership(_msgSender()), "You do not have any Moon Apes");
      if (whitelistSale){
          require(whitelisted[_msgSender()], "You are not whitelisted");
      }
      require(msg.value == treasuryPrice.mul(tokensToMint), "Wrong ETH value provided");
      require(tokensToMint > 0, "Min mint is 1 token");
      require(tokensToMint <= 50, "You can mint max 50 tokens per transaction");
      require(totalSupply().add(tokensToMint) <= MAX_SUPPLY, "Mint more tokens than allowed");

      _safeMint(_msgSender(), tokensToMint);

      MAL.depositMALFor(_msgSender(), INITIAL_DROP.mul(tokensToMint));

      emit TreasuriesMinted(_msgSender(), tokensToMint);
    }



}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_apes","type":"address"},{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_mal","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"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":"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":true,"internalType":"address","name":"mintedBy","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokensNumber","type":"uint256"}],"name":"TreasuriesMinted","type":"event"},{"inputs":[],"name":"APES","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_DROP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAL","outputs":[{"internalType":"contract IMAL","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STAKING","outputs":[{"internalType":"contract ISTAKING","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"wl_addresses","type":"address[]"}],"name":"addWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"apeOwnershipRequired","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"addressToAuth","type":"address"}],"name":"authorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"authorisedLog","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contract_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableWhitelistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"some_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensToMint","type":"uint256"}],"name":"purchaseTreasury","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokensToMint","type":"uint256"}],"name":"reserveForGiveaway","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"totalSupply","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":[],"name":"treasuryPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addressToUnAuth","type":"address"}],"name":"unauthorise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOwnershipRequired","type":"bool"}],"name":"updateApeOwnershipRequirement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"is_sale_active","type":"bool"}],"name":"updateSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"updateTreasuryPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200260738038062002607833981016040819052620000349162000243565b604080518082018252600d81526c4d6f6f6e20547265617375727960981b60208083019182528351808501909452600c84526b4d414c5f545245415355525960a01b9084015281519192916200008d9160029162000180565b508051620000a390600390602084019062000180565b5060016000908155601180546001600160a01b038089166001600160a01b031992831617909255601080548884169083168117909155600f8054938816939092169290921790558152600c60205260409020805460ff19166001179055506200010b90503390565b600e80546001600160a01b0319166001600160a01b039290921691909117905560408051608081019091526048808252620025bf602083013980516200015a9160089160209091019062000180565b5050600b8054670429d069189e000060095562ffffff1916600117905550620002ca9050565b8280546200018e906200028d565b90600052602060002090601f016020900481019282620001b25760008555620001fd565b82601f10620001cd57805160ff1916838001178555620001fd565b82800160010185558215620001fd579182015b82811115620001fd578251825591602001919060010190620001e0565b506200020b9291506200020f565b5090565b5b808211156200020b576000815560010162000210565b80516001600160a01b03811681146200023e57600080fd5b919050565b6000806000606084860312156200025957600080fd5b620002648462000226565b9250620002746020850162000226565b9150620002846040850162000226565b90509250925092565b600181811c90821680620002a257607f821691505b60208210811415620002c457634e487b7160e01b600052602260045260246000fd5b50919050565b6122e580620002da6000396000f3fe6080604052600436106102255760003560e01c806366e6c8af11610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd14610653578063e985e9c514610673578063eb8d244414610693578063f31121d7146106b2578063f4461fc8146106d257600080fd5b8063a22cb465146105be578063af255acd146105de578063b0ab2cdd146105fe578063b88d4fde14610613578063c82bc61d1461063357600080fd5b80638d51f827116100f25780638d51f8271461052b5780638da5cb5b1461054b578063922fab051461056957806395d89b411461058957806397610f301461059e57600080fd5b806366e6c8af146104ab57806370a08231146104cb5780637bdadbcf146104eb57806380833d781461050b57600080fd5b806331ffd6f1116101b15780633e9c007b116101755780633e9c007b1461041a57806342842e0e1461042d57806347511d8e1461044d5780634c273a881461046d5780636352211e1461048b57600080fd5b806331ffd6f11461037c57806332cb6b0c14610396578063384f58eb146103ac5780633af32abf146103cc5780633ccfd60b1461040557600080fd5b8063095ea7b3116101f8578063095ea7b3146102dd5780630a088949146102ff57806318160ddd1461031f578063227275ef1461033c57806323b872dd1461035c57600080fd5b806301ffc9a71461022a5780630523e1cc1461025f57806306fdde0314610283578063081812fc146102a5575b600080fd5b34801561023657600080fd5b5061024a610245366004611ff6565b6106f2565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b5061027560095481565b604051908152602001610256565b34801561028f57600080fd5b50610298610744565b60405161025691906120ec565b3480156102b157600080fd5b506102c56102c0366004612030565b6107d6565b6040516001600160a01b039091168152602001610256565b3480156102e957600080fd5b506102fd6102f8366004611eba565b61081a565b005b34801561030b57600080fd5b506102fd61031a366004611fdb565b6108a8565b34801561032b57600080fd5b506001546000540360001901610275565b34801561034857600080fd5b506102fd610357366004611ee4565b610940565b34801561036857600080fd5b506102fd610377366004611d94565b6109df565b34801561038857600080fd5b50600b5461024a9060ff1681565b3480156103a257600080fd5b5061027561138881565b3480156103b857600080fd5b50600e546102c5906001600160a01b031681565b3480156103d857600080fd5b5061024a6103e7366004611d46565b6001600160a01b03166000908152600a602052604090205460ff1690565b34801561041157600080fd5b506102fd6109ea565b6102fd610428366004612030565b610a59565b34801561043957600080fd5b506102fd610448366004611d94565b610d6e565b34801561045957600080fd5b506102fd610468366004612030565b610d89565b34801561047957600080fd5b5061027569032d26d12e980b60000081565b34801561049757600080fd5b506102c56104a6366004612030565b610e94565b3480156104b757600080fd5b506102fd6104c6366004611d46565b610ea6565b3480156104d757600080fd5b506102756104e6366004611d46565b610f3f565b3480156104f757600080fd5b50600f546102c5906001600160a01b031681565b34801561051757600080fd5b506102fd610526366004611d46565b610f8e565b34801561053757600080fd5b506102fd610546366004612030565b610fe2565b34801561055757600080fd5b50600e546001600160a01b03166102c5565b34801561057557600080fd5b506011546102c5906001600160a01b031681565b34801561059557600080fd5b50610298611072565b3480156105aa57600080fd5b506010546102c5906001600160a01b031681565b3480156105ca57600080fd5b506102fd6105d9366004611e90565b611081565b3480156105ea57600080fd5b506102fd6105f9366004611f19565b611117565b34801561060a57600080fd5b506102fd6111ed565b34801561061f57600080fd5b506102fd61062e366004611dd0565b61127e565b34801561063f57600080fd5b506102c561064e366004612030565b6112cf565b34801561065f57600080fd5b5061029861066e366004612030565b6112f9565b34801561067f57600080fd5b5061024a61068e366004611d61565b6113fa565b34801561069f57600080fd5b50600b5461024a90610100900460ff1681565b3480156106be57600080fd5b50600b5461024a9062010000900460ff1681565b3480156106de57600080fd5b506102fd6106ed366004611fdb565b61144f565b60006001600160e01b031982166380ac58cd60e01b148061072357506001600160e01b03198216635b5e139f60e01b145b8061073e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461075390612201565b80601f016020809104026020016040519081016040528092919081815260200182805461077f90612201565b80156107cc5780601f106107a1576101008083540402835291602001916107cc565b820191906000526020600020905b8154815290600101906020018083116107af57829003601f168201915b5050505050905090565b60006107e18261149e565b6107fe576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061082582610e94565b9050806001600160a01b0316836001600160a01b0316141561085a5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061087a575061087881336113fa565b155b15610898576040516367d9dca160e11b815260040160405180910390fd5b6108a38383836114d7565b505050565b600e546001600160a01b0316336001600160a01b0316146108e45760405162461bcd60e51b81526004016108db90612149565b60405180910390fd5b6009546109265760405162461bcd60e51b815260206004820152601060248201526f141c9a58d9481a5cc81b9bdd081cd95d60821b60448201526064016108db565b600b80549115156101000261ff0019909216919091179055565b600e546001600160a01b0316336001600160a01b0316146109735760405162461bcd60e51b81526004016108db90612149565b60005b81518110156109db576001600a60008484815181106109975761099761226d565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806109d38161223c565b915050610976565b5050565b6108a3838383611533565b600e546001600160a01b0316336001600160a01b031614610a1d5760405162461bcd60e51b81526004016108db90612149565b600e546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610a56573d6000803e3d6000fd5b50565b600b54610100900460ff16610ab05760405162461bcd60e51b815260206004820152601c60248201527f546865206d696e7420686173206e6f742073746172746564207965740000000060448201526064016108db565b610ab933611749565b610b055760405162461bcd60e51b815260206004820152601d60248201527f596f7520646f206e6f74206861766520616e79204d6f6f6e204170657300000060448201526064016108db565b600b5460ff1615610b6f57336000908152600a602052604090205460ff16610b6f5760405162461bcd60e51b815260206004820152601760248201527f596f7520617265206e6f742077686974656c697374656400000000000000000060448201526064016108db565b600954610b7c9082611875565b3414610bca5760405162461bcd60e51b815260206004820152601860248201527f57726f6e67204554482076616c75652070726f7669646564000000000000000060448201526064016108db565b60008111610c105760405162461bcd60e51b815260206004820152601360248201527226b4b71036b4b73a1034b99018903a37b5b2b760691b60448201526064016108db565b6032811115610c315760405162461bcd60e51b81526004016108db906120ff565b611388610c5182610c4b6001546000546000199190030190565b90611881565b1115610c9f5760405162461bcd60e51b815260206004820152601d60248201527f4d696e74206d6f726520746f6b656e73207468616e20616c6c6f77656400000060448201526064016108db565b610caa335b8261188d565b600f546001600160a01b03166374c8ac0b33610cd069032d26d12e980b60000085611875565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610d1657600080fd5b505af1158015610d2a573d6000803e3d6000fd5b5050505080610d363390565b6001600160a01b03167f11a5ff619f30e873fbec463780dac239d251205a739987db90f4686f9d9e6f4460405160405180910390a350565b6108a38383836040518060200160405280600081525061127e565b600e546001600160a01b0316336001600160a01b031614610dbc5760405162461bcd60e51b81526004016108db90612149565b60008111610e025760405162461bcd60e51b815260206004820152601360248201527226b4b71036b4b73a1034b99018903a37b5b2b760691b60448201526064016108db565b6032811115610e235760405162461bcd60e51b81526004016108db906120ff565b611388610e3d82610c4b6001546000546000199190030190565b1115610e8b5760405162461bcd60e51b815260206004820152601d60248201527f4d696e74206d6f726520746f6b656e73207468616e20616c6c6f77656400000060448201526064016108db565b610a5633610ca4565b6000610e9f826118a7565b5192915050565b600e546001600160a01b0316336001600160a01b031614610ed95760405162461bcd60e51b81526004016108db90612149565b6001600160a01b03166000818152600c60205260408120805460ff19166001908117909155600d805491820181559091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319169091179055565b60006001600160a01b038216610f68576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600e546001600160a01b0316336001600160a01b031614610fc15760405162461bcd60e51b81526004016108db90612149565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b600e546001600160a01b0316336001600160a01b0316146110155760405162461bcd60e51b81526004016108db90612149565b600b54610100900460ff161561106d5760405162461bcd60e51b815260206004820152601e60248201527f50617573652073616c65206265666f726520707269636520757064617465000060448201526064016108db565b600955565b60606003805461075390612201565b6001600160a01b0382163314156110ab5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e546001600160a01b0316336001600160a01b03161461114a5760405162461bcd60e51b81526004016108db90612149565b80518251146111935760405162461bcd60e51b8152602060048201526015602482015274098d2e6e8e640dcdee840e6c2daca40d8cadccee8d605b1b60448201526064016108db565b60005b82518110156108a3576111db8382815181106111b4576111b461226d565b60200260200101518383815181106111ce576111ce61226d565b602002602001015161188d565b806111e58161223c565b915050611196565b600e546001600160a01b0316336001600160a01b0316146112205760405162461bcd60e51b81526004016108db90612149565b600b5460ff166112725760405162461bcd60e51b815260206004820152601d60248201527f57686974656c69737420697320616c72656164792064697361626c656400000060448201526064016108db565b600b805460ff19169055565b611289848484611533565b6001600160a01b0383163b151580156112ab57506112a9848484846119d0565b155b156112c9576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600d81815481106112df57600080fd5b6000918252602090912001546001600160a01b0316905081565b60606113048261149e565b6113685760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108db565b6008805461137590612201565b80601f01602080910402602001604051908101604052809291908181526020018280546113a190612201565b80156113ee5780601f106113c3576101008083540402835291602001916113ee565b820191906000526020600020905b8154815290600101906020018083116113d157829003601f168201915b50505050509050919050565b6001600160a01b03808316600090815260076020908152604080832093851683529290529081205460ff168061144857506001600160a01b0382166000908152600c602052604090205460ff165b9392505050565b600e546001600160a01b0316336001600160a01b0316146114825760405162461bcd60e51b81526004016108db90612149565b600b8054911515620100000262ff000019909216919091179055565b6000816001111580156114b2575060005482105b801561073e575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061153e826118a7565b80519091506000906001600160a01b0316336001600160a01b0316148061156c5750815161156c90336113fa565b8061158757503361157c846107d6565b6001600160a01b0316145b9050806115a757604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146115dc5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661160357604051633a954ecd60e21b815260040160405180910390fd5b61161360008484600001516114d7565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166116ff576000548110156116ff578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600b5460009062010000900460ff1661176457506001919050565b6010546040516370a0823160e01b81526001600160a01b03848116600483015260009216906370a082319060240160206040518083038186803b1580156117aa57600080fd5b505afa1580156117be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e29190612049565b11156117f057506001919050565b6011546040516370a0823160e01b81526001600160a01b03848116600483015260009216906370a082319060240160206040518083038186803b15801561183657600080fd5b505afa15801561184a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186e9190612049565b1192915050565b600061144882846121e2565b600061144882846121ca565b6109db828260405180602001604052806000815250611ac8565b604080516060810182526000808252602082018190529181019190915281806001111580156118d7575060005481105b156119b757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906119b55780516001600160a01b03161561194b579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156119b0579392505050565b61194b565b505b604051636f96cda160e11b815260040160405180910390fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611a059033908990889088906004016120af565b602060405180830381600087803b158015611a1f57600080fd5b505af1925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612013565b60015b611aaa573d808015611a7d576040519150601f19603f3d011682016040523d82523d6000602084013e611a82565b606091505b508051611aa2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6108a383838360016000546001600160a01b038516611af957604051622e076360e81b815260040160405180910390fd5b83611b175760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611bc957506001600160a01b0387163b15155b15611c52575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611c1a60008884806001019550886119d0565b611c37576040516368d2bf6b60e11b815260040160405180910390fd5b80821415611bcf578260005414611c4d57600080fd5b611c98565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415611c53575b50600055611742565b80356001600160a01b0381168114611cb857600080fd5b919050565b600082601f830112611cce57600080fd5b81356020611ce3611cde836121a6565b612175565b80838252828201915082860187848660051b8901011115611d0357600080fd5b60005b85811015611d2957611d1782611ca1565b84529284019290840190600101611d06565b5090979650505050505050565b80358015158114611cb857600080fd5b600060208284031215611d5857600080fd5b61144882611ca1565b60008060408385031215611d7457600080fd5b611d7d83611ca1565b9150611d8b60208401611ca1565b90509250929050565b600080600060608486031215611da957600080fd5b611db284611ca1565b9250611dc060208501611ca1565b9150604084013590509250925092565b60008060008060808587031215611de657600080fd5b611def85611ca1565b93506020611dfe818701611ca1565b935060408601359250606086013567ffffffffffffffff80821115611e2257600080fd5b818801915088601f830112611e3657600080fd5b813581811115611e4857611e48612283565b611e5a601f8201601f19168501612175565b91508082528984828501011115611e7057600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215611ea357600080fd5b611eac83611ca1565b9150611d8b60208401611d36565b60008060408385031215611ecd57600080fd5b611ed683611ca1565b946020939093013593505050565b600060208284031215611ef657600080fd5b813567ffffffffffffffff811115611f0d57600080fd5b611ac084828501611cbd565b60008060408385031215611f2c57600080fd5b823567ffffffffffffffff80821115611f4457600080fd5b611f5086838701611cbd565b9350602091508185013581811115611f6757600080fd5b85019050601f81018613611f7a57600080fd5b8035611f88611cde826121a6565b80828252848201915084840189868560051b8701011115611fa857600080fd5b600094505b83851015611fcb578035835260019490940193918501918501611fad565b5080955050505050509250929050565b600060208284031215611fed57600080fd5b61144882611d36565b60006020828403121561200857600080fd5b813561144881612299565b60006020828403121561202557600080fd5b815161144881612299565b60006020828403121561204257600080fd5b5035919050565b60006020828403121561205b57600080fd5b5051919050565b6000815180845260005b818110156120885760208185018101518683018201520161206c565b8181111561209a576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906120e290830184612062565b9695505050505050565b6020815260006114486020830184612062565b6020808252602a908201527f596f752063616e206d696e74206d617820353020746f6b656e732070657220746040820152693930b739b0b1ba34b7b760b11b606082015260800190565b6020808252601290820152712737ba1031b7b73a3930b1ba1037bbb732b960711b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561219e5761219e612283565b604052919050565b600067ffffffffffffffff8211156121c0576121c0612283565b5060051b60200190565b600082198211156121dd576121dd612257565b500190565b60008160001904831182151516156121fc576121fc612257565b500290565b600181811c9082168061221557607f821691505b6020821081141561223657634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561225057612250612257565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610a5657600080fdfea26469706673582212206b39e8bc358102175a8e018ce0c8520b7451b4923927cd30c8cdfa322f8512b064736f6c63430008070033697066733a2f2f516d596d69314d5957526439447431565054785a794757486d643773636d693441707245776576734a634c4641572f6d6f6f6e5f74726561737572792e6a736f6e00000000000000000000000034c4eba1966b502dfcf0868b6f271d85cc8a231200000000000000000000000000a103267a22971375c3c37d6e1f1bdfb548e94600000000000000000000000065fd5d7ea09459c932aa70eba22548cd16283c93

Deployed Bytecode

0x6080604052600436106102255760003560e01c806366e6c8af11610123578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd14610653578063e985e9c514610673578063eb8d244414610693578063f31121d7146106b2578063f4461fc8146106d257600080fd5b8063a22cb465146105be578063af255acd146105de578063b0ab2cdd146105fe578063b88d4fde14610613578063c82bc61d1461063357600080fd5b80638d51f827116100f25780638d51f8271461052b5780638da5cb5b1461054b578063922fab051461056957806395d89b411461058957806397610f301461059e57600080fd5b806366e6c8af146104ab57806370a08231146104cb5780637bdadbcf146104eb57806380833d781461050b57600080fd5b806331ffd6f1116101b15780633e9c007b116101755780633e9c007b1461041a57806342842e0e1461042d57806347511d8e1461044d5780634c273a881461046d5780636352211e1461048b57600080fd5b806331ffd6f11461037c57806332cb6b0c14610396578063384f58eb146103ac5780633af32abf146103cc5780633ccfd60b1461040557600080fd5b8063095ea7b3116101f8578063095ea7b3146102dd5780630a088949146102ff57806318160ddd1461031f578063227275ef1461033c57806323b872dd1461035c57600080fd5b806301ffc9a71461022a5780630523e1cc1461025f57806306fdde0314610283578063081812fc146102a5575b600080fd5b34801561023657600080fd5b5061024a610245366004611ff6565b6106f2565b60405190151581526020015b60405180910390f35b34801561026b57600080fd5b5061027560095481565b604051908152602001610256565b34801561028f57600080fd5b50610298610744565b60405161025691906120ec565b3480156102b157600080fd5b506102c56102c0366004612030565b6107d6565b6040516001600160a01b039091168152602001610256565b3480156102e957600080fd5b506102fd6102f8366004611eba565b61081a565b005b34801561030b57600080fd5b506102fd61031a366004611fdb565b6108a8565b34801561032b57600080fd5b506001546000540360001901610275565b34801561034857600080fd5b506102fd610357366004611ee4565b610940565b34801561036857600080fd5b506102fd610377366004611d94565b6109df565b34801561038857600080fd5b50600b5461024a9060ff1681565b3480156103a257600080fd5b5061027561138881565b3480156103b857600080fd5b50600e546102c5906001600160a01b031681565b3480156103d857600080fd5b5061024a6103e7366004611d46565b6001600160a01b03166000908152600a602052604090205460ff1690565b34801561041157600080fd5b506102fd6109ea565b6102fd610428366004612030565b610a59565b34801561043957600080fd5b506102fd610448366004611d94565b610d6e565b34801561045957600080fd5b506102fd610468366004612030565b610d89565b34801561047957600080fd5b5061027569032d26d12e980b60000081565b34801561049757600080fd5b506102c56104a6366004612030565b610e94565b3480156104b757600080fd5b506102fd6104c6366004611d46565b610ea6565b3480156104d757600080fd5b506102756104e6366004611d46565b610f3f565b3480156104f757600080fd5b50600f546102c5906001600160a01b031681565b34801561051757600080fd5b506102fd610526366004611d46565b610f8e565b34801561053757600080fd5b506102fd610546366004612030565b610fe2565b34801561055757600080fd5b50600e546001600160a01b03166102c5565b34801561057557600080fd5b506011546102c5906001600160a01b031681565b34801561059557600080fd5b50610298611072565b3480156105aa57600080fd5b506010546102c5906001600160a01b031681565b3480156105ca57600080fd5b506102fd6105d9366004611e90565b611081565b3480156105ea57600080fd5b506102fd6105f9366004611f19565b611117565b34801561060a57600080fd5b506102fd6111ed565b34801561061f57600080fd5b506102fd61062e366004611dd0565b61127e565b34801561063f57600080fd5b506102c561064e366004612030565b6112cf565b34801561065f57600080fd5b5061029861066e366004612030565b6112f9565b34801561067f57600080fd5b5061024a61068e366004611d61565b6113fa565b34801561069f57600080fd5b50600b5461024a90610100900460ff1681565b3480156106be57600080fd5b50600b5461024a9062010000900460ff1681565b3480156106de57600080fd5b506102fd6106ed366004611fdb565b61144f565b60006001600160e01b031982166380ac58cd60e01b148061072357506001600160e01b03198216635b5e139f60e01b145b8061073e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606002805461075390612201565b80601f016020809104026020016040519081016040528092919081815260200182805461077f90612201565b80156107cc5780601f106107a1576101008083540402835291602001916107cc565b820191906000526020600020905b8154815290600101906020018083116107af57829003601f168201915b5050505050905090565b60006107e18261149e565b6107fe576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061082582610e94565b9050806001600160a01b0316836001600160a01b0316141561085a5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161480159061087a575061087881336113fa565b155b15610898576040516367d9dca160e11b815260040160405180910390fd5b6108a38383836114d7565b505050565b600e546001600160a01b0316336001600160a01b0316146108e45760405162461bcd60e51b81526004016108db90612149565b60405180910390fd5b6009546109265760405162461bcd60e51b815260206004820152601060248201526f141c9a58d9481a5cc81b9bdd081cd95d60821b60448201526064016108db565b600b80549115156101000261ff0019909216919091179055565b600e546001600160a01b0316336001600160a01b0316146109735760405162461bcd60e51b81526004016108db90612149565b60005b81518110156109db576001600a60008484815181106109975761099761226d565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806109d38161223c565b915050610976565b5050565b6108a3838383611533565b600e546001600160a01b0316336001600160a01b031614610a1d5760405162461bcd60e51b81526004016108db90612149565b600e546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610a56573d6000803e3d6000fd5b50565b600b54610100900460ff16610ab05760405162461bcd60e51b815260206004820152601c60248201527f546865206d696e7420686173206e6f742073746172746564207965740000000060448201526064016108db565b610ab933611749565b610b055760405162461bcd60e51b815260206004820152601d60248201527f596f7520646f206e6f74206861766520616e79204d6f6f6e204170657300000060448201526064016108db565b600b5460ff1615610b6f57336000908152600a602052604090205460ff16610b6f5760405162461bcd60e51b815260206004820152601760248201527f596f7520617265206e6f742077686974656c697374656400000000000000000060448201526064016108db565b600954610b7c9082611875565b3414610bca5760405162461bcd60e51b815260206004820152601860248201527f57726f6e67204554482076616c75652070726f7669646564000000000000000060448201526064016108db565b60008111610c105760405162461bcd60e51b815260206004820152601360248201527226b4b71036b4b73a1034b99018903a37b5b2b760691b60448201526064016108db565b6032811115610c315760405162461bcd60e51b81526004016108db906120ff565b611388610c5182610c4b6001546000546000199190030190565b90611881565b1115610c9f5760405162461bcd60e51b815260206004820152601d60248201527f4d696e74206d6f726520746f6b656e73207468616e20616c6c6f77656400000060448201526064016108db565b610caa335b8261188d565b600f546001600160a01b03166374c8ac0b33610cd069032d26d12e980b60000085611875565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015610d1657600080fd5b505af1158015610d2a573d6000803e3d6000fd5b5050505080610d363390565b6001600160a01b03167f11a5ff619f30e873fbec463780dac239d251205a739987db90f4686f9d9e6f4460405160405180910390a350565b6108a38383836040518060200160405280600081525061127e565b600e546001600160a01b0316336001600160a01b031614610dbc5760405162461bcd60e51b81526004016108db90612149565b60008111610e025760405162461bcd60e51b815260206004820152601360248201527226b4b71036b4b73a1034b99018903a37b5b2b760691b60448201526064016108db565b6032811115610e235760405162461bcd60e51b81526004016108db906120ff565b611388610e3d82610c4b6001546000546000199190030190565b1115610e8b5760405162461bcd60e51b815260206004820152601d60248201527f4d696e74206d6f726520746f6b656e73207468616e20616c6c6f77656400000060448201526064016108db565b610a5633610ca4565b6000610e9f826118a7565b5192915050565b600e546001600160a01b0316336001600160a01b031614610ed95760405162461bcd60e51b81526004016108db90612149565b6001600160a01b03166000818152600c60205260408120805460ff19166001908117909155600d805491820181559091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319169091179055565b60006001600160a01b038216610f68576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b600e546001600160a01b0316336001600160a01b031614610fc15760405162461bcd60e51b81526004016108db90612149565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b600e546001600160a01b0316336001600160a01b0316146110155760405162461bcd60e51b81526004016108db90612149565b600b54610100900460ff161561106d5760405162461bcd60e51b815260206004820152601e60248201527f50617573652073616c65206265666f726520707269636520757064617465000060448201526064016108db565b600955565b60606003805461075390612201565b6001600160a01b0382163314156110ab5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600e546001600160a01b0316336001600160a01b03161461114a5760405162461bcd60e51b81526004016108db90612149565b80518251146111935760405162461bcd60e51b8152602060048201526015602482015274098d2e6e8e640dcdee840e6c2daca40d8cadccee8d605b1b60448201526064016108db565b60005b82518110156108a3576111db8382815181106111b4576111b461226d565b60200260200101518383815181106111ce576111ce61226d565b602002602001015161188d565b806111e58161223c565b915050611196565b600e546001600160a01b0316336001600160a01b0316146112205760405162461bcd60e51b81526004016108db90612149565b600b5460ff166112725760405162461bcd60e51b815260206004820152601d60248201527f57686974656c69737420697320616c72656164792064697361626c656400000060448201526064016108db565b600b805460ff19169055565b611289848484611533565b6001600160a01b0383163b151580156112ab57506112a9848484846119d0565b155b156112c9576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600d81815481106112df57600080fd5b6000918252602090912001546001600160a01b0316905081565b60606113048261149e565b6113685760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108db565b6008805461137590612201565b80601f01602080910402602001604051908101604052809291908181526020018280546113a190612201565b80156113ee5780601f106113c3576101008083540402835291602001916113ee565b820191906000526020600020905b8154815290600101906020018083116113d157829003601f168201915b50505050509050919050565b6001600160a01b03808316600090815260076020908152604080832093851683529290529081205460ff168061144857506001600160a01b0382166000908152600c602052604090205460ff165b9392505050565b600e546001600160a01b0316336001600160a01b0316146114825760405162461bcd60e51b81526004016108db90612149565b600b8054911515620100000262ff000019909216919091179055565b6000816001111580156114b2575060005482105b801561073e575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061153e826118a7565b80519091506000906001600160a01b0316336001600160a01b0316148061156c5750815161156c90336113fa565b8061158757503361157c846107d6565b6001600160a01b0316145b9050806115a757604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146115dc5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661160357604051633a954ecd60e21b815260040160405180910390fd5b61161360008484600001516114d7565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166116ff576000548110156116ff578251600082815260046020908152604090912080549186015167ffffffffffffffff16600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600b5460009062010000900460ff1661176457506001919050565b6010546040516370a0823160e01b81526001600160a01b03848116600483015260009216906370a082319060240160206040518083038186803b1580156117aa57600080fd5b505afa1580156117be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e29190612049565b11156117f057506001919050565b6011546040516370a0823160e01b81526001600160a01b03848116600483015260009216906370a082319060240160206040518083038186803b15801561183657600080fd5b505afa15801561184a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186e9190612049565b1192915050565b600061144882846121e2565b600061144882846121ca565b6109db828260405180602001604052806000815250611ac8565b604080516060810182526000808252602082018190529181019190915281806001111580156118d7575060005481105b156119b757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906119b55780516001600160a01b03161561194b579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156119b0579392505050565b61194b565b505b604051636f96cda160e11b815260040160405180910390fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611a059033908990889088906004016120af565b602060405180830381600087803b158015611a1f57600080fd5b505af1925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612013565b60015b611aaa573d808015611a7d576040519150601f19603f3d011682016040523d82523d6000602084013e611a82565b606091505b508051611aa2576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6108a383838360016000546001600160a01b038516611af957604051622e076360e81b815260040160405180910390fd5b83611b175760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611bc957506001600160a01b0387163b15155b15611c52575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611c1a60008884806001019550886119d0565b611c37576040516368d2bf6b60e11b815260040160405180910390fd5b80821415611bcf578260005414611c4d57600080fd5b611c98565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415611c53575b50600055611742565b80356001600160a01b0381168114611cb857600080fd5b919050565b600082601f830112611cce57600080fd5b81356020611ce3611cde836121a6565b612175565b80838252828201915082860187848660051b8901011115611d0357600080fd5b60005b85811015611d2957611d1782611ca1565b84529284019290840190600101611d06565b5090979650505050505050565b80358015158114611cb857600080fd5b600060208284031215611d5857600080fd5b61144882611ca1565b60008060408385031215611d7457600080fd5b611d7d83611ca1565b9150611d8b60208401611ca1565b90509250929050565b600080600060608486031215611da957600080fd5b611db284611ca1565b9250611dc060208501611ca1565b9150604084013590509250925092565b60008060008060808587031215611de657600080fd5b611def85611ca1565b93506020611dfe818701611ca1565b935060408601359250606086013567ffffffffffffffff80821115611e2257600080fd5b818801915088601f830112611e3657600080fd5b813581811115611e4857611e48612283565b611e5a601f8201601f19168501612175565b91508082528984828501011115611e7057600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215611ea357600080fd5b611eac83611ca1565b9150611d8b60208401611d36565b60008060408385031215611ecd57600080fd5b611ed683611ca1565b946020939093013593505050565b600060208284031215611ef657600080fd5b813567ffffffffffffffff811115611f0d57600080fd5b611ac084828501611cbd565b60008060408385031215611f2c57600080fd5b823567ffffffffffffffff80821115611f4457600080fd5b611f5086838701611cbd565b9350602091508185013581811115611f6757600080fd5b85019050601f81018613611f7a57600080fd5b8035611f88611cde826121a6565b80828252848201915084840189868560051b8701011115611fa857600080fd5b600094505b83851015611fcb578035835260019490940193918501918501611fad565b5080955050505050509250929050565b600060208284031215611fed57600080fd5b61144882611d36565b60006020828403121561200857600080fd5b813561144881612299565b60006020828403121561202557600080fd5b815161144881612299565b60006020828403121561204257600080fd5b5035919050565b60006020828403121561205b57600080fd5b5051919050565b6000815180845260005b818110156120885760208185018101518683018201520161206c565b8181111561209a576000602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906120e290830184612062565b9695505050505050565b6020815260006114486020830184612062565b6020808252602a908201527f596f752063616e206d696e74206d617820353020746f6b656e732070657220746040820152693930b739b0b1ba34b7b760b11b606082015260800190565b6020808252601290820152712737ba1031b7b73a3930b1ba1037bbb732b960711b604082015260600190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561219e5761219e612283565b604052919050565b600067ffffffffffffffff8211156121c0576121c0612283565b5060051b60200190565b600082198211156121dd576121dd612257565b500190565b60008160001904831182151516156121fc576121fc612257565b500290565b600181811c9082168061221557607f821691505b6020821081141561223657634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561225057612250612257565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610a5657600080fdfea26469706673582212206b39e8bc358102175a8e018ce0c8520b7451b4923927cd30c8cdfa322f8512b064736f6c63430008070033

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

00000000000000000000000034c4eba1966b502dfcf0868b6f271d85cc8a231200000000000000000000000000a103267a22971375c3c37d6e1f1bdfb548e94600000000000000000000000065fd5d7ea09459c932aa70eba22548cd16283c93

-----Decoded View---------------
Arg [0] : _apes (address): 0x34c4EBA1966B502dfCF0868b6f271d85CC8A2312
Arg [1] : _staking (address): 0x00a103267A22971375C3C37d6E1f1BDfb548e946
Arg [2] : _mal (address): 0x65fd5d7eA09459c932Aa70eba22548cd16283c93

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000034c4eba1966b502dfcf0868b6f271d85cc8a2312
Arg [1] : 00000000000000000000000000a103267a22971375c3c37d6e1f1bdfb548e946
Arg [2] : 00000000000000000000000065fd5d7ea09459c932aa70eba22548cd16283c93


Deployed Bytecode Sourcemap

49450:5298:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31802:305;;;;;;;;;;-1:-1:-1;31802:305:0;;;;;:::i;:::-;;:::i;:::-;;;7524:14:1;;7517:22;7499:41;;7487:2;7472:18;31802:305:0;;;;;;;;49740:28;;;;;;;;;;;;;;;;;;;13302:25:1;;;13290:2;13275:18;49740:28:0;13156:177:1;35187:100:0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;36690:204::-;;;;;;;;;;-1:-1:-1;36690:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6543:32:1;;;6525:51;;6513:2;6498:18;36690:204:0;6379:203:1;36253:371:0;;;;;;;;;;-1:-1:-1;36253:371:0;;;;;:::i;:::-;;:::i;:::-;;52400:166;;;;;;;;;;-1:-1:-1;52400:166:0;;;;;:::i;:::-;;:::i;31051:303::-;;;;;;;;;;-1:-1:-1;30858:1:0;31305:12;31095:7;31289:13;:28;-1:-1:-1;;31289:46:0;31051:303;;51062:200;;;;;;;;;;-1:-1:-1;51062:200:0;;;;;:::i;:::-;;:::i;37547:170::-;;;;;;;;;;-1:-1:-1;37547:170:0;;;;;:::i;:::-;;:::i;49818:25::-;;;;;;;;;;-1:-1:-1;49818:25:0;;;;;;;;49633:41;;;;;;;;;;;;49670:4;49633:41;;50052:29;;;;;;;;;;-1:-1:-1;50052:29:0;;;;-1:-1:-1;;;;;50052:29:0;;;51270:121;;;;;;;;;;-1:-1:-1;51270:121:0;;;;;:::i;:::-;-1:-1:-1;;;;;51358:25:0;51335:4;51358:25;;;:11;:25;;;;;;;;;51270:121;53118:111;;;;;;;;;;;;;:::i;53903:836::-;;;;;;:::i;:::-;;:::i;37788:185::-;;;;;;;;;;-1:-1:-1;37788:185:0;;;;;:::i;:::-;;:::i;53237:357::-;;;;;;;;;;-1:-1:-1;53237:357:0;;;;;:::i;:::-;;:::i;49681:50::-;;;;;;;;;;;;49720:11;49681:50;;34996:124;;;;;;;;;;-1:-1:-1;34996:124:0;;;;;:::i;:::-;;:::i;51561:153::-;;;;;;;;;;-1:-1:-1;51561:153:0;;;;;:::i;:::-;;:::i;32171:206::-;;;;;;;;;;-1:-1:-1;32171:206:0;;;;;:::i;:::-;;:::i;50108:15::-;;;;;;;;;;-1:-1:-1;50108:15:0;;;;-1:-1:-1;;;;;50108:15:0;;;51722:118;;;;;;;;;;-1:-1:-1;51722:118:0;;;;;:::i;:::-;;:::i;52574:172::-;;;;;;;;;;-1:-1:-1;52574:172:0;;;;;:::i;:::-;;:::i;52057:85::-;;;;;;;;;;-1:-1:-1;52120:14:0;;-1:-1:-1;;;;;52120:14:0;52057:85;;50160:19;;;;;;;;;;-1:-1:-1;50160:19:0;;;;-1:-1:-1;;;;;50160:19:0;;;35356:104;;;;;;;;;;;;;:::i;50130:23::-;;;;;;;;;;-1:-1:-1;50130:23:0;;;;-1:-1:-1;;;;;50130:23:0;;;36966:279;;;;;;;;;;-1:-1:-1;36966:279:0;;;;;:::i;:::-;;:::i;53602:293::-;;;;;;;;;;-1:-1:-1;53602:293:0;;;;;:::i;:::-;;:::i;51399:154::-;;;;;;;;;;;;;:::i;38044:369::-;;;;;;;;;;-1:-1:-1;38044:369:0;;;;;:::i;:::-;;:::i;50015:30::-;;;;;;;;;;-1:-1:-1;50015:30:0;;;;;:::i;:::-;;:::i;52754:205::-;;;;;;;;;;-1:-1:-1;52754:205:0;;;;;:::i;:::-;;:::i;51848:201::-;;;;;;;;;;-1:-1:-1;51848:201:0;;;;;:::i;:::-;;:::i;49852:24::-;;;;;;;;;;-1:-1:-1;49852:24:0;;;;;;;;;;;49883:32;;;;;;;;;;-1:-1:-1;49883:32:0;;;;;;;;;;;52967:143;;;;;;;;;;-1:-1:-1;52967:143:0;;;;;:::i;:::-;;:::i;31802:305::-;31904:4;-1:-1:-1;;;;;;31941:40:0;;-1:-1:-1;;;31941:40:0;;:105;;-1:-1:-1;;;;;;;31998:48:0;;-1:-1:-1;;;31998:48:0;31941:105;:158;;;-1:-1:-1;;;;;;;;;;27317:40:0;;;32063:36;31921:178;31802:305;-1:-1:-1;;31802:305:0:o;35187:100::-;35241:13;35274:5;35267:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35187:100;:::o;36690:204::-;36758:7;36783:16;36791:7;36783;:16::i;:::-;36778:64;;36808:34;;-1:-1:-1;;;36808:34:0;;;;;;;;;;;36778:64;-1:-1:-1;36862:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;36862:24:0;;36690:204::o;36253:371::-;36326:13;36342:24;36358:7;36342:15;:24::i;:::-;36326:40;;36387:5;-1:-1:-1;;;;;36381:11:0;:2;-1:-1:-1;;;;;36381:11:0;;36377:48;;;36401:24;;-1:-1:-1;;;36401:24:0;;;;;;;;;;;36377:48;24270:10;-1:-1:-1;;;;;36442:21:0;;;;;;:63;;-1:-1:-1;36468:37:0;36485:5;24270:10;51848:201;:::i;36468:37::-;36467:38;36442:63;36438:138;;;36529:35;;-1:-1:-1;;;36529:35:0;;;;;;;;;;;36438:138;36588:28;36597:2;36601:7;36610:5;36588:8;:28::i;:::-;36315:309;36253:371;;:::o;52400:166::-;50999:14;;-1:-1:-1;;;;;50999:14:0;24270:10;-1:-1:-1;;;;;50983:30:0;;50975:61;;;;-1:-1:-1;;;50975:61:0;;;;;;;:::i;:::-;;;;;;;;;52481:13:::1;::::0;52473:47:::1;;;::::0;-1:-1:-1;;;52473:47:0;;10126:2:1;52473:47:0::1;::::0;::::1;10108:21:1::0;10165:2;10145:18;;;10138:30;-1:-1:-1;;;10184:18:1;;;10177:46;10240:18;;52473:47:0::1;9924:340:1::0;52473:47:0::1;52529:12;:29:::0;;;::::1;;;;-1:-1:-1::0;;52529:29:0;;::::1;::::0;;;::::1;::::0;;52400:166::o;51062:200::-;50999:14;;-1:-1:-1;;;;;50999:14:0;24270:10;-1:-1:-1;;;;;50983:30:0;;50975:61;;;;-1:-1:-1;;;50975:61:0;;;;;;;:::i;:::-;51149:9:::1;51144:111;51168:12;:19;51164:1;:23;51144:111;;;51239:4;51208:11;:28;51220:12;51233:1;51220:15;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;51208:28:0::1;::::0;;;::::1;::::0;;;;;;-1:-1:-1;51208:28:0;:35;;-1:-1:-1;;51208:35:0::1;::::0;::::1;;::::0;;;::::1;::::0;;51189:3;::::1;::::0;::::1;:::i;:::-;;;;51144:111;;;;51062:200:::0;:::o;37547:170::-;37681:28;37691:4;37697:2;37701:7;37681:9;:28::i;53118:111::-;50999:14;;-1:-1:-1;;;;;50999:14:0;24270:10;-1:-1:-1;;;;;50983:30:0;;50975:61;;;;-1:-1:-1;;;50975:61:0;;;;;;;:::i;:::-;53174:14:::1;::::0;53166:55:::1;::::0;-1:-1:-1;;;;;53174:14:0;;::::1;::::0;53199:21:::1;53166:55:::0;::::1;;;::::0;53174:14:::1;53166:55:::0;53174:14;53166:55;53199:21;53174:14;53166:55;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;53118:111::o:0;53903:836::-;53983:12;;;;;;;53975:53;;;;-1:-1:-1;;;53975:53:0;;13001:2:1;53975:53:0;;;12983:21:1;13040:2;13020:18;;;13013:30;13079;13059:18;;;13052:58;13127:18;;53975:53:0;12799:352:1;53975:53:0;54045:35;24270:10;54045:21;:35::i;:::-;54037:77;;;;-1:-1:-1;;;54037:77:0;;8646:2:1;54037:77:0;;;8628:21:1;8685:2;8665:18;;;8658:30;8724:31;8704:18;;;8697:59;8773:18;;54037:77:0;8444:353:1;54037:77:0;54127:13;;;;54123:102;;;24270:10;54162:25;;;;:11;:25;;;;;;;;54154:61;;;;-1:-1:-1;;;54154:61:0;;10471:2:1;54154:61:0;;;10453:21:1;10510:2;10490:18;;;10483:30;10549:25;10529:18;;;10522:53;10592:18;;54154:61:0;10269:347:1;54154:61:0;54254:13;;:31;;54272:12;54254:17;:31::i;:::-;54241:9;:44;54233:81;;;;-1:-1:-1;;;54233:81:0;;9773:2:1;54233:81:0;;;9755:21:1;9812:2;9792:18;;;9785:30;9851:26;9831:18;;;9824:54;9895:18;;54233:81:0;9571:348:1;54233:81:0;54346:1;54331:12;:16;54323:48;;;;-1:-1:-1;;;54323:48:0;;10823:2:1;54323:48:0;;;10805:21:1;10862:2;10842:18;;;10835:30;-1:-1:-1;;;10881:18:1;;;10874:49;10940:18;;54323:48:0;10621:343:1;54323:48:0;54404:2;54388:12;:18;;54380:73;;;;-1:-1:-1;;;54380:73:0;;;;;;;:::i;:::-;49670:4;54470:31;54488:12;54470:13;30858:1;31305:12;31095:7;31289:13;-1:-1:-1;;31289:28:0;;;:46;;31051:303;54470:13;:17;;:31::i;:::-;:45;;54462:87;;;;-1:-1:-1;;;54462:87:0;;11587:2:1;54462:87:0;;;11569:21:1;11626:2;11606:18;;;11599:30;11665:31;11645:18;;;11638:59;11714:18;;54462:87:0;11385:353:1;54462:87:0;54560:37;24270:10;54570:12;54584;54560:9;:37::i;:::-;54608:3;;-1:-1:-1;;;;;54608:3:0;:17;24270:10;54640:30;49720:11;54657:12;54640:16;:30::i;:::-;54608:63;;-1:-1:-1;;;;;;54608:63:0;;;;;;;-1:-1:-1;;;;;7272:32:1;;;54608:63:0;;;7254:51:1;7321:18;;;7314:34;7227:18;;54608:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54718:12;54704;24270:10;;24190:98;54704:12;-1:-1:-1;;;;;54687:44:0;;;;;;;;;;;53903:836;:::o;37788:185::-;37926:39;37943:4;37949:2;37953:7;37926:39;;;;;;;;;;;;:16;:39::i;53237:357::-;50999:14;;-1:-1:-1;;;;;50999:14:0;24270:10;-1:-1:-1;;;;;50983:30:0;;50975:61;;;;-1:-1:-1;;;50975:61:0;;;;;;;:::i;:::-;53335:1:::1;53320:12;:16;53312:48;;;::::0;-1:-1:-1;;;53312:48:0;;10823:2:1;53312:48:0::1;::::0;::::1;10805:21:1::0;10862:2;10842:18;;;10835:30;-1:-1:-1;;;10881:18:1;;;10874:49;10940:18;;53312:48:0::1;10621:343:1::0;53312:48:0::1;53393:2;53377:12;:18;;53369:73;;;;-1:-1:-1::0;;;53369:73:0::1;;;;;;;:::i;:::-;49670:4;53459:31;53477:12;53459:13;30858:1:::0;31305:12;31095:7;31289:13;-1:-1:-1;;31289:28:0;;;:46;;31051:303;53459:31:::1;:45;;53451:87;;;::::0;-1:-1:-1;;;53451:87:0;;11587:2:1;53451:87:0::1;::::0;::::1;11569:21:1::0;11626:2;11606:18;;;11599:30;11665:31;11645:18;;;11638:59;11714:18;;53451:87:0::1;11385:353:1::0;53451:87:0::1;53549:37;24270:10:::0;53559:12:::1;24190:98:::0;34996:124;35060:7;35087:20;35099:7;35087:11;:20::i;:::-;:25;;34996:124;-1:-1:-1;;34996:124:0:o;51561:153::-;50999:14;;-1:-1:-1;;;;;50999:14:0;24270:10;-1:-1:-1;;;;;50983:30:0;;50975:61;;;;-1:-1:-1;;;50975:61:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;51629:28:0::1;;::::0;;;:13:::1;:28;::::0;;;;:35;;-1:-1:-1;;51629:35:0::1;51660:4;51629:35:::0;;::::1;::::0;;;51673:13:::1;:33:::0;;;;::::1;::::0;;;;;;::::1;::::0;;-1:-1:-1;;;;;;51673:33:0::1;::::0;;::::1;::::0;;51561:153::o;32171:206::-;32235:7;-1:-1:-1;;;;;32259:19:0;;32255:60;;32287:28;;-1:-1:-1;;;32287:28:0;;;;;;;;;;;32255:60;-1:-1:-1;;;;;;32341:19:0;;;;;:12;:19;;;;;:27;;;;32171:206::o;51722:118::-;50999:14;;-1:-1:-1;;;;;50999:14:0;24270:10;-1:-1:-1;;;;;50983:30:0;;50975:61;;;;-1:-1:-1;;;50975:61:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;51794:30:0::1;51827:5;51794:30:::0;;;:13:::1;:30;::::0;;;;:38;;-1:-1:-1;;51794:38:0::1;::::0;;51722:118::o;52574:172::-;50999:14;;-1:-1:-1;;;;;50999:14:0;24270:10;-1:-1:-1;;;;;50983:30:0;;50975:61;;;;-1:-1:-1;;;50975:61:0;;;;;;;:::i;:::-;52657:12:::1;::::0;::::1;::::0;::::1;;;52656:13;52648:56;;;::::0;-1:-1:-1;;;52648:56:0;;12642:2:1;52648:56:0::1;::::0;::::1;12624:21:1::0;12681:2;12661:18;;;12654:30;12720:32;12700:18;;;12693:60;12770:18;;52648:56:0::1;12440:354:1::0;52648:56:0::1;52713:13;:25:::0;52574:172::o;35356:104::-;35412:13;35445:7;35438:14;;;;;:::i;36966:279::-;-1:-1:-1;;;;;37057:24:0;;24270:10;37057:24;37053:54;;;37090:17;;-1:-1:-1;;;37090:17:0;;;;;;;;;;;37053:54;24270:10;37120:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;37120:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;37120:53:0;;;;;;;;;;37189:48;;7499:41:1;;;37120:42:0;;24270:10;37189:48;;7472:18:1;37189:48:0;;;;;;;36966:279;;:::o;53602:293::-;50999:14;;-1:-1:-1;;;;;50999:14:0;24270:10;-1:-1:-1;;;;;50983:30:0;;50975:61;;;;-1:-1:-1;;;50975:61:0;;;;;;;:::i;:::-;53729:7:::1;:14;53709:9;:16;:34;53701:68;;;::::0;-1:-1:-1;;;53701:68:0;;11945:2:1;53701:68:0::1;::::0;::::1;11927:21:1::0;11984:2;11964:18;;;11957:30;-1:-1:-1;;;12003:18:1;;;11996:51;12064:18;;53701:68:0::1;11743:345:1::0;53701:68:0::1;53785:9;53780:108;53804:9;:16;53800:1;:20;53780:108;;;53841:35;53851:9;53861:1;53851:12;;;;;;;;:::i;:::-;;;;;;;53865:7;53873:1;53865:10;;;;;;;;:::i;:::-;;;;;;;53841:9;:35::i;:::-;53822:3:::0;::::1;::::0;::::1;:::i;:::-;;;;53780:108;;51399:154:::0;50999:14;;-1:-1:-1;;;;;50999:14:0;24270:10;-1:-1:-1;;;;;50983:30:0;;50975:61;;;;-1:-1:-1;;;50975:61:0;;;;;;;:::i;:::-;51466:13:::1;::::0;::::1;;51458:55;;;::::0;-1:-1:-1;;;51458:55:0;;9415:2:1;51458:55:0::1;::::0;::::1;9397:21:1::0;9454:2;9434:18;;;9427:30;9493:31;9473:18;;;9466:59;9542:18;;51458:55:0::1;9213:353:1::0;51458:55:0::1;51524:13;:21:::0;;-1:-1:-1;;51524:21:0::1;::::0;;51399:154::o;38044:369::-;38211:28;38221:4;38227:2;38231:7;38211:9;:28::i;:::-;-1:-1:-1;;;;;38254:13:0;;16621:19;:23;;38254:76;;;;;38274:56;38305:4;38311:2;38315:7;38324:5;38274:30;:56::i;:::-;38273:57;38254:76;38250:156;;;38354:40;;-1:-1:-1;;;38354:40:0;;;;;;;;;;;38250:156;38044:369;;;;:::o;50015:30::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;50015:30:0;;-1:-1:-1;50015:30:0;:::o;52754:205::-;52827:13;52859:16;52867:7;52859;:16::i;:::-;52851:76;;;;-1:-1:-1;;;52851:76:0;;11171:2:1;52851:76:0;;;11153:21:1;11210:2;11190:18;;;11183:30;11249:34;11229:18;;;11222:62;-1:-1:-1;;;11300:18:1;;;11293:45;11355:19;;52851:76:0;10969:411:1;52851:76:0;52943:8;52936:15;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52754:205;;;:::o;51848:201::-;-1:-1:-1;;;;;51970:33:0;;;51945:4;51970:33;;;:26;:33;;;;;;;;:43;;;;;;;;;;;;;;;:70;;-1:-1:-1;;;;;;52017:23:0;;;;;;:13;:23;;;;;;;;51970:70;51962:79;51848:201;-1:-1:-1;;;51848:201:0:o;52967:143::-;50999:14;;-1:-1:-1;;;;;50999:14:0;24270:10;-1:-1:-1;;;;;50983:30:0;;50975:61;;;;-1:-1:-1;;;50975:61:0;;;;;;;:::i;:::-;53059:20:::1;:43:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;53059:43:0;;::::1;::::0;;;::::1;::::0;;52967:143::o;38668:187::-;38725:4;38768:7;30858:1;38749:26;;:53;;;;;38789:13;;38779:7;:23;38749:53;:98;;;;-1:-1:-1;;38820:20:0;;;;:11;:20;;;;;:27;-1:-1:-1;;;38820:27:0;;;;38819:28;;38668:187::o;46279:196::-;46394:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;46394:29:0;-1:-1:-1;;;;;46394:29:0;;;;;;;;;46439:28;;46394:24;;46439:28;;;;;;;46279:196;;;:::o;41781:2112::-;41896:35;41934:20;41946:7;41934:11;:20::i;:::-;42009:18;;41896:58;;-1:-1:-1;41967:22:0;;-1:-1:-1;;;;;41993:34:0;24270:10;-1:-1:-1;;;;;41993:34:0;;:101;;;-1:-1:-1;42061:18:0;;42044:50;;24270:10;51848:201;:::i;42044:50::-;41993:154;;;-1:-1:-1;24270:10:0;42111:20;42123:7;42111:11;:20::i;:::-;-1:-1:-1;;;;;42111:36:0;;41993:154;41967:181;;42166:17;42161:66;;42192:35;;-1:-1:-1;;;42192:35:0;;;;;;;;;;;42161:66;42264:4;-1:-1:-1;;;;;42242:26:0;:13;:18;;;-1:-1:-1;;;;;42242:26:0;;42238:67;;42277:28;;-1:-1:-1;;;42277:28:0;;;;;;;;;;;42238:67;-1:-1:-1;;;;;42320:16:0;;42316:52;;42345:23;;-1:-1:-1;;;42345:23:0;;;;;;;;;;;42316:52;42489:49;42506:1;42510:7;42519:13;:18;;;42489:8;:49::i;:::-;-1:-1:-1;;;;;42834:18:0;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;42834:31:0;;;;;;;-1:-1:-1;;42834:31:0;;;;;;;42880:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;42880:29:0;;;;;;;;;;;42926:20;;;:11;:20;;;;;;:30;;-1:-1:-1;;;;;;42971:61:0;;;;-1:-1:-1;;;43016:15:0;42971:61;;;;;;;;;;;43306:11;;;43336:24;;;;;:29;43306:11;;43336:29;43332:445;;43561:13;;43547:11;:27;43543:219;;;43631:18;;;43599:24;;;:11;:24;;;;;;;;:50;;43714:28;;;;43672:70;;-1:-1:-1;;;43672:70:0;-1:-1:-1;;;;;;43672:70:0;;;-1:-1:-1;;;;;43599:50:0;;;43672:70;;;;;;;43543:219;42809:979;43824:7;43820:2;-1:-1:-1;;;;;43805:27:0;43814:4;-1:-1:-1;;;;;43805:27:0;;;;;;;;;;;43843:42;41885:2008;;41781:2112;;;:::o;52150:242::-;52238:20;;52218:4;;52238:20;;;;;52233:38;;-1:-1:-1;52267:4:0;;52150:242;-1:-1:-1;52150:242:0:o;52233:38::-;52284:7;;:23;;-1:-1:-1;;;52284:23:0;;-1:-1:-1;;;;;6543:32:1;;;52284:23:0;;;6525:51:1;52310:1:0;;52284:7;;:17;;6498:18:1;;52284:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:27;52280:65;;;-1:-1:-1;52331:4:0;;52150:242;-1:-1:-1;52150:242:0:o;52280:65::-;52360:4;;:20;;-1:-1:-1;;;52360:20:0;;-1:-1:-1;;;;;6543:32:1;;;52360:20:0;;;6525:51:1;52383:1:0;;52360:4;;:14;;6498:18:1;;52360:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:24;;52150:242;-1:-1:-1;;52150:242:0:o;3569:98::-;3627:7;3654:5;3658:1;3654;:5;:::i;2831:98::-;2889:7;2916:5;2920:1;2916;:5;:::i;38863:104::-;38932:27;38942:2;38946:8;38932:27;;;;;;;;;;;;:9;:27::i;33826:1108::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;33936:7:0;;30858:1;33985:23;;:47;;;;;34019:13;;34012:4;:20;33985:47;33981:886;;;34053:31;34087:17;;;:11;:17;;;;;;;;;34053:51;;;;;;;;;-1:-1:-1;;;;;34053:51:0;;;;-1:-1:-1;;;34053:51:0;;;;;;;;;;;-1:-1:-1;;;34053:51:0;;;;;;;;;;;;;;34123:729;;34173:14;;-1:-1:-1;;;;;34173:28:0;;34169:101;;34237:9;33826:1108;-1:-1:-1;;;33826:1108:0:o;34169:101::-;-1:-1:-1;;;34612:6:0;34657:17;;;;:11;:17;;;;;;;;;34645:29;;;;;;;;;-1:-1:-1;;;;;34645:29:0;;;;;-1:-1:-1;;;34645:29:0;;;;;;;;;;;-1:-1:-1;;;34645:29:0;;;;;;;;;;;;;34705:28;34701:109;;34773:9;33826:1108;-1:-1:-1;;;33826:1108:0:o;34701:109::-;34572:261;;;34034:833;33981:886;34895:31;;-1:-1:-1;;;34895:31:0;;;;;;;;;;;46967:667;47151:72;;-1:-1:-1;;;47151:72:0;;47130:4;;-1:-1:-1;;;;;47151:36:0;;;;;:72;;24270:10;;47202:4;;47208:7;;47217:5;;47151:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47151:72:0;;;;;;;;-1:-1:-1;;47151:72:0;;;;;;;;;;;;:::i;:::-;;;47147:480;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47385:13:0;;47381:235;;47431:40;;-1:-1:-1;;;47431:40:0;;;;;;;;;;;47381:235;47574:6;47568:13;47559:6;47555:2;47551:15;47544:38;47147:480;-1:-1:-1;;;;;;47270:55:0;-1:-1:-1;;;47270:55:0;;-1:-1:-1;47147:480:0;46967:667;;;;;;:::o;39330:163::-;39453:32;39459:2;39463:8;39473:5;39480:4;39891:20;39914:13;-1:-1:-1;;;;;39942:16:0;;39938:48;;39967:19;;-1:-1:-1;;;39967:19:0;;;;;;;;;;;39938:48;40001:13;39997:44;;40023:18;;-1:-1:-1;;;40023:18:0;;;;;;;;;;;39997:44;-1:-1:-1;;;;;40392:16:0;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;40451:49:0;;40392:44;;;;;;;;40451:49;;;;-1:-1:-1;;40392:44:0;;;;;;40451:49;;;;;;;;;;;;;;;;40517:25;;;:11;:25;;;;;;:35;;-1:-1:-1;;;;;;40567:66:0;;;;-1:-1:-1;;;40617:15:0;40567:66;;;;;;;;;;40517:25;40714:23;;;40758:4;:23;;;;-1:-1:-1;;;;;;40766:13:0;;16621:19;:23;;40766:15;40754:641;;;40802:314;40833:38;;40858:12;;-1:-1:-1;;;;;40833:38:0;;;40850:1;;40833:38;;40850:1;;40833:38;40899:69;40938:1;40942:2;40946:14;;;;;;40962:5;40899:30;:69::i;:::-;40894:174;;41004:40;;-1:-1:-1;;;41004:40:0;;;;;;;;;;;40894:174;41111:3;41095:12;:19;;40802:314;;41197:12;41180:13;;:29;41176:43;;41211:8;;;41176:43;40754:641;;;41260:120;41291:40;;41316:14;;;;;-1:-1:-1;;;;;41291:40:0;;;41308:1;;41291:40;;41308:1;;41291:40;41375:3;41359:12;:19;;41260:120;;40754:641;-1:-1:-1;41409:13:0;:28;41459:60;38044:369;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:679::-;246:5;299:3;292:4;284:6;280:17;276:27;266:55;;317:1;314;307:12;266:55;353:6;340:20;379:4;403:60;419:43;459:2;419:43;:::i;:::-;403:60;:::i;:::-;485:3;509:2;504:3;497:15;537:2;532:3;528:12;521:19;;572:2;564:6;560:15;624:3;619:2;613;610:1;606:10;598:6;594:23;590:32;587:41;584:61;;;641:1;638;631:12;584:61;663:1;673:169;687:2;684:1;681:9;673:169;;;744:23;763:3;744:23;:::i;:::-;732:36;;788:12;;;;820;;;;705:1;698:9;673:169;;;-1:-1:-1;860:5:1;;192:679;-1:-1:-1;;;;;;;192:679:1:o;876:160::-;941:20;;997:13;;990:21;980:32;;970:60;;1026:1;1023;1016:12;1041:186;1100:6;1153:2;1141:9;1132:7;1128:23;1124:32;1121:52;;;1169:1;1166;1159:12;1121:52;1192:29;1211:9;1192:29;:::i;1232:260::-;1300:6;1308;1361:2;1349:9;1340:7;1336:23;1332:32;1329:52;;;1377:1;1374;1367:12;1329:52;1400:29;1419:9;1400:29;:::i;:::-;1390:39;;1448:38;1482:2;1471:9;1467:18;1448:38;:::i;:::-;1438:48;;1232:260;;;;;:::o;1497:328::-;1574:6;1582;1590;1643:2;1631:9;1622:7;1618:23;1614:32;1611:52;;;1659:1;1656;1649:12;1611:52;1682:29;1701:9;1682:29;:::i;:::-;1672:39;;1730:38;1764:2;1753:9;1749:18;1730:38;:::i;:::-;1720:48;;1815:2;1804:9;1800:18;1787:32;1777:42;;1497:328;;;;;:::o;1830:980::-;1925:6;1933;1941;1949;2002:3;1990:9;1981:7;1977:23;1973:33;1970:53;;;2019:1;2016;2009:12;1970:53;2042:29;2061:9;2042:29;:::i;:::-;2032:39;;2090:2;2111:38;2145:2;2134:9;2130:18;2111:38;:::i;:::-;2101:48;;2196:2;2185:9;2181:18;2168:32;2158:42;;2251:2;2240:9;2236:18;2223:32;2274:18;2315:2;2307:6;2304:14;2301:34;;;2331:1;2328;2321:12;2301:34;2369:6;2358:9;2354:22;2344:32;;2414:7;2407:4;2403:2;2399:13;2395:27;2385:55;;2436:1;2433;2426:12;2385:55;2472:2;2459:16;2494:2;2490;2487:10;2484:36;;;2500:18;;:::i;:::-;2542:53;2585:2;2566:13;;-1:-1:-1;;2562:27:1;2558:36;;2542:53;:::i;:::-;2529:66;;2618:2;2611:5;2604:17;2658:7;2653:2;2648;2644;2640:11;2636:20;2633:33;2630:53;;;2679:1;2676;2669:12;2630:53;2734:2;2729;2725;2721:11;2716:2;2709:5;2705:14;2692:45;2778:1;2773:2;2768;2761:5;2757:14;2753:23;2746:34;;2799:5;2789:15;;;;;1830:980;;;;;;;:::o;2815:254::-;2880:6;2888;2941:2;2929:9;2920:7;2916:23;2912:32;2909:52;;;2957:1;2954;2947:12;2909:52;2980:29;2999:9;2980:29;:::i;:::-;2970:39;;3028:35;3059:2;3048:9;3044:18;3028:35;:::i;3074:254::-;3142:6;3150;3203:2;3191:9;3182:7;3178:23;3174:32;3171:52;;;3219:1;3216;3209:12;3171:52;3242:29;3261:9;3242:29;:::i;:::-;3232:39;3318:2;3303:18;;;;3290:32;;-1:-1:-1;;;3074:254:1:o;3333:348::-;3417:6;3470:2;3458:9;3449:7;3445:23;3441:32;3438:52;;;3486:1;3483;3476:12;3438:52;3526:9;3513:23;3559:18;3551:6;3548:30;3545:50;;;3591:1;3588;3581:12;3545:50;3614:61;3667:7;3658:6;3647:9;3643:22;3614:61;:::i;3686:1149::-;3804:6;3812;3865:2;3853:9;3844:7;3840:23;3836:32;3833:52;;;3881:1;3878;3871:12;3833:52;3921:9;3908:23;3950:18;3991:2;3983:6;3980:14;3977:34;;;4007:1;4004;3997:12;3977:34;4030:61;4083:7;4074:6;4063:9;4059:22;4030:61;:::i;:::-;4020:71;;4110:2;4100:12;;4165:2;4154:9;4150:18;4137:32;4194:2;4184:8;4181:16;4178:36;;;4210:1;4207;4200:12;4178:36;4233:24;;;-1:-1:-1;4288:4:1;4280:13;;4276:27;-1:-1:-1;4266:55:1;;4317:1;4314;4307:12;4266:55;4353:2;4340:16;4376:60;4392:43;4432:2;4392:43;:::i;4376:60::-;4458:3;4482:2;4477:3;4470:15;4510:2;4505:3;4501:12;4494:19;;4541:2;4537;4533:11;4589:7;4584:2;4578;4575:1;4571:10;4567:2;4563:19;4559:28;4556:41;4553:61;;;4610:1;4607;4600:12;4553:61;4632:1;4623:10;;4642:163;4656:2;4653:1;4650:9;4642:163;;;4713:17;;4701:30;;4674:1;4667:9;;;;;4751:12;;;;4783;;4642:163;;;4646:3;4824:5;4814:15;;;;;;;3686:1149;;;;;:::o;4840:180::-;4896:6;4949:2;4937:9;4928:7;4924:23;4920:32;4917:52;;;4965:1;4962;4955:12;4917:52;4988:26;5004:9;4988:26;:::i;5025:245::-;5083:6;5136:2;5124:9;5115:7;5111:23;5107:32;5104:52;;;5152:1;5149;5142:12;5104:52;5191:9;5178:23;5210:30;5234:5;5210:30;:::i;5275:249::-;5344:6;5397:2;5385:9;5376:7;5372:23;5368:32;5365:52;;;5413:1;5410;5403:12;5365:52;5445:9;5439:16;5464:30;5488:5;5464:30;:::i;5529:180::-;5588:6;5641:2;5629:9;5620:7;5616:23;5612:32;5609:52;;;5657:1;5654;5647:12;5609:52;-1:-1:-1;5680:23:1;;5529:180;-1:-1:-1;5529:180:1:o;5714:184::-;5784:6;5837:2;5825:9;5816:7;5812:23;5808:32;5805:52;;;5853:1;5850;5843:12;5805:52;-1:-1:-1;5876:16:1;;5714:184;-1:-1:-1;5714:184:1:o;5903:471::-;5944:3;5982:5;5976:12;6009:6;6004:3;5997:19;6034:1;6044:162;6058:6;6055:1;6052:13;6044:162;;;6120:4;6176:13;;;6172:22;;6166:29;6148:11;;;6144:20;;6137:59;6073:12;6044:162;;;6224:6;6221:1;6218:13;6215:87;;;6290:1;6283:4;6274:6;6269:3;6265:16;6261:27;6254:38;6215:87;-1:-1:-1;6356:2:1;6335:15;-1:-1:-1;;6331:29:1;6322:39;;;;6363:4;6318:50;;5903:471;-1:-1:-1;;5903:471:1:o;6587:488::-;-1:-1:-1;;;;;6856:15:1;;;6838:34;;6908:15;;6903:2;6888:18;;6881:43;6955:2;6940:18;;6933:34;;;7003:3;6998:2;6983:18;;6976:31;;;6781:4;;7024:45;;7049:19;;7041:6;7024:45;:::i;:::-;7016:53;6587:488;-1:-1:-1;;;;;;6587:488:1:o;8220:219::-;8369:2;8358:9;8351:21;8332:4;8389:44;8429:2;8418:9;8414:18;8406:6;8389:44;:::i;8802:406::-;9004:2;8986:21;;;9043:2;9023:18;;;9016:30;9082:34;9077:2;9062:18;;9055:62;-1:-1:-1;;;9148:2:1;9133:18;;9126:40;9198:3;9183:19;;8802:406::o;12093:342::-;12295:2;12277:21;;;12334:2;12314:18;;;12307:30;-1:-1:-1;;;12368:2:1;12353:18;;12346:48;12426:2;12411:18;;12093:342::o;13338:275::-;13409:2;13403:9;13474:2;13455:13;;-1:-1:-1;;13451:27:1;13439:40;;13509:18;13494:34;;13530:22;;;13491:62;13488:88;;;13556:18;;:::i;:::-;13592:2;13585:22;13338:275;;-1:-1:-1;13338:275:1:o;13618:183::-;13678:4;13711:18;13703:6;13700:30;13697:56;;;13733:18;;:::i;:::-;-1:-1:-1;13778:1:1;13774:14;13790:4;13770:25;;13618:183::o;13806:128::-;13846:3;13877:1;13873:6;13870:1;13867:13;13864:39;;;13883:18;;:::i;:::-;-1:-1:-1;13919:9:1;;13806:128::o;13939:168::-;13979:7;14045:1;14041;14037:6;14033:14;14030:1;14027:21;14022:1;14015:9;14008:17;14004:45;14001:71;;;14052:18;;:::i;:::-;-1:-1:-1;14092:9:1;;13939:168::o;14112:380::-;14191:1;14187:12;;;;14234;;;14255:61;;14309:4;14301:6;14297:17;14287:27;;14255:61;14362:2;14354:6;14351:14;14331:18;14328:38;14325:161;;;14408:10;14403:3;14399:20;14396:1;14389:31;14443:4;14440:1;14433:15;14471:4;14468:1;14461:15;14325:161;;14112:380;;;:::o;14497:135::-;14536:3;-1:-1:-1;;14557:17:1;;14554:43;;;14577:18;;:::i;:::-;-1:-1:-1;14624:1:1;14613:13;;14497:135::o;14637:127::-;14698:10;14693:3;14689:20;14686:1;14679:31;14729:4;14726:1;14719:15;14753:4;14750:1;14743:15;14769:127;14830:10;14825:3;14821:20;14818:1;14811:31;14861:4;14858:1;14851:15;14885:4;14882:1;14875:15;14901:127;14962:10;14957:3;14953:20;14950:1;14943:31;14993:4;14990:1;14983:15;15017:4;15014:1;15007:15;15033:131;-1:-1:-1;;;;;;15107:32:1;;15097:43;;15087:71;;15154:1;15151;15144:12

Swarm Source

ipfs://6b39e8bc358102175a8e018ce0c8520b7451b4923927cd30c8cdfa322f8512b0
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.