ETH Price: $3,486.75 (+3.43%)
Gas: 4 Gwei

Token

Polymorphic Pride Flags (POLYPRIDE)
 

Overview

Max Total Supply

102 POLYPRIDE

Holders

23

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
fumeiji.eth
Balance
1 POLYPRIDE
0x8f4612e9aab90ead61a1637436bcb9fd0b606652
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:
POLYPRIDE

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 1 : POLYPRIDE.sol
/*
*  _____   ____  _  __     ____  __  ____  _____  _____  _    _ _____ _____ 
* |  __ \ / __ \| | \ \   / /  \/  |/ __ \|  __ \|  __ \| |  | |_   _/ ____|
* | |__) | |  | | |  \ \_/ /| \  / | |  | | |__) | |__) | |__| | | || |     
* |  ___/| |  | | |   \   / | |\/| | |  | |  _  /|  ___/|  __  | | || |     
* | |    | |__| | |____| |  | |  | | |__| | | \ \| |    | |  | |_| || |____ 
* |_|___  \____/|______|_|__|_|__|_|\____/|_| _\_\_|    |_|  |_|_____\_____|
* |  __ \|  __ \|_   _|  __ \|  ____| |  ____| |        /\   / ____|/ _____| 
* | |__) | |__) | | | | |  | | |__    | |__  | |       /  \ | |  __| (___   
* |  ___/|  _  /  | | | |  | |  __|   |  __| | |      / /\ \| | |_ |\___ \  
* | |    | | \ \ _| |_| |__| | |____  | |    | |____ / ____ \ |__| |____) | 
* |_|    |_|  \_\_____|_____/|______| |_|    |______/_/    \_\_____|_____/ 
*
* 1969 fully on-chain pride flags that can be morphed between one of 12 designs
*                project by smol farm | contract by Thorne
*/

// 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/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/security/Pausable.sol


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

pragma solidity ^0.8.0;


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

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

    bool private _paused;

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

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

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

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

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

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

// File: @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 (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @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/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/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


// Creator: Chiru Labs

pragma solidity ^0.8.4;








error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

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

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

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

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

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

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

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

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

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

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

pragma solidity ^0.8.13;

