ETH Price: $3,448.98 (-0.01%)
Gas: 6 Gwei

Token

BULLIONAIRES (BULLX)
 

Overview

Max Total Supply

1,424 BULLX

Holders

315

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 BULLX
0x47F75fD9463723f9af8bBc0194430d9e303833E7
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:
Bullionaires

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-11-02
*/

// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
// File: SafeMath.sol

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
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)
    {
        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)
    {
        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)
    {
        // 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)
    {
        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)
    {
        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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @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. 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) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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) {
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}
// File: Strings.sol


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


// 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;
    }
}
// File: Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)



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

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
// File: Address.sol


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


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


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


// 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;
    }
}
// File: IERC721.sol


// 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;
}
// File: IERC721Enumerable.sol


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


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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
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 and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 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**128 - 1 (max value of uint128).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    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;
    }

    // Compiler will pack the following 
    // _currentIndex and _burnCounter into a single 256bit word.
    
    // The tokenId of the next token to be minted.
    uint128 internal _currentIndex;

    // The number of tokens burned.
    uint128 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)) private _operatorApprovals;

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

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (!ownership.burned) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        // Execution should never reach this point.
        revert();
    }

    /**
     * @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 ||
            interfaceId == type(IERC721Enumerable).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);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * 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 (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 (!_checkOnERC721Received(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 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 > 3.4e38 (2**128) - 1
        // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 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;
            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

            _currentIndex = uint128(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**128.
        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**128.
        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 address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert TransferToNonERC721ReceiverImplementer();
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @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 {}
}
// File: ERC721A.sol

/*
* ERC721A Gas Optimized Minting
*  https://twitter.com/SQUIDzillaz0e
*/


