ETH Price: $2,544.21 (-1.19%)

Token

RR/PRIMATES (RR/PRIMATES)
 

Overview

Max Total Supply

90 RR/PRIMATES

Holders

18

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
10 RR/PRIMATES
0x3cd91d9bb93943c1f33733b44def13ca4fe7271e
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:
RRPRIMATES

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-06-21
*/

/**
 *Submitted for verification at Etherscan.io on 2022-06-21
*/

/**
 *Submitted for verification at Etherscan.io on 2022-04-09
*/

// File: @openzeppelin/contracts/utils/math/SafeMath.sol


// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Counters.sol


// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: @openzeppelin/contracts/interfaces/IERC20.sol


// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;


// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/access/Ownable.sol


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

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: @openzeppelin/contracts/interfaces/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;


// File: @openzeppelin/contracts/interfaces/IERC2981.sol


// OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @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: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;


/**
 * @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 tokenId);

    /**
     * @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: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @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: contracts/ERC721A.sol



pragma solidity ^0.8.0;









/**
 * @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 the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is
  Context,
  ERC165,
  IERC721,
  IERC721Metadata,
  IERC721Enumerable
{
  using Address for address;
  using Strings for uint256;

  struct TokenOwnership {
    address addr;
    uint64 startTimestamp;
  }

  struct AddressData {
    uint128 balance;
    uint128 numberMinted;
  }

  uint256 private currentIndex = 0;

  uint256 internal immutable collectionSize;
  uint256 internal immutable maxBatchSize;

  // 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) private _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;

  /**
   * @dev
   * `maxBatchSize` refers to how much a minter can mint at a time.
   * `collectionSize_` refers to how many tokens are in the collection.
   */
  constructor(
    string memory name_,
    string memory symbol_,
    uint256 maxBatchSize_,
    uint256 collectionSize_
  ) {
    require(
      collectionSize_ > 0,
      "ERC721A: collection must have a nonzero supply"
    );
    require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
    _name = name_;
    _symbol = symbol_;
    maxBatchSize = maxBatchSize_;
    collectionSize = collectionSize_;
  }

  /**
   * @dev See {IERC721Enumerable-totalSupply}.
   */
  function totalSupply() public view override returns (uint256) {
    return currentIndex;
  }

  /**
   * @dev See {IERC721Enumerable-tokenByIndex}.
   */
  function tokenByIndex(uint256 index) public view override returns (uint256) {
    require(index < totalSupply(), "ERC721A: global index out of bounds");
    return index;
  }

  /**
   * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
   * This read function is O(collectionSize). 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)
  {
    require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
    uint256 numMintedSoFar = totalSupply();
    uint256 tokenIdsIdx = 0;
    address currOwnershipAddr = address(0);
    for (uint256 i = 0; i < numMintedSoFar; i++) {
      TokenOwnership memory ownership = _ownerships[i];
      if (ownership.addr != address(0)) {
        currOwnershipAddr = ownership.addr;
      }
      if (currOwnershipAddr == owner) {
        if (tokenIdsIdx == index) {
          return i;
        }
        tokenIdsIdx++;
      }
    }
    revert("ERC721A: unable to get token of owner by index");
  }

  /**
   * @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) {
    require(owner != address(0), "ERC721A: balance query for the zero address");
    return uint256(_addressData[owner].balance);
  }

  function _numberMinted(address owner) internal view returns (uint256) {
    require(
      owner != address(0),
      "ERC721A: number minted query for the zero address"
    );
    return uint256(_addressData[owner].numberMinted);
  }

  function ownershipOf(uint256 tokenId)
    internal
    view
    returns (TokenOwnership memory)
  {
    require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

    uint256 lowestTokenToCheck;
    if (tokenId >= maxBatchSize) {
      lowestTokenToCheck = tokenId - maxBatchSize + 1;
    }

    for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
      TokenOwnership memory ownership = _ownerships[curr];
      if (ownership.addr != address(0)) {
        return ownership;
      }
    }

    revert("ERC721A: unable to determine the owner of token");
  }

  /**
   * @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)
  {
    require(
      _exists(tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );

    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);
    require(to != owner, "ERC721A: approval to current owner");

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

    _approve(to, tokenId, owner);
  }

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

    return _tokenApprovals[tokenId];
  }

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

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

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

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

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

  /**
   * @dev See {IERC721-safeTransferFrom}.
   */
  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) public override {
    _transfer(from, to, tokenId);
    require(
      _checkOnERC721Received(from, to, tokenId, _data),
      "ERC721A: transfer to non ERC721Receiver implementer"
    );
  }

  /**
   * @dev Returns whether `tokenId` exists.
   *
   * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
   *
   * Tokens start existing when they are minted (`_mint`),
   */
  function _exists(uint256 tokenId) internal view returns (bool) {
    return tokenId < currentIndex;
  }

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

  /**
   * @dev Mints `quantity` tokens and transfers them to `to`.
   *
   * Requirements:
   *
   * - there must be `quantity` tokens remaining unminted in the total collection.
   * - `to` cannot be the zero address.
   * - `quantity` cannot be larger than the max batch size.
   *
   * Emits a {Transfer} event.
   */
  function _safeMint(
    address to,
    uint256 quantity,
    bytes memory _data
  ) internal {
    uint256 startTokenId = currentIndex;
    require(to != address(0), "ERC721A: mint to the zero address");
    // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
    require(!_exists(startTokenId), "ERC721A: token already minted");
    require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

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

    AddressData memory addressData = _addressData[to];
    _addressData[to] = AddressData(
      addressData.balance + uint128(quantity),
      addressData.numberMinted + uint128(quantity)
    );
    _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

    uint256 updatedIndex = startTokenId;

    for (uint256 i = 0; i < quantity; i++) {
      emit Transfer(address(0), to, updatedIndex);
      require(
        _checkOnERC721Received(address(0), to, updatedIndex, _data),
        "ERC721A: transfer to non ERC721Receiver implementer"
      );
      updatedIndex++;
    }

    currentIndex = updatedIndex;
    _afterTokenTransfers(address(0), to, startTokenId, quantity);
  }

  /**
   * @dev Transfers `tokenId` from `from` to `to`.
   *
   * Requirements:
   *
   * - `to` cannot be the zero address.
   * - `tokenId` token must be owned by `from`.
   *
   * Emits a {Transfer} event.
   */
  function _transfer(
    address from,
    address to,
    uint256 tokenId
  ) private {
    TokenOwnership memory prevOwnership = ownershipOf(tokenId);

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

    require(
      isApprovedOrOwner,
      "ERC721A: transfer caller is not owner nor approved"
    );

    require(
      prevOwnership.addr == from,
      "ERC721A: transfer from incorrect owner"
    );
    require(to != address(0), "ERC721A: transfer to the zero address");

    _beforeTokenTransfers(from, to, tokenId, 1);

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

    _addressData[from].balance -= 1;
    _addressData[to].balance += 1;
    _ownerships[tokenId] = TokenOwnership(to, 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)) {
      if (_exists(nextTokenId)) {
        _ownerships[nextTokenId] = TokenOwnership(
          prevOwnership.addr,
          prevOwnership.startTimestamp
        );
      }
    }

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

  /**
   * @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);
  }

  uint256 public nextOwnerToExplicitlySet = 0;

  /**
   * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
   */
  function _setOwnersExplicit(uint256 quantity) internal {
    uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
    require(quantity > 0, "quantity must be nonzero");
    uint256 endIndex = oldNextOwnerToSet + quantity - 1;
    if (endIndex > collectionSize - 1) {
      endIndex = collectionSize - 1;
    }
    // We know if the last one in the group exists, all in the group exist, due to serial ordering.
    require(_exists(endIndex), "not enough minted yet for this cleanup");
    for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
      if (_ownerships[i].addr == address(0)) {
        TokenOwnership memory ownership = ownershipOf(i);
        _ownerships[i] = TokenOwnership(
          ownership.addr,
          ownership.startTimestamp
        );
      }
    }
    nextOwnerToExplicitlySet = endIndex + 1;
  }

  /**
   * @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("ERC721A: transfer to non ERC721Receiver implementer");
        } 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.
   *
   * 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`.
   */
  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.
   *
   * 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` and `to` are never both zero.
   */
  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}
}

//SPDX-License-Identifier: MIT
//Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721)

pragma solidity ^0.8.0;









contract RRPRIMATES is ERC721A, IERC2981, Ownable, ReentrancyGuard {
    using Counters for Counters.Counter;
    using Strings for uint256;

    Counters.Counter private tokenCounter;

    
    address private openSeaProxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
    bool private isOpenSeaProxyActive = true;

    uint256 public constant MAX_MINTS_PER_TX = 5;
    uint256 public maxSupply = 5555;

    uint256 public constant PUBLIC_SALE_PRICE = 0.005 ether;
    uint256 public NUM_FREE_MINTS = 555;
    bool public isPublicSaleActive = true;




    // ============ ACCESS CONTROL/SANITY MODIFIERS ============

    modifier publicSaleActive() {
        require(isPublicSaleActive, "Public sale is not open");
        _;
    }



    modifier maxMintsPerTX(uint256 numberOfTokens) {
        require(
            numberOfTokens <= MAX_MINTS_PER_TX,
            "Max mints per transaction exceeded"
        );
        _;
    }

    modifier canMintNFTs(uint256 numberOfTokens) {
        require(
            totalSupply() + numberOfTokens <=
                maxSupply,
            "Not enough mints remaining to mint"
        );
        _;
    }

    modifier freeMintsAvailable() {
        require(
            totalSupply() <=
                NUM_FREE_MINTS,
            "Not enough free mints remain"
        );
        _;
    }



    modifier isCorrectPayment(uint256 price, uint256 numberOfTokens) {
        if(totalSupply()>NUM_FREE_MINTS){
        require(
            (price * numberOfTokens) == msg.value,
            "Incorrect ETH value sent"
        );
        }
        _;
    }


    constructor(
    ) ERC721A("RR/PRIMATES", "RR/PRIMATES", 100, maxSupply) {
    }

    // ============ PUBLIC FUNCTIONS FOR MINTING ============

    function mint(uint256 numberOfTokens)
        external
        payable
        nonReentrant
        isCorrectPayment(PUBLIC_SALE_PRICE, numberOfTokens)
        publicSaleActive
        canMintNFTs(numberOfTokens)
        maxMintsPerTX(numberOfTokens)
    {

        _safeMint(msg.sender, numberOfTokens);
    }



    //A simple free mint function to avoid confusion
    //The normal mint function with a cost of 0 would work too

    // ============ PUBLIC READ-ONLY FUNCTIONS ============

    

    // ============ OWNER-ONLY ADMIN FUNCTIONS ============

    

    // function to disable gasless listings for security in case
    // opensea ever shuts down or is compromised
    function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive)
        external
        onlyOwner
    {
        isOpenSeaProxyActive = _isOpenSeaProxyActive;
    }

    function setIsPublicSaleActive(bool _isPublicSaleActive)
        external
        onlyOwner
    {
        isPublicSaleActive = _isPublicSaleActive;
    }


    function setNumFreeMints(uint256 _numfreemints)
        external
        onlyOwner
    {
        NUM_FREE_MINTS = _numfreemints;
    }


    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    function withdrawTokens(IERC20 token) public onlyOwner {
        uint256 balance = token.balanceOf(address(this));
        token.transfer(msg.sender, balance);
    }



    // ============ SUPPORTING FUNCTIONS ============

    function nextTokenId() private returns (uint256) {
        tokenCounter.increment();
        return tokenCounter.current();
    }

    // ============ FUNCTION OVERRIDES ============

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev Override isApprovedForAll to allowlist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        // Get a reference to OpenSea's proxy registry contract by instantiating
        // the contract using the already existing address.
        ProxyRegistry proxyRegistry = ProxyRegistry(
            openSeaProxyRegistryAddress
        );
        if (
            isOpenSeaProxyActive &&
            address(proxyRegistry.proxies(owner)) == operator
        ) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(tokenId), "Nonexistent token");

        return
            string(abi.encodePacked("https://bafybeidhb6nyn755deavyowhsy4gu6b5ntx7muvyi4dcdspskd32fpe4ni.ipfs.nftstorage.link/", (tokenId+1).toString()));
    }

    /**
     * @dev See {IERC165-royaltyInfo}.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        require(_exists(tokenId), "Nonexistent token");

        return (address(this), SafeMath.div(SafeMath.mul(salePrice, 5), 100));
    }
}

// These contract definitions are used to create a reference to the OpenSea
// ProxyRegistry contract by using the registry's address (see isApprovedForAll).
contract OwnableDelegateProxy {

}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUM_FREE_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPublicSaleActive","type":"bool"}],"name":"setIsPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numfreemints","type":"uint256"}],"name":"setNumFreeMints","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526000808055600755600b80546001600160a81b0319167401a5409ec958c83c3f309868babaca7c86dcb077c11790556115b3600c5561022b600d55600e805460ff191660011790553480156200005957600080fd5b506040518060400160405280600b81526020016a52522f5052494d4154455360a81b8152506040518060400160405280600b81526020016a52522f5052494d4154455360a81b8152506064600c5460008111620001145760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620001765760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b60648201526084016200010b565b83516200018b90600190602087019062000216565b508251620001a190600290602086019062000216565b5060a09190915260805250620001b9905033620001c4565b6001600955620002f9565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200022490620002bc565b90600052602060002090601f01602090048101928262000248576000855562000293565b82601f106200026357805160ff191683800117855562000293565b8280016001018555821562000293579182015b828111156200029357825182559160200191906001019062000276565b50620002a1929150620002a5565b5090565b5b80821115620002a15760008155600101620002a6565b600181811c90821680620002d157607f821691505b60208210811415620002f357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a0516124a76200032a600039600081816117b9015281816117e30152611c150152600050506124a76000f3fe6080604052600436106101e35760003560e01c80636352211e11610102578063b88d4fde11610095578063d7224ba011610064578063d7224ba014610561578063e43082f714610577578063e985e9c514610597578063f2fde38b146105b757600080fd5b8063b88d4fde146104f6578063c6a91b4214610516578063c87b56dd1461052b578063d5abeb011461054b57600080fd5b806395d89b41116100d157806395d89b4114610498578063982d669e146104ad578063a0712d68146104c3578063a22cb465146104d657600080fd5b80636352211e1461042557806370a0823114610445578063715018a6146104655780638da5cb5b1461047a57600080fd5b806323b872dd1161017a5780633ccfd60b116101495780633ccfd60b146103b057806342842e0e146103c557806349df728c146103e55780634f6ccce71461040557600080fd5b806323b872dd1461031157806328cad13d146103315780632a55205a146103515780632f745c591461039057600080fd5b8063095ea7b3116101b6578063095ea7b3146102a05780630a00ae83146102c257806318160ddd146102e25780631e84c413146102f757600080fd5b806301ffc9a7146101e857806306fdde031461021d57806307e89ec01461023f578063081812fc14610268575b600080fd5b3480156101f457600080fd5b5061020861020336600461203e565b6105d7565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b50610232610602565b60405161021491906121e3565b34801561024b57600080fd5b5061025a6611c37937e0800081565b604051908152602001610214565b34801561027457600080fd5b50610288610283366004612095565b610694565b6040516001600160a01b039091168152602001610214565b3480156102ac57600080fd5b506102c06102bb366004611fd8565b610724565b005b3480156102ce57600080fd5b506102c06102dd366004612095565b61083c565b3480156102ee57600080fd5b5060005461025a565b34801561030357600080fd5b50600e546102089060ff1681565b34801561031d57600080fd5b506102c061032c366004611e89565b61086b565b34801561033d57600080fd5b506102c061034c366004612004565b610876565b34801561035d57600080fd5b5061037161036c3660046120c7565b6108b3565b604080516001600160a01b039093168352602083019190915201610214565b34801561039c57600080fd5b5061025a6103ab366004611fd8565b610922565b3480156103bc57600080fd5b506102c0610a90565b3480156103d157600080fd5b506102c06103e0366004611e89565b610aed565b3480156103f157600080fd5b506102c0610400366004611e33565b610b08565b34801561041157600080fd5b5061025a610420366004612095565b610c2f565b34801561043157600080fd5b50610288610440366004612095565b610c91565b34801561045157600080fd5b5061025a610460366004611e33565b610ca3565b34801561047157600080fd5b506102c0610d34565b34801561048657600080fd5b506008546001600160a01b0316610288565b3480156104a457600080fd5b50610232610d6a565b3480156104b957600080fd5b5061025a600d5481565b6102c06104d1366004612095565b610d79565b3480156104e257600080fd5b506102c06104f1366004611faa565b610f76565b34801561050257600080fd5b506102c0610511366004611eca565b61103b565b34801561052257600080fd5b5061025a600581565b34801561053757600080fd5b50610232610546366004612095565b611074565b34801561055757600080fd5b5061025a600c5481565b34801561056d57600080fd5b5061025a60075481565b34801561058357600080fd5b506102c0610592366004612004565b6110fa565b3480156105a357600080fd5b506102086105b2366004611e50565b611142565b3480156105c357600080fd5b506102c06105d2366004611e33565b61122e565b60006001600160e01b0319821663152a902d60e11b14806105fc57506105fc826112c9565b92915050565b60606001805461061190612376565b80601f016020809104026020016040519081016040528092919081815260200182805461063d90612376565b801561068a5780601f1061065f5761010080835404028352916020019161068a565b820191906000526020600020905b81548152906001019060200180831161066d57829003601f168201915b5050505050905090565b60006106a1826000541190565b6107085760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061072f82610c91565b9050806001600160a01b0316836001600160a01b0316141561079e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016106ff565b336001600160a01b03821614806107ba57506107ba8133611142565b61082c5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016106ff565b610837838383611334565b505050565b6008546001600160a01b031633146108665760405162461bcd60e51b81526004016106ff906121f6565b600d55565b610837838383611390565b6008546001600160a01b031633146108a05760405162461bcd60e51b81526004016106ff906121f6565b600e805460ff1916911515919091179055565b6000806108c1846000541190565b6109015760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b60448201526064016106ff565b30610917610910856005611718565b606461172b565b915091509250929050565b600061092d83610ca3565b82106109865760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016106ff565b600080549080805b83811015610a30576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156109e157805192505b876001600160a01b0316836001600160a01b03161415610a1d5786841415610a0f575093506105fc92505050565b83610a19816123b1565b9450505b5080610a28816123b1565b91505061098e565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016106ff565b6008546001600160a01b03163314610aba5760405162461bcd60e51b81526004016106ff906121f6565b6040514790339082156108fc029083906000818181858888f19350505050158015610ae9573d6000803e3d6000fd5b5050565b6108378383836040518060200160405280600081525061103b565b6008546001600160a01b03163314610b325760405162461bcd60e51b81526004016106ff906121f6565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610b7457600080fd5b505afa158015610b88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bac91906120ae565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401602060405180830381600087803b158015610bf757600080fd5b505af1158015610c0b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108379190612021565b600080548210610c8d5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016106ff565b5090565b6000610c9c82611737565b5192915050565b60006001600160a01b038216610d0f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016106ff565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b03163314610d5e5760405162461bcd60e51b81526004016106ff906121f6565b610d6860006118e1565b565b60606002805461061190612376565b60026009541415610dcc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ff565b6002600955600d546000546611c37937e080009183911115610e405734610df382846122d5565b14610e405760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e74000000000000000060448201526064016106ff565b600e5460ff16610e925760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e00000000000000000060448201526064016106ff565b82600c5481610ea060005490565b610eaa91906122a9565b1115610f035760405162461bcd60e51b815260206004820152602260248201527f4e6f7420656e6f756768206d696e74732072656d61696e696e6720746f206d696044820152611b9d60f21b60648201526084016106ff565b836005811115610f605760405162461bcd60e51b815260206004820152602260248201527f4d6178206d696e747320706572207472616e73616374696f6e20657863656564604482015261195960f21b60648201526084016106ff565b610f6a3386611933565b50506001600955505050565b6001600160a01b038216331415610fcf5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016106ff565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611046848484611390565b6110528484848461194d565b61106e5760405162461bcd60e51b81526004016106ff9061222b565b50505050565b6060611081826000541190565b6110c15760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b60448201526064016106ff565b6110d46110cf8360016122a9565b611a5a565b6040516020016110e49190612115565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146111245760405162461bcd60e51b81526004016106ff906121f6565b600b8054911515600160a01b0260ff60a01b19909216919091179055565b600b546000906001600160a01b03811690600160a01b900460ff1680156111ed575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b1580156111aa57600080fd5b505afa1580156111be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e29190612078565b6001600160a01b0316145b156111fc5760019150506105fc565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146112585760405162461bcd60e51b81526004016106ff906121f6565b6001600160a01b0381166112bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ff565b6112c6816118e1565b50565b60006001600160e01b031982166380ac58cd60e01b14806112fa57506001600160e01b03198216635b5e139f60e01b145b8061131557506001600160e01b0319821663780e9d6360e01b145b806105fc57506301ffc9a760e01b6001600160e01b03198316146105fc565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061139b82611737565b80519091506000906001600160a01b0316336001600160a01b031614806113d25750336113c784610694565b6001600160a01b0316145b806113e4575081516113e49033611142565b90508061144e5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016106ff565b846001600160a01b031682600001516001600160a01b0316146114c25760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016106ff565b6001600160a01b0384166115265760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016106ff565b6115366000848460000151611334565b6001600160a01b03851660009081526004602052604081208054600192906115689084906001600160801b03166122f4565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926115b49185911661227e565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561163c8460016122a9565b6000818152600360205260409020549091506001600160a01b03166116ce57611666816000541190565b156116ce5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600061172482846122d5565b9392505050565b600061172482846122c1565b6040805180820190915260008082526020820152611756826000541190565b6117b55760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016106ff565b60007f00000000000000000000000000000000000000000000000000000000000000008310611816576118087f00000000000000000000000000000000000000000000000000000000000000008461231c565b6118139060016122a9565b90505b825b818110611880576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561186d57949350505050565b50806118788161235f565b915050611818565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b60648201526084016106ff565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610ae9828260405180602001604052806000815250611b58565b60006001600160a01b0384163b15611a4f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119919033908990889088906004016121a6565b602060405180830381600087803b1580156119ab57600080fd5b505af19250505080156119db575060408051601f3d908101601f191682019092526119d89181019061205b565b60015b611a35573d808015611a09576040519150601f19603f3d011682016040523d82523d6000602084013e611a0e565b606091505b508051611a2d5760405162461bcd60e51b81526004016106ff9061222b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611226565b506001949350505050565b606081611a7e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611aa85780611a92816123b1565b9150611aa19050600a836122c1565b9150611a82565b60008167ffffffffffffffff811115611ac357611ac3612422565b6040519080825280601f01601f191660200182016040528015611aed576020820181803683370190505b5090505b841561122657611b0260018361231c565b9150611b0f600a866123cc565b611b1a9060306122a9565b60f81b818381518110611b2f57611b2f61240c565b60200101906001600160f81b031916908160001a905350611b51600a866122c1565b9450611af1565b6000546001600160a01b038416611bbb5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016106ff565b611bc6816000541190565b15611c135760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e74656400000060448201526064016106ff565b7f0000000000000000000000000000000000000000000000000000000000000000831115611c8e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b60648201526084016106ff565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190611cea90879061227e565b6001600160801b03168152602001858360200151611d08919061227e565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015611e285760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611dec600088848861194d565b611e085760405162461bcd60e51b81526004016106ff9061222b565b81611e12816123b1565b9250508080611e20906123b1565b915050611d9f565b506000819055611710565b600060208284031215611e4557600080fd5b813561172481612438565b60008060408385031215611e6357600080fd5b8235611e6e81612438565b91506020830135611e7e81612438565b809150509250929050565b600080600060608486031215611e9e57600080fd5b8335611ea981612438565b92506020840135611eb981612438565b929592945050506040919091013590565b60008060008060808587031215611ee057600080fd5b8435611eeb81612438565b93506020850135611efb81612438565b925060408501359150606085013567ffffffffffffffff80821115611f1f57600080fd5b818701915087601f830112611f3357600080fd5b813581811115611f4557611f45612422565b604051601f8201601f19908116603f01168101908382118183101715611f6d57611f6d612422565b816040528281528a6020848701011115611f8657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611fbd57600080fd5b8235611fc881612438565b91506020830135611e7e8161244d565b60008060408385031215611feb57600080fd5b8235611ff681612438565b946020939093013593505050565b60006020828403121561201657600080fd5b81356117248161244d565b60006020828403121561203357600080fd5b81516117248161244d565b60006020828403121561205057600080fd5b81356117248161245b565b60006020828403121561206d57600080fd5b81516117248161245b565b60006020828403121561208a57600080fd5b815161172481612438565b6000602082840312156120a757600080fd5b5035919050565b6000602082840312156120c057600080fd5b5051919050565b600080604083850312156120da57600080fd5b50508035926020909101359150565b60008151808452612101816020860160208601612333565b601f01601f19169290920160200192915050565b7f68747470733a2f2f62616679626569646862366e796e37353564656176796f7781527f6873793467753662356e7478376d75767969346463647370736b64333266706560208201527f346e692e697066732e6e667473746f726167652e6c696e6b2f00000000000000604082015260008251612199816059850160208701612333565b9190910160590192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906121d9908301846120e9565b9695505050505050565b60208152600061172460208301846120e9565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60006001600160801b038083168185168083038211156122a0576122a06123e0565b01949350505050565b600082198211156122bc576122bc6123e0565b500190565b6000826122d0576122d06123f6565b500490565b60008160001904831182151516156122ef576122ef6123e0565b500290565b60006001600160801b0383811690831681811015612314576123146123e0565b039392505050565b60008282101561232e5761232e6123e0565b500390565b60005b8381101561234e578181015183820152602001612336565b8381111561106e5750506000910152565b60008161236e5761236e6123e0565b506000190190565b600181811c9082168061238a57607f821691505b602082108114156123ab57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123c5576123c56123e0565b5060010190565b6000826123db576123db6123f6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146112c657600080fd5b80151581146112c657600080fd5b6001600160e01b0319811681146112c657600080fdfea2646970667358221220127f82b408766bfa7f6c9c4bd024988be493c90c59b31f3f97a0d9d1f107b32764736f6c63430008070033

Deployed Bytecode

0x6080604052600436106101e35760003560e01c80636352211e11610102578063b88d4fde11610095578063d7224ba011610064578063d7224ba014610561578063e43082f714610577578063e985e9c514610597578063f2fde38b146105b757600080fd5b8063b88d4fde146104f6578063c6a91b4214610516578063c87b56dd1461052b578063d5abeb011461054b57600080fd5b806395d89b41116100d157806395d89b4114610498578063982d669e146104ad578063a0712d68146104c3578063a22cb465146104d657600080fd5b80636352211e1461042557806370a0823114610445578063715018a6146104655780638da5cb5b1461047a57600080fd5b806323b872dd1161017a5780633ccfd60b116101495780633ccfd60b146103b057806342842e0e146103c557806349df728c146103e55780634f6ccce71461040557600080fd5b806323b872dd1461031157806328cad13d146103315780632a55205a146103515780632f745c591461039057600080fd5b8063095ea7b3116101b6578063095ea7b3146102a05780630a00ae83146102c257806318160ddd146102e25780631e84c413146102f757600080fd5b806301ffc9a7146101e857806306fdde031461021d57806307e89ec01461023f578063081812fc14610268575b600080fd5b3480156101f457600080fd5b5061020861020336600461203e565b6105d7565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b50610232610602565b60405161021491906121e3565b34801561024b57600080fd5b5061025a6611c37937e0800081565b604051908152602001610214565b34801561027457600080fd5b50610288610283366004612095565b610694565b6040516001600160a01b039091168152602001610214565b3480156102ac57600080fd5b506102c06102bb366004611fd8565b610724565b005b3480156102ce57600080fd5b506102c06102dd366004612095565b61083c565b3480156102ee57600080fd5b5060005461025a565b34801561030357600080fd5b50600e546102089060ff1681565b34801561031d57600080fd5b506102c061032c366004611e89565b61086b565b34801561033d57600080fd5b506102c061034c366004612004565b610876565b34801561035d57600080fd5b5061037161036c3660046120c7565b6108b3565b604080516001600160a01b039093168352602083019190915201610214565b34801561039c57600080fd5b5061025a6103ab366004611fd8565b610922565b3480156103bc57600080fd5b506102c0610a90565b3480156103d157600080fd5b506102c06103e0366004611e89565b610aed565b3480156103f157600080fd5b506102c0610400366004611e33565b610b08565b34801561041157600080fd5b5061025a610420366004612095565b610c2f565b34801561043157600080fd5b50610288610440366004612095565b610c91565b34801561045157600080fd5b5061025a610460366004611e33565b610ca3565b34801561047157600080fd5b506102c0610d34565b34801561048657600080fd5b506008546001600160a01b0316610288565b3480156104a457600080fd5b50610232610d6a565b3480156104b957600080fd5b5061025a600d5481565b6102c06104d1366004612095565b610d79565b3480156104e257600080fd5b506102c06104f1366004611faa565b610f76565b34801561050257600080fd5b506102c0610511366004611eca565b61103b565b34801561052257600080fd5b5061025a600581565b34801561053757600080fd5b50610232610546366004612095565b611074565b34801561055757600080fd5b5061025a600c5481565b34801561056d57600080fd5b5061025a60075481565b34801561058357600080fd5b506102c0610592366004612004565b6110fa565b3480156105a357600080fd5b506102086105b2366004611e50565b611142565b3480156105c357600080fd5b506102c06105d2366004611e33565b61122e565b60006001600160e01b0319821663152a902d60e11b14806105fc57506105fc826112c9565b92915050565b60606001805461061190612376565b80601f016020809104026020016040519081016040528092919081815260200182805461063d90612376565b801561068a5780601f1061065f5761010080835404028352916020019161068a565b820191906000526020600020905b81548152906001019060200180831161066d57829003601f168201915b5050505050905090565b60006106a1826000541190565b6107085760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b600061072f82610c91565b9050806001600160a01b0316836001600160a01b0316141561079e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084016106ff565b336001600160a01b03821614806107ba57506107ba8133611142565b61082c5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060648201526084016106ff565b610837838383611334565b505050565b6008546001600160a01b031633146108665760405162461bcd60e51b81526004016106ff906121f6565b600d55565b610837838383611390565b6008546001600160a01b031633146108a05760405162461bcd60e51b81526004016106ff906121f6565b600e805460ff1916911515919091179055565b6000806108c1846000541190565b6109015760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b60448201526064016106ff565b30610917610910856005611718565b606461172b565b915091509250929050565b600061092d83610ca3565b82106109865760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b60648201526084016106ff565b600080549080805b83811015610a30576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156109e157805192505b876001600160a01b0316836001600160a01b03161415610a1d5786841415610a0f575093506105fc92505050565b83610a19816123b1565b9450505b5080610a28816123b1565b91505061098e565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b60648201526084016106ff565b6008546001600160a01b03163314610aba5760405162461bcd60e51b81526004016106ff906121f6565b6040514790339082156108fc029083906000818181858888f19350505050158015610ae9573d6000803e3d6000fd5b5050565b6108378383836040518060200160405280600081525061103b565b6008546001600160a01b03163314610b325760405162461bcd60e51b81526004016106ff906121f6565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610b7457600080fd5b505afa158015610b88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bac91906120ae565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb90604401602060405180830381600087803b158015610bf757600080fd5b505af1158015610c0b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108379190612021565b600080548210610c8d5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b60648201526084016106ff565b5090565b6000610c9c82611737565b5192915050565b60006001600160a01b038216610d0f5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016106ff565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6008546001600160a01b03163314610d5e5760405162461bcd60e51b81526004016106ff906121f6565b610d6860006118e1565b565b60606002805461061190612376565b60026009541415610dcc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ff565b6002600955600d546000546611c37937e080009183911115610e405734610df382846122d5565b14610e405760405162461bcd60e51b815260206004820152601860248201527f496e636f7272656374204554482076616c75652073656e74000000000000000060448201526064016106ff565b600e5460ff16610e925760405162461bcd60e51b815260206004820152601760248201527f5075626c69632073616c65206973206e6f74206f70656e00000000000000000060448201526064016106ff565b82600c5481610ea060005490565b610eaa91906122a9565b1115610f035760405162461bcd60e51b815260206004820152602260248201527f4e6f7420656e6f756768206d696e74732072656d61696e696e6720746f206d696044820152611b9d60f21b60648201526084016106ff565b836005811115610f605760405162461bcd60e51b815260206004820152602260248201527f4d6178206d696e747320706572207472616e73616374696f6e20657863656564604482015261195960f21b60648201526084016106ff565b610f6a3386611933565b50506001600955505050565b6001600160a01b038216331415610fcf5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c657200000000000060448201526064016106ff565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611046848484611390565b6110528484848461194d565b61106e5760405162461bcd60e51b81526004016106ff9061222b565b50505050565b6060611081826000541190565b6110c15760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b60448201526064016106ff565b6110d46110cf8360016122a9565b611a5a565b6040516020016110e49190612115565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146111245760405162461bcd60e51b81526004016106ff906121f6565b600b8054911515600160a01b0260ff60a01b19909216919091179055565b600b546000906001600160a01b03811690600160a01b900460ff1680156111ed575060405163c455279160e01b81526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b1580156111aa57600080fd5b505afa1580156111be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e29190612078565b6001600160a01b0316145b156111fc5760019150506105fc565b6001600160a01b0380851660009081526006602090815260408083209387168352929052205460ff165b949350505050565b6008546001600160a01b031633146112585760405162461bcd60e51b81526004016106ff906121f6565b6001600160a01b0381166112bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106ff565b6112c6816118e1565b50565b60006001600160e01b031982166380ac58cd60e01b14806112fa57506001600160e01b03198216635b5e139f60e01b145b8061131557506001600160e01b0319821663780e9d6360e01b145b806105fc57506301ffc9a760e01b6001600160e01b03198316146105fc565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061139b82611737565b80519091506000906001600160a01b0316336001600160a01b031614806113d25750336113c784610694565b6001600160a01b0316145b806113e4575081516113e49033611142565b90508061144e5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016106ff565b846001600160a01b031682600001516001600160a01b0316146114c25760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b60648201526084016106ff565b6001600160a01b0384166115265760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016106ff565b6115366000848460000151611334565b6001600160a01b03851660009081526004602052604081208054600192906115689084906001600160801b03166122f4565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260046020526040812080546001945090926115b49185911661227e565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526003909152948520935184549151909216600160a01b026001600160e01b0319909116919092161717905561163c8460016122a9565b6000818152600360205260409020549091506001600160a01b03166116ce57611666816000541190565b156116ce5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b600061172482846122d5565b9392505050565b600061172482846122c1565b6040805180820190915260008082526020820152611756826000541190565b6117b55760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b60648201526084016106ff565b60007f00000000000000000000000000000000000000000000000000000000000000648310611816576118087f00000000000000000000000000000000000000000000000000000000000000648461231c565b6118139060016122a9565b90505b825b818110611880576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561186d57949350505050565b50806118788161235f565b915050611818565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b60648201526084016106ff565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610ae9828260405180602001604052806000815250611b58565b60006001600160a01b0384163b15611a4f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119919033908990889088906004016121a6565b602060405180830381600087803b1580156119ab57600080fd5b505af19250505080156119db575060408051601f3d908101601f191682019092526119d89181019061205b565b60015b611a35573d808015611a09576040519150601f19603f3d011682016040523d82523d6000602084013e611a0e565b606091505b508051611a2d5760405162461bcd60e51b81526004016106ff9061222b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611226565b506001949350505050565b606081611a7e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611aa85780611a92816123b1565b9150611aa19050600a836122c1565b9150611a82565b60008167ffffffffffffffff811115611ac357611ac3612422565b6040519080825280601f01601f191660200182016040528015611aed576020820181803683370190505b5090505b841561122657611b0260018361231c565b9150611b0f600a866123cc565b611b1a9060306122a9565b60f81b818381518110611b2f57611b2f61240c565b60200101906001600160f81b031916908160001a905350611b51600a866122c1565b9450611af1565b6000546001600160a01b038416611bbb5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016106ff565b611bc6816000541190565b15611c135760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e74656400000060448201526064016106ff565b7f0000000000000000000000000000000000000000000000000000000000000064831115611c8e5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b60648201526084016106ff565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190611cea90879061227e565b6001600160801b03168152602001858360200151611d08919061227e565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015611e285760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611dec600088848861194d565b611e085760405162461bcd60e51b81526004016106ff9061222b565b81611e12816123b1565b9250508080611e20906123b1565b915050611d9f565b506000819055611710565b600060208284031215611e4557600080fd5b813561172481612438565b60008060408385031215611e6357600080fd5b8235611e6e81612438565b91506020830135611e7e81612438565b809150509250929050565b600080600060608486031215611e9e57600080fd5b8335611ea981612438565b92506020840135611eb981612438565b929592945050506040919091013590565b60008060008060808587031215611ee057600080fd5b8435611eeb81612438565b93506020850135611efb81612438565b925060408501359150606085013567ffffffffffffffff80821115611f1f57600080fd5b818701915087601f830112611f3357600080fd5b813581811115611f4557611f45612422565b604051601f8201601f19908116603f01168101908382118183101715611f6d57611f6d612422565b816040528281528a6020848701011115611f8657600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611fbd57600080fd5b8235611fc881612438565b91506020830135611e7e8161244d565b60008060408385031215611feb57600080fd5b8235611ff681612438565b946020939093013593505050565b60006020828403121561201657600080fd5b81356117248161244d565b60006020828403121561203357600080fd5b81516117248161244d565b60006020828403121561205057600080fd5b81356117248161245b565b60006020828403121561206d57600080fd5b81516117248161245b565b60006020828403121561208a57600080fd5b815161172481612438565b6000602082840312156120a757600080fd5b5035919050565b6000602082840312156120c057600080fd5b5051919050565b600080604083850312156120da57600080fd5b50508035926020909101359150565b60008151808452612101816020860160208601612333565b601f01601f19169290920160200192915050565b7f68747470733a2f2f62616679626569646862366e796e37353564656176796f7781527f6873793467753662356e7478376d75767969346463647370736b64333266706560208201527f346e692e697066732e6e667473746f726167652e6c696e6b2f00000000000000604082015260008251612199816059850160208701612333565b9190910160590192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906121d9908301846120e9565b9695505050505050565b60208152600061172460208301846120e9565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60006001600160801b038083168185168083038211156122a0576122a06123e0565b01949350505050565b600082198211156122bc576122bc6123e0565b500190565b6000826122d0576122d06123f6565b500490565b60008160001904831182151516156122ef576122ef6123e0565b500290565b60006001600160801b0383811690831681811015612314576123146123e0565b039392505050565b60008282101561232e5761232e6123e0565b500390565b60005b8381101561234e578181015183820152602001612336565b8381111561106e5750506000910152565b60008161236e5761236e6123e0565b506000190190565b600181811c9082168061238a57607f821691505b602082108114156123ab57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156123c5576123c56123e0565b5060010190565b6000826123db576123db6123f6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146112c657600080fd5b80151581146112c657600080fd5b6001600160e01b0319811681146112c657600080fdfea2646970667358221220127f82b408766bfa7f6c9c4bd024988be493c90c59b31f3f97a0d9d1f107b32764736f6c63430008070033

Deployed Bytecode Sourcemap

55091:5509:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58719:292;;;;;;;;;;-1:-1:-1;58719:292:0;;;;;:::i;:::-;;:::i;:::-;;;7260:14:1;;7253:22;7235:41;;7223:2;7208:18;58719:292:0;;;;;;;;44310:94;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;55528:55::-;;;;;;;;;;;;55572:11;55528:55;;;;;17516:25:1;;;17504:2;17489:18;55528:55:0;17370:177:1;45835:204:0;;;;;;;;;;-1:-1:-1;45835:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6279:32:1;;;6261:51;;6249:2;6234:18;45835:204:0;6115:203:1;45398:379:0;;;;;;;;;;-1:-1:-1;45398:379:0;;;;;:::i;:::-;;:::i;:::-;;57987:139;;;;;;;;;;-1:-1:-1;57987:139:0;;;;;:::i;:::-;;:::i;41145:94::-;;;;;;;;;;-1:-1:-1;41198:7:0;41221:12;41145:94;;55632:37;;;;;;;;;;-1:-1:-1;55632:37:0;;;;;;;;46685:142;;;;;;;;;;-1:-1:-1;46685:142:0;;;;;:::i;:::-;;:::i;57819:158::-;;;;;;;;;;-1:-1:-1;57819:158:0;;;;;:::i;:::-;;:::i;60279:318::-;;;;;;;;;;-1:-1:-1;60279:318:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;7008:32:1;;;6990:51;;7072:2;7057:18;;7050:34;;;;6963:18;60279:318:0;6816:274:1;41776:744:0;;;;;;;;;;-1:-1:-1;41776:744:0;;;;;:::i;:::-;;:::i;58136:143::-;;;;;;;;;;;;;:::i;46890:157::-;;;;;;;;;;-1:-1:-1;46890:157:0;;;;;:::i;:::-;;:::i;58287:168::-;;;;;;;;;;-1:-1:-1;58287:168:0;;;;;:::i;:::-;;:::i;41308:177::-;;;;;;;;;;-1:-1:-1;41308:177:0;;;;;:::i;:::-;;:::i;44133:118::-;;;;;;;;;;-1:-1:-1;44133:118:0;;;;;:::i;:::-;;:::i;43010:211::-;;;;;;;;;;-1:-1:-1;43010:211:0;;;;;:::i;:::-;;:::i;19168:103::-;;;;;;;;;;;;;:::i;18517:87::-;;;;;;;;;;-1:-1:-1;18590:6:0;;-1:-1:-1;;;;;18590:6:0;18517:87;;44465:98;;;;;;;;;;;;;:::i;55590:35::-;;;;;;;;;;;;;;;;56934:321;;;;;;:::i;:::-;;:::i;46103:274::-;;;;;;;;;;-1:-1:-1;46103:274:0;;;;;:::i;:::-;;:::i;47110:311::-;;;;;;;;;;-1:-1:-1;47110:311:0;;;;;:::i;:::-;;:::i;55437:44::-;;;;;;;;;;;;55480:1;55437:44;;59836:377;;;;;;;;;;-1:-1:-1;59836:377:0;;;;;:::i;:::-;;:::i;55488:31::-;;;;;;;;;;;;;;;;51525:43;;;;;;;;;;;;;;;;57645:166;;;;;;;;;;-1:-1:-1;57645:166:0;;;;;:::i;:::-;;:::i;59148:617::-;;;;;;;;;;-1:-1:-1;59148:617:0;;;;;:::i;:::-;;:::i;19426:201::-;;;;;;;;;;-1:-1:-1;19426:201:0;;;;;:::i;:::-;;:::i;58719:292::-;58867:4;-1:-1:-1;;;;;;58909:41:0;;-1:-1:-1;;;58909:41:0;;:94;;;58967:36;58991:11;58967:23;:36::i;:::-;58889:114;58719:292;-1:-1:-1;;58719:292:0:o;44310:94::-;44364:13;44393:5;44386:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44310:94;:::o;45835:204::-;45903:7;45927:16;45935:7;47717:4;47747:12;-1:-1:-1;47737:22:0;47660:105;45927:16;45919:74;;;;-1:-1:-1;;;45919:74:0;;16755:2:1;45919:74:0;;;16737:21:1;16794:2;16774:18;;;16767:30;16833:34;16813:18;;;16806:62;-1:-1:-1;;;16884:18:1;;;16877:43;16937:19;;45919:74:0;;;;;;;;;-1:-1:-1;46009:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;46009:24:0;;45835:204::o;45398:379::-;45467:13;45483:24;45499:7;45483:15;:24::i;:::-;45467:40;;45528:5;-1:-1:-1;;;;;45522:11:0;:2;-1:-1:-1;;;;;45522:11:0;;;45514:58;;;;-1:-1:-1;;;45514:58:0;;13276:2:1;45514:58:0;;;13258:21:1;13315:2;13295:18;;;13288:30;13354:34;13334:18;;;13327:62;-1:-1:-1;;;13405:18:1;;;13398:32;13447:19;;45514:58:0;13074:398:1;45514:58:0;17321:10;-1:-1:-1;;;;;45597:21:0;;;;:62;;-1:-1:-1;45622:37:0;45639:5;17321:10;59148:617;:::i;45622:37::-;45581:153;;;;-1:-1:-1;;;45581:153:0;;10896:2:1;45581:153:0;;;10878:21:1;10935:2;10915:18;;;10908:30;10974:34;10954:18;;;10947:62;11045:27;11025:18;;;11018:55;11090:19;;45581:153:0;10694:421:1;45581:153:0;45743:28;45752:2;45756:7;45765:5;45743:8;:28::i;:::-;45460:317;45398:379;;:::o;57987:139::-;18590:6;;-1:-1:-1;;;;;18590:6:0;17321:10;18737:23;18729:68;;;;-1:-1:-1;;;18729:68:0;;;;;;;:::i;:::-;58088:14:::1;:30:::0;57987:139::o;46685:142::-;46793:28;46803:4;46809:2;46813:7;46793:9;:28::i;57819:158::-;18590:6;;-1:-1:-1;;;;;18590:6:0;17321:10;18737:23;18729:68;;;;-1:-1:-1;;;18729:68:0;;;;;;;:::i;:::-;57929:18:::1;:40:::0;;-1:-1:-1;;57929:40:0::1;::::0;::::1;;::::0;;;::::1;::::0;;57819:158::o;60279:318::-;60404:16;60422:21;60469:16;60477:7;47717:4;47747:12;-1:-1:-1;47737:22:0;47660:105;60469:16;60461:46;;;;-1:-1:-1;;;60461:46:0;;10550:2:1;60461:46:0;;;10532:21:1;10589:2;10569:18;;;10562:30;-1:-1:-1;;;10608:18:1;;;10601:47;10665:18;;60461:46:0;10348:341:1;60461:46:0;60536:4;60543:45;60556:26;60569:9;60580:1;60556:12;:26::i;:::-;60584:3;60543:12;:45::i;:::-;60520:69;;;;60279:318;;;;;:::o;41776:744::-;41885:7;41920:16;41930:5;41920:9;:16::i;:::-;41912:5;:24;41904:71;;;;-1:-1:-1;;;41904:71:0;;7713:2:1;41904:71:0;;;7695:21:1;7752:2;7732:18;;;7725:30;7791:34;7771:18;;;7764:62;-1:-1:-1;;;7842:18:1;;;7835:32;7884:19;;41904:71:0;7511:398:1;41904:71:0;41982:22;41221:12;;;41982:22;;42102:350;42126:14;42122:1;:18;42102:350;;;42156:31;42190:14;;;:11;:14;;;;;;;;;42156:48;;;;;;;;;-1:-1:-1;;;;;42156:48:0;;;;;-1:-1:-1;;;42156:48:0;;;;;;;;;;;;42217:28;42213:89;;42278:14;;;-1:-1:-1;42213:89:0;42335:5;-1:-1:-1;;;;;42314:26:0;:17;-1:-1:-1;;;;;42314:26:0;;42310:135;;;42372:5;42357:11;:20;42353:59;;;-1:-1:-1;42399:1:0;-1:-1:-1;42392:8:0;;-1:-1:-1;;;42392:8:0;42353:59;42422:13;;;;:::i;:::-;;;;42310:135;-1:-1:-1;42142:3:0;;;;:::i;:::-;;;;42102:350;;;-1:-1:-1;42458:56:0;;-1:-1:-1;;;42458:56:0;;15212:2:1;42458:56:0;;;15194:21:1;15251:2;15231:18;;;15224:30;15290:34;15270:18;;;15263:62;-1:-1:-1;;;15341:18:1;;;15334:44;15395:19;;42458:56:0;15010:410:1;58136:143:0;18590:6;;-1:-1:-1;;;;;18590:6:0;17321:10;18737:23;18729:68;;;;-1:-1:-1;;;18729:68:0;;;;;;;:::i;:::-;58234:37:::1;::::0;58202:21:::1;::::0;58242:10:::1;::::0;58234:37;::::1;;;::::0;58202:21;;58184:15:::1;58234:37:::0;58184:15;58234:37;58202:21;58242:10;58234:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;58173:106;58136:143::o:0;46890:157::-;47002:39;47019:4;47025:2;47029:7;47002:39;;;;;;;;;;;;:16;:39::i;58287:168::-;18590:6;;-1:-1:-1;;;;;18590:6:0;17321:10;18737:23;18729:68;;;;-1:-1:-1;;;18729:68:0;;;;;;;:::i;:::-;58371:30:::1;::::0;-1:-1:-1;;;58371:30:0;;58395:4:::1;58371:30;::::0;::::1;6261:51:1::0;58353:15:0::1;::::0;-1:-1:-1;;;;;58371:15:0;::::1;::::0;::::1;::::0;6234:18:1;;58371:30:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;58412:35;::::0;-1:-1:-1;;;58412:35:0;;58427:10:::1;58412:35;::::0;::::1;6990:51:1::0;7057:18;;;7050:34;;;58353:48:0;;-1:-1:-1;;;;;;58412:14:0;::::1;::::0;::::1;::::0;6963:18:1;;58412:35:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;41308:177::-:0;41375:7;41221:12;;41399:5;:21;41391:69;;;;-1:-1:-1;;;41391:69:0;;8934:2:1;41391:69:0;;;8916:21:1;8973:2;8953:18;;;8946:30;9012:34;8992:18;;;8985:62;-1:-1:-1;;;9063:18:1;;;9056:33;9106:19;;41391:69:0;8732:399:1;41391:69:0;-1:-1:-1;41474:5:0;41308:177::o;44133:118::-;44197:7;44220:20;44232:7;44220:11;:20::i;:::-;:25;;44133:118;-1:-1:-1;;44133:118:0:o;43010:211::-;43074:7;-1:-1:-1;;;;;43098:19:0;;43090:75;;;;-1:-1:-1;;;43090:75:0;;11322:2:1;43090:75:0;;;11304:21:1;11361:2;11341:18;;;11334:30;11400:34;11380:18;;;11373:62;-1:-1:-1;;;11451:18:1;;;11444:41;11502:19;;43090:75:0;11120:407:1;43090:75:0;-1:-1:-1;;;;;;43187:19:0;;;;;:12;:19;;;;;:27;-1:-1:-1;;;;;43187:27:0;;43010:211::o;19168:103::-;18590:6;;-1:-1:-1;;;;;18590:6:0;17321:10;18737:23;18729:68;;;;-1:-1:-1;;;18729:68:0;;;;;;;:::i;:::-;19233:30:::1;19260:1;19233:18;:30::i;:::-;19168:103::o:0;44465:98::-;44521:13;44550:7;44543:14;;;;;:::i;56934:321::-;10446:1;11044:7;;:19;;11036:63;;;;-1:-1:-1;;;11036:63:0;;15627:2:1;11036:63:0;;;15609:21:1;15666:2;15646:18;;;15639:30;15705:33;15685:18;;;15678:61;15756:18;;11036:63:0;15425:355:1;11036:63:0;10446:1;11177:7;:18;56601:14:::1;::::0;41198:7;41221:12;55572:11:::1;::::0;57074:14;;56587:28:::1;56584:166;;;56677:9;56650:22;56658:14:::0;56650:5;:22:::1;:::i;:::-;56649:37;56627:111;;;::::0;-1:-1:-1;;;56627:111:0;;14859:2:1;56627:111:0::1;::::0;::::1;14841:21:1::0;14898:2;14878:18;;;14871:30;14937:26;14917:18;;;14910:54;14981:18;;56627:111:0::1;14657:348:1::0;56627:111:0::1;55799:18:::2;::::0;::::2;;55791:54;;;::::0;-1:-1:-1;;;55791:54:0;;16403:2:1;55791:54:0::2;::::0;::::2;16385:21:1::0;16442:2;16422:18;;;16415:30;16481:25;16461:18;;;16454:53;16524:18;;55791:54:0::2;16201:347:1::0;55791:54:0::2;57137:14:::3;56210:9;;56175:14;56159:13;41198:7:::0;41221:12;;41145:94;56159:13:::3;:30;;;;:::i;:::-;:60;;56137:144;;;::::0;-1:-1:-1;;;56137:144:0;;9338:2:1;56137:144:0::3;::::0;::::3;9320:21:1::0;9377:2;9357:18;;;9350:30;9416:34;9396:18;;;9389:62;-1:-1:-1;;;9467:18:1;;;9460:32;9509:19;;56137:144:0::3;9136:398:1::0;56137:144:0::3;57176:14:::4;55480:1;55957:14;:34;;55935:118;;;::::0;-1:-1:-1;;;55935:118:0;;10147:2:1;55935:118:0::4;::::0;::::4;10129:21:1::0;10186:2;10166:18;;;10159:30;10225:34;10205:18;;;10198:62;-1:-1:-1;;;10276:18:1;;;10269:32;10318:19;;55935:118:0::4;9945:398:1::0;55935:118:0::4;57210:37:::5;57220:10;57232:14;57210:9;:37::i;:::-;-1:-1:-1::0;;10402:1:0;11356:7;:22;-1:-1:-1;;;56934:321:0:o;46103:274::-;-1:-1:-1;;;;;46194:24:0;;17321:10;46194:24;;46186:63;;;;-1:-1:-1;;;46186:63:0;;12502:2:1;46186:63:0;;;12484:21:1;12541:2;12521:18;;;12514:30;12580:28;12560:18;;;12553:56;12626:18;;46186:63:0;12300:350:1;46186:63:0;17321:10;46258:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;46258:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;46258:53:0;;;;;;;;;;46323:48;;7235:41:1;;;46258:42:0;;17321:10;46323:48;;7208:18:1;46323:48:0;;;;;;;46103:274;;:::o;47110:311::-;47247:28;47257:4;47263:2;47267:7;47247:9;:28::i;:::-;47298:48;47321:4;47327:2;47331:7;47340:5;47298:22;:48::i;:::-;47282:133;;;;-1:-1:-1;;;47282:133:0;;;;;;;:::i;:::-;47110:311;;;;:::o;59836:377::-;59954:13;59993:16;60001:7;47717:4;47747:12;-1:-1:-1;47737:22:0;47660:105;59993:16;59985:46;;;;-1:-1:-1;;;59985:46:0;;10550:2:1;59985:46:0;;;10532:21:1;10589:2;10569:18;;;10562:30;-1:-1:-1;;;10608:18:1;;;10601:47;10665:18;;59985:46:0;10348:341:1;59985:46:0;60181:22;60182:9;:7;60190:1;60182:9;:::i;:::-;60181:20;:22::i;:::-;60071:133;;;;;;;;:::i;:::-;;;;;;;;;;;;;60044:161;;59836:377;;;:::o;57645:166::-;18590:6;;-1:-1:-1;;;;;18590:6:0;17321:10;18737:23;18729:68;;;;-1:-1:-1;;;18729:68:0;;;;;;;:::i;:::-;57759:20:::1;:44:::0;;;::::1;;-1:-1:-1::0;;;57759:44:0::1;-1:-1:-1::0;;;;57759:44:0;;::::1;::::0;;;::::1;::::0;;57645:166::o;59148:617::-;59496:27;;59273:4;;-1:-1:-1;;;;;59496:27:0;;;-1:-1:-1;;;59563:20:0;;;;:86;;;;-1:-1:-1;59608:28:0;;-1:-1:-1;;;59608:28:0;;-1:-1:-1;;;;;6279:32:1;;;59608:28:0;;;6261:51:1;59600:49:0;;;;59608:21;;;;;;6234:18:1;;59608:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;59600:49:0;;59563:86;59545:154;;;59683:4;59676:11;;;;;59545:154;-1:-1:-1;;;;;46585:25:0;;;46562:4;46585:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;59718:39;59711:46;59148:617;-1:-1:-1;;;;59148:617:0:o;19426:201::-;18590:6;;-1:-1:-1;;;;;18590:6:0;17321:10;18737:23;18729:68;;;;-1:-1:-1;;;18729:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;19515:22:0;::::1;19507:73;;;::::0;-1:-1:-1;;;19507:73:0;;8116:2:1;19507:73:0::1;::::0;::::1;8098:21:1::0;8155:2;8135:18;;;8128:30;8194:34;8174:18;;;8167:62;-1:-1:-1;;;8245:18:1;;;8238:36;8291:19;;19507:73:0::1;7914:402:1::0;19507:73:0::1;19591:28;19610:8;19591:18;:28::i;:::-;19426:201:::0;:::o;42584:370::-;42711:4;-1:-1:-1;;;;;;42741:40:0;;-1:-1:-1;;;42741:40:0;;:99;;-1:-1:-1;;;;;;;42792:48:0;;-1:-1:-1;;;42792:48:0;42741:99;:160;;;-1:-1:-1;;;;;;;42851:50:0;;-1:-1:-1;;;42851:50:0;42741:160;:207;;;-1:-1:-1;;;;;;;;;;32026:40:0;;;42912:36;31917:157;51347:172;51444:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;51444:29:0;-1:-1:-1;;;;;51444:29:0;;;;;;;;;51485:28;;51444:24;;51485:28;;;;;;;51347:172;;;:::o;49712:1529::-;49809:35;49847:20;49859:7;49847:11;:20::i;:::-;49918:18;;49809:58;;-1:-1:-1;49876:22:0;;-1:-1:-1;;;;;49902:34:0;17321:10;-1:-1:-1;;;;;49902:34:0;;:81;;;-1:-1:-1;17321:10:0;49947:20;49959:7;49947:11;:20::i;:::-;-1:-1:-1;;;;;49947:36:0;;49902:81;:142;;;-1:-1:-1;50011:18:0;;49994:50;;17321:10;59148:617;:::i;49994:50::-;49876:169;;50070:17;50054:101;;;;-1:-1:-1;;;50054:101:0;;12857:2:1;50054:101:0;;;12839:21:1;12896:2;12876:18;;;12869:30;12935:34;12915:18;;;12908:62;-1:-1:-1;;;12986:18:1;;;12979:48;13044:19;;50054:101:0;12655:414:1;50054:101:0;50202:4;-1:-1:-1;;;;;50180:26:0;:13;:18;;;-1:-1:-1;;;;;50180:26:0;;50164:98;;;;-1:-1:-1;;;50164:98:0;;11734:2:1;50164:98:0;;;11716:21:1;11773:2;11753:18;;;11746:30;11812:34;11792:18;;;11785:62;-1:-1:-1;;;11863:18:1;;;11856:36;11909:19;;50164:98:0;11532:402:1;50164:98:0;-1:-1:-1;;;;;50277:16:0;;50269:66;;;;-1:-1:-1;;;50269:66:0;;9741:2:1;50269:66:0;;;9723:21:1;9780:2;9760:18;;;9753:30;9819:34;9799:18;;;9792:62;-1:-1:-1;;;9870:18:1;;;9863:35;9915:19;;50269:66:0;9539:401:1;50269:66:0;50444:49;50461:1;50465:7;50474:13;:18;;;50444:8;:49::i;:::-;-1:-1:-1;;;;;50502:18:0;;;;;;:12;:18;;;;;:31;;50532:1;;50502:18;:31;;50532:1;;-1:-1:-1;;;;;50502:31:0;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;50502:31:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;50540:16:0;;-1:-1:-1;50540:16:0;;;:12;:16;;;;;:29;;-1:-1:-1;;;50540:16:0;;:29;;-1:-1:-1;;50540:29:0;;:::i;:::-;;;-1:-1:-1;;;;;50540:29:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50599:43:0;;;;;;;;-1:-1:-1;;;;;50599:43:0;;;;;;50625:15;50599:43;;;;;;;;;-1:-1:-1;50576:20:0;;;:11;:20;;;;;;:66;;;;;;;;;-1:-1:-1;;;50576:66:0;-1:-1:-1;;;;;;50576:66:0;;;;;;;;;;;50892:11;50588:7;-1:-1:-1;50892:11:0;:::i;:::-;50955:1;50914:24;;;:11;:24;;;;;:29;50870:33;;-1:-1:-1;;;;;;50914:29:0;50910:236;;50972:20;50980:11;47717:4;47747:12;-1:-1:-1;47737:22:0;47660:105;50972:20;50968:171;;;51032:97;;;;;;;;51059:18;;-1:-1:-1;;;;;51032:97:0;;;;;;51090:28;;;;51032:97;;;;;;;;;;-1:-1:-1;51005:24:0;;;:11;:24;;;;;;;:124;;;;;;;;;-1:-1:-1;;;51005:124:0;-1:-1:-1;;;;;;51005:124:0;;;;;;;;;;;;50968:171;51178:7;51174:2;-1:-1:-1;;;;;51159:27:0;51168:4;-1:-1:-1;;;;;51159:27:0;;;;;;;;;;;51193:42;49802:1439;;;49712:1529;;;:::o;3742:98::-;3800:7;3827:5;3831:1;3827;:5;:::i;:::-;3820:12;3742:98;-1:-1:-1;;;3742:98:0:o;4141:::-;4199:7;4226:5;4230:1;4226;:5;:::i;43473:606::-;-1:-1:-1;;;;;;;;;;;;;;;;;43590:16:0;43598:7;47717:4;47747:12;-1:-1:-1;47737:22:0;47660:105;43590:16;43582:71;;;;-1:-1:-1;;;43582:71:0;;8523:2:1;43582:71:0;;;8505:21:1;8562:2;8542:18;;;8535:30;8601:34;8581:18;;;8574:62;-1:-1:-1;;;8652:18:1;;;8645:40;8702:19;;43582:71:0;8321:406:1;43582:71:0;43662:26;43710:12;43699:7;:23;43695:93;;43754:22;43764:12;43754:7;:22;:::i;:::-;:26;;43779:1;43754:26;:::i;:::-;43733:47;;43695:93;43816:7;43796:212;43833:18;43825:4;:26;43796:212;;43870:31;43904:17;;;:11;:17;;;;;;;;;43870:51;;;;;;;;;-1:-1:-1;;;;;43870:51:0;;;;;-1:-1:-1;;;43870:51:0;;;;;;;;;;;;43934:28;43930:71;;43982:9;43473:606;-1:-1:-1;;;;43473:606:0:o;43930:71::-;-1:-1:-1;43853:6:0;;;;:::i;:::-;;;;43796:212;;;-1:-1:-1;44016:57:0;;-1:-1:-1;;;44016:57:0;;15987:2:1;44016:57:0;;;15969:21:1;16026:2;16006:18;;;15999:30;16065:34;16045:18;;;16038:62;-1:-1:-1;;;16116:18:1;;;16109:45;16171:19;;44016:57:0;15785:411:1;19787:191:0;19880:6;;;-1:-1:-1;;;;;19897:17:0;;;-1:-1:-1;;;;;;19897:17:0;;;;;;;19930:40;;19880:6;;;19897:17;19880:6;;19930:40;;19861:16;;19930:40;19850:128;19787:191;:::o;47771:98::-;47836:27;47846:2;47850:8;47836:27;;;;;;;;;;;;:9;:27::i;53062:690::-;53199:4;-1:-1:-1;;;;;53216:13:0;;21128:20;21176:8;53212:535;;53255:72;;-1:-1:-1;;;53255:72:0;;-1:-1:-1;;;;;53255:36:0;;;;;:72;;17321:10;;53306:4;;53312:7;;53321:5;;53255:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53255:72:0;;;;;;;;-1:-1:-1;;53255:72:0;;;;;;;;;;;;:::i;:::-;;;53242:464;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53486:13:0;;53482:215;;53519:61;;-1:-1:-1;;;53519:61:0;;;;;;;:::i;53482:215::-;53665:6;53659:13;53650:6;53646:2;53642:15;53635:38;53242:464;-1:-1:-1;;;;;;53377:55:0;-1:-1:-1;;;53377:55:0;;-1:-1:-1;53370:62:0;;53212:535;-1:-1:-1;53735:4:0;53062:690;;;;;;:::o;14803:723::-;14859:13;15080:10;15076:53;;-1:-1:-1;;15107:10:0;;;;;;;;;;;;-1:-1:-1;;;15107:10:0;;;;;14803:723::o;15076:53::-;15154:5;15139:12;15195:78;15202:9;;15195:78;;15228:8;;;;:::i;:::-;;-1:-1:-1;15251:10:0;;-1:-1:-1;15259:2:0;15251:10;;:::i;:::-;;;15195:78;;;15283:19;15315:6;15305:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15305:17:0;;15283:39;;15333:154;15340:10;;15333:154;;15367:11;15377:1;15367:11;;:::i;:::-;;-1:-1:-1;15436:10:0;15444:2;15436:5;:10;:::i;:::-;15423:24;;:2;:24;:::i;:::-;15410:39;;15393:6;15400;15393:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;15393:56:0;;;;;;;;-1:-1:-1;15464:11:0;15473:2;15464:11;;:::i;:::-;;;15333:154;;48208:1272;48313:20;48336:12;-1:-1:-1;;;;;48363:16:0;;48355:62;;;;-1:-1:-1;;;48355:62:0;;14457:2:1;48355:62:0;;;14439:21:1;14496:2;14476:18;;;14469:30;14535:34;14515:18;;;14508:62;-1:-1:-1;;;14586:18:1;;;14579:31;14627:19;;48355:62:0;14255:397:1;48355:62:0;48554:21;48562:12;47717:4;47747:12;-1:-1:-1;47737:22:0;47660:105;48554:21;48553:22;48545:64;;;;-1:-1:-1;;;48545:64:0;;14099:2:1;48545:64:0;;;14081:21:1;14138:2;14118:18;;;14111:30;14177:31;14157:18;;;14150:59;14226:18;;48545:64:0;13897:353:1;48545:64:0;48636:12;48624:8;:24;;48616:71;;;;-1:-1:-1;;;48616:71:0;;17169:2:1;48616:71:0;;;17151:21:1;17208:2;17188:18;;;17181:30;17247:34;17227:18;;;17220:62;-1:-1:-1;;;17298:18:1;;;17291:32;17340:19;;48616:71:0;16967:398:1;48616:71:0;-1:-1:-1;;;;;48799:16:0;;48766:30;48799:16;;;:12;:16;;;;;;;;;48766:49;;;;;;;;;-1:-1:-1;;;;;48766:49:0;;;;;-1:-1:-1;;;48766:49:0;;;;;;;;;;;48841:119;;;;;;;;48861:19;;48766:49;;48841:119;;;48861:39;;48891:8;;48861:39;:::i;:::-;-1:-1:-1;;;;;48841:119:0;;;;;48944:8;48909:11;:24;;;:44;;;;:::i;:::-;-1:-1:-1;;;;;48841:119:0;;;;;;-1:-1:-1;;;;;48822:16:0;;;;;;;:12;:16;;;;;;;;:138;;;;;;;;-1:-1:-1;;;48822:138:0;;;;;;;;;;;;48995:43;;;;;;;;;;;49021:15;48995:43;;;;;;;;48967:25;;;:11;:25;;;;;;:71;;;;;;;;;-1:-1:-1;;;48967:71:0;-1:-1:-1;;;;;;48967:71:0;;;;;;;;;;;;;;;;;;48979:12;;49091:281;49115:8;49111:1;:12;49091:281;;;49144:38;;49169:12;;-1:-1:-1;;;;;49144:38:0;;;49161:1;;49144:38;;49161:1;;49144:38;49209:59;49240:1;49244:2;49248:12;49262:5;49209:22;:59::i;:::-;49191:150;;;;-1:-1:-1;;;49191:150:0;;;;;;;:::i;:::-;49350:14;;;;:::i;:::-;;;;49125:3;;;;;:::i;:::-;;;;49091:281;;;-1:-1:-1;49380:12:0;:27;;;49414:60;47110:311;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:1266::-;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;1474:2:1;1459:18;;1446:32;1487:33;1446:32;1487:33;:::i;:::-;1539:7;-1:-1:-1;1593:2:1;1578:18;;1565:32;;-1:-1:-1;1648:2:1;1633:18;;1620:32;1671:18;1701:14;;;1698:34;;;1728:1;1725;1718:12;1698:34;1766:6;1755:9;1751:22;1741:32;;1811:7;1804:4;1800:2;1796:13;1792:27;1782:55;;1833:1;1830;1823:12;1782:55;1869:2;1856:16;1891:2;1887;1884:10;1881:36;;;1897:18;;:::i;:::-;1972:2;1966:9;1940:2;2026:13;;-1:-1:-1;;2022:22:1;;;2046:2;2018:31;2014:40;2002:53;;;2070:18;;;2090:22;;;2067:46;2064:72;;;2116:18;;:::i;:::-;2156:10;2152:2;2145:22;2191:2;2183:6;2176:18;2231:7;2226:2;2221;2217;2213:11;2209:20;2206:33;2203:53;;;2252:1;2249;2242:12;2203:53;2308:2;2303;2299;2295:11;2290:2;2282:6;2278:15;2265:46;2353:1;2348:2;2343;2335:6;2331:15;2327:24;2320:35;2374:6;2364:16;;;;;;;1120:1266;;;;;;;:::o;2391:382::-;2456:6;2464;2517:2;2505:9;2496:7;2492:23;2488:32;2485:52;;;2533:1;2530;2523:12;2485:52;2572:9;2559:23;2591:31;2616:5;2591:31;:::i;:::-;2641:5;-1:-1:-1;2698:2:1;2683:18;;2670:32;2711:30;2670:32;2711:30;:::i;2778:315::-;2846:6;2854;2907:2;2895:9;2886:7;2882:23;2878:32;2875:52;;;2923:1;2920;2913:12;2875:52;2962:9;2949:23;2981:31;3006:5;2981:31;:::i;:::-;3031:5;3083:2;3068:18;;;;3055:32;;-1:-1:-1;;;2778:315:1:o;3098:241::-;3154:6;3207:2;3195:9;3186:7;3182:23;3178:32;3175:52;;;3223:1;3220;3213:12;3175:52;3262:9;3249:23;3281:28;3303:5;3281:28;:::i;3344:245::-;3411:6;3464:2;3452:9;3443:7;3439:23;3435:32;3432:52;;;3480:1;3477;3470:12;3432:52;3512:9;3506:16;3531:28;3553:5;3531:28;:::i;3594:245::-;3652:6;3705:2;3693:9;3684:7;3680:23;3676:32;3673:52;;;3721:1;3718;3711:12;3673:52;3760:9;3747:23;3779:30;3803:5;3779:30;:::i;3844:249::-;3913:6;3966:2;3954:9;3945:7;3941:23;3937:32;3934:52;;;3982:1;3979;3972:12;3934:52;4014:9;4008:16;4033:30;4057:5;4033:30;:::i;4364:280::-;4463:6;4516:2;4504:9;4495:7;4491:23;4487:32;4484:52;;;4532:1;4529;4522:12;4484:52;4564:9;4558:16;4583:31;4608:5;4583:31;:::i;4649:180::-;4708:6;4761:2;4749:9;4740:7;4736:23;4732:32;4729:52;;;4777:1;4774;4767:12;4729:52;-1:-1:-1;4800:23:1;;4649:180;-1:-1:-1;4649:180:1:o;4834:184::-;4904:6;4957:2;4945:9;4936:7;4932:23;4928:32;4925:52;;;4973:1;4970;4963:12;4925:52;-1:-1:-1;4996:16:1;;4834:184;-1:-1:-1;4834:184:1:o;5023:248::-;5091:6;5099;5152:2;5140:9;5131:7;5127:23;5123:32;5120:52;;;5168:1;5165;5158:12;5120:52;-1:-1:-1;;5191:23:1;;;5261:2;5246:18;;;5233:32;;-1:-1:-1;5023:248:1:o;5276:257::-;5317:3;5355:5;5349:12;5382:6;5377:3;5370:19;5398:63;5454:6;5447:4;5442:3;5438:14;5431:4;5424:5;5420:16;5398:63;:::i;:::-;5515:2;5494:15;-1:-1:-1;;5490:29:1;5481:39;;;;5522:4;5477:50;;5276:257;-1:-1:-1;;5276:257:1:o;5538:572::-;5800:34;5795:3;5788:47;5865:34;5860:2;5855:3;5851:12;5844:56;5930:27;5925:2;5920:3;5916:12;5909:49;5770:3;5987:6;5981:13;6003:60;6056:6;6051:2;6046:3;6042:12;6037:2;6029:6;6025:15;6003:60;:::i;:::-;6083:16;;;;6101:2;6079:25;;5538:572;-1:-1:-1;;5538:572:1:o;6323:488::-;-1:-1:-1;;;;;6592:15:1;;;6574:34;;6644:15;;6639:2;6624:18;;6617:43;6691:2;6676:18;;6669:34;;;6739:3;6734:2;6719:18;;6712:31;;;6517:4;;6760:45;;6785:19;;6777:6;6760:45;:::i;:::-;6752:53;6323:488;-1:-1:-1;;;;;;6323:488:1:o;7287:219::-;7436:2;7425:9;7418:21;7399:4;7456:44;7496:2;7485:9;7481:18;7473:6;7456:44;:::i;11939:356::-;12141:2;12123:21;;;12160:18;;;12153:30;12219:34;12214:2;12199:18;;12192:62;12286:2;12271:18;;11939:356::o;13477:415::-;13679:2;13661:21;;;13718:2;13698:18;;;13691:30;13757:34;13752:2;13737:18;;13730:62;-1:-1:-1;;;13823:2:1;13808:18;;13801:49;13882:3;13867:19;;13477:415::o;17552:253::-;17592:3;-1:-1:-1;;;;;17681:2:1;17678:1;17674:10;17711:2;17708:1;17704:10;17742:3;17738:2;17734:12;17729:3;17726:21;17723:47;;;17750:18;;:::i;:::-;17786:13;;17552:253;-1:-1:-1;;;;17552:253:1:o;17810:128::-;17850:3;17881:1;17877:6;17874:1;17871:13;17868:39;;;17887:18;;:::i;:::-;-1:-1:-1;17923:9:1;;17810:128::o;17943:120::-;17983:1;18009;17999:35;;18014:18;;:::i;:::-;-1:-1:-1;18048:9:1;;17943:120::o;18068:168::-;18108:7;18174:1;18170;18166:6;18162:14;18159:1;18156:21;18151:1;18144:9;18137:17;18133:45;18130:71;;;18181:18;;:::i;:::-;-1:-1:-1;18221:9:1;;18068:168::o;18241:246::-;18281:4;-1:-1:-1;;;;;18394:10:1;;;;18364;;18416:12;;;18413:38;;;18431:18;;:::i;:::-;18468:13;;18241:246;-1:-1:-1;;;18241:246:1:o;18492:125::-;18532:4;18560:1;18557;18554:8;18551:34;;;18565:18;;:::i;:::-;-1:-1:-1;18602:9:1;;18492:125::o;18622:258::-;18694:1;18704:113;18718:6;18715:1;18712:13;18704:113;;;18794:11;;;18788:18;18775:11;;;18768:39;18740:2;18733:10;18704:113;;;18835:6;18832:1;18829:13;18826:48;;;-1:-1:-1;;18870:1:1;18852:16;;18845:27;18622:258::o;18885:136::-;18924:3;18952:5;18942:39;;18961:18;;:::i;:::-;-1:-1:-1;;;18997:18:1;;18885:136::o;19026:380::-;19105:1;19101:12;;;;19148;;;19169:61;;19223:4;19215:6;19211:17;19201:27;;19169:61;19276:2;19268:6;19265:14;19245:18;19242:38;19239:161;;;19322:10;19317:3;19313:20;19310:1;19303:31;19357:4;19354:1;19347:15;19385:4;19382:1;19375:15;19239:161;;19026:380;;;:::o;19411:135::-;19450:3;-1:-1:-1;;19471:17:1;;19468:43;;;19491:18;;:::i;:::-;-1:-1:-1;19538:1:1;19527:13;;19411:135::o;19551:112::-;19583:1;19609;19599:35;;19614:18;;:::i;:::-;-1:-1:-1;19648:9:1;;19551:112::o;19668:127::-;19729:10;19724:3;19720:20;19717:1;19710:31;19760:4;19757:1;19750:15;19784:4;19781:1;19774:15;19800:127;19861:10;19856:3;19852:20;19849:1;19842:31;19892:4;19889:1;19882:15;19916:4;19913:1;19906:15;19932:127;19993:10;19988:3;19984:20;19981:1;19974:31;20024:4;20021:1;20014:15;20048:4;20045:1;20038:15;20064:127;20125:10;20120:3;20116:20;20113:1;20106:31;20156:4;20153:1;20146:15;20180:4;20177:1;20170:15;20196:131;-1:-1:-1;;;;;20271:31:1;;20261:42;;20251:70;;20317:1;20314;20307:12;20332:118;20418:5;20411:13;20404:21;20397:5;20394:32;20384:60;;20440:1;20437;20430:12;20455:131;-1:-1:-1;;;;;;20529:32:1;;20519:43;;20509:71;;20576:1;20573;20566:12

Swarm Source

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