// SPDX-License-Identifier: CC0-1.0
contract POLYPRIDE is ERC721A, ReentrancyGuard, Ownable, Pausable {
    constructor() ERC721A("Polymorphic Pride Flags", "POLYPRIDE") Ownable() {
        // Pause minting until after promoMint()
        _pause();
    }

    uint256 public constant mintPrice = 0.03 ether;
    uint256 public constant maxTokens = 1969;

    // Match to flag #, which starts at 1; array starts at 0
    uint8[1969] currentFlag;

    // Displayed as part of the name & as a trait
    string[12] public flagNames = [
        "Rainbow",
        "Chevron Rainbow",
        "Aromantic",
        "Asexual",
        "Bigender",
        "Bisexual",
        "Genderqueer",
        "Intersex",
        "Lesbian",
        "Non-Binary",
        "Pansexual",
        "Transgender"
    ];

    // All flags start with the opening <svg> tag and the first part of a <path> tag 
    // <svg viewBox="0 0 2000 1200" xmlns="http://www.w3.org/2000/svg">
    //     <path d="
    string public constant flagPrefix = "PHN2ZyB2aWV3Qm94PSIwIDAgMjAwMCAxMjAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZD0iT";

    string[12] public flagData = [
        "TAgMEwyMDAwIDBMMjAwMCAwTDIwMDAgMTIwMEwyMDAwIDEyMDBMMCAxMjAwTDAgMTIwMEwwIDBMMCAwWiIgZmlsbD0iIzc1MDc4NyIgZmlsbC1ydWx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MjAwMCAxMjAwTDAgMTIwMEwwIDBaIiBmaWxsPSIjNWJjZWZhIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz4NCjxwYXRoIGQ9Ik0wIDI0MEwyMDAwIDI0MEwyMDAwIDk2MEwwIDk2MEwwIDI0MFoiIGZpbGw9IiNmNWE5YjgiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPHBhdGggZD0iTTAgNDgwTDIwMDAgNDgwTDIwMDAgNzIwTDAgNzIwTDAgNDgwWiIgZmlsbD0iI2ZmZmZmZiIgZmlsbC1ydWxlPSJldmVub2RkIi8+DQo8L3N2Zz4="
    ];

    function tokenURI(uint256 tokenId) override public view returns (string memory) {
        string memory trait = string(abi.encodePacked('{"trait_type":"Morph","value":"', flagNames[currentFlag[tokenId-1]], '"}'));
        string memory output = string(abi.encodePacked(flagPrefix, flagData[currentFlag[tokenId-1]]));
        
        string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "Flag #', toString(tokenId), ' - ', flagNames[currentFlag[tokenId-1]], '", "description": "12-in-1 on-chain LGBTQ+ pride flags. Owner can morph the flag at any time.", "attributes": [', trait ,'], "image": "data:image/svg+xml;base64,', bytes(output), '"}'))));
        output = string(abi.encodePacked('data:application/json;base64,', json));

        return output;
    }

    function weaveFlags(uint8 qty, uint8 flagType) public payable nonReentrant {
        require(qty <= 100, 'EXCEEDS_TX_LIMIT');

        unchecked { 
            require(mintPrice * qty <= msg.value, 'LOW_ETHER');
            require(totalSupply() + qty <= maxTokens, 'MAX_REACHED');

            for(uint256 i = 0; i < qty; ++i) {
                currentFlag[totalSupply()+i] = flagType;
            }

            _safeMint(msg.sender, qty);
        }
    }

    /*
    * Morph the flag into a different design, numbered 0-11:
    *
    *  0 - Simple Rainbow
    *  1 - Chevron Rainbow
    *  2 - Aromantic
    *  3 - Asexual
    *  4 - Bigender
    *  5 - Bisexual
    *  6 - Genderqueer
    *  7 - Intersex
    *  8 - Lesbian
    *  9 - Non-Binary
    * 10 - Pansexual
    * 11 - Transgender
    */
    function morphFlag(uint256 tokenId, uint8 newFlagType) public nonReentrant {
        require(tokenId <= 1969, 'TOKEN_ID_TOO_HIGH');
        require(newFlagType <= 11, 'FLAG_ID_TOO_HIGH');

        unchecked { 
            require(tokenId <= totalSupply(), 'NOT_WOVEN_YET');
            require(ownerOf(tokenId) == msg.sender, 'FLAG_NOT_YOURS');
            currentFlag[tokenId-1] = newFlagType; 
        }
    }

    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }

    function withdraw() public onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }
    
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // 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);
    }

    /*
    * Mint the first 69 flags to Thorne's wallet. Can only be run once.
    */
    function promoWeave() public onlyOwner {
        unchecked { 
            require(totalSupply() == 0, 'PROMO_RUN'); 

            for(uint256 i = 0; i < 69; ++i) {
                currentFlag[totalSupply()+i] = 11;
            }

            _safeMint(0x8aa986eB2F0D3b5001C9C2093698A4e13d646D5b, 69);
        }
        
        _unpause();
    }

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

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

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"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":"","type":"uint256"}],"name":"flagData","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"flagNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flagPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"newFlagType","type":"uint8"}],"name":"morphFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"promoWeave","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"qty","type":"uint8"},{"internalType":"uint8","name":"flagType","type":"uint8"}],"name":"weaveFlags","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6007610200818152665261696e626f7760c81b610220526080908152600f6102409081526e43686576726f6e205261696e626f7760881b6102605260a05260096102808181526841726f6d616e74696360b81b6102a05260c0526102c083815266105cd95e1d585b60ca1b6102e05260e0526008610300818152672134b3b2b73232b960c11b610320526101005261034081815267109a5cd95e1d585b60c21b6103605261012052600b6103808181526a23b2b73232b938bab2b2b960a91b6103a052610140526103c091825267092dce8cae4e6caf60c31b6103e05261016091909152610400938452662632b9b134b0b760c91b6104205261018093909352600a610440908152694e6f6e2d42696e61727960b01b610460526101a0526104809081526814185b9cd95e1d585b60ba1b6104a0526101c0526105006040526104c09182526a2a3930b739b3b2b73232b960a91b6104e0526101e0919091526200016e90604890600c620004de565b506040805161050081019091526103576101808201818152829162003b4d6101a08401398152602001604051806107e001604052806107a381526020016200430e6107a39139815260200160405180610240016040528061021381526020016200308361021391398152602001604051806101e001604052806101bb8152602001620039926101bb9139815260200160405180610360016040528061032b815260200162003fe361032b91398152602001604051806101e001604052806101ab8152602001620032966101ab9139815260200160405180610160016040528061013f81526020016200385361013f913981526020016040518061020001604052806101d3815260200162002eb06101d3913981526020016040518061030001604052806102c38152602001620035906102c391398152602001604051806101c0016040528061018f815260200162004ab161018f9139815260200160405180610160016040528061013f815260200162003ea461013f9139815260200160405180610180016040528061014f81526020016200344161014f913990526200031a90605490600c620004de565b503480156200032857600080fd5b50604080518082018252601781527f506f6c796d6f727068696320507269646520466c616773000000000000000000602080830191825283518085019094526009845268504f4c59505249444560b81b9084015281519192916200038f9160029162000535565b508051620003a590600390602084019062000535565b50600160005550506001600855620003bd33620003da565b6009805460ff60a01b19169055620003d46200042c565b62000676565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000440600954600160a01b900460ff1690565b15620004855760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6009805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620004c13390565b6040516001600160a01b03909116815260200160405180910390a1565b82600c810192821562000523579160200282015b828111156200052357825180516200051291849160209091019062000535565b5091602001919060010190620004f2565b5062000531929150620005c0565b5090565b82805462000543906200063a565b90600052602060002090601f016020900481019282620005675760008555620005b2565b82601f106200058257805160ff1916838001178555620005b2565b82800160010185558215620005b2579182015b82811115620005b257825182559160200191906001019062000595565b5062000531929150620005e1565b8082111562000531576000620005d78282620005f8565b50600101620005c0565b5b80821115620005315760008155600101620005e2565b50805462000606906200063a565b6000825580601f1062000617575050565b601f016020900490600052602060002090810190620006379190620005e1565b50565b600181811c908216806200064f57607f821691505b6020821081036200067057634e487b7160e01b600052602260045260246000fd5b50919050565b61282a80620006866000396000f3fe6080604052600436106101c25760003560e01c8063715018a6116100f7578063b88d4fde11610095578063e831574211610064578063e8315742146104bd578063e985e9c5146104d3578063f2fde38b1461051c578063f9c5b4bc1461053c57600080fd5b8063b88d4fde1461043d578063c72a12091461045d578063c87b56dd1461047d578063de0a64311461049d57600080fd5b806395d89b41116100d157806395d89b41146103e05780639634b54c146103f5578063a22cb4651461040a578063b529ee301461042a57600080fd5b8063715018a6146103985780638456cb59146103ad5780638da5cb5b146103c257600080fd5b80633ccfd60b116101645780635c975abb1161013e5780635c975abb1461031e5780636352211e1461033d5780636817c76c1461035d57806370a082311461037857600080fd5b80633ccfd60b146102d45780633f4ba83a146102e957806342842e0e146102fe57600080fd5b8063095ea7b3116101a0578063095ea7b3146102565780631029c8301461027857806318160ddd1461028d57806323b872dd146102b457600080fd5b806301ffc9a7146101c757806306fdde03146101fc578063081812fc1461021e575b600080fd5b3480156101d357600080fd5b506101e76101e2366004611fc7565b61055c565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b506102116105f9565b6040516101f39190612043565b34801561022a57600080fd5b5061023e610239366004612056565b61068b565b6040516001600160a01b0390911681526020016101f3565b34801561026257600080fd5b5061027661027136600461208b565b6106e8565b005b34801561028457600080fd5b506102766107a7565b34801561029957600080fd5b5060015460005403600019015b6040519081526020016101f3565b3480156102c057600080fd5b506102766102cf3660046120b5565b6108e9565b3480156102e057600080fd5b506102766108f4565b3480156102f557600080fd5b5061027661097d565b34801561030a57600080fd5b506102766103193660046120b5565b6109d7565b34801561032a57600080fd5b50600954600160a01b900460ff166101e7565b34801561034957600080fd5b5061023e610358366004612056565b6109f2565b34801561036957600080fd5b506102a6666a94d74f43000081565b34801561038457600080fd5b506102a66103933660046120f1565b610a04565b3480156103a457600080fd5b50610276610a6c565b3480156103b957600080fd5b50610276610ad0565b3480156103ce57600080fd5b506009546001600160a01b031661023e565b3480156103ec57600080fd5b50610211610b32565b34801561040157600080fd5b50610211610b41565b34801561041657600080fd5b5061027661042536600461210c565b610b5d565b610276610438366004612159565b610c0b565b34801561044957600080fd5b506102766104583660046121a2565b610dee565b34801561046957600080fd5b5061027661047836600461227e565b610e3f565b34801561048957600080fd5b50610211610498366004612056565b61103a565b3480156104a957600080fd5b506102116104b8366004612056565b6111d0565b3480156104c957600080fd5b506102a66107b181565b3480156104df57600080fd5b506101e76104ee3660046122a1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561052857600080fd5b506102766105373660046120f1565b611270565b34801561054857600080fd5b50610211610557366004612056565b61134f565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806105bf57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806105f357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060028054610608906122cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610634906122cb565b80156106815780601f1061065657610100808354040283529160200191610681565b820191906000526020600020905b81548152906001019060200180831161066457829003601f168201915b5050505050905090565b60006106968261135f565b6106cc576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106f3826109f2565b9050806001600160a01b0316836001600160a01b031603610740576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610760575061075e81336104ee565b155b15610797576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107a2838383611398565b505050565b6009546001600160a01b031633146108065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60015460005403600019011561085e5760405162461bcd60e51b815260206004820152600960248201527f50524f4d4f5f52554e000000000000000000000000000000000000000000000060448201526064016107fd565b60005b60458110156108bf57600b600a826108826001546000546000199190030190565b016107b1811061089457610894612305565b602091828204019190066101000a81548160ff021916908360ff160217905550806001019050610861565b506108df738aa986eb2f0d3b5001c9c2093698a4e13d646d5b604561140c565b6108e761142a565b565b6107a28383836114eb565b6009546001600160a01b0316331461094e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fd565b60405133904780156108fc02916000818181858888f1935050505015801561097a573d6000803e3d6000fd5b50565b6009546001600160a01b031633146108df5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fd565b6107a283838360405180602001604052806000815250610dee565b60006109fd82611727565b5192915050565b60006001600160a01b038216610a46576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b03163314610ac65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fd565b6108e76000611869565b6009546001600160a01b03163314610b2a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fd565b6108e76118d3565b606060038054610608906122cb565b6040518060a00160405280606581526020016127906065913981565b336001600160a01b03831603610b9f576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600260085403610c5d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107fd565b6002600855606460ff83161115610cb65760405162461bcd60e51b815260206004820152601060248201527f455843454544535f54585f4c494d49540000000000000000000000000000000060448201526064016107fd565b348260ff16666a94d74f430000021115610d125760405162461bcd60e51b815260206004820152600960248201527f4c4f575f4554484552000000000000000000000000000000000000000000000060448201526064016107fd565b6001546000546107b19160ff8516910360001901011115610d755760405162461bcd60e51b815260206004820152600b60248201527f4d41585f5245414348454400000000000000000000000000000000000000000060448201526064016107fd565b60005b8260ff16811015610dd75781600a82610d9a6001546000546000199190030190565b016107b18110610dac57610dac612305565b602091828204019190066101000a81548160ff021916908360ff160217905550806001019050610d78565b50610de5338360ff1661140c565b50506001600855565b610df98484846114eb565b6001600160a01b0383163b15158015610e1b5750610e1984848484611983565b155b15610e39576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600260085403610e915760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107fd565b60026008556107b1821115610ee85760405162461bcd60e51b815260206004820152601160248201527f544f4b454e5f49445f544f4f5f4849474800000000000000000000000000000060448201526064016107fd565b600b8160ff161115610f3c5760405162461bcd60e51b815260206004820152601060248201527f464c41475f49445f544f4f5f484947480000000000000000000000000000000060448201526064016107fd565b6001546000540360001901821115610f965760405162461bcd60e51b815260206004820152600d60248201527f4e4f545f574f56454e5f5945540000000000000000000000000000000000000060448201526064016107fd565b33610fa0836109f2565b6001600160a01b031614610ff65760405162461bcd60e51b815260206004820152600e60248201527f464c41475f4e4f545f594f55525300000000000000000000000000000000000060448201526064016107fd565b80600a600184036107b1811061100e5761100e612305565b602091828204019190066101000a81548160ff021916908360ff16021790555060016008819055505050565b606060006048600a61104d600186612331565b6107b1811061105e5761105e612305565b602081049091015460ff601f9092166101000a900416600c811061108457611084612305565b0160405160200161109591906123e1565b60408051601f1981840301815260a0830190915260658083529092506000919061279060208301396054600a6110cc600188612331565b6107b181106110dd576110dd612305565b602081049091015460ff601f9092166101000a900416600c811061110357611103612305565b01604051602001611115929190612440565b604051602081830303815290604052905060006111a461113486611aa1565b6048600a61114360018a612331565b6107b1811061115457611154612305565b602081049091015460ff601f9092166101000a900416600c811061117a5761117a612305565b0185856040516020016111909493929190612467565b604051602081830303815290604052611bd6565b9050806040516020016111b79190612622565b60408051601f1981840301815291905295945050505050565b604881600c81106111e057600080fd5b0180549091506111ef906122cb565b80601f016020809104026020016040519081016040528092919081815260200182805461121b906122cb565b80156112685780601f1061123d57610100808354040283529160200191611268565b820191906000526020600020905b81548152906001019060200180831161124b57829003601f168201915b505050505081565b6009546001600160a01b031633146112ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fd565b6001600160a01b0381166113465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107fd565b61097a81611869565b605481600c81106111e057600080fd5b600081600111158015611373575060005482105b80156105f3575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b611426828260405180602001604052806000815250611d95565b5050565b600954600160a01b900460ff166114835760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107fd565b600980547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006114f682611727565b9050836001600160a01b031681600001516001600160a01b031614611547576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611565575061156585336104ee565b806115805750336115758461068b565b6001600160a01b0316145b9050806115b9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166115f9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61160560008487611398565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166116db5760005482146116db578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101919091528180600111158015611757575060005481105b1561183757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906118355780516001600160a01b0316156117cb579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215611830579392505050565b6117cb565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600980546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600954600160a01b900460ff161561192d5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fd565b600980547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114ce3390565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a02906119d1903390899088908890600401612667565b6020604051808303816000875af1925050508015611a0c575060408051601f3d908101601f19168201909252611a09918101906126a3565b60015b611a6a573d808015611a3a576040519150601f19603f3d011682016040523d82523d6000602084013e611a3f565b606091505b508051600003611a62576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b0319167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b606081600003611ae457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611b0e5780611af8816126c0565b9150611b079050600a836126f0565b9150611ae8565b60008167ffffffffffffffff811115611b2957611b2961218c565b6040519080825280601f01601f191660200182016040528015611b53576020820181803683370190505b5090505b8415611a9957611b68600183612331565b9150611b75600a86612704565b611b80906030612718565b60f81b818381518110611b9557611b95612305565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611bcf600a866126f0565b9450611b57565b80516060906000819003611bfa575050604080516020810190915260008152919050565b60006003611c09836002612718565b611c1391906126f0565b611c1e906004612730565b90506000611c2d826020612718565b67ffffffffffffffff811115611c4557611c4561218c565b6040519080825280601f01601f191660200182016040528015611c6f576020820181803683370190505b5090506000604051806060016040528060408152602001612750604091399050600181016020830160005b86811015611cfb576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611c9a565b506003860660018114611d155760028114611d5f57611d87565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe830152611d87565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b505050918152949350505050565b6107a283838360016000546001600160a01b038516611de0576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600003611e1a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611edb57506001600160a01b0387163b15155b15611f63575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611f2c6000888480600101955088611983565b611f49576040516368d2bf6b60e11b815260040160405180910390fd5b808203611ee1578260005414611f5e57600080fd5b611fa8565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203611f64575b50600055611720565b6001600160e01b03198116811461097a57600080fd5b600060208284031215611fd957600080fd5b8135611fe481611fb1565b9392505050565b60005b83811015612006578181015183820152602001611fee565b83811115610e395750506000910152565b6000815180845261202f816020860160208601611feb565b601f01601f19169290920160200192915050565b602081526000611fe46020830184612017565b60006020828403121561206857600080fd5b5035919050565b80356001600160a01b038116811461208657600080fd5b919050565b6000806040838503121561209e57600080fd5b6120a78361206f565b946020939093013593505050565b6000806000606084860312156120ca57600080fd5b6120d38461206f565b92506120e16020850161206f565b9150604084013590509250925092565b60006020828403121561210357600080fd5b611fe48261206f565b6000806040838503121561211f57600080fd5b6121288361206f565b91506020830135801515811461213d57600080fd5b809150509250929050565b803560ff8116811461208657600080fd5b6000806040838503121561216c57600080fd5b61217583612148565b915061218360208401612148565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156121b857600080fd5b6121c18561206f565b93506121cf6020860161206f565b925060408501359150606085013567ffffffffffffffff808211156121f357600080fd5b818701915087601f83011261220757600080fd5b8135818111156122195761221961218c565b604051601f8201601f19908116603f011681019083821181831017156122415761224161218c565b816040528281528a602084870101111561225a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561229157600080fd5b8235915061218360208401612148565b600080604083850312156122b457600080fd5b6122bd8361206f565b91506121836020840161206f565b600181811c908216806122df57607f821691505b6020821081036122ff57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156123435761234361231b565b500390565b8054600090600181811c908083168061236257607f831692505b6020808410820361238357634e487b7160e01b600052602260045260246000fd5b81801561239757600181146123a8576123d5565b60ff198616895284890196506123d5565b60008881526020902060005b868110156123cd5781548b8201529085019083016123b4565b505084890196505b50505050505092915050565b7f7b2274726169745f74797065223a224d6f727068222c2276616c7565223a220081526000612413601f830184612348565b7f227d00000000000000000000000000000000000000000000000000000000000081526002019392505050565b60008351612452818460208801611feb565b61245e81840185612348565b95945050505050565b7f7b226e616d65223a2022466c616720230000000000000000000000000000000081526000855161249f816010850160208a01611feb565b7f202d2000000000000000000000000000000000000000000000000000000000006010918401918201526124d66013820187612348565b90507f222c20226465736372697074696f6e223a202231322d696e2d31206f6e2d636881527f61696e204c474254512b20707269646520666c6167732e204f776e657220636160208201527f6e206d6f7270682074686520666c616720617420616e792074696d652e222c2060408201527f2261747472696275746573223a205b00000000000000000000000000000000006060820152845161258081606f840160208901611feb565b7f5d2c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b606f92909101918201527f6261736536342c00000000000000000000000000000000000000000000000000608f82015283516125e4816096840160208801611feb565b6126166096828401017f227d000000000000000000000000000000000000000000000000000000000000815260020190565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161265a81601d850160208701611feb565b91909101601d0192915050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526126996080830184612017565b9695505050505050565b6000602082840312156126b557600080fd5b8151611fe481611fb1565b600060001982036126d3576126d361231b565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826126ff576126ff6126da565b500490565b600082612713576127136126da565b500690565b6000821982111561272b5761272b61231b565b500190565b600081600019048311821515161561274a5761274a61231b565b50029056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f50484e325a79423261575633516d393450534977494441674d6a41774d4341784d6a41774969423462577875637a30696148523063446f764c336433647935334d793576636d63764d6a41774d43397a646d63695067304b50484268644767675a44306954a26469706673582212201fe878755c00f23e532fe44e29b44286b914cca7041015eb8f51356d59f93fd664736f6c634300080d00335441674d4577794d4441774944424d4d6a41774d4341784d6a4177544441674d5449774d457777494442614969426d615778735053496a5a6d5a6b4f4441774969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30334d4441674e6a4177517a63774d4341304d7a51754d7a45314944677a4e43347a4d5455674d7a4177494445774d4441674d7a4177517a45784e6a55754e6a6b674d7a41774944457a4d4441674e444d304c6a4d784e5341784d7a4177494459774d454d784d7a4177494463324e5334324f4455674d5445324e5334324f5341354d4441674d5441774d4341354d4442444f444d304c6a4d784e5341354d4441674e7a4177494463324e5334324f4455674e7a4177494459774d466f6949475a7062477739496d3576626d556949475a7062477774636e56735a5430695a585a6c626d396b5a434967633352796232746c5053496a4e7a6b774d6d46684969427a64484a766132557462476c755a574e6863443069596e563064434967633352796232746c4c577870626d567162326c7550534a746158526c63694967633352796232746c4c5864705a48526f505349784d4441694c7a344e436a777663335a6e50673d3d5441674d4577794d4441774944424d4d6a41774d4341784d6a4177544441674d5449774d457777494442614969426d615778735053496a4d4441774d4441774969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30774944424d4d6a41774d434177544449774d4441674f545977544441674f545977544441674d466f6949475a706247773949694e684f57453559546b6949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545441674d4577794d4441774944424d4d6a41774d4341334d6a424d4d4341334d6a424d4d434177576949675a6d6c736244306949325a6d5a6d5a6d5a6949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4d434177544449774d4441674d4577794d444177494451344d457777494451344d457777494442614969426d615778735053496a5954646b4d7a63354969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30774944424d4d6a41774d434177544449774d4441674d6a5177544441674d6a5177544441674d466f6949475a706247773949694d7a5a4745314e44496949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b5043397a646d632b5441674d4577794d4441774944424d4d6a41774d434177544449774d4441674d5449774d4577794d444177494445794d44424d4d4341784d6a4177544441674d5449774d4577774944424d4d434177576949675a6d6c7362443069497a41774d7a68684f4349675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4d434177544449774d4441674d4577794d4441774944424d4d6a41774d4341334d6a424d4d6a41774d4341334d6a424d4d4341334d6a424d4d4341334d6a424d4d434177544441674d466f6949475a706247773949694d35596a526d4f54596949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545441674d4577794d4441774944424d4d6a41774d434177544449774d4441674e446777544449774d4441674e446777544441674e446777544441674e446777544441674d457777494442614969426d615778735053496a5a4459774d6a63774969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a777663335a6e50673d3d5441674d4577794d4441774944424d4d6a41774d4341784d6a4177544441674d5449774d457777494442614969426d615778735053496a4e574a6a5a575a684969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b3077494449304d4577794d444177494449304d4577794d44417749446b324d45777749446b324d457777494449304d466f6949475a706247773949694e6d4e574535596a676949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545441674e446777544449774d4441674e446777544449774d4441674e7a4977544441674e7a4977544441674e446777576949675a6d6c736244306949325a6d5a6d5a6d5a6949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f384c334e325a7a343d5441674d4577794d4441774944424d4d6a41774d434177544449774d4441674d5449774d4577794d444177494445794d44424d4d4341784d6a4177544441674d5449774d4577774944424d4d434177576949675a6d6c73624430694932457a4d4449324d6949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4d434177544449774d4441674d4577794d4441774944424d4d6a41774d4341354e6a424d4d6a41774d4341354e6a424d4d4341354e6a424d4d4341354e6a424d4d434177544441674d466f6949475a706247773949694e6b4d7a59795954516949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545441674d4577794d4441774944424d4d6a41774d434177544449774d4441674e7a4977544449774d4441674e7a4977544441674e7a4977544441674e7a4977544441674d457777494442614969426d615778735053496a5a6d5a6d5a6d5a6d4969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30774944424d4d6a41774d434177544449774d4441674d4577794d444177494451344d4577794d444177494451344d457777494451344d457777494451344d4577774944424d4d434177576949675a6d6c736244306949325a6d4f5745314e6949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4d434177544449774d4441674d4577794d4441774944424d4d6a41774d4341794e44424d4d6a41774d4341794e44424d4d4341794e44424d4d4341794e44424d4d434177544441674d466f6949475a706247773949694e6b4e544a6b4d44416949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b5043397a646d632b5441674d4577794d4441774944424d4d6a41774d4341784d6a4177544441674d5449774d457777494442614969426d615778735053496a4e4745344d54497a4969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30774944424d4d6a41774d434177544449774d4441674f444177544441674f444177544441674d466f6949475a706247773949694e6d5a6d5a6d5a6d596949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545441674d4577794d4441774944424d4d6a41774d4341304d44424d4d4341304d44424d4d434177576949675a6d6c7362443069493249314e32566b597949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f384c334e325a7a343d5441674d4577794d4441774944424d4d6a41774d4341784d6a4177544441674d5449774d457777494442614969426d615778735053496a5a6d5a6d5a6d5a6d4969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30774944424d4d6a41774d434177544449774d4441674d7a4177544441674d7a4177544441674d466f6949475a706247773949694d774d4441774d44416949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545441674f544177544449774d4441674f544177544449774d4441674d5449774d457777494445794d44424d4d4341354d4442614969426d615778735053496a4f4441774d4467774969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b307749444d774d4577794d44417749444d774d4577794d444177494459774d457777494459774d45777749444d774d466f6949475a706247773949694e684d32457a59544d6949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b5043397a646d632b5441674d4577794d4441774944424d4d6a41774d434177544449774d4441674d5449774d4577794d444177494445794d44424d4d4341784d6a4177544441674d5449774d4577774944424d4d434177576949675a6d6c7362443069497a63314d4463344e7949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4d434177544449774d4441674d4577794d4441774944424d4d6a41774d4341784d444177544449774d4441674d5441774d457777494445774d44424d4d4341784d444177544441674d457777494442614969426d615778735053496a4d4441305a475a6d4969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30774944424d4d6a41774d434177544449774d4441674d4577794d444177494467774d4577794d444177494467774d457777494467774d457777494467774d4577774944424d4d434177576949675a6d6c7362443069497a41774f4441794e6949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4d434177544449774d4441674d4577794d4441774944424d4d6a41774d4341324d44424d4d6a41774d4341324d44424d4d4341324d44424d4d4341324d44424d4d434177544441674d466f6949475a706247773949694e6d5a6d566b4d44416949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545441674d4577794d4441774944424d4d6a41774d434177544449774d4441674e444177544449774d4441674e444177544441674e444177544441674e444177544441674d457777494442614969426d615778735053496a5a6d5934597a41774969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30774944424d4d6a41774d434177544449774d4441674d4577794d444177494449774d4577794d444177494449774d457777494449774d457777494449774d4577774944424d4d434177576949675a6d6c7362443069493255304d444d774d7949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f384c334e325a7a343d5441674d4577794d4441774944424d4d6a41774d4341784d6a4177544441674d5449774d457777494442614969426d615778735053496a4d6a46694d575a6d4969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30774944424d4d6a41774d434177544449774d4441674f444177544441674f444177544441674d466f6949475a706247773949694e6d5a6d51344d44416949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545441674d4577794d4441774944424d4d6a41774d4341304d44424d4d4341304d44424d4d434177576949675a6d6c736244306949325a6d4d6a4534597949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f384c334e325a7a343d5441674d4577794d4441774944424d4d6a41774d4341784e7a45754e444935544441674d5463784c6a51794f557777494442614969426d615778735053496a597a51334f5745794969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b3077494445334d5334304d6a6c4d4d6a41774d4341784e7a45754e444935544449774d4441674d7a51794c6a67314e30777749444d304d6934344e54644d4d4341784e7a45754e444935576949675a6d6c73624430694932566b5954566a5a4349675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4d43417a4e4449754f445533544449774d4441674d7a51794c6a67314e3077794d444177494467314e7934784e444e4d4d4341344e5463754d54517a544441674d7a51794c6a67314e316f6949475a706247773949694e6b4e574d335a54676949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545441674e5445304c6a49344e6b77794d444177494455784e4334794f445a4d4d6a41774d4341324f4455754e7a4530544441674e6a67314c6a63784e457777494455784e4334794f445a614969426d615778735053496a5a6d5a6d5a6d5a6d4969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b3077494467314e7934784e444e4d4d6a41774d4341344e5463754d54517a544449774d4441674d5441794f4334314e307777494445774d6a67754e54644d4d4341344e5463754d54517a576949675a6d6c7362443069497a6c68597a646c4f4349675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4d4341784d4449344c6a5533544449774d4441674d5441794f4334314e3077794d444177494445794d44424d4d4341784d6a4177544441674d5441794f4334314e316f6949475a706247773949694d325a4467795a44456949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b5043397a646d632b5330774c6a59324e6a63794d694177544445354f546b674d4577784f546b354944424d4d546b354f5341784d6a4177544445354f546b674d5449774d4577744d4334324e6a59334d6a49674d5449774d4577744d4334324e6a59334d6a49674d5449774d4577744d4334324e6a59334d6a49674d4577744d4334324e6a59334d6a49674d466f6949475a706247773949694d334e5441334f44636949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545330774c6a59324e6a63794d694177544445354f546b674d4577784f546b354944424d4d546b354f5341784d444177544445354f546b674d5441774d4577744d4334324e6a59334d6a49674d5441774d4577744d4334324e6a59334d6a49674d5441774d4577744d4334324e6a59334d6a49674d4577744d4334324e6a59334d6a49674d466f6949475a706247773949694d774d44526b5a6d596949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545330774c6a59324e6a63794d694177544445354f546b674d4577784f546b354944424d4d546b354f5341344d44424d4d546b354f5341344d44424d4c5441754e6a59324e7a4979494467774d4577744d4334324e6a59334d6a49674f444177544330774c6a59324e6a63794d694177544330774c6a59324e6a63794d694177576949675a6d6c7362443069497a41774f4441794e6949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4c5441754e6a59324e7a49794944424d4d546b354f534177544445354f546b674d4577784f546b35494459774d4577784f546b35494459774d4577744d4334324e6a59334d6a49674e6a4177544330774c6a59324e6a63794d6941324d44424d4c5441754e6a59324e7a49794944424d4c5441754e6a59324e7a4979494442614969426d615778735053496a5a6d5a6c5a4441774969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30744d4334324e6a59334d6a49674d4577784f546b354944424d4d546b354f534177544445354f546b674e444177544445354f546b674e444177544330774c6a59324e6a63794d6941304d44424d4c5441754e6a59324e7a4979494451774d4577744d4334324e6a59334d6a49674d4577744d4334324e6a59334d6a49674d466f6949475a706247773949694e6d5a6a686a4d44416949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545330774c6a59324e6a63794d694177544445354f546b674d4577784f546b354944424d4d546b354f5341794d44424d4d546b354f5341794d44424d4c5441754e6a59324e7a4979494449774d4577744d4334324e6a59334d6a49674d6a4177544330774c6a59324e6a63794d694177544330774c6a59324e6a63794d694177576949675a6d6c7362443069493255304d444d774d7949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4c5445674d7a41794c6a4d324d6b777a4d5455754f545133494459774d4577744d5341344f5463754e6a4d345443307849444d774d69347a4e6a4a614969426d615778735053496a5a6d5a6d5a6d5a6d4969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30744d53417a4d4449754d7a597954433078494445314d5334784f44464d4e4463794c6a55344f4341324d44424d4c5445674d5441304f4334344d6b77744d5341344f5463754e6a4d3454444d784e5334354e4463674e6a41775443307849444d774d69347a4e6a4a614969426d615778735053496a5a6d5a685a6d4d344969426d615778734c584a3162475539496d56325a5735765a4751694c7a344e436a78775958526f49475139496b30744d5341784e5445754d546778544330784944424d4e6a4d324c6a5532494459774d4577744d5341784d6a417754433078494445774e4467754f444a4d4e4463794c6a55344f4341324d44424d4c5445674d5455784c6a45344d566f6949475a706247773949694d334e4751335a57556949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545330784944424d4e6a4d324c6a5532494459774d4577744d5341784d6a4177544445314f53347a4d4463674d5449774d4577334f544d754f445934494459774d4577784e546b754d7a41334944424d4c5445674d466f6949475a706247773949694d324d544d354d54556949475a7062477774636e56735a5430695a585a6c626d396b5a4349765067304b50484268644767675a443069545445314f53347a4d4463674d45777a4d546b754d6a67674d4577354e544d754f445178494459774d45777a4d546b754d6a67674d5449774d4577784e546b754d7a4133494445794d44424d4e7a6b7a4c6a67324f4341324d44424d4d5455354c6a4d774e794177576949675a6d6c7362443069497a41774d4441774d4349675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f384c334e325a7a343d5441674d4577794d4441774944424d4d6a41774d4341784d6a4177544441674d5449774d4349675a6d6c7362443069497a4a6a4d6d4d79597949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4d434177544449774d4441674d4577794d44417749446b774d45777749446b774d4349675a6d6c7362443069497a6c6a4e546c6b4d5349675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4d434177544449774d4441674d4577794d444177494459774d457777494459774d4349675a6d6c736244306949325a6a5a6d4e6d597949675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f38634746306143426b50534a4e4d434177544449774d4441674d4577794d44417749444d774d45777749444d774d4349675a6d6c736244306949325a6a5a6a517a4e4349675a6d6c73624331796457786c50534a6c646d56756232526b4969382b44516f384c334e325a7a343d