contract Bullionaires is ERC721A, Ownable {
    using SafeMath for uint256;

    /*
     * @dev Set Initial Parameters Before deployment
     * settings are still fully updateable after deployment
     * Max Mint overall, Max NFTs in collection, Max Mint during Presale period
     * as well as Private/Presale price adn Public Mint price.
     * Public are easily retrieved on Etherscan/FrontEnd
     */
    uint256 public MAX_MINTS = 6;
    uint256 public MAX_SUPPLY = 1500;
    uint256 public mintRate = 0.14 ether;
    uint256 public privateMintPrice = 0.12 ether;
    /*
    * @Dev Booleans for sale states. 
    * salesIsActive must be true in any case to mint
    * privateSaleIsActive must be true in the case of Whitelist mints
    * If you do not want a WL period or a Presale Period keep
    * privateSalesIsActive set to False and it will bypass the sale period Entirely.
    */
    bool public saleIsActive = false;
    bool public privateSaleIsActive = true;
    /*
    * @Dev Whitelist Struct and Mappings
    */
    struct Whitelist {
        address addr;
    }

    mapping(address => Whitelist) public whitelist;

    address[] whitelistAddr;

    /*
     * @dev Set base URI
     *  Do not Deploy with your Revealed
     * base URI
     */
    string public baseURI = "ipfs://BULLIONARES/";
    
    /*
     * @dev Set your Collection/Contract name and Token Ticker
     * below. Constructor Parameter cannot be changed after
     * contract deployment.
     */
    constructor() ERC721A("BULLIONAIRES", "BULLX") {}

    /*
     *  @dev
     * Set presale price to mint per NFT
     */
    function setPrivateMintPrice(uint256 _price) external onlyOwner {
        privateMintPrice = _price;
    }

    /*
     *@dev
     * Set publicsale price to mint per NFT
     */
    function setPublicMintPrice(uint256 _price) external onlyOwner {
        mintRate = _price;
    }

    /*
    * @dev mint funtion with _to address. no cost mint
    *  by contract owner/deployer
    */
    function ownerMint(uint256 quantity, address _to) external onlyOwner {
        require(totalSupply() + quantity <= MAX_SUPPLY, "Not enough tokens left");
        _safeMint(_to, quantity);
    }

    /*
    * @dev mint function and checks for saleState and mint quantity
    * Includes Private/public sale checks and quantity minted.
    * ** Updated to only look for whitelist during Presale state only
    * Use Max Mints more of a max perwallet than how many can be minted.
    * This remedied the bug of not being able to mint in Public sale after
    * a presale mint has occured. or a mint has occured and was transfered to a different wallet.
    */   
    function mint(uint256 quantity) external payable {
        require(saleIsActive, "Sale must be active to mint");
        // _safeMint's second argument now takes in a quantity, not a tokenId.
        require(totalSupply() + quantity <= MAX_SUPPLY, "Not enough tokens left to Mint");
        if(privateSaleIsActive) {
           require(msg.value >= (privateMintPrice * quantity), "Not enough ETH sent");
           require((balanceOf(msg.sender) + quantity) <= MAX_MINTS, "Over Max Limit");
           require(isWhitelisted(msg.sender), "Is not whitelisted");
        } else { 
            require((balanceOf(msg.sender) + quantity) <= MAX_MINTS, "Over Max Limit");
            require((mintRate * quantity) <= msg.value, "Value below price");
        }

        if (totalSupply() < MAX_SUPPLY){
        _safeMint(msg.sender, quantity);
        }
    }

    /*
     * @dev Set Max Mints allowed by any one single
     * wallet during the entirety of the Mint.
     */
    function setMaxMints(uint256 _max) external onlyOwner {
        MAX_MINTS = _max;
    }

    /*
     * @dev Set new Base URI
     * useful for setting unrevealed uri to revealed Base URI
     * same as a reveal switch/state but not the extraness
     */
    function setBaseURI(string calldata newBaseURI) external onlyOwner {
        baseURI = newBaseURI;
    }

     /*
     * @dev returns Base URI
     */
    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

     /*
     * @dev Pause sale if active, make active if paused
     */
    function setSaleActive() public onlyOwner {
        saleIsActive = !saleIsActive;
    }
    
    /*
    * @dev flip sale state from whitelist to public
    *
    */
    function setPrivateSaleActive() public onlyOwner {
        privateSaleIsActive = !privateSaleIsActive;
    }
    
    /*
     * @dev Withdrawl function, Contract ETH balance
     * to owner wallet address.
     */
    function withdraw() public onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }
    
    /*
    * @dev Alternative withdrawl
    * mint funs to a specified address
    * 
    */
    function altWithdraw(uint256 _amount, address payable _to)
        external
        onlyOwner
    {
        require(_amount > 0, "Withdraw must be greater than 0");
        require(_amount <= address(this).balance, "Amount too high");
        (bool success, ) = _to.call{value: _amount}("");
        require(success);
    }

    /*
    * @dev Set Whitelist address
    * array - format must be: ["address1","address2"]
    * 
    */
    function setWhitelistAddr(address[] memory addrs) public onlyOwner {
        whitelistAddr = addrs;
        for (uint256 i = 0; i < whitelistAddr.length; i++) {
            addAddressToWhitelist(whitelistAddr[i]);
        }
    }

    /*
    * @dev Add a single Wallet
    * address to whitelist
    * 
    */
    function addAddressToWhitelist(address addr)
        public
        onlyOwner
        returns (bool success)
    {
        require(!isWhitelisted(addr), "Already whitelisted");
        whitelist[addr].addr = addr;
        success = true;
    }
    
    /*
    * @dev return a boolean true or false if
    * an address is whitelisted on etherscan
    * or frontend
    */
    function isWhitelisted(address addr)
        public
        view
        returns (bool isWhiteListed)
    {
        return whitelist[addr].addr == addr;
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addAddressToWhitelist","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address payable","name":"_to","type":"address"}],"name":"altWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"isWhiteListed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"quantity","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateSaleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrivateMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPrivateSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPublicMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"}],"name":"setWhitelistAddr","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"address","name":"addr","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60066008556105dc6009556701f161421c8e0000600a556701aa535d3d0c0000600b55600c805461ffff191661010017905560c0604052601360808190527f697066733a2f2f42554c4c494f4e415245532f0000000000000000000000000060a09081526200007291600f919062000161565b503480156200008057600080fd5b50604080518082018252600c81526b42554c4c494f4e414952455360a01b602080830191825283518085019094526005845264084aa9898b60db1b908401528151919291620000d29160019162000161565b508051620000e890600290602084019062000161565b50505062000105620000ff6200010b60201b60201c565b6200010f565b62000244565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200016f9062000207565b90600052602060002090601f016020900481019282620001935760008555620001de565b82601f10620001ae57805160ff1916838001178555620001de565b82800160010185558215620001de579182015b82811115620001de578251825591602001919060010190620001c1565b50620001ec929150620001f0565b5090565b5b80821115620001ec5760008155600101620001f1565b600181811c908216806200021c57607f821691505b602082108114156200023e57634e487b7160e01b600052602260045260246000fd5b50919050565b61245c80620002546000396000f3fe60806040526004361061023a5760003560e01c806370a082311161012e578063a22cb465116100ab578063cd7d508f1161006f578063cd7d508f1461068b578063d52c57e0146106ab578063e985e9c5146106cb578063eb8d244414610714578063f2fde38b1461072e57600080fd5b8063a22cb465146105ff578063b88d4fde1461061f578063c87b56dd1461063f578063ca0dcf161461065f578063cce132d11461067557600080fd5b80638da5cb5b116100f25780638da5cb5b1461056e57806395d89b411461058c5780639b19251a146105a15780639e65e644146105d7578063a0712d68146105ec57600080fd5b806370a08231146104d9578063715018a6146104f957806379c9cb7b1461050e5780637a5657d21461052e5780637b9417c81461054e57600080fd5b80632f745c59116101bc5780634f6ccce7116101805780634f6ccce71461044457806355f804b3146104645780635d82cf6e146104845780636352211e146104a45780636c0360eb146104c457600080fd5b80632f745c591461039d57806332cb6b0c146103bd5780633af32abf146103d35780633ccfd60b1461040f57806342842e0e1461042457600080fd5b8063095ea7b311610203578063095ea7b31461031157806318160ddd146103335780631970d1fb1461034857806323b872dd14610368578063261f5a971461038857600080fd5b806204348e1461023f57806301ffc9a71461026857806304737a011461029857806306fdde03146102b7578063081812fc146102d9575b600080fd5b34801561024b57600080fd5b50610255600b5481565b6040519081526020015b60405180910390f35b34801561027457600080fd5b506102886102833660046120b2565b61074e565b604051901515815260200161025f565b3480156102a457600080fd5b50600c5461028890610100900460ff1681565b3480156102c357600080fd5b506102cc6107bb565b60405161025f9190612233565b3480156102e557600080fd5b506102f96102f436600461215d565b61084d565b6040516001600160a01b03909116815260200161025f565b34801561031d57600080fd5b5061033161032c366004611fce565b610891565b005b34801561033f57600080fd5b5061025561091f565b34801561035457600080fd5b5061033161036336600461215d565b61093e565b34801561037457600080fd5b50610331610383366004611e97565b610976565b34801561039457600080fd5b50610331610981565b3480156103a957600080fd5b506102556103b8366004611fce565b6109bf565b3480156103c957600080fd5b5061025560095481565b3480156103df57600080fd5b506102886103ee366004611e41565b6001600160a01b039081166000818152600d60205260409020549091161490565b34801561041b57600080fd5b50610331610abb565b34801561043057600080fd5b5061033161043f366004611e97565b610b21565b34801561045057600080fd5b5061025561045f36600461215d565b610b3c565b34801561047057600080fd5b5061033161047f3660046120ec565b610be6565b34801561049057600080fd5b5061033161049f36600461215d565b610c1c565b3480156104b057600080fd5b506102f96104bf36600461215d565b610c4b565b3480156104d057600080fd5b506102cc610c5d565b3480156104e557600080fd5b506102556104f4366004611e41565b610ceb565b34801561050557600080fd5b50610331610d39565b34801561051a57600080fd5b5061033161052936600461215d565b610d6f565b34801561053a57600080fd5b50610331610549366004612176565b610d9e565b34801561055a57600080fd5b50610288610569366004611e41565b610eba565b34801561057a57600080fd5b506007546001600160a01b03166102f9565b34801561059857600080fd5b506102cc610f76565b3480156105ad57600080fd5b506102f96105bc366004611e41565b600d602052600090815260409020546001600160a01b031681565b3480156105e357600080fd5b50610331610f85565b6103316105fa36600461215d565b610fcc565b34801561060b57600080fd5b5061033161061a366004611f9b565b61125d565b34801561062b57600080fd5b5061033161063a366004611ed8565b6112f3565b34801561064b57600080fd5b506102cc61065a36600461215d565b61132d565b34801561066b57600080fd5b50610255600a5481565b34801561068157600080fd5b5061025560085481565b34801561069757600080fd5b506103316106a6366004611ffa565b6113b2565b3480156106b757600080fd5b506103316106c6366004612176565b611444565b3480156106d757600080fd5b506102886106e6366004611e5e565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561072057600080fd5b50600c546102889060ff1681565b34801561073a57600080fd5b50610331610749366004611e41565b6114d5565b60006001600160e01b031982166380ac58cd60e01b148061077f57506001600160e01b03198216635b5e139f60e01b145b8061079a57506001600160e01b0319821663780e9d6360e01b145b806107b557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546107ca90612339565b80601f01602080910402602001604051908101604052809291908181526020018280546107f690612339565b80156108435780601f1061081857610100808354040283529160200191610843565b820191906000526020600020905b81548152906001019060200180831161082657829003601f168201915b5050505050905090565b60006108588261156d565b610875576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061089c82610c4b565b9050806001600160a01b0316836001600160a01b031614156108d15760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906108f157506108ef81336106e6565b155b1561090f576040516367d9dca160e11b815260040160405180910390fd5b61091a8383836115a1565b505050565b6000546001600160801b03600160801b82048116918116919091031690565b6007546001600160a01b031633146109715760405162461bcd60e51b815260040161096890612246565b60405180910390fd5b600b55565b61091a8383836115fd565b6007546001600160a01b031633146109ab5760405162461bcd60e51b815260040161096890612246565b600c805460ff19811660ff90911615179055565b60006109ca83610ceb565b82106109e9576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610ab557600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610a615750610aad565b80516001600160a01b031615610a7657805192505b876001600160a01b0316836001600160a01b03161415610aab5786841415610aa4575093506107b592505050565b6001909301925b505b6001016109fa565b50600080fd5b6007546001600160a01b03163314610ae55760405162461bcd60e51b815260040161096890612246565b6007546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610b1e573d6000803e3d6000fd5b50565b61091a838383604051806020016040528060008152506112f3565b600080546001600160801b031681805b82811015610bcc57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290610bc35785831415610bbc5750949350505050565b6001909201915b50600101610b4c565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b03163314610c105760405162461bcd60e51b815260040161096890612246565b61091a600f8383611d53565b6007546001600160a01b03163314610c465760405162461bcd60e51b815260040161096890612246565b600a55565b6000610c568261181a565b5192915050565b600f8054610c6a90612339565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9690612339565b8015610ce35780601f10610cb857610100808354040283529160200191610ce3565b820191906000526020600020905b815481529060010190602001808311610cc657829003601f168201915b505050505081565b60006001600160a01b038216610d14576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b03163314610d635760405162461bcd60e51b815260040161096890612246565b610d6d600061193c565b565b6007546001600160a01b03163314610d995760405162461bcd60e51b815260040161096890612246565b600855565b6007546001600160a01b03163314610dc85760405162461bcd60e51b815260040161096890612246565b60008211610e185760405162461bcd60e51b815260206004820152601f60248201527f5769746864726177206d7573742062652067726561746572207468616e2030006044820152606401610968565b47821115610e5a5760405162461bcd60e51b815260206004820152600f60248201526e082dadeeadce840e8dede40d0d2ced608b1b6044820152606401610968565b6000816001600160a01b03168360405160006040518083038185875af1925050503d8060008114610ea7576040519150601f19603f3d011682016040523d82523d6000602084013e610eac565b606091505b505090508061091a57600080fd5b6007546000906001600160a01b03163314610ee75760405162461bcd60e51b815260040161096890612246565b6001600160a01b038083166000818152600d60205260409020549091161415610f485760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481dda1a5d195b1a5cdd1959606a1b6044820152606401610968565b506001600160a01b03166000818152600d6020526040902080546001600160a01b0319169091179055600190565b6060600280546107ca90612339565b6007546001600160a01b03163314610faf5760405162461bcd60e51b815260040161096890612246565b600c805461ff001981166101009182900460ff1615909102179055565b600c5460ff1661101e5760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610968565b6009548161102a61091f565b61103491906122ab565b11156110825760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f204d696e7400006044820152606401610968565b600c54610100900460ff161561119b5780600b546110a091906122d7565b3410156110e55760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610968565b600854816110f233610ceb565b6110fc91906122ab565b111561113b5760405162461bcd60e51b815260206004820152600e60248201526d13dd995c8813585e08131a5b5a5d60921b6044820152606401610968565b336000818152600d60205260409020546001600160a01b0316146111965760405162461bcd60e51b8152602060048201526012602482015271125cc81b9bdd081dda1a5d195b1a5cdd195960721b6044820152606401610968565b611242565b600854816111a833610ceb565b6111b291906122ab565b11156111f15760405162461bcd60e51b815260206004820152600e60248201526d13dd995c8813585e08131a5b5a5d60921b6044820152606401610968565b3481600a5461120091906122d7565b11156112425760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b6044820152606401610968565b60095461124d61091f565b1015610b1e57610b1e338261198e565b6001600160a01b0382163314156112875760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112fe8484846115fd565b61130a848484846119a8565b611327576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606113388261156d565b61135557604051630a14c4b560e41b815260040160405180910390fd5b600061135f611ab7565b905080516000141561138057604051806020016040528060008152506113ab565b8061138a84611ac6565b60405160200161139b9291906121c7565b6040516020818303038152906040525b9392505050565b6007546001600160a01b031633146113dc5760405162461bcd60e51b815260040161096890612246565b80516113ef90600e906020840190611dd7565b5060005b600e548110156114405761142d600e8281548110611413576114136123cf565b6000918252602090912001546001600160a01b0316610eba565b508061143881612374565b9150506113f3565b5050565b6007546001600160a01b0316331461146e5760405162461bcd60e51b815260040161096890612246565b6009548261147a61091f565b61148491906122ab565b11156114cb5760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da081d1bdad95b9cc81b19599d60521b6044820152606401610968565b611440818361198e565b6007546001600160a01b031633146114ff5760405162461bcd60e51b815260040161096890612246565b6001600160a01b0381166115645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610968565b610b1e8161193c565b600080546001600160801b0316821080156107b5575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006116088261181a565b80519091506000906001600160a01b0316336001600160a01b031614806116365750815161163690336106e6565b806116515750336116468461084d565b6001600160a01b0316145b90508061167157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146116a65760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166116cd57604051633a954ecd60e21b815260040160405180910390fd5b6116dd60008484600001516115a1565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166117d0576000546001600160801b03168110156117d057825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b031681101561192357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906119215780516001600160a01b0316156118b8579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561191c579392505050565b6118b8565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611440828260405180602001604052806000815250611bc3565b60006001600160a01b0384163b15611aab57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119ec9033908990889088906004016121f6565b602060405180830381600087803b158015611a0657600080fd5b505af1925050508015611a36575060408051601f3d908101601f19168201909252611a33918101906120cf565b60015b611a91573d808015611a64576040519150601f19603f3d011682016040523d82523d6000602084013e611a69565b606091505b508051611a89576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611aaf565b5060015b949350505050565b6060600f80546107ca90612339565b606081611aea5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b145780611afe81612374565b9150611b0d9050600a836122c3565b9150611aee565b6000816001600160401b03811115611b2e57611b2e6123e5565b6040519080825280601f01601f191660200182016040528015611b58576020820181803683370190505b5090505b8415611aaf57611b6d6001836122f6565b9150611b7a600a8661238f565b611b859060306122ab565b60f81b818381518110611b9a57611b9a6123cf565b60200101906001600160f81b031916908160001a905350611bbc600a866122c3565b9450611b5c565b61091a83838360016000546001600160801b03166001600160a01b038516611bfd57604051622e076360e81b815260040160405180910390fd5b83611c1b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015611d2d5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015611d035750611d0160008884886119a8565b155b15611d21576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101611cac565b50600080546001600160801b0319166001600160801b0392909216919091179055611813565b828054611d5f90612339565b90600052602060002090601f016020900481019282611d815760008555611dc7565b82601f10611d9a5782800160ff19823516178555611dc7565b82800160010185558215611dc7579182015b82811115611dc7578235825591602001919060010190611dac565b50611dd3929150611e2c565b5090565b828054828255906000526020600020908101928215611dc7579160200282015b82811115611dc757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611df7565b5b80821115611dd35760008155600101611e2d565b600060208284031215611e5357600080fd5b81356113ab816123fb565b60008060408385031215611e7157600080fd5b8235611e7c816123fb565b91506020830135611e8c816123fb565b809150509250929050565b600080600060608486031215611eac57600080fd5b8335611eb7816123fb565b92506020840135611ec7816123fb565b929592945050506040919091013590565b60008060008060808587031215611eee57600080fd5b8435611ef9816123fb565b9350602085810135611f0a816123fb565b93506040860135925060608601356001600160401b0380821115611f2d57600080fd5b818801915088601f830112611f4157600080fd5b813581811115611f5357611f536123e5565b611f65601f8201601f1916850161227b565b91508082528984828501011115611f7b57600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215611fae57600080fd5b8235611fb9816123fb565b915060208301358015158114611e8c57600080fd5b60008060408385031215611fe157600080fd5b8235611fec816123fb565b946020939093013593505050565b6000602080838503121561200d57600080fd5b82356001600160401b038082111561202457600080fd5b818501915085601f83011261203857600080fd5b81358181111561204a5761204a6123e5565b8060051b915061205b84830161227b565b8181528481019084860184860187018a101561207657600080fd5b600095505b838610156120a55780359450612090856123fb565b8483526001959095019491860191860161207b565b5098975050505050505050565b6000602082840312156120c457600080fd5b81356113ab81612410565b6000602082840312156120e157600080fd5b81516113ab81612410565b600080602083850312156120ff57600080fd5b82356001600160401b038082111561211657600080fd5b818501915085601f83011261212a57600080fd5b81358181111561213957600080fd5b86602082850101111561214b57600080fd5b60209290920196919550909350505050565b60006020828403121561216f57600080fd5b5035919050565b6000806040838503121561218957600080fd5b823591506020830135611e8c816123fb565b600081518084526121b381602086016020860161230d565b601f01601f19169290920160200192915050565b600083516121d981846020880161230d565b8351908301906121ed81836020880161230d565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122299083018461219b565b9695505050505050565b6020815260006113ab602083018461219b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156122a3576122a36123e5565b604052919050565b600082198211156122be576122be6123a3565b500190565b6000826122d2576122d26123b9565b500490565b60008160001904831182151516156122f1576122f16123a3565b500290565b600082821015612308576123086123a3565b500390565b60005b83811015612328578181015183820152602001612310565b838111156113275750506000910152565b600181811c9082168061234d57607f821691505b6020821081141561236e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612388576123886123a3565b5060010190565b60008261239e5761239e6123b9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b1e57600080fd5b6001600160e01b031981168114610b1e57600080fdfea2646970667358221220a490bd80529e300f3387663783f2f23a9a90512678dffdf386095bdb2258065d64736f6c63430008070033

Deployed Bytecode

0x60806040526004361061023a5760003560e01c806370a082311161012e578063a22cb465116100ab578063cd7d508f1161006f578063cd7d508f1461068b578063d52c57e0146106ab578063e985e9c5146106cb578063eb8d244414610714578063f2fde38b1461072e57600080fd5b8063a22cb465146105ff578063b88d4fde1461061f578063c87b56dd1461063f578063ca0dcf161461065f578063cce132d11461067557600080fd5b80638da5cb5b116100f25780638da5cb5b1461056e57806395d89b411461058c5780639b19251a146105a15780639e65e644146105d7578063a0712d68146105ec57600080fd5b806370a08231146104d9578063715018a6146104f957806379c9cb7b1461050e5780637a5657d21461052e5780637b9417c81461054e57600080fd5b80632f745c59116101bc5780634f6ccce7116101805780634f6ccce71461044457806355f804b3146104645780635d82cf6e146104845780636352211e146104a45780636c0360eb146104c457600080fd5b80632f745c591461039d57806332cb6b0c146103bd5780633af32abf146103d35780633ccfd60b1461040f57806342842e0e1461042457600080fd5b8063095ea7b311610203578063095ea7b31461031157806318160ddd146103335780631970d1fb1461034857806323b872dd14610368578063261f5a971461038857600080fd5b806204348e1461023f57806301ffc9a71461026857806304737a011461029857806306fdde03146102b7578063081812fc146102d9575b600080fd5b34801561024b57600080fd5b50610255600b5481565b6040519081526020015b60405180910390f35b34801561027457600080fd5b506102886102833660046120b2565b61074e565b604051901515815260200161025f565b3480156102a457600080fd5b50600c5461028890610100900460ff1681565b3480156102c357600080fd5b506102cc6107bb565b60405161025f9190612233565b3480156102e557600080fd5b506102f96102f436600461215d565b61084d565b6040516001600160a01b03909116815260200161025f565b34801561031d57600080fd5b5061033161032c366004611fce565b610891565b005b34801561033f57600080fd5b5061025561091f565b34801561035457600080fd5b5061033161036336600461215d565b61093e565b34801561037457600080fd5b50610331610383366004611e97565b610976565b34801561039457600080fd5b50610331610981565b3480156103a957600080fd5b506102556103b8366004611fce565b6109bf565b3480156103c957600080fd5b5061025560095481565b3480156103df57600080fd5b506102886103ee366004611e41565b6001600160a01b039081166000818152600d60205260409020549091161490565b34801561041b57600080fd5b50610331610abb565b34801561043057600080fd5b5061033161043f366004611e97565b610b21565b34801561045057600080fd5b5061025561045f36600461215d565b610b3c565b34801561047057600080fd5b5061033161047f3660046120ec565b610be6565b34801561049057600080fd5b5061033161049f36600461215d565b610c1c565b3480156104b057600080fd5b506102f96104bf36600461215d565b610c4b565b3480156104d057600080fd5b506102cc610c5d565b3480156104e557600080fd5b506102556104f4366004611e41565b610ceb565b34801561050557600080fd5b50610331610d39565b34801561051a57600080fd5b5061033161052936600461215d565b610d6f565b34801561053a57600080fd5b50610331610549366004612176565b610d9e565b34801561055a57600080fd5b50610288610569366004611e41565b610eba565b34801561057a57600080fd5b506007546001600160a01b03166102f9565b34801561059857600080fd5b506102cc610f76565b3480156105ad57600080fd5b506102f96105bc366004611e41565b600d602052600090815260409020546001600160a01b031681565b3480156105e357600080fd5b50610331610f85565b6103316105fa36600461215d565b610fcc565b34801561060b57600080fd5b5061033161061a366004611f9b565b61125d565b34801561062b57600080fd5b5061033161063a366004611ed8565b6112f3565b34801561064b57600080fd5b506102cc61065a36600461215d565b61132d565b34801561066b57600080fd5b50610255600a5481565b34801561068157600080fd5b5061025560085481565b34801561069757600080fd5b506103316106a6366004611ffa565b6113b2565b3480156106b757600080fd5b506103316106c6366004612176565b611444565b3480156106d757600080fd5b506102886106e6366004611e5e565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561072057600080fd5b50600c546102889060ff1681565b34801561073a57600080fd5b50610331610749366004611e41565b6114d5565b60006001600160e01b031982166380ac58cd60e01b148061077f57506001600160e01b03198216635b5e139f60e01b145b8061079a57506001600160e01b0319821663780e9d6360e01b145b806107b557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600180546107ca90612339565b80601f01602080910402602001604051908101604052809291908181526020018280546107f690612339565b80156108435780601f1061081857610100808354040283529160200191610843565b820191906000526020600020905b81548152906001019060200180831161082657829003601f168201915b5050505050905090565b60006108588261156d565b610875576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061089c82610c4b565b9050806001600160a01b0316836001600160a01b031614156108d15760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216148015906108f157506108ef81336106e6565b155b1561090f576040516367d9dca160e11b815260040160405180910390fd5b61091a8383836115a1565b505050565b6000546001600160801b03600160801b82048116918116919091031690565b6007546001600160a01b031633146109715760405162461bcd60e51b815260040161096890612246565b60405180910390fd5b600b55565b61091a8383836115fd565b6007546001600160a01b031633146109ab5760405162461bcd60e51b815260040161096890612246565b600c805460ff19811660ff90911615179055565b60006109ca83610ceb565b82106109e9576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610ab557600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610a615750610aad565b80516001600160a01b031615610a7657805192505b876001600160a01b0316836001600160a01b03161415610aab5786841415610aa4575093506107b592505050565b6001909301925b505b6001016109fa565b50600080fd5b6007546001600160a01b03163314610ae55760405162461bcd60e51b815260040161096890612246565b6007546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610b1e573d6000803e3d6000fd5b50565b61091a838383604051806020016040528060008152506112f3565b600080546001600160801b031681805b82811015610bcc57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290610bc35785831415610bbc5750949350505050565b6001909201915b50600101610b4c565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b03163314610c105760405162461bcd60e51b815260040161096890612246565b61091a600f8383611d53565b6007546001600160a01b03163314610c465760405162461bcd60e51b815260040161096890612246565b600a55565b6000610c568261181a565b5192915050565b600f8054610c6a90612339565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9690612339565b8015610ce35780601f10610cb857610100808354040283529160200191610ce3565b820191906000526020600020905b815481529060010190602001808311610cc657829003601f168201915b505050505081565b60006001600160a01b038216610d14576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b03163314610d635760405162461bcd60e51b815260040161096890612246565b610d6d600061193c565b565b6007546001600160a01b03163314610d995760405162461bcd60e51b815260040161096890612246565b600855565b6007546001600160a01b03163314610dc85760405162461bcd60e51b815260040161096890612246565b60008211610e185760405162461bcd60e51b815260206004820152601f60248201527f5769746864726177206d7573742062652067726561746572207468616e2030006044820152606401610968565b47821115610e5a5760405162461bcd60e51b815260206004820152600f60248201526e082dadeeadce840e8dede40d0d2ced608b1b6044820152606401610968565b6000816001600160a01b03168360405160006040518083038185875af1925050503d8060008114610ea7576040519150601f19603f3d011682016040523d82523d6000602084013e610eac565b606091505b505090508061091a57600080fd5b6007546000906001600160a01b03163314610ee75760405162461bcd60e51b815260040161096890612246565b6001600160a01b038083166000818152600d60205260409020549091161415610f485760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481dda1a5d195b1a5cdd1959606a1b6044820152606401610968565b506001600160a01b03166000818152600d6020526040902080546001600160a01b0319169091179055600190565b6060600280546107ca90612339565b6007546001600160a01b03163314610faf5760405162461bcd60e51b815260040161096890612246565b600c805461ff001981166101009182900460ff1615909102179055565b600c5460ff1661101e5760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610968565b6009548161102a61091f565b61103491906122ab565b11156110825760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420656e6f75676820746f6b656e73206c65667420746f204d696e7400006044820152606401610968565b600c54610100900460ff161561119b5780600b546110a091906122d7565b3410156110e55760405162461bcd60e51b8152602060048201526013602482015272139bdd08195b9bdd59da08115512081cd95b9d606a1b6044820152606401610968565b600854816110f233610ceb565b6110fc91906122ab565b111561113b5760405162461bcd60e51b815260206004820152600e60248201526d13dd995c8813585e08131a5b5a5d60921b6044820152606401610968565b336000818152600d60205260409020546001600160a01b0316146111965760405162461bcd60e51b8152602060048201526012602482015271125cc81b9bdd081dda1a5d195b1a5cdd195960721b6044820152606401610968565b611242565b600854816111a833610ceb565b6111b291906122ab565b11156111f15760405162461bcd60e51b815260206004820152600e60248201526d13dd995c8813585e08131a5b5a5d60921b6044820152606401610968565b3481600a5461120091906122d7565b11156112425760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b6044820152606401610968565b60095461124d61091f565b1015610b1e57610b1e338261198e565b6001600160a01b0382163314156112875760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112fe8484846115fd565b61130a848484846119a8565b611327576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606113388261156d565b61135557604051630a14c4b560e41b815260040160405180910390fd5b600061135f611ab7565b905080516000141561138057604051806020016040528060008152506113ab565b8061138a84611ac6565b60405160200161139b9291906121c7565b6040516020818303038152906040525b9392505050565b6007546001600160a01b031633146113dc5760405162461bcd60e51b815260040161096890612246565b80516113ef90600e906020840190611dd7565b5060005b600e548110156114405761142d600e8281548110611413576114136123cf565b6000918252602090912001546001600160a01b0316610eba565b508061143881612374565b9150506113f3565b5050565b6007546001600160a01b0316331461146e5760405162461bcd60e51b815260040161096890612246565b6009548261147a61091f565b61148491906122ab565b11156114cb5760405162461bcd60e51b8152602060048201526016602482015275139bdd08195b9bdd59da081d1bdad95b9cc81b19599d60521b6044820152606401610968565b611440818361198e565b6007546001600160a01b031633146114ff5760405162461bcd60e51b815260040161096890612246565b6001600160a01b0381166115645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610968565b610b1e8161193c565b600080546001600160801b0316821080156107b5575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006116088261181a565b80519091506000906001600160a01b0316336001600160a01b031614806116365750815161163690336106e6565b806116515750336116468461084d565b6001600160a01b0316145b90508061167157604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146116a65760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166116cd57604051633a954ecd60e21b815260040160405180910390fd5b6116dd60008484600001516115a1565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166117d0576000546001600160801b03168110156117d057825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b031681101561192357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906119215780516001600160a01b0316156118b8579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561191c579392505050565b6118b8565b505b604051636f96cda160e11b815260040160405180910390fd5b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611440828260405180602001604052806000815250611bc3565b60006001600160a01b0384163b15611aab57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119ec9033908990889088906004016121f6565b602060405180830381600087803b158015611a0657600080fd5b505af1925050508015611a36575060408051601f3d908101601f19168201909252611a33918101906120cf565b60015b611a91573d808015611a64576040519150601f19603f3d011682016040523d82523d6000602084013e611a69565b606091505b508051611a89576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611aaf565b5060015b949350505050565b6060600f80546107ca90612339565b606081611aea5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611b145780611afe81612374565b9150611b0d9050600a836122c3565b9150611aee565b6000816001600160401b03811115611b2e57611b2e6123e5565b6040519080825280601f01601f191660200182016040528015611b58576020820181803683370190505b5090505b8415611aaf57611b6d6001836122f6565b9150611b7a600a8661238f565b611b859060306122ab565b60f81b818381518110611b9a57611b9a6123cf565b60200101906001600160f81b031916908160001a905350611bbc600a866122c3565b9450611b5c565b61091a83838360016000546001600160801b03166001600160a01b038516611bfd57604051622e076360e81b815260040160405180910390fd5b83611c1b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b85811015611d2d5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4838015611d035750611d0160008884886119a8565b155b15611d21576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101611cac565b50600080546001600160801b0319166001600160801b0392909216919091179055611813565b828054611d5f90612339565b90600052602060002090601f016020900481019282611d815760008555611dc7565b82601f10611d9a5782800160ff19823516178555611dc7565b82800160010185558215611dc7579182015b82811115611dc7578235825591602001919060010190611dac565b50611dd3929150611e2c565b5090565b828054828255906000526020600020908101928215611dc7579160200282015b82811115611dc757825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611df7565b5b80821115611dd35760008155600101611e2d565b600060208284031215611e5357600080fd5b81356113ab816123fb565b60008060408385031215611e7157600080fd5b8235611e7c816123fb565b91506020830135611e8c816123fb565b809150509250929050565b600080600060608486031215611eac57600080fd5b8335611eb7816123fb565b92506020840135611ec7816123fb565b929592945050506040919091013590565b60008060008060808587031215611eee57600080fd5b8435611ef9816123fb565b9350602085810135611f0a816123fb565b93506040860135925060608601356001600160401b0380821115611f2d57600080fd5b818801915088601f830112611f4157600080fd5b813581811115611f5357611f536123e5565b611f65601f8201601f1916850161227b565b91508082528984828501011115611f7b57600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215611fae57600080fd5b8235611fb9816123fb565b915060208301358015158114611e8c57600080fd5b60008060408385031215611fe157600080fd5b8235611fec816123fb565b946020939093013593505050565b6000602080838503121561200d57600080fd5b82356001600160401b038082111561202457600080fd5b818501915085601f83011261203857600080fd5b81358181111561204a5761204a6123e5565b8060051b915061205b84830161227b565b8181528481019084860184860187018a101561207657600080fd5b600095505b838610156120a55780359450612090856123fb565b8483526001959095019491860191860161207b565b5098975050505050505050565b6000602082840312156120c457600080fd5b81356113ab81612410565b6000602082840312156120e157600080fd5b81516113ab81612410565b600080602083850312156120ff57600080fd5b82356001600160401b038082111561211657600080fd5b818501915085601f83011261212a57600080fd5b81358181111561213957600080fd5b86602082850101111561214b57600080fd5b60209290920196919550909350505050565b60006020828403121561216f57600080fd5b5035919050565b6000806040838503121561218957600080fd5b823591506020830135611e8c816123fb565b600081518084526121b381602086016020860161230d565b601f01601f19169290920160200192915050565b600083516121d981846020880161230d565b8351908301906121ed81836020880161230d565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122299083018461219b565b9695505050505050565b6020815260006113ab602083018461219b565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156122a3576122a36123e5565b604052919050565b600082198211156122be576122be6123a3565b500190565b6000826122d2576122d26123b9565b500490565b60008160001904831182151516156122f1576122f16123a3565b500290565b600082821015612308576123086123a3565b500390565b60005b83811015612328578181015183820152602001612310565b838111156113275750506000910152565b600181811c9082168061234d57607f821691505b6020821081141561236e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612388576123886123a3565b5060010190565b60008261239e5761239e6123b9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610b1e57600080fd5b6001600160e01b031981168114610b1e57600080fdfea2646970667358221220a490bd80529e300f3387663783f2f23a9a90512678dffdf386095bdb2258065d64736f6c63430008070033

Deployed Bytecode Sourcemap

53349:6302:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53885:44;;;;;;;;;;;;;;;;;;;12425:25:1;;;12413:2;12398:18;53885:44:0;;;;;;;;36784:372;;;;;;;;;;-1:-1:-1;36784:372:0;;;;;:::i;:::-;;:::i;:::-;;;7758:14:1;;7751:22;7733:41;;7721:2;7706:18;36784:372:0;7593:187:1;54304:38:0;;;;;;;;;;-1:-1:-1;54304:38:0;;;;;;;;;;;39394:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;40897:204::-;;;;;;;;;;-1:-1:-1;40897:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7056:32:1;;;7038:51;;7026:2;7011:18;40897:204:0;6892:203:1;40460:371:0;;;;;;;;;;-1:-1:-1;40460:371:0;;;;;:::i;:::-;;:::i;:::-;;34021:280;;;;;;;;;;;;;:::i;55011:108::-;;;;;;;;;;-1:-1:-1;55011:108:0;;;;;:::i;:::-;;:::i;41754:170::-;;;;;;;;;;-1:-1:-1;41754:170:0;;;;;:::i;:::-;;:::i;57697:89::-;;;;;;;;;;;;;:::i;35607:1105::-;;;;;;;;;;-1:-1:-1;35607:1105:0;;;;;:::i;:::-;;:::i;53803:32::-;;;;;;;;;;;;;;;;59482:164;;;;;;;;;;-1:-1:-1;59482:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;59610:28:0;;;59567:18;59610:15;;;:9;:15;;;;;:20;;;;:28;;59482:164;58100:104;;;;;;;;;;;;;:::i;41995:185::-;;;;;;;;;;-1:-1:-1;41995:185:0;;;;;:::i;:::-;;:::i;34594:713::-;;;;;;;;;;-1:-1:-1;34594:713:0;;;;;:::i;:::-;;:::i;57352:106::-;;;;;;;;;;-1:-1:-1;57352:106:0;;;;;:::i;:::-;;:::i;55201:99::-;;;;;;;;;;-1:-1:-1;55201:99:0;;;;;:::i;:::-;;:::i;39203:124::-;;;;;;;;;;-1:-1:-1;39203:124:0;;;;;:::i;:::-;;:::i;54652:45::-;;;;;;;;;;;;;:::i;37220:206::-;;;;;;;;;;-1:-1:-1;37220:206:0;;;;;:::i;:::-;;:::i;12273:103::-;;;;;;;;;;;;;:::i;57085:89::-;;;;;;;;;;-1:-1:-1;57085:89:0;;;;;:::i;:::-;;:::i;58314:331::-;;;;;;;;;;-1:-1:-1;58314:331:0;;;;;:::i;:::-;;:::i;59092:251::-;;;;;;;;;;-1:-1:-1;59092:251:0;;;;;:::i;:::-;;:::i;11622:87::-;;;;;;;;;;-1:-1:-1;11695:6:0;;-1:-1:-1;;;;;11695:6:0;11622:87;;39563:104;;;;;;;;;;;;;:::i;54463:46::-;;;;;;;;;;-1:-1:-1;54463:46:0;;;;;:::i;:::-;;;;;;;;;;;;-1:-1:-1;;;;;54463:46:0;;;57874:110;;;;;;;;;;;;;:::i;56091:868::-;;;;;;:::i;:::-;;:::i;41173:279::-;;;;;;;;;;-1:-1:-1;41173:279:0;;;;;:::i;:::-;;:::i;42251:342::-;;;;;;;;;;-1:-1:-1;42251:342:0;;;;;:::i;:::-;;:::i;39738:318::-;;;;;;;;;;-1:-1:-1;39738:318:0;;;;;:::i;:::-;;:::i;53842:36::-;;;;;;;;;;;;;;;;53768:28;;;;;;;;;;;;;;;;58766:234;;;;;;;;;;-1:-1:-1;58766:234:0;;;;;:::i;:::-;;:::i;55415:196::-;;;;;;;;;;-1:-1:-1;55415:196:0;;;;;:::i;:::-;;:::i;41523:164::-;;;;;;;;;;-1:-1:-1;41523:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;41644:25:0;;;41620:4;41644:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;41523:164;54265:32;;;;;;;;;;-1:-1:-1;54265:32:0;;;;;;;;12531:201;;;;;;;;;;-1:-1:-1;12531:201:0;;;;;:::i;:::-;;:::i;36784:372::-;36886:4;-1:-1:-1;;;;;;36923:40:0;;-1:-1:-1;;;36923:40:0;;:105;;-1:-1:-1;;;;;;;36980:48:0;;-1:-1:-1;;;36980:48:0;36923:105;:172;;;-1:-1:-1;;;;;;;37045:50:0;;-1:-1:-1;;;37045:50:0;36923:172;:225;;;-1:-1:-1;;;;;;;;;;24252:40:0;;;37112:36;36903:245;36784:372;-1:-1:-1;;36784:372:0:o;39394:100::-;39448:13;39481:5;39474:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39394:100;:::o;40897:204::-;40965:7;40990:16;40998:7;40990;:16::i;:::-;40985:64;;41015:34;;-1:-1:-1;;;41015:34:0;;;;;;;;;;;40985:64;-1:-1:-1;41069:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;41069:24:0;;40897:204::o;40460:371::-;40533:13;40549:24;40565:7;40549:15;:24::i;:::-;40533:40;;40594:5;-1:-1:-1;;;;;40588:11:0;:2;-1:-1:-1;;;;;40588:11:0;;40584:48;;;40608:24;;-1:-1:-1;;;40608:24:0;;;;;;;;;;;40584:48;10484:10;-1:-1:-1;;;;;40649:21:0;;;;;;:63;;-1:-1:-1;40675:37:0;40692:5;10484:10;41523:164;:::i;40675:37::-;40674:38;40649:63;40645:138;;;40736:35;;-1:-1:-1;;;40736:35:0;;;;;;;;;;;40645:138;40795:28;40804:2;40808:7;40817:5;40795:8;:28::i;:::-;40522:309;40460:371;;:::o;34021:280::-;34074:7;34266:12;-1:-1:-1;;;;;;;;34266:12:0;;;;34250:13;;;:28;;;;34243:35;;34021:280::o;55011:108::-;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;;;;;;;;;55086:16:::1;:25:::0;55011:108::o;41754:170::-;41888:28;41898:4;41904:2;41908:7;41888:9;:28::i;57697:89::-;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;57766:12:::1;::::0;;-1:-1:-1;;57750:28:0;::::1;57766:12;::::0;;::::1;57765:13;57750:28;::::0;;57697:89::o;35607:1105::-;35696:7;35729:16;35739:5;35729:9;:16::i;:::-;35720:5;:25;35716:61;;35754:23;;-1:-1:-1;;;35754:23:0;;;;;;;;;;;35716:61;35788:22;35813:13;;-1:-1:-1;;;;;35813:13:0;;35788:22;;36063:557;36083:14;36079:1;:18;36063:557;;;36123:31;36157:14;;;:11;:14;;;;;;;;;36123:48;;;;;;;;;-1:-1:-1;;;;;36123:48:0;;;;-1:-1:-1;;;36123:48:0;;-1:-1:-1;;;;;36123:48:0;;;;;;;;-1:-1:-1;;;36123:48:0;;;;;;;;;;;;;;;;36190:73;;36235:8;;;36190:73;36285:14;;-1:-1:-1;;;;;36285:28:0;;36281:111;;36358:14;;;-1:-1:-1;36281:111:0;36435:5;-1:-1:-1;;;;;36414:26:0;:17;-1:-1:-1;;;;;36414:26:0;;36410:195;;;36484:5;36469:11;:20;36465:85;;;-1:-1:-1;36525:1:0;-1:-1:-1;36518:8:0;;-1:-1:-1;;;36518:8:0;36465:85;36572:13;;;;;36410:195;36104:516;36063:557;36099:3;;36063:557;;;;36696:8;;;58100:104;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;11695:6;;58148:48:::1;::::0;-1:-1:-1;;;;;11695:6:0;;;;58174:21:::1;58148:48:::0;::::1;;;::::0;::::1;::::0;;;58174:21;11695:6;58148:48;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;58100:104::o:0;41995:185::-;42133:39;42150:4;42156:2;42160:7;42133:39;;;;;;;;;;;;:16;:39::i;34594:713::-;34661:7;34706:13;;-1:-1:-1;;;;;34706:13:0;34661:7;;34920:328;34940:14;34936:1;:18;34920:328;;;34980:31;35014:14;;;:11;:14;;;;;;;;;34980:48;;;;;;;;;-1:-1:-1;;;;;34980:48:0;;;;-1:-1:-1;;;34980:48:0;;-1:-1:-1;;;;;34980:48:0;;;;;;;;-1:-1:-1;;;34980:48:0;;;;;;;;;;;;;;35047:186;;35112:5;35097:11;:20;35093:85;;;-1:-1:-1;35153:1:0;34594:713;-1:-1:-1;;;;34594:713:0:o;35093:85::-;35200:13;;;;;35047:186;-1:-1:-1;34956:3:0;;34920:328;;;;35276:23;;-1:-1:-1;;;35276:23:0;;;;;;;;;;;57352:106;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;57430:20:::1;:7;57440:10:::0;;57430:20:::1;:::i;55201:99::-:0;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;55275:8:::1;:17:::0;55201:99::o;39203:124::-;39267:7;39294:20;39306:7;39294:11;:20::i;:::-;:25;;39203:124;-1:-1:-1;;39203:124:0:o;54652:45::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;37220:206::-;37284:7;-1:-1:-1;;;;;37308:19:0;;37304:60;;37336:28;;-1:-1:-1;;;37336:28:0;;;;;;;;;;;37304:60;-1:-1:-1;;;;;;37390:19:0;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;37390:27:0;;37220:206::o;12273:103::-;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;12338:30:::1;12365:1;12338:18;:30::i;:::-;12273:103::o:0;57085:89::-;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;57150:9:::1;:16:::0;57085:89::o;58314:331::-;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;58444:1:::1;58434:7;:11;58426:55;;;::::0;-1:-1:-1;;;58426:55:0;;9333:2:1;58426:55:0::1;::::0;::::1;9315:21:1::0;9372:2;9352:18;;;9345:30;9411:33;9391:18;;;9384:61;9462:18;;58426:55:0::1;9131:355:1::0;58426:55:0::1;58511:21;58500:7;:32;;58492:60;;;::::0;-1:-1:-1;;;58492:60:0;;10036:2:1;58492:60:0::1;::::0;::::1;10018:21:1::0;10075:2;10055:18;;;10048:30;-1:-1:-1;;;10094:18:1;;;10087:45;10149:18;;58492:60:0::1;9834:339:1::0;58492:60:0::1;58564:12;58582:3;-1:-1:-1::0;;;;;58582:8:0::1;58598:7;58582:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58563:47;;;58629:7;58621:16;;;::::0;::::1;59092:251:::0;11695:6;;59190:12;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;59610:28:0;;;59567:18;59610:15;;;:9;:15;;;;;:20;;;;:28;59228:20:::1;59220:52;;;::::0;-1:-1:-1;;;59220:52:0;;11092:2:1;59220:52:0::1;::::0;::::1;11074:21:1::0;11131:2;11111:18;;;11104:30;-1:-1:-1;;;11150:18:1;;;11143:49;11209:18;;59220:52:0::1;10890:343:1::0;59220:52:0::1;-1:-1:-1::0;;;;;;59283:15:0::1;;::::0;;;:9:::1;:15;::::0;;;;:27;;-1:-1:-1;;;;;;59283:27:0::1;::::0;;::::1;::::0;;;;59092:251::o;39563:104::-;39619:13;39652:7;39645:14;;;;;:::i;57874:110::-;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;57957:19:::1;::::0;;-1:-1:-1;;57934:42:0;::::1;57957:19;::::0;;;::::1;;;57956:20;57934:42:::0;;::::1;;::::0;;57874:110::o;56091:868::-;56159:12;;;;56151:52;;;;-1:-1:-1;;;56151:52:0;;8977:2:1;56151:52:0;;;8959:21:1;9016:2;8996:18;;;8989:30;9055:29;9035:18;;;9028:57;9102:18;;56151:52:0;8775:351:1;56151:52:0;56330:10;;56318:8;56302:13;:11;:13::i;:::-;:24;;;;:::i;:::-;:38;;56294:81;;;;-1:-1:-1;;;56294:81:0;;8211:2:1;56294:81:0;;;8193:21:1;8250:2;8230:18;;;8223:30;8289:32;8269:18;;;8262:60;8339:18;;56294:81:0;8009:354:1;56294:81:0;56389:19;;;;;;;56386:469;;;56465:8;56446:16;;:27;;;;:::i;:::-;56432:9;:42;;56424:74;;;;-1:-1:-1;;;56424:74:0;;11786:2:1;56424:74:0;;;11768:21:1;11825:2;11805:18;;;11798:30;-1:-1:-1;;;11844:18:1;;;11837:49;11903:18;;56424:74:0;11584:343:1;56424:74:0;56558:9;;56545:8;56521:21;56531:10;56521:9;:21::i;:::-;:32;;;;:::i;:::-;56520:47;;56512:74;;;;-1:-1:-1;;;56512:74:0;;9693:2:1;56512:74:0;;;9675:21:1;9732:2;9712:18;;;9705:30;-1:-1:-1;;;9751:18:1;;;9744:44;9805:18;;56512:74:0;9491:338:1;56512:74:0;56622:10;59567:18;59610:15;;;:9;:15;;;;;:20;-1:-1:-1;;;;;59610:20:0;:28;56600:56;;;;-1:-1:-1;;;56600:56:0;;12134:2:1;56600:56:0;;;12116:21:1;12173:2;12153:18;;;12146:30;-1:-1:-1;;;12192:18:1;;;12185:48;12250:18;;56600:56:0;11932:342:1;56600:56:0;56386:469;;;56736:9;;56723:8;56699:21;56709:10;56699:9;:21::i;:::-;:32;;;;:::i;:::-;56698:47;;56690:74;;;;-1:-1:-1;;;56690:74:0;;9693:2:1;56690:74:0;;;9675:21:1;9732:2;9712:18;;;9705:30;-1:-1:-1;;;9751:18:1;;;9744:44;9805:18;;56690:74:0;9491:338:1;56690:74:0;56812:9;56799:8;56788;;:19;;;;:::i;:::-;56787:34;;56779:64;;;;-1:-1:-1;;;56779:64:0;;11440:2:1;56779:64:0;;;11422:21:1;11479:2;11459:18;;;11452:30;-1:-1:-1;;;11498:18:1;;;11491:47;11555:18;;56779:64:0;11238:341:1;56779:64:0;56887:10;;56871:13;:11;:13::i;:::-;:26;56867:85;;;56909:31;56919:10;56931:8;56909:9;:31::i;41173:279::-;-1:-1:-1;;;;;41264:24:0;;10484:10;41264:24;41260:54;;;41297:17;;-1:-1:-1;;;41297:17:0;;;;;;;;;;;41260:54;10484:10;41327:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;41327:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;41327:53:0;;;;;;;;;;41396:48;;7733:41:1;;;41327:42:0;;10484:10;41396:48;;7706:18:1;41396:48:0;;;;;;;41173:279;;:::o;42251:342::-;42418:28;42428:4;42434:2;42438:7;42418:9;:28::i;:::-;42462:48;42485:4;42491:2;42495:7;42504:5;42462:22;:48::i;:::-;42457:129;;42534:40;;-1:-1:-1;;;42534:40:0;;;;;;;;;;;42457:129;42251:342;;;;:::o;39738:318::-;39811:13;39842:16;39850:7;39842;:16::i;:::-;39837:59;;39867:29;;-1:-1:-1;;;39867:29:0;;;;;;;;;;;39837:59;39909:21;39933:10;:8;:10::i;:::-;39909:34;;39967:7;39961:21;39986:1;39961:26;;:87;;;;;;;;;;;;;;;;;40014:7;40023:18;:7;:16;:18::i;:::-;39997:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;39961:87;39954:94;39738:318;-1:-1:-1;;;39738:318:0:o;58766:234::-;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;58844:21;;::::1;::::0;:13:::1;::::0;:21:::1;::::0;::::1;::::0;::::1;:::i;:::-;;58881:9;58876:117;58900:13;:20:::0;58896:24;::::1;58876:117;;;58942:39;58964:13;58978:1;58964:16;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;58964:16:0::1;58942:21;:39::i;:::-;-1:-1:-1::0;58922:3:0;::::1;::::0;::::1;:::i;:::-;;;;58876:117;;;;58766:234:::0;:::o;55415:196::-;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;55531:10:::1;;55519:8;55503:13;:11;:13::i;:::-;:24;;;;:::i;:::-;:38;;55495:73;;;::::0;-1:-1:-1;;;55495:73:0;;10380:2:1;55495:73:0::1;::::0;::::1;10362:21:1::0;10419:2;10399:18;;;10392:30;-1:-1:-1;;;10438:18:1;;;10431:52;10500:18;;55495:73:0::1;10178:346:1::0;55495:73:0::1;55579:24;55589:3;55594:8;55579:9;:24::i;12531:201::-:0;11695:6;;-1:-1:-1;;;;;11695:6:0;10484:10;11842:23;11834:68;;;;-1:-1:-1;;;11834:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;12620:22:0;::::1;12612:73;;;::::0;-1:-1:-1;;;12612:73:0;;8570:2:1;12612:73:0::1;::::0;::::1;8552:21:1::0;8609:2;8589:18;;;8582:30;8648:34;8628:18;;;8621:62;-1:-1:-1;;;8699:18:1;;;8692:36;8745:19;;12612:73:0::1;8368:402:1::0;12612:73:0::1;12696:28;12715:8;12696:18;:28::i;42848:144::-:0;42905:4;42939:13;;-1:-1:-1;;;;;42939:13:0;42929:23;;:55;;;;-1:-1:-1;;42957:20:0;;;;:11;:20;;;;;:27;-1:-1:-1;;;42957:27:0;;;;42956:28;;42848:144::o;50062:196::-;50177:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;50177:29:0;-1:-1:-1;;;;;50177:29:0;;;;;;;;;50222:28;;50177:24;;50222:28;;;;;;;50062:196;;;:::o;45563:2112::-;45678:35;45716:20;45728:7;45716:11;:20::i;:::-;45791:18;;45678:58;;-1:-1:-1;45749:22:0;;-1:-1:-1;;;;;45775:34:0;10484:10;-1:-1:-1;;;;;45775:34:0;;:101;;;-1:-1:-1;45843:18:0;;45826:50;;10484:10;41523:164;:::i;45826:50::-;45775:154;;;-1:-1:-1;10484:10:0;45893:20;45905:7;45893:11;:20::i;:::-;-1:-1:-1;;;;;45893:36:0;;45775:154;45749:181;;45948:17;45943:66;;45974:35;;-1:-1:-1;;;45974:35:0;;;;;;;;;;;45943:66;46046:4;-1:-1:-1;;;;;46024:26:0;:13;:18;;;-1:-1:-1;;;;;46024:26:0;;46020:67;;46059:28;;-1:-1:-1;;;46059:28:0;;;;;;;;;;;46020:67;-1:-1:-1;;;;;46102:16:0;;46098:52;;46127:23;;-1:-1:-1;;;46127:23:0;;;;;;;;;;;46098:52;46271:49;46288:1;46292:7;46301:13;:18;;;46271:8;:49::i;:::-;-1:-1:-1;;;;;46616:18:0;;;;;;;:12;:18;;;;;;;;:31;;-1:-1:-1;;46616:31:0;;;-1:-1:-1;;;;;46616:31:0;;;-1:-1:-1;;46616:31:0;;;;;;;46662:16;;;;;;;;;:29;;;;;;;;-1:-1:-1;46662:29:0;;;;;;;;;;;46708:20;;;:11;:20;;;;;;:30;;-1:-1:-1;;;;;;46753:61:0;;;;-1:-1:-1;;;46798:15:0;46753:61;;;;;;;;;;;47088:11;;;47118:24;;;;;:29;47088:11;;47118:29;47114:445;;47343:13;;-1:-1:-1;;;;;47343:13:0;47329:27;;47325:219;;;47413:18;;;47381:24;;;:11;:24;;;;;;;;:50;;47496:28;;;;-1:-1:-1;;;;;47454:70:0;-1:-1:-1;;;47454:70:0;-1:-1:-1;;;;;;47454:70:0;;;-1:-1:-1;;;;;47381:50:0;;;47454:70;;;;;;;47325:219;46591:979;47606:7;47602:2;-1:-1:-1;;;;;47587:27:0;47596:4;-1:-1:-1;;;;;47587:27:0;;;;;;;;;;;47625:42;45667:2008;;45563:2112;;;:::o;38058:1083::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;38224:13:0;;38168:7;;-1:-1:-1;;;;;38224:13:0;38217:20;;38213:861;;;38258:31;38292:17;;;:11;:17;;;;;;;;;38258:51;;;;;;;;;-1:-1:-1;;;;;38258:51:0;;;;-1:-1:-1;;;38258:51:0;;-1:-1:-1;;;;;38258:51:0;;;;;;;;-1:-1:-1;;;38258:51:0;;;;;;;;;;;;;;38328:731;;38378:14;;-1:-1:-1;;;;;38378:28:0;;38374:101;;38442:9;38058:1083;-1:-1:-1;;;38058:1083:0:o;38374:101::-;-1:-1:-1;;;38819:6:0;38864:17;;;;:11;:17;;;;;;;;;38852:29;;;;;;;;;-1:-1:-1;;;;;38852:29:0;;;;;-1:-1:-1;;;38852:29:0;;-1:-1:-1;;;;;38852:29:0;;;;;;;;-1:-1:-1;;;38852:29:0;;;;;;;;;;;;;38912:28;38908:109;;38980:9;38058:1083;-1:-1:-1;;;38058:1083:0:o;38908:109::-;38779:261;;;38239:835;38213:861;39102:31;;-1:-1:-1;;;39102:31:0;;;;;;;;;;;12892:191;12985:6;;;-1:-1:-1;;;;;13002:17:0;;;-1:-1:-1;;;;;;13002:17:0;;;;;;;13035:40;;12985:6;;;13002:17;12985:6;;13035:40;;12966:16;;13035:40;12955:128;12892:191;:::o;43000:104::-;43069:27;43079:2;43083:8;43069:27;;;;;;;;;;;;:9;:27::i;50823:790::-;50978:4;-1:-1:-1;;;;;50999:13:0;;14561:19;:23;50995:611;;51035:72;;-1:-1:-1;;;51035:72:0;;-1:-1:-1;;;;;51035:36:0;;;;;:72;;10484:10;;51086:4;;51092:7;;51101:5;;51035:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51035:72:0;;;;;;;;-1:-1:-1;;51035:72:0;;;;;;;;;;;;:::i;:::-;;;51031:520;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51281:13:0;;51277:259;;51331:40;;-1:-1:-1;;;51331:40:0;;;;;;;;;;;51277:259;51486:6;51480:13;51471:6;51467:2;51463:15;51456:38;51031:520;-1:-1:-1;;;;;;51158:55:0;-1:-1:-1;;;51158:55:0;;-1:-1:-1;51151:62:0;;50995:611;-1:-1:-1;51590:4:0;50995:611;50823:790;;;;;;:::o;57514:100::-;57566:13;57599:7;57592:14;;;;;:::i;8023:723::-;8079:13;8300:10;8296:53;;-1:-1:-1;;8327:10:0;;;;;;;;;;;;-1:-1:-1;;;8327:10:0;;;;;8023:723::o;8296:53::-;8374:5;8359:12;8415:78;8422:9;;8415:78;;8448:8;;;;:::i;:::-;;-1:-1:-1;8471:10:0;;-1:-1:-1;8479:2:0;8471:10;;:::i;:::-;;;8415:78;;;8503:19;8535:6;-1:-1:-1;;;;;8525:17:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8525:17:0;;8503:39;;8553:154;8560:10;;8553:154;;8587:11;8597:1;8587:11;;:::i;:::-;;-1:-1:-1;8656:10:0;8664:2;8656:5;:10;:::i;:::-;8643:24;;:2;:24;:::i;:::-;8630:39;;8613:6;8620;8613:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;8613:56:0;;;;;;;;-1:-1:-1;8684:11:0;8693:2;8684:11;;:::i;:::-;;;8553:154;;43467:163;43590:32;43596:2;43600:8;43610:5;43617:4;44028:20;44051:13;-1:-1:-1;;;;;44051:13:0;-1:-1:-1;;;;;44079:16:0;;44075:48;;44104:19;;-1:-1:-1;;;44104:19:0;;;;;;;;;;;44075:48;44138:13;44134:44;;44160:18;;-1:-1:-1;;;44160:18:0;;;;;;;;;;;44134:44;-1:-1:-1;;;;;44530:16:0;;;;;;:12;:16;;;;;;;;:44;;-1:-1:-1;;;;;;44589:49:0;;-1:-1:-1;;;;;44530:44:0;;;;;;;44589:49;;;;-1:-1:-1;;44530:44:0;;;;;;44589:49;;;;;;;;;;;;;;;;44655:25;;;:11;:25;;;;;:35;;-1:-1:-1;;;;;;44705:66:0;;;;-1:-1:-1;;;44755:15:0;44705:66;;;;;;;;;;;44655:25;;44838:328;44858:8;44854:1;:12;44838:328;;;44897:38;;44922:12;;-1:-1:-1;;;;;44897:38:0;;;44914:1;;44897:38;;44914:1;;44897:38;44958:4;:68;;;;;44967:59;44998:1;45002:2;45006:12;45020:5;44967:22;:59::i;:::-;44966:60;44958:68;44954:164;;;45058:40;;-1:-1:-1;;;45058:40:0;;;;;;;;;;;44954:164;45136:14;;;;;44868:3;44838:328;;;-1:-1:-1;45182:13:0;:37;;-1:-1:-1;;;;;;45182:37:0;-1:-1:-1;;;;;45182:37:0;;;;;;;;;;45241:60;42251:342;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:247:1;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;181:9;168:23;200:31;225:5;200:31;:::i;266:388::-;334:6;342;395:2;383:9;374:7;370:23;366:32;363:52;;;411:1;408;401:12;363:52;450:9;437:23;469:31;494:5;469:31;:::i;:::-;519:5;-1:-1:-1;576:2:1;561:18;;548:32;589:33;548:32;589:33;:::i;:::-;641:7;631:17;;;266:388;;;;;:::o;659:456::-;736:6;744;752;805:2;793:9;784:7;780:23;776:32;773:52;;;821:1;818;811:12;773:52;860:9;847:23;879:31;904:5;879:31;:::i;:::-;929:5;-1:-1:-1;986:2:1;971:18;;958:32;999:33;958:32;999:33;:::i;:::-;659:456;;1051:7;;-1:-1:-1;;;1105:2:1;1090:18;;;;1077:32;;659:456::o;1120:1108::-;1215:6;1223;1231;1239;1292:3;1280:9;1271:7;1267:23;1263:33;1260:53;;;1309:1;1306;1299:12;1260:53;1348:9;1335:23;1367:31;1392:5;1367:31;:::i;:::-;1417:5;-1:-1:-1;1441:2:1;1480:18;;;1467:32;1508:33;1467:32;1508:33;:::i;:::-;1560:7;-1:-1:-1;1614:2:1;1599:18;;1586:32;;-1:-1:-1;1669:2:1;1654:18;;1641:32;-1:-1:-1;;;;;1722:14:1;;;1719:34;;;1749:1;1746;1739:12;1719:34;1787:6;1776:9;1772:22;1762:32;;1832:7;1825:4;1821:2;1817:13;1813:27;1803:55;;1854:1;1851;1844:12;1803:55;1890:2;1877:16;1912:2;1908;1905:10;1902:36;;;1918:18;;:::i;:::-;1960:53;2003:2;1984:13;;-1:-1:-1;;1980:27:1;1976:36;;1960:53;:::i;:::-;1947:66;;2036:2;2029:5;2022:17;2076:7;2071:2;2066;2062;2058:11;2054:20;2051:33;2048:53;;;2097:1;2094;2087:12;2048:53;2152:2;2147;2143;2139:11;2134:2;2127:5;2123:14;2110:45;2196:1;2191:2;2186;2179:5;2175:14;2171:23;2164:34;;2217:5;2207:15;;;;;1120:1108;;;;;;;:::o;2233:416::-;2298:6;2306;2359:2;2347:9;2338:7;2334:23;2330:32;2327:52;;;2375:1;2372;2365:12;2327:52;2414:9;2401:23;2433:31;2458:5;2433:31;:::i;:::-;2483:5;-1:-1:-1;2540:2:1;2525:18;;2512:32;2582:15;;2575:23;2563:36;;2553:64;;2613:1;2610;2603:12;2654:315;2722:6;2730;2783:2;2771:9;2762:7;2758:23;2754:32;2751:52;;;2799:1;2796;2789:12;2751:52;2838:9;2825:23;2857:31;2882:5;2857:31;:::i;:::-;2907:5;2959:2;2944:18;;;;2931:32;;-1:-1:-1;;;2654:315:1:o;2974:1032::-;3058:6;3089:2;3132;3120:9;3111:7;3107:23;3103:32;3100:52;;;3148:1;3145;3138:12;3100:52;3188:9;3175:23;-1:-1:-1;;;;;3258:2:1;3250:6;3247:14;3244:34;;;3274:1;3271;3264:12;3244:34;3312:6;3301:9;3297:22;3287:32;;3357:7;3350:4;3346:2;3342:13;3338:27;3328:55;;3379:1;3376;3369:12;3328:55;3415:2;3402:16;3437:2;3433;3430:10;3427:36;;;3443:18;;:::i;:::-;3489:2;3486:1;3482:10;3472:20;;3512:28;3536:2;3532;3528:11;3512:28;:::i;:::-;3574:15;;;3605:12;;;;3637:11;;;3667;;;3663:20;;3660:33;-1:-1:-1;3657:53:1;;;3706:1;3703;3696:12;3657:53;3728:1;3719:10;;3738:238;3752:2;3749:1;3746:9;3738:238;;;3823:3;3810:17;3797:30;;3840:31;3865:5;3840:31;:::i;:::-;3884:18;;;3770:1;3763:9;;;;;3922:12;;;;3954;;3738:238;;;-1:-1:-1;3995:5:1;2974:1032;-1:-1:-1;;;;;;;;2974:1032:1:o;4011:245::-;4069:6;4122:2;4110:9;4101:7;4097:23;4093:32;4090:52;;;4138:1;4135;4128:12;4090:52;4177:9;4164:23;4196:30;4220:5;4196:30;:::i;4261:249::-;4330:6;4383:2;4371:9;4362:7;4358:23;4354:32;4351:52;;;4399:1;4396;4389:12;4351:52;4431:9;4425:16;4450:30;4474:5;4450:30;:::i;4515:592::-;4586:6;4594;4647:2;4635:9;4626:7;4622:23;4618:32;4615:52;;;4663:1;4660;4653:12;4615:52;4703:9;4690:23;-1:-1:-1;;;;;4773:2:1;4765:6;4762:14;4759:34;;;4789:1;4786;4779:12;4759:34;4827:6;4816:9;4812:22;4802:32;;4872:7;4865:4;4861:2;4857:13;4853:27;4843:55;;4894:1;4891;4884:12;4843:55;4934:2;4921:16;4960:2;4952:6;4949:14;4946:34;;;4976:1;4973;4966:12;4946:34;5021:7;5016:2;5007:6;5003:2;4999:15;4995:24;4992:37;4989:57;;;5042:1;5039;5032:12;4989:57;5073:2;5065:11;;;;;5095:6;;-1:-1:-1;4515:592:1;;-1:-1:-1;;;;4515:592:1:o;5112:180::-;5171:6;5224:2;5212:9;5203:7;5199:23;5195:32;5192:52;;;5240:1;5237;5230:12;5192:52;-1:-1:-1;5263:23:1;;5112:180;-1:-1:-1;5112:180:1:o;5297:315::-;5365:6;5373;5426:2;5414:9;5405:7;5401:23;5397:32;5394:52;;;5442:1;5439;5432:12;5394:52;5478:9;5465:23;5455:33;;5538:2;5527:9;5523:18;5510:32;5551:31;5576:5;5551:31;:::i;5945:257::-;5986:3;6024:5;6018:12;6051:6;6046:3;6039:19;6067:63;6123:6;6116:4;6111:3;6107:14;6100:4;6093:5;6089:16;6067:63;:::i;:::-;6184:2;6163:15;-1:-1:-1;;6159:29:1;6150:39;;;;6191:4;6146:50;;5945:257;-1:-1:-1;;5945:257:1:o;6207:470::-;6386:3;6424:6;6418:13;6440:53;6486:6;6481:3;6474:4;6466:6;6462:17;6440:53;:::i;:::-;6556:13;;6515:16;;;;6578:57;6556:13;6515:16;6612:4;6600:17;;6578:57;:::i;:::-;6651:20;;6207:470;-1:-1:-1;;;;6207:470:1:o;7100:488::-;-1:-1:-1;;;;;7369:15:1;;;7351:34;;7421:15;;7416:2;7401:18;;7394:43;7468:2;7453:18;;7446:34;;;7516:3;7511:2;7496:18;;7489:31;;;7294:4;;7537:45;;7562:19;;7554:6;7537:45;:::i;:::-;7529:53;7100:488;-1:-1:-1;;;;;;7100:488:1:o;7785:219::-;7934:2;7923:9;7916:21;7897:4;7954:44;7994:2;7983:9;7979:18;7971:6;7954:44;:::i;10529:356::-;10731:2;10713:21;;;10750:18;;;10743:30;10809:34;10804:2;10789:18;;10782:62;10876:2;10861:18;;10529:356::o;12461:275::-;12532:2;12526:9;12597:2;12578:13;;-1:-1:-1;;12574:27:1;12562:40;;-1:-1:-1;;;;;12617:34:1;;12653:22;;;12614:62;12611:88;;;12679:18;;:::i;:::-;12715:2;12708:22;12461:275;;-1:-1:-1;12461:275:1:o;12741:128::-;12781:3;12812:1;12808:6;12805:1;12802:13;12799:39;;;12818:18;;:::i;:::-;-1:-1:-1;12854:9:1;;12741:128::o;12874:120::-;12914:1;12940;12930:35;;12945:18;;:::i;:::-;-1:-1:-1;12979:9:1;;12874:120::o;12999:168::-;13039:7;13105:1;13101;13097:6;13093:14;13090:1;13087:21;13082:1;13075:9;13068:17;13064:45;13061:71;;;13112:18;;:::i;:::-;-1:-1:-1;13152:9:1;;12999:168::o;13172:125::-;13212:4;13240:1;13237;13234:8;13231:34;;;13245:18;;:::i;:::-;-1:-1:-1;13282:9:1;;13172:125::o;13302:258::-;13374:1;13384:113;13398:6;13395:1;13392:13;13384:113;;;13474:11;;;13468:18;13455:11;;;13448:39;13420:2;13413:10;13384:113;;;13515:6;13512:1;13509:13;13506:48;;;-1:-1:-1;;13550:1:1;13532:16;;13525:27;13302:258::o;13565:380::-;13644:1;13640:12;;;;13687;;;13708:61;;13762:4;13754:6;13750:17;13740:27;;13708:61;13815:2;13807:6;13804:14;13784:18;13781:38;13778:161;;;13861:10;13856:3;13852:20;13849:1;13842:31;13896:4;13893:1;13886:15;13924:4;13921:1;13914:15;13778:161;;13565:380;;;:::o;13950:135::-;13989:3;-1:-1:-1;;14010:17:1;;14007:43;;;14030:18;;:::i;:::-;-1:-1:-1;14077:1:1;14066:13;;13950:135::o;14090:112::-;14122:1;14148;14138:35;;14153:18;;:::i;:::-;-1:-1:-1;14187:9:1;;14090:112::o;14207:127::-;14268:10;14263:3;14259:20;14256:1;14249:31;14299:4;14296:1;14289:15;14323:4;14320:1;14313:15;14339:127;14400:10;14395:3;14391:20;14388:1;14381:31;14431:4;14428:1;14421:15;14455:4;14452:1;14445:15;14471:127;14532:10;14527:3;14523:20;14520:1;14513:31;14563:4;14560:1;14553:15;14587:4;14584:1;14577:15;14603:127;14664:10;14659:3;14655:20;14652:1;14645:31;14695:4;14692:1;14685:15;14719:4;14716:1;14709:15;14735:131;-1:-1:-1;;;;;14810:31:1;;14800:42;;14790:70;;14856:1;14853;14846:12;14871:131;-1:-1:-1;;;;;;14945:32:1;;14935:43;;14925:71;;14992:1;14989;14982:12

Swarm Source

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