Deployed Bytecode

0x6080604052600436106101c25760003560e01c8063715018a6116100f7578063b88d4fde11610095578063e831574211610064578063e8315742146104bd578063e985e9c5146104d3578063f2fde38b1461051c578063f9c5b4bc1461053c57600080fd5b8063b88d4fde1461043d578063c72a12091461045d578063c87b56dd1461047d578063de0a64311461049d57600080fd5b806395d89b41116100d157806395d89b41146103e05780639634b54c146103f5578063a22cb4651461040a578063b529ee301461042a57600080fd5b8063715018a6146103985780638456cb59146103ad5780638da5cb5b146103c257600080fd5b80633ccfd60b116101645780635c975abb1161013e5780635c975abb1461031e5780636352211e1461033d5780636817c76c1461035d57806370a082311461037857600080fd5b80633ccfd60b146102d45780633f4ba83a146102e957806342842e0e146102fe57600080fd5b8063095ea7b3116101a0578063095ea7b3146102565780631029c8301461027857806318160ddd1461028d57806323b872dd146102b457600080fd5b806301ffc9a7146101c757806306fdde03146101fc578063081812fc1461021e575b600080fd5b3480156101d357600080fd5b506101e76101e2366004611fc7565b61055c565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b506102116105f9565b6040516101f39190612043565b34801561022a57600080fd5b5061023e610239366004612056565b61068b565b6040516001600160a01b0390911681526020016101f3565b34801561026257600080fd5b5061027661027136600461208b565b6106e8565b005b34801561028457600080fd5b506102766107a7565b34801561029957600080fd5b5060015460005403600019015b6040519081526020016101f3565b3480156102c057600080fd5b506102766102cf3660046120b5565b6108e9565b3480156102e057600080fd5b506102766108f4565b3480156102f557600080fd5b5061027661097d565b34801561030a57600080fd5b506102766103193660046120b5565b6109d7565b34801561032a57600080fd5b50600954600160a01b900460ff166101e7565b34801561034957600080fd5b5061023e610358366004612056565b6109f2565b34801561036957600080fd5b506102a6666a94d74f43000081565b34801561038457600080fd5b506102a66103933660046120f1565b610a04565b3480156103a457600080fd5b50610276610a6c565b3480156103b957600080fd5b50610276610ad0565b3480156103ce57600080fd5b506009546001600160a01b031661023e565b3480156103ec57600080fd5b50610211610b32565b34801561040157600080fd5b50610211610b41565b34801561041657600080fd5b5061027661042536600461210c565b610b5d565b610276610438366004612159565b610c0b565b34801561044957600080fd5b506102766104583660046121a2565b610dee565b34801561046957600080fd5b5061027661047836600461227e565b610e3f565b34801561048957600080fd5b50610211610498366004612056565b61103a565b3480156104a957600080fd5b506102116104b8366004612056565b6111d0565b3480156104c957600080fd5b506102a66107b181565b3480156104df57600080fd5b506101e76104ee3660046122a1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561052857600080fd5b506102766105373660046120f1565b611270565b34801561054857600080fd5b50610211610557366004612056565b61134f565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806105bf57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806105f357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b606060028054610608906122cb565b80601f0160208091040260200160405190810160405280929190818152602001828054610634906122cb565b80156106815780601f1061065657610100808354040283529160200191610681565b820191906000526020600020905b81548152906001019060200180831161066457829003601f168201915b5050505050905090565b60006106968261135f565b6106cc576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106f3826109f2565b9050806001600160a01b0316836001600160a01b031603610740576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614801590610760575061075e81336104ee565b155b15610797576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107a2838383611398565b505050565b6009546001600160a01b031633146108065760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b60015460005403600019011561085e5760405162461bcd60e51b815260206004820152600960248201527f50524f4d4f5f52554e000000000000000000000000000000000000000000000060448201526064016107fd565b60005b60458110156108bf57600b600a826108826001546000546000199190030190565b016107b1811061089457610894612305565b602091828204019190066101000a81548160ff021916908360ff160217905550806001019050610861565b506108df738aa986eb2f0d3b5001c9c2093698a4e13d646d5b604561140c565b6108e761142a565b565b6107a28383836114eb565b6009546001600160a01b0316331461094e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fd565b60405133904780156108fc02916000818181858888f1935050505015801561097a573d6000803e3d6000fd5b50565b6009546001600160a01b031633146108df5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fd565b6107a283838360405180602001604052806000815250610dee565b60006109fd82611727565b5192915050565b60006001600160a01b038216610a46576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6009546001600160a01b03163314610ac65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fd565b6108e76000611869565b6009546001600160a01b03163314610b2a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fd565b6108e76118d3565b606060038054610608906122cb565b6040518060a00160405280606581526020016127906065913981565b336001600160a01b03831603610b9f576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600260085403610c5d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107fd565b6002600855606460ff83161115610cb65760405162461bcd60e51b815260206004820152601060248201527f455843454544535f54585f4c494d49540000000000000000000000000000000060448201526064016107fd565b348260ff16666a94d74f430000021115610d125760405162461bcd60e51b815260206004820152600960248201527f4c4f575f4554484552000000000000000000000000000000000000000000000060448201526064016107fd565b6001546000546107b19160ff8516910360001901011115610d755760405162461bcd60e51b815260206004820152600b60248201527f4d41585f5245414348454400000000000000000000000000000000000000000060448201526064016107fd565b60005b8260ff16811015610dd75781600a82610d9a6001546000546000199190030190565b016107b18110610dac57610dac612305565b602091828204019190066101000a81548160ff021916908360ff160217905550806001019050610d78565b50610de5338360ff1661140c565b50506001600855565b610df98484846114eb565b6001600160a01b0383163b15158015610e1b5750610e1984848484611983565b155b15610e39576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b600260085403610e915760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107fd565b60026008556107b1821115610ee85760405162461bcd60e51b815260206004820152601160248201527f544f4b454e5f49445f544f4f5f4849474800000000000000000000000000000060448201526064016107fd565b600b8160ff161115610f3c5760405162461bcd60e51b815260206004820152601060248201527f464c41475f49445f544f4f5f484947480000000000000000000000000000000060448201526064016107fd565b6001546000540360001901821115610f965760405162461bcd60e51b815260206004820152600d60248201527f4e4f545f574f56454e5f5945540000000000000000000000000000000000000060448201526064016107fd565b33610fa0836109f2565b6001600160a01b031614610ff65760405162461bcd60e51b815260206004820152600e60248201527f464c41475f4e4f545f594f55525300000000000000000000000000000000000060448201526064016107fd565b80600a600184036107b1811061100e5761100e612305565b602091828204019190066101000a81548160ff021916908360ff16021790555060016008819055505050565b606060006048600a61104d600186612331565b6107b1811061105e5761105e612305565b602081049091015460ff601f9092166101000a900416600c811061108457611084612305565b0160405160200161109591906123e1565b60408051601f1981840301815260a0830190915260658083529092506000919061279060208301396054600a6110cc600188612331565b6107b181106110dd576110dd612305565b602081049091015460ff601f9092166101000a900416600c811061110357611103612305565b01604051602001611115929190612440565b604051602081830303815290604052905060006111a461113486611aa1565b6048600a61114360018a612331565b6107b1811061115457611154612305565b602081049091015460ff601f9092166101000a900416600c811061117a5761117a612305565b0185856040516020016111909493929190612467565b604051602081830303815290604052611bd6565b9050806040516020016111b79190612622565b60408051601f1981840301815291905295945050505050565b604881600c81106111e057600080fd5b0180549091506111ef906122cb565b80601f016020809104026020016040519081016040528092919081815260200182805461121b906122cb565b80156112685780601f1061123d57610100808354040283529160200191611268565b820191906000526020600020905b81548152906001019060200180831161124b57829003601f168201915b505050505081565b6009546001600160a01b031633146112ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107fd565b6001600160a01b0381166113465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107fd565b61097a81611869565b605481600c81106111e057600080fd5b600081600111158015611373575060005482105b80156105f3575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b611426828260405180602001604052806000815250611d95565b5050565b600954600160a01b900460ff166114835760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107fd565b600980547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006114f682611727565b9050836001600160a01b031681600001516001600160a01b031614611547576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480611565575061156585336104ee565b806115805750336115758461068b565b6001600160a01b0316145b9050806115b9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166115f9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61160560008487611398565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166116db5760005482146116db578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101919091528180600111158015611757575060005481105b1561183757600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906118355780516001600160a01b0316156117cb579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215611830579392505050565b6117cb565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600980546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600954600160a01b900460ff161561192d5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107fd565b600980547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114ce3390565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a02906119d1903390899088908890600401612667565b6020604051808303816000875af1925050508015611a0c575060408051601f3d908101601f19168201909252611a09918101906126a3565b60015b611a6a573d808015611a3a576040519150601f19603f3d011682016040523d82523d6000602084013e611a3f565b606091505b508051600003611a62576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b0319167f150b7a02000000000000000000000000000000000000000000000000000000001490505b949350505050565b606081600003611ae457505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611b0e5780611af8816126c0565b9150611b079050600a836126f0565b9150611ae8565b60008167ffffffffffffffff811115611b2957611b2961218c565b6040519080825280601f01601f191660200182016040528015611b53576020820181803683370190505b5090505b8415611a9957611b68600183612331565b9150611b75600a86612704565b611b80906030612718565b60f81b818381518110611b9557611b95612305565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611bcf600a866126f0565b9450611b57565b80516060906000819003611bfa575050604080516020810190915260008152919050565b60006003611c09836002612718565b611c1391906126f0565b611c1e906004612730565b90506000611c2d826020612718565b67ffffffffffffffff811115611c4557611c4561218c565b6040519080825280601f01601f191660200182016040528015611c6f576020820181803683370190505b5090506000604051806060016040528060408152602001612750604091399050600181016020830160005b86811015611cfb576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101611c9a565b506003860660018114611d155760028114611d5f57611d87565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe830152611d87565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b505050918152949350505050565b6107a283838360016000546001600160a01b038516611de0576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600003611e1a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038516600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015611edb57506001600160a01b0387163b15155b15611f63575b60405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611f2c6000888480600101955088611983565b611f49576040516368d2bf6b60e11b815260040160405180910390fd5b808203611ee1578260005414611f5e57600080fd5b611fa8565b5b6040516001830192906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808203611f64575b50600055611720565b6001600160e01b03198116811461097a57600080fd5b600060208284031215611fd957600080fd5b8135611fe481611fb1565b9392505050565b60005b83811015612006578181015183820152602001611fee565b83811115610e395750506000910152565b6000815180845261202f816020860160208601611feb565b601f01601f19169290920160200192915050565b602081526000611fe46020830184612017565b60006020828403121561206857600080fd5b5035919050565b80356001600160a01b038116811461208657600080fd5b919050565b6000806040838503121561209e57600080fd5b6120a78361206f565b946020939093013593505050565b6000806000606084860312156120ca57600080fd5b6120d38461206f565b92506120e16020850161206f565b9150604084013590509250925092565b60006020828403121561210357600080fd5b611fe48261206f565b6000806040838503121561211f57600080fd5b6121288361206f565b91506020830135801515811461213d57600080fd5b809150509250929050565b803560ff8116811461208657600080fd5b6000806040838503121561216c57600080fd5b61217583612148565b915061218360208401612148565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156121b857600080fd5b6121c18561206f565b93506121cf6020860161206f565b925060408501359150606085013567ffffffffffffffff808211156121f357600080fd5b818701915087601f83011261220757600080fd5b8135818111156122195761221961218c565b604051601f8201601f19908116603f011681019083821181831017156122415761224161218c565b816040528281528a602084870101111561225a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561229157600080fd5b8235915061218360208401612148565b600080604083850312156122b457600080fd5b6122bd8361206f565b91506121836020840161206f565b600181811c908216806122df57607f821691505b6020821081036122ff57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000828210156123435761234361231b565b500390565b8054600090600181811c908083168061236257607f831692505b6020808410820361238357634e487b7160e01b600052602260045260246000fd5b81801561239757600181146123a8576123d5565b60ff198616895284890196506123d5565b60008881526020902060005b868110156123cd5781548b8201529085019083016123b4565b505084890196505b50505050505092915050565b7f7b2274726169745f74797065223a224d6f727068222c2276616c7565223a220081526000612413601f830184612348565b7f227d00000000000000000000000000000000000000000000000000000000000081526002019392505050565b60008351612452818460208801611feb565b61245e81840185612348565b95945050505050565b7f7b226e616d65223a2022466c616720230000000000000000000000000000000081526000855161249f816010850160208a01611feb565b7f202d2000000000000000000000000000000000000000000000000000000000006010918401918201526124d66013820187612348565b90507f222c20226465736372697074696f6e223a202231322d696e2d31206f6e2d636881527f61696e204c474254512b20707269646520666c6167732e204f776e657220636160208201527f6e206d6f7270682074686520666c616720617420616e792074696d652e222c2060408201527f2261747472696275746573223a205b00000000000000000000000000000000006060820152845161258081606f840160208901611feb565b7f5d2c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b606f92909101918201527f6261736536342c00000000000000000000000000000000000000000000000000608f82015283516125e4816096840160208801611feb565b6126166096828401017f227d000000000000000000000000000000000000000000000000000000000000815260020190565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161265a81601d850160208701611feb565b91909101601d0192915050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526126996080830184612017565b9695505050505050565b6000602082840312156126b557600080fd5b8151611fe481611fb1565b600060001982036126d3576126d361231b565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826126ff576126ff6126da565b500490565b600082612713576127136126da565b500690565b6000821982111561272b5761272b61231b565b500190565b600081600019048311821515161561274a5761274a61231b565b50029056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f50484e325a79423261575633516d393450534977494441674d6a41774d4341784d6a41774969423462577875637a30696148523063446f764c336433647935334d793576636d63764d6a41774d43397a646d63695067304b50484268644767675a44306954a26469706673582212201fe878755c00f23e532fe44e29b44286b914cca7041015eb8f51356d59f93fd664736f6c634300080d0033

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.