ETH Price: $3,118.43 (+0.56%)

StakedSealsV2 (sSEAL)
 

Overview

TokenID

6757

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
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:
StakeSealsV2

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-07-18
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// 
// OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol)
/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

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

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

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

// 
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)
/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// 
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

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

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

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

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

// 
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// 
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)
/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

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

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

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

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

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

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

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

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

// 
/**
 * @title UntransferableERC721
 * @author @lozzereth (www.allthingsweb3.com)
 * @notice An NFT implementation that cannot be transfered no matter what
 *         unless minting or burning.
 */
contract UntransferableERC721 is ERC721, Ownable {
    /// @dev Base URI for the underlying token
    string private baseURI;

    /// @dev Thrown when an approval is made while untransferable
    error Unapprovable();

    /// @dev Thrown when making an transfer while untransferable
    error Untransferable();

    constructor(string memory name_, string memory symbol_)
    ERC721(name_, symbol_)
    {}

    /**
     * @dev Prevent token transfer unless burn
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721) {
        if (to != address(0) && from != address(0)) {
            revert Untransferable();
        }
        super._beforeTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Prevent approvals of staked token
     */
    function approve(address, uint256) public virtual override {
        revert Unapprovable();
    }

    /**
     * @dev Prevent approval of staked token
     */
    function setApprovalForAll(address, bool) public virtual override {
        revert Unapprovable();
    }

    /**
     * @notice Set the base URI for the NFT
     */
    function setBaseURI(string memory baseURI_) public virtual onlyOwner {
        baseURI = baseURI_;
    }

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

// 
/**
 * @title StakeSeals
 * @custom:website www.sappyseals.com
 * @author Original author @lozzereth (www.allthingsweb3.com), forked for Seals.
 * Make sure to check him out and give him a follow on twitter xoxo
 */
interface IStakeSeals {
    function setTokenAddress(address _tokenAddress) external;

    function depositsOf(address account)
        external
        view
        returns (uint256[] memory);

    function findRate(uint256 tokenId) external view returns (uint256 rate);

    function calculateRewards(address account, uint256[] memory tokenIds)
        external
        view
        returns (uint256[] memory rewards);

    function claimRewards(uint256[] calldata tokenIds) external;

    function deposit(uint256[] calldata tokenIds) external;

    function admin_deposit(uint256[] calldata tokenIds) external;

    function withdraw(uint256[] calldata tokenIds) external;

    function tokenRarity(uint256 tokenId)
        external
        view
        returns (uint256 rarity);
}

contract StakeSealsV2 is UntransferableERC721, IERC721Receiver {

    event ClaimedPixl(
        address person,
        uint256[] sealIds,
        uint256 pixlAmount,
        uint256 claimedAt
    );

    using Math for uint256;

    /// @notice Contract addresses
    IERC721 public erc721Address;
    IERC20 public erc20Address;
    IStakeSeals public stakeSealsV1;
    uint256 public EXPIRATION;
    /// @notice Track the deposit and claim state of tokens
    struct StakedToken {
        uint256 claimedAt;
    }
    mapping(uint256 => StakedToken) public staked;

    mapping(uint256 => uint256) public rewardRate;

    bool public pauseTokenEmissions = false;

    /// @notice Token non-existent
    error TokenNonExistent(uint256 tokenId);

    /// @notice Not an owner of the frog
    error TokenNonOwner(uint256 tokenId);

    /// @notice Using a non-zero value
    error NonZeroValue();

    /// @notice Pause deposit blocks so this suffering can never happen again
    bool public pausedDepositBlocks = false;

    constructor(
        IERC721 _erc721Address,
        IERC20 _erc20Address,
        IStakeSeals _stakeSealsV1Address,
        uint256[] memory _defaultRates
    ) UntransferableERC721("StakedSealsV2", "sSEAL") {
        erc721Address = _erc721Address;
        erc20Address = _erc20Address;
        stakeSealsV1 = _stakeSealsV1Address;
        setBaseURI("ipfs://QmXUUXRSAJeb4u8p4yKHmXN1iAKtAV7jwLHjw35TNm5jN7/");
        for (uint256 i = 0; i < 7; i++) {
            rewardRate[i] = _defaultRates[i];
        }
        EXPIRATION = block.number + 1000000000000000000000;
    }

    /**
     * @notice Track deposits of an account
     * @dev Intended for off-chain computation having O(totalSupply) complexity
     * @param account - Account to query
     * @return tokenIds
     */
    function depositsOf(address account)
        external
        view
        returns (uint256[] memory)
    {
        unchecked {
            uint256 tokenIdsIdx;
            uint256 tokenIdsLength = balanceOf(account);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            for (uint256 i; tokenIdsIdx != tokenIdsLength; ++i) {
                if (!_exists(i)) {
                    continue;
                }
                if (ownerOf(i) == account) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }

    /**
     * @notice Calculates the rewards for specific tokens under an address
     * @param account - account to check
     * @param tokenIds - token ids to check against
     * @return rewards
     */
    function calculateRewards(address account, uint256[] memory tokenIds)
        external
        view
        returns (uint256[] memory rewards)
    {
        rewards = new uint256[](tokenIds.length);
        for (uint256 i; i < tokenIds.length; i++) {
            rewards[i] = _calculateReward(account, tokenIds[i]);
        }
        return rewards;
    }

    /**
     * @notice Calculates the rewards for specific token
     * @param account - account to check
     * @param tokenId - token id to check against
     * @return total
     */
    function calculateReward(address account, uint256 tokenId)
        external
        view
        returns (uint256 total)
    {
        return _calculateReward(account, tokenId);
    }

    function _calculateReward(address account, uint256 tokenId)
        private
        view
        returns (uint256 total)
    {
        if (!_exists(tokenId)) {
            revert TokenNonExistent(tokenId);
        }
        if (ownerOf(tokenId) != account) {
            revert TokenNonOwner(tokenId);
        }
        unchecked {
            uint256 rate = _findRate(tokenId);
            uint256 rewards = rate *
                (Math.min(block.number, EXPIRATION) -
                    staked[tokenId].claimedAt);
            return rewards;
        }
    }

    /**
     * @notice Finds the rates of NFTs from the old StakeSeal contract
     * @param tokenId - The id where you want to find the rate
     * @return rate - The rate
     */
    function findRate(uint256 tokenId) external view returns (uint256 rate) {
        return _findRate(tokenId);
    }

    function _findRate(uint256 tokenId) private view returns (uint256 rate) {
        uint256 rarity = stakeSealsV1.tokenRarity(tokenId);
        uint256 perDay = rewardRate[rarity];
        // 6000 blocks per day
        // perDay / 6000 = reward per block
        rate = (perDay * 1e18) / 6000;
        return rate;
    }

    /**
     * @notice Represent the staked information of specific token ids as an array of bytes.
     *         Intended for off-chain computation.
     * @param tokenIds - token ids to check against
     * @return stakedInfoBytes
     */
    function stakedInfoOf(uint256[] memory tokenIds)
        external
        view
        returns (bytes[] memory)
    {
        bytes[] memory stakedTimes = new bytes[](tokenIds.length);
        for (uint256 i; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            stakedTimes[i] = abi.encodePacked(
                tokenId,
                staked[tokenId].claimedAt
            );
        }
        return stakedTimes;
    }

    /**
     * @notice Claim the rewards for the tokens
     * @param tokenIds - Array of token ids
     */
    function claimRewards(uint256[] calldata tokenIds) external {
        _claimRewards(tokenIds);
    }

    function _claimRewards(uint256[] calldata tokenIds) private {
        uint256 reward;
        for (uint256 i; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            unchecked {
                reward += _calculateReward(msg.sender, tokenId);
            }
            if (!pausedDepositBlocks) {
                staked[tokenId].claimedAt = block.number;
            }
        }
        emit ClaimedPixl(msg.sender, tokenIds, reward, block.number);
        if (reward > 0 && !pauseTokenEmissions) {
            _safeTransferRewards(msg.sender, reward);
        }
    }

    /**
     * @notice Deposit tokens into the contract
     * @param tokenIds - Array of token ids to stake
     */
    function deposit(uint256[] calldata tokenIds) external {
        for (uint256 i; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            if (!pausedDepositBlocks) {
                staked[tokenId].claimedAt = block.number;
            }
            erc721Address.safeTransferFrom(
                msg.sender,
                address(this),
                tokenId,
                ""
            );
            _mint(msg.sender, tokenId);
        }
    }

    /**
     * @notice Withdraw tokens from the contract
     * @param tokenIds - Array of token ids to stake
     */
    function withdraw(uint256[] calldata tokenIds) external {
        _claimRewards(tokenIds);
        for (uint256 i; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            if (!_exists(tokenId)) {
                revert TokenNonExistent(tokenId);
            }
            if (ownerOf(tokenId) != msg.sender) {
                revert TokenNonOwner(tokenId);
            }
            _burn(tokenId);
            erc721Address.safeTransferFrom(
                address(this),
                msg.sender,
                tokenId,
                ""
            );
        }
    }

    /**
     * @notice Withdraw tokens from the staking contract
     * @param amount - Amount in wei to withdraw
     */
    function withdrawTokens(uint256 amount) external onlyOwner {
        _safeTransferRewards(msg.sender, amount);
    }

    /**
     *  @notice Toggles pause deposit blocks
     */

    function togglePauseDepositBlocks() external onlyOwner {
        pausedDepositBlocks = !pausedDepositBlocks;
    }

    /**
     * @dev Issues tokens only if there is a sufficient balance in the contract
     * @param recipient - receiving address
     * @param amount - amount in wei to transfer
     */
    function _safeTransferRewards(address recipient, uint256 amount) private {
        uint256 balance = erc20Address.balanceOf(address(this));
        if (amount <= balance) {
            erc20Address.transfer(recipient, amount);
        }
    }

    /**
     * @dev Modify the ERC20 token being emitted
     * @param _newErc20Address - address of token to emit
     */
    function setErc20Address(IERC20 _newErc20Address) external onlyOwner {
        erc20Address = _newErc20Address;
    }

    /**
     * @dev Modify the Staking contract address
     * @param _stakingContractV1Address - the new Staking contract
     */
    function setStakedSealsAddress(address _stakingContractV1Address)
        external
        onlyOwner
    {
        stakeSealsV1 = IStakeSeals(_stakingContractV1Address);
    }

    /**
     * @dev Modify the ERC721 contract address
     * @param _newErc721Address - the new Staking contract
     */
    function setERC721Address(IERC721 _newErc721Address) external onlyOwner {
        erc721Address = _newErc721Address;
    }

    /**
     * @dev Update the rates
     * @param index - the index of the new rate
     * @param rate - the new rate
     */
    function updateRewardRate(uint256 index, uint256 rate) external onlyOwner {
        rewardRate[index] = rate;
    }

    /**
     * @dev Toggle pausing the emissions
     */
    function toggleEmissions() external onlyOwner {
        pauseTokenEmissions = !pauseTokenEmissions;
    }

    /**
     * @dev Receive ERC721 tokens
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external pure override returns (bytes4) {
        return IERC721Receiver.onERC721Received.selector;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC721","name":"_erc721Address","type":"address"},{"internalType":"contract IERC20","name":"_erc20Address","type":"address"},{"internalType":"contract IStakeSeals","name":"_stakeSealsV1Address","type":"address"},{"internalType":"uint256[]","name":"_defaultRates","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NonZeroValue","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenNonExistent","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenNonOwner","type":"error"},{"inputs":[],"name":"Unapprovable","type":"error"},{"inputs":[],"name":"Untransferable","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":false,"internalType":"address","name":"person","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"sealIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"pixlAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimedAt","type":"uint256"}],"name":"ClaimedPixl","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"EXPIRATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","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":"address","name":"account","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"calculateReward","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"calculateRewards","outputs":[{"internalType":"uint256[]","name":"rewards","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20Address","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc721Address","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"findRate","outputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","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":"pauseTokenEmissions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pausedDepositBlocks","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardRate","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":"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":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"_newErc721Address","type":"address"}],"name":"setERC721Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_newErc20Address","type":"address"}],"name":"setErc20Address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingContractV1Address","type":"address"}],"name":"setStakedSealsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeSealsV1","outputs":[{"internalType":"contract IStakeSeals","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"staked","outputs":[{"internalType":"uint256","name":"claimedAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakedInfoOf","outputs":[{"internalType":"bytes[]","name":"","type":"bytes[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleEmissions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePauseDepositBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"updateRewardRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600e60006101000a81548160ff0219169083151502179055506000600e60016101000a81548160ff0219169083151502179055503480156200004757600080fd5b50604051620052f7380380620052f783398181016040528101906200006d9190620007b8565b6040518060400160405280600d81526020017f5374616b65645365616c735632000000000000000000000000000000000000008152506040518060400160405280600581526020017f735345414c00000000000000000000000000000000000000000000000000000081525081818160009080519060200190620000f392919062000441565b5080600190805190602001906200010c92919062000441565b5050506200012f620001236200029e60201b60201c565b620002a660201b60201c565b505083600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200021e604051806060016040528060368152602001620052c1603691396200036c60201b60201c565b60005b6007811015620002765781818151811062000241576200024062000849565b5b6020026020010151600d60008381526020019081526020016000208190555080806200026d90620008a7565b91505062000221565b50683635c9adc5dea00000436200028e9190620008f4565b600b819055505050505062000a38565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200037c6200029e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003a26200041760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620003fb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003f290620009b2565b60405180910390fd5b80600790805190602001906200041392919062000441565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b8280546200044f9062000a03565b90600052602060002090601f016020900481019282620004735760008555620004bf565b82601f106200048e57805160ff1916838001178555620004bf565b82800160010185558215620004bf579182015b82811115620004be578251825591602001919060010190620004a1565b5b509050620004ce9190620004d2565b5090565b5b80821115620004ed576000816000905550600101620004d3565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005328262000505565b9050919050565b6000620005468262000525565b9050919050565b620005588162000539565b81146200056457600080fd5b50565b60008151905062000578816200054d565b92915050565b60006200058b8262000525565b9050919050565b6200059d816200057e565b8114620005a957600080fd5b50565b600081519050620005bd8162000592565b92915050565b6000620005d08262000525565b9050919050565b620005e281620005c3565b8114620005ee57600080fd5b50565b6000815190506200060281620005d7565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000658826200060d565b810181811067ffffffffffffffff821117156200067a57620006796200061e565b5b80604052505050565b60006200068f620004f1565b90506200069d82826200064d565b919050565b600067ffffffffffffffff821115620006c057620006bf6200061e565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b620006eb81620006d6565b8114620006f757600080fd5b50565b6000815190506200070b81620006e0565b92915050565b6000620007286200072284620006a2565b62000683565b905080838252602082019050602084028301858111156200074e576200074d620006d1565b5b835b818110156200077b5780620007668882620006fa565b84526020840193505060208101905062000750565b5050509392505050565b600082601f8301126200079d576200079c62000608565b5b8151620007af84826020860162000711565b91505092915050565b60008060008060808587031215620007d557620007d4620004fb565b5b6000620007e58782880162000567565b9450506020620007f887828801620005ac565b93505060406200080b87828801620005f1565b925050606085015167ffffffffffffffff8111156200082f576200082e62000500565b5b6200083d8782880162000785565b91505092959194509250565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620008b482620006d6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203620008e957620008e862000878565b5b600182019050919050565b60006200090182620006d6565b91506200090e83620006d6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000946576200094562000878565b5b828201905092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006200099a60208362000951565b9150620009a78262000962565b602082019050919050565b60006020820190508181036000830152620009cd816200098b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000a1c57607f821691505b60208210810362000a325762000a31620009d4565b5b50919050565b6148798062000a486000396000f3fe608060405234801561001057600080fd5b50600436106102535760003560e01c80635eac623911610146578063a22cb465116100c3578063c87b56dd11610087578063c87b56dd146106d0578063cea0196214610700578063db3b947f14610730578063e3a9db1a1461074c578063e985e9c51461077c578063f2fde38b146107ac57610253565b8063a22cb46514610654578063b32534cf14610670578063b88d4fde1461068c578063bb4b5734146106a8578063c620994b146106c657610253565b80638da5cb5b1161010a5780638da5cb5b146105b0578063940414ce146105ce57806395d89b41146105fe578063983d95ce1461061c5780639a03d9a31461063857610253565b80635eac62391461050c5780636352211e1461052857806370a0823114610558578063715018a6146105885780637c79d73b1461059257610253565b8063276184ae116101d45780634a39fa80116101985780634a39fa801461046a57806355f804b3146104865780635773d778146104a2578063598b8e71146104c05780635e1bef32146104dc57610253565b8063276184ae146103c6578063315a095d146103e45780633320d50114610400578063335e15a21461041e57806342842e0e1461044e57610253565b8063150b7a021161021b578063150b7a02146103225780631852e8d91461035257806319a249a8146103825780632352a8641461038c57806323b872dd146103aa57610253565b806301ffc9a714610258578063068c526f1461028857806306fdde03146102b8578063081812fc146102d6578063095ea7b314610306575b600080fd5b610272600480360381019061026d9190612e00565b6107c8565b60405161027f9190612e48565b60405180910390f35b6102a2600480360381019061029d9190613050565b6108aa565b6040516102af919061316a565b60405180910390f35b6102c0610961565b6040516102cd9190613214565b60405180910390f35b6102f060048036038101906102eb9190613236565b6109f3565b6040516102fd9190613272565b60405180910390f35b610320600480360381019061031b919061328d565b610a78565b005b61033c60048036038101906103379190613328565b610aaa565b60405161034991906133bf565b60405180910390f35b61036c6004803603810190610367919061328d565b610abf565b60405161037991906133e9565b60405180910390f35b61038a610ad3565b005b610394610b7b565b6040516103a19190613463565b60405180910390f35b6103c460048036038101906103bf919061347e565b610ba1565b005b6103ce610c01565b6040516103db91906134f2565b60405180910390f35b6103fe60048036038101906103f99190613236565b610c27565b005b610408610cb0565b6040516104159190612e48565b60405180910390f35b6104386004803603810190610433919061350d565b610cc3565b604051610445919061366d565b60405180910390f35b6104686004803603810190610463919061347e565b610db7565b005b610484600480360381019061047f91906136cd565b610dd7565b005b6104a0600480360381019061049b91906137af565b610e97565b005b6104aa610f2d565b6040516104b79190612e48565b60405180910390f35b6104da60048036038101906104d5919061384e565b610f40565b005b6104f660048036038101906104f19190613236565b611050565b60405161050391906133e9565b60405180910390f35b6105266004803603810190610521919061384e565b61106e565b005b610542600480360381019061053d9190613236565b61107c565b60405161054f9190613272565b60405180910390f35b610572600480360381019061056d919061389b565b61112d565b60405161057f91906133e9565b60405180910390f35b6105906111e4565b005b61059a61126c565b6040516105a791906138e9565b60405180910390f35b6105b8611292565b6040516105c59190613272565b60405180910390f35b6105e860048036038101906105e39190613236565b6112bc565b6040516105f591906133e9565b60405180910390f35b6106066112ce565b6040516106139190613214565b60405180910390f35b6106366004803603810190610631919061384e565b611360565b005b610652600480360381019061064d9190613942565b61150b565b005b61066e6004803603810190610669919061399b565b6115cb565b005b61068a600480360381019061068591906139db565b6115fd565b005b6106a660048036038101906106a19190613abc565b611695565b005b6106b06116f7565b6040516106bd91906133e9565b60405180910390f35b6106ce6116fd565b005b6106ea60048036038101906106e59190613236565b6117a5565b6040516106f79190613214565b60405180910390f35b61071a60048036038101906107159190613236565b61184c565b60405161072791906133e9565b60405180910390f35b61074a6004803603810190610745919061389b565b611864565b005b6107666004803603810190610761919061389b565b611924565b604051610773919061316a565b60405180910390f35b61079660048036038101906107919190613b3f565b611a13565b6040516107a39190612e48565b60405180910390f35b6107c660048036038101906107c1919061389b565b611aa7565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108a357506108a282611b9e565b5b9050919050565b6060815167ffffffffffffffff8111156108c7576108c6612ed7565b5b6040519080825280602002602001820160405280156108f55781602001602082028036833780820191505090505b50905060005b825181101561095a576109288484838151811061091b5761091a613b7f565b5b6020026020010151611c08565b82828151811061093b5761093a613b7f565b5b602002602001018181525050808061095290613bdd565b9150506108fb565b5092915050565b60606000805461097090613c54565b80601f016020809104026020016040519081016040528092919081815260200182805461099c90613c54565b80156109e95780601f106109be576101008083540402835291602001916109e9565b820191906000526020600020905b8154815290600101906020018083116109cc57829003601f168201915b5050505050905090565b60006109fe82611d0e565b610a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3490613cf7565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6040517f595162dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600063150b7a0260e01b905095945050505050565b6000610acb8383611c08565b905092915050565b610adb611d7a565b73ffffffffffffffffffffffffffffffffffffffff16610af9611292565b73ffffffffffffffffffffffffffffffffffffffff1614610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4690613d63565b60405180910390fd5b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610bb2610bac611d7a565b82611d82565b610bf1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be890613df5565b60405180910390fd5b610bfc838383611e60565b505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c2f611d7a565b73ffffffffffffffffffffffffffffffffffffffff16610c4d611292565b73ffffffffffffffffffffffffffffffffffffffff1614610ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9a90613d63565b60405180910390fd5b610cad33826120bb565b50565b600e60019054906101000a900460ff1681565b60606000825167ffffffffffffffff811115610ce257610ce1612ed7565b5b604051908082528060200260200182016040528015610d1557816020015b6060815260200190600190039081610d005790505b50905060005b8351811015610dad576000848281518110610d3957610d38613b7f565b5b6020026020010151905080600c600083815260200190815260200160002060000154604051602001610d6c929190613e36565b604051602081830303815290604052838381518110610d8e57610d8d613b7f565b5b6020026020010181905250508080610da590613bdd565b915050610d1b565b5080915050919050565b610dd283838360405180602001604052806000815250611695565b505050565b610ddf611d7a565b73ffffffffffffffffffffffffffffffffffffffff16610dfd611292565b73ffffffffffffffffffffffffffffffffffffffff1614610e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4a90613d63565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610e9f611d7a565b73ffffffffffffffffffffffffffffffffffffffff16610ebd611292565b73ffffffffffffffffffffffffffffffffffffffff1614610f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0a90613d63565b60405180910390fd5b8060079080519060200190610f29929190612cf1565b5050565b600e60009054906101000a900460ff1681565b60005b8282905081101561104b576000838383818110610f6357610f62613b7f565b5b905060200201359050600e60019054906101000a900460ff16610f9c5743600c6000838152602001908152602001600020600001819055505b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3330846040518463ffffffff1660e01b8152600401610ffb93929190613e99565b600060405180830381600087803b15801561101557600080fd5b505af1158015611029573d6000803e3d6000fd5b505050506110373382612209565b50808061104390613bdd565b915050610f43565b505050565b600c6020528060005260406000206000915090508060000154905081565b61107882826123d6565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111b90613f55565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361119d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119490613fe7565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111ec611d7a565b73ffffffffffffffffffffffffffffffffffffffff1661120a611292565b73ffffffffffffffffffffffffffffffffffffffff1614611260576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125790613d63565b60405180910390fd5b61126a60006124c7565b565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006112c78261258d565b9050919050565b6060600180546112dd90613c54565b80601f016020809104026020016040519081016040528092919081815260200182805461130990613c54565b80156113565780601f1061132b57610100808354040283529160200191611356565b820191906000526020600020905b81548152906001019060200180831161133957829003601f168201915b5050505050905090565b61136a82826123d6565b60005b8282905081101561150657600083838381811061138d5761138c613b7f565b5b90506020020135905061139f81611d0e565b6113e057806040517f3d2f7ef60000000000000000000000000000000000000000000000000000000081526004016113d791906133e9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166114008261107c565b73ffffffffffffffffffffffffffffffffffffffff161461145857806040517fbb69006400000000000000000000000000000000000000000000000000000000815260040161144f91906133e9565b60405180910390fd5b61146181612670565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033846040518463ffffffff1660e01b81526004016114c093929190613e99565b600060405180830381600087803b1580156114da57600080fd5b505af11580156114ee573d6000803e3d6000fd5b505050505080806114fe90613bdd565b91505061136d565b505050565b611513611d7a565b73ffffffffffffffffffffffffffffffffffffffff16611531611292565b73ffffffffffffffffffffffffffffffffffffffff1614611587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157e90613d63565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6040517f595162dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611605611d7a565b73ffffffffffffffffffffffffffffffffffffffff16611623611292565b73ffffffffffffffffffffffffffffffffffffffff1614611679576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167090613d63565b60405180910390fd5b80600d6000848152602001908152602001600020819055505050565b6116a66116a0611d7a565b83611d82565b6116e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116dc90613df5565b60405180910390fd5b6116f184848484612781565b50505050565b600b5481565b611705611d7a565b73ffffffffffffffffffffffffffffffffffffffff16611723611292565b73ffffffffffffffffffffffffffffffffffffffff1614611779576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177090613d63565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b60606117b082611d0e565b6117ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e690614079565b60405180910390fd5b60006117f96127dd565b905060008151116118195760405180602001604052806000815250611844565b806118238461286f565b6040516020016118349291906140d5565b6040516020818303038152906040525b915050919050565b600d6020528060005260406000206000915090505481565b61186c611d7a565b73ffffffffffffffffffffffffffffffffffffffff1661188a611292565b73ffffffffffffffffffffffffffffffffffffffff16146118e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d790613d63565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000806119328461112d565b905060008167ffffffffffffffff8111156119505761194f612ed7565b5b60405190808252806020026020018201604052801561197e5781602001602082028036833780820191505090505b50905060005b828414611a075761199481611d0e565b156119fc578573ffffffffffffffffffffffffffffffffffffffff166119b98261107c565b73ffffffffffffffffffffffffffffffffffffffff16036119fb57808285806001019650815181106119ee576119ed613b7f565b5b6020026020010181815250505b5b806001019050611984565b50809350505050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611aaf611d7a565b73ffffffffffffffffffffffffffffffffffffffff16611acd611292565b73ffffffffffffffffffffffffffffffffffffffff1614611b23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1a90613d63565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b899061416b565b60405180910390fd5b611b9b816124c7565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000611c1382611d0e565b611c5457816040517f3d2f7ef6000000000000000000000000000000000000000000000000000000008152600401611c4b91906133e9565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff16611c748361107c565b73ffffffffffffffffffffffffffffffffffffffff1614611ccc57816040517fbb690064000000000000000000000000000000000000000000000000000000008152600401611cc391906133e9565b60405180910390fd5b6000611cd78361258d565b90506000600c600085815260200190815260200160002060000154611cfe43600b546129cf565b0382029050809250505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b6000611d8d82611d0e565b611dcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc3906141fd565b60405180910390fd5b6000611dd78361107c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e4657508373ffffffffffffffffffffffffffffffffffffffff16611e2e846109f3565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e575750611e568185611a13565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e808261107c565b73ffffffffffffffffffffffffffffffffffffffff1614611ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ecd9061428f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3c90614321565b60405180910390fd5b611f508383836129e8565b611f5b600082612a99565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fab9190614341565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120029190614375565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016121189190613272565b602060405180830381865afa158015612135573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215991906143e0565b905080821161220457600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b81526004016121bf92919061440d565b6020604051808303816000875af11580156121de573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612202919061444b565b505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612278576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226f906144c4565b60405180910390fd5b61228181611d0e565b156122c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b890614530565b60405180910390fd5b6122cd600083836129e8565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461231d9190614375565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000805b838390508110156124555760008484838181106123fa576123f9613b7f565b5b90506020020135905061240d3382611c08565b83019250600e60019054906101000a900460ff166124415743600c6000838152602001908152602001600020600001819055505b50808061244d90613bdd565b9150506123da565b507f7ae4d0af15e0352fff8f0a1cfdb164564c83bd0c49be28f0146fcb83efaabae0338484844360405161248d9594939291906145b1565b60405180910390a16000811180156124b25750600e60009054906101000a900460ff16155b156124c2576124c133826120bb565b5b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663afb0a369846040518263ffffffff1660e01b81526004016125eb91906133e9565b602060405180830381865afa158015612608573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262c91906143e0565b90506000600d6000838152602001908152602001600020549050611770670de0b6b3a76400008261265d91906145ff565b6126679190614688565b92505050919050565b600061267b8261107c565b9050612689816000846129e8565b612694600083612a99565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126e49190614341565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b61278c848484611e60565b61279884848484612b52565b6127d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ce9061472b565b60405180910390fd5b50505050565b6060600780546127ec90613c54565b80601f016020809104026020016040519081016040528092919081815260200182805461281890613c54565b80156128655780601f1061283a57610100808354040283529160200191612865565b820191906000526020600020905b81548152906001019060200180831161284857829003601f168201915b5050505050905090565b6060600082036128b6576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506129ca565b600082905060005b600082146128e85780806128d190613bdd565b915050600a826128e19190614688565b91506128be565b60008167ffffffffffffffff81111561290457612903612ed7565b5b6040519080825280601f01601f1916602001820160405280156129365781602001600182028036833780820191505090505b5090505b600085146129c35760018261294f9190614341565b9150600a8561295e919061474b565b603061296a9190614375565b60f81b8183815181106129805761297f613b7f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856129bc9190614688565b945061293a565b8093505050505b919050565b60008183106129de57816129e0565b825b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015612a525750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15612a89576040517f072b78c700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a94838383612cd9565b505050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612b0c8361107c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612b738473ffffffffffffffffffffffffffffffffffffffff16612cde565b15612ccc578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b9c611d7a565b8786866040518563ffffffff1660e01b8152600401612bbe94939291906147b5565b6020604051808303816000875af1925050508015612bfa57506040513d601f19601f82011682018060405250810190612bf79190614816565b60015b612c7c573d8060008114612c2a576040519150601f19603f3d011682016040523d82523d6000602084013e612c2f565b606091505b506000815103612c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6b9061472b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612cd1565b600190505b949350505050565b505050565b600080823b905060008111915050919050565b828054612cfd90613c54565b90600052602060002090601f016020900481019282612d1f5760008555612d66565b82601f10612d3857805160ff1916838001178555612d66565b82800160010185558215612d66579182015b82811115612d65578251825591602001919060010190612d4a565b5b509050612d739190612d77565b5090565b5b80821115612d90576000816000905550600101612d78565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612ddd81612da8565b8114612de857600080fd5b50565b600081359050612dfa81612dd4565b92915050565b600060208284031215612e1657612e15612d9e565b5b6000612e2484828501612deb565b91505092915050565b60008115159050919050565b612e4281612e2d565b82525050565b6000602082019050612e5d6000830184612e39565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612e8e82612e63565b9050919050565b612e9e81612e83565b8114612ea957600080fd5b50565b600081359050612ebb81612e95565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612f0f82612ec6565b810181811067ffffffffffffffff82111715612f2e57612f2d612ed7565b5b80604052505050565b6000612f41612d94565b9050612f4d8282612f06565b919050565b600067ffffffffffffffff821115612f6d57612f6c612ed7565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b612f9681612f83565b8114612fa157600080fd5b50565b600081359050612fb381612f8d565b92915050565b6000612fcc612fc784612f52565b612f37565b90508083825260208201905060208402830185811115612fef57612fee612f7e565b5b835b8181101561301857806130048882612fa4565b845260208401935050602081019050612ff1565b5050509392505050565b600082601f83011261303757613036612ec1565b5b8135613047848260208601612fb9565b91505092915050565b6000806040838503121561306757613066612d9e565b5b600061307585828601612eac565b925050602083013567ffffffffffffffff81111561309657613095612da3565b5b6130a285828601613022565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6130e181612f83565b82525050565b60006130f383836130d8565b60208301905092915050565b6000602082019050919050565b6000613117826130ac565b61312181856130b7565b935061312c836130c8565b8060005b8381101561315d57815161314488826130e7565b975061314f836130ff565b925050600181019050613130565b5085935050505092915050565b60006020820190508181036000830152613184818461310c565b905092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131c65780820151818401526020810190506131ab565b838111156131d5576000848401525b50505050565b60006131e68261318c565b6131f08185613197565b93506132008185602086016131a8565b61320981612ec6565b840191505092915050565b6000602082019050818103600083015261322e81846131db565b905092915050565b60006020828403121561324c5761324b612d9e565b5b600061325a84828501612fa4565b91505092915050565b61326c81612e83565b82525050565b60006020820190506132876000830184613263565b92915050565b600080604083850312156132a4576132a3612d9e565b5b60006132b285828601612eac565b92505060206132c385828601612fa4565b9150509250929050565b600080fd5b60008083601f8401126132e8576132e7612ec1565b5b8235905067ffffffffffffffff811115613305576133046132cd565b5b60208301915083600182028301111561332157613320612f7e565b5b9250929050565b60008060008060006080868803121561334457613343612d9e565b5b600061335288828901612eac565b955050602061336388828901612eac565b945050604061337488828901612fa4565b935050606086013567ffffffffffffffff81111561339557613394612da3565b5b6133a1888289016132d2565b92509250509295509295909350565b6133b981612da8565b82525050565b60006020820190506133d460008301846133b0565b92915050565b6133e381612f83565b82525050565b60006020820190506133fe60008301846133da565b92915050565b6000819050919050565b600061342961342461341f84612e63565b613404565b612e63565b9050919050565b600061343b8261340e565b9050919050565b600061344d82613430565b9050919050565b61345d81613442565b82525050565b60006020820190506134786000830184613454565b92915050565b60008060006060848603121561349757613496612d9e565b5b60006134a586828701612eac565b93505060206134b686828701612eac565b92505060406134c786828701612fa4565b9150509250925092565b60006134dc82613430565b9050919050565b6134ec816134d1565b82525050565b600060208201905061350760008301846134e3565b92915050565b60006020828403121561352357613522612d9e565b5b600082013567ffffffffffffffff81111561354157613540612da3565b5b61354d84828501613022565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60006135a982613582565b6135b3818561358d565b93506135c38185602086016131a8565b6135cc81612ec6565b840191505092915050565b60006135e3838361359e565b905092915050565b6000602082019050919050565b600061360382613556565b61360d8185613561565b93508360208202850161361f85613572565b8060005b8581101561365b578484038952815161363c85826135d7565b9450613647836135eb565b925060208a01995050600181019050613623565b50829750879550505050505092915050565b6000602082019050818103600083015261368781846135f8565b905092915050565b600061369a82612e83565b9050919050565b6136aa8161368f565b81146136b557600080fd5b50565b6000813590506136c7816136a1565b92915050565b6000602082840312156136e3576136e2612d9e565b5b60006136f1848285016136b8565b91505092915050565b600080fd5b600067ffffffffffffffff82111561371a57613719612ed7565b5b61372382612ec6565b9050602081019050919050565b82818337600083830152505050565b600061375261374d846136ff565b612f37565b90508281526020810184848401111561376e5761376d6136fa565b5b613779848285613730565b509392505050565b600082601f83011261379657613795612ec1565b5b81356137a684826020860161373f565b91505092915050565b6000602082840312156137c5576137c4612d9e565b5b600082013567ffffffffffffffff8111156137e3576137e2612da3565b5b6137ef84828501613781565b91505092915050565b60008083601f84011261380e5761380d612ec1565b5b8235905067ffffffffffffffff81111561382b5761382a6132cd565b5b60208301915083602082028301111561384757613846612f7e565b5b9250929050565b6000806020838503121561386557613864612d9e565b5b600083013567ffffffffffffffff81111561388357613882612da3565b5b61388f858286016137f8565b92509250509250929050565b6000602082840312156138b1576138b0612d9e565b5b60006138bf84828501612eac565b91505092915050565b60006138d382613430565b9050919050565b6138e3816138c8565b82525050565b60006020820190506138fe60008301846138da565b92915050565b600061390f82612e83565b9050919050565b61391f81613904565b811461392a57600080fd5b50565b60008135905061393c81613916565b92915050565b60006020828403121561395857613957612d9e565b5b60006139668482850161392d565b91505092915050565b61397881612e2d565b811461398357600080fd5b50565b6000813590506139958161396f565b92915050565b600080604083850312156139b2576139b1612d9e565b5b60006139c085828601612eac565b92505060206139d185828601613986565b9150509250929050565b600080604083850312156139f2576139f1612d9e565b5b6000613a0085828601612fa4565b9250506020613a1185828601612fa4565b9150509250929050565b600067ffffffffffffffff821115613a3657613a35612ed7565b5b613a3f82612ec6565b9050602081019050919050565b6000613a5f613a5a84613a1b565b612f37565b905082815260208101848484011115613a7b57613a7a6136fa565b5b613a86848285613730565b509392505050565b600082601f830112613aa357613aa2612ec1565b5b8135613ab3848260208601613a4c565b91505092915050565b60008060008060808587031215613ad657613ad5612d9e565b5b6000613ae487828801612eac565b9450506020613af587828801612eac565b9350506040613b0687828801612fa4565b925050606085013567ffffffffffffffff811115613b2757613b26612da3565b5b613b3387828801613a8e565b91505092959194509250565b60008060408385031215613b5657613b55612d9e565b5b6000613b6485828601612eac565b9250506020613b7585828601612eac565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613be882612f83565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c1a57613c19613bae565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c6c57607f821691505b602082108103613c7f57613c7e613c25565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613ce1602c83613197565b9150613cec82613c85565b604082019050919050565b60006020820190508181036000830152613d1081613cd4565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d4d602083613197565b9150613d5882613d17565b602082019050919050565b60006020820190508181036000830152613d7c81613d40565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000613ddf603183613197565b9150613dea82613d83565b604082019050919050565b60006020820190508181036000830152613e0e81613dd2565b9050919050565b6000819050919050565b613e30613e2b82612f83565b613e15565b82525050565b6000613e428285613e1f565b602082019150613e528284613e1f565b6020820191508190509392505050565b600082825260208201905092915050565b50565b6000613e83600083613e62565b9150613e8e82613e73565b600082019050919050565b6000608082019050613eae6000830186613263565b613ebb6020830185613263565b613ec860408301846133da565b8181036060830152613ed981613e76565b9050949350505050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613f3f602983613197565b9150613f4a82613ee3565b604082019050919050565b60006020820190508181036000830152613f6e81613f32565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613fd1602a83613197565b9150613fdc82613f75565b604082019050919050565b6000602082019050818103600083015261400081613fc4565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614063602f83613197565b915061406e82614007565b604082019050919050565b6000602082019050818103600083015261409281614056565b9050919050565b600081905092915050565b60006140af8261318c565b6140b98185614099565b93506140c98185602086016131a8565b80840191505092915050565b60006140e182856140a4565b91506140ed82846140a4565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614155602683613197565b9150614160826140f9565b604082019050919050565b6000602082019050818103600083015261418481614148565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006141e7602c83613197565b91506141f28261418b565b604082019050919050565b60006020820190508181036000830152614216816141da565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000614279602983613197565b91506142848261421d565b604082019050919050565b600060208201905081810360008301526142a88161426c565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061430b602483613197565b9150614316826142af565b604082019050919050565b6000602082019050818103600083015261433a816142fe565b9050919050565b600061434c82612f83565b915061435783612f83565b92508282101561436a57614369613bae565b5b828203905092915050565b600061438082612f83565b915061438b83612f83565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143c0576143bf613bae565b5b828201905092915050565b6000815190506143da81612f8d565b92915050565b6000602082840312156143f6576143f5612d9e565b5b6000614404848285016143cb565b91505092915050565b60006040820190506144226000830185613263565b61442f60208301846133da565b9392505050565b6000815190506144458161396f565b92915050565b60006020828403121561446157614460612d9e565b5b600061446f84828501614436565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006144ae602083613197565b91506144b982614478565b602082019050919050565b600060208201905081810360008301526144dd816144a1565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061451a601c83613197565b9150614525826144e4565b602082019050919050565b600060208201905081810360008301526145498161450d565b9050919050565b600080fd5b600061456183856130b7565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561459457614593614550565b5b6020830292506145a5838584613730565b82840190509392505050565b60006080820190506145c66000830188613263565b81810360208301526145d9818688614555565b90506145e860408301856133da565b6145f560608301846133da565b9695505050505050565b600061460a82612f83565b915061461583612f83565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561464e5761464d613bae565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061469382612f83565b915061469e83612f83565b9250826146ae576146ad614659565b5b828204905092915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614715603283613197565b9150614720826146b9565b604082019050919050565b6000602082019050818103600083015261474481614708565b9050919050565b600061475682612f83565b915061476183612f83565b92508261477157614770614659565b5b828206905092915050565b600061478782613582565b6147918185613e62565b93506147a18185602086016131a8565b6147aa81612ec6565b840191505092915050565b60006080820190506147ca6000830187613263565b6147d76020830186613263565b6147e460408301856133da565b81810360608301526147f6818461477c565b905095945050505050565b60008151905061481081612dd4565b92915050565b60006020828403121561482c5761482b612d9e565b5b600061483a84828501614801565b9150509291505056fea26469706673582212209760708fc1da85e1ce24287d110be6c02328f99266acdc093b4654329c9dc3c164736f6c634300080d0033697066733a2f2f516d585555585253414a65623475387034794b486d584e3169414b744156376a774c486a773335544e6d356a4e372f000000000000000000000000c524c8678bd18b62a4f2aa3cd981cd2b9a6216410000000000000000000000005948b660f0e4236bbae7a532bf6bcd8f2a7d0bd9000000000000000000000000a4506e04f1777e30dc85e2d6942f062d08cf2aed000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000004b0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000009600000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102535760003560e01c80635eac623911610146578063a22cb465116100c3578063c87b56dd11610087578063c87b56dd146106d0578063cea0196214610700578063db3b947f14610730578063e3a9db1a1461074c578063e985e9c51461077c578063f2fde38b146107ac57610253565b8063a22cb46514610654578063b32534cf14610670578063b88d4fde1461068c578063bb4b5734146106a8578063c620994b146106c657610253565b80638da5cb5b1161010a5780638da5cb5b146105b0578063940414ce146105ce57806395d89b41146105fe578063983d95ce1461061c5780639a03d9a31461063857610253565b80635eac62391461050c5780636352211e1461052857806370a0823114610558578063715018a6146105885780637c79d73b1461059257610253565b8063276184ae116101d45780634a39fa80116101985780634a39fa801461046a57806355f804b3146104865780635773d778146104a2578063598b8e71146104c05780635e1bef32146104dc57610253565b8063276184ae146103c6578063315a095d146103e45780633320d50114610400578063335e15a21461041e57806342842e0e1461044e57610253565b8063150b7a021161021b578063150b7a02146103225780631852e8d91461035257806319a249a8146103825780632352a8641461038c57806323b872dd146103aa57610253565b806301ffc9a714610258578063068c526f1461028857806306fdde03146102b8578063081812fc146102d6578063095ea7b314610306575b600080fd5b610272600480360381019061026d9190612e00565b6107c8565b60405161027f9190612e48565b60405180910390f35b6102a2600480360381019061029d9190613050565b6108aa565b6040516102af919061316a565b60405180910390f35b6102c0610961565b6040516102cd9190613214565b60405180910390f35b6102f060048036038101906102eb9190613236565b6109f3565b6040516102fd9190613272565b60405180910390f35b610320600480360381019061031b919061328d565b610a78565b005b61033c60048036038101906103379190613328565b610aaa565b60405161034991906133bf565b60405180910390f35b61036c6004803603810190610367919061328d565b610abf565b60405161037991906133e9565b60405180910390f35b61038a610ad3565b005b610394610b7b565b6040516103a19190613463565b60405180910390f35b6103c460048036038101906103bf919061347e565b610ba1565b005b6103ce610c01565b6040516103db91906134f2565b60405180910390f35b6103fe60048036038101906103f99190613236565b610c27565b005b610408610cb0565b6040516104159190612e48565b60405180910390f35b6104386004803603810190610433919061350d565b610cc3565b604051610445919061366d565b60405180910390f35b6104686004803603810190610463919061347e565b610db7565b005b610484600480360381019061047f91906136cd565b610dd7565b005b6104a0600480360381019061049b91906137af565b610e97565b005b6104aa610f2d565b6040516104b79190612e48565b60405180910390f35b6104da60048036038101906104d5919061384e565b610f40565b005b6104f660048036038101906104f19190613236565b611050565b60405161050391906133e9565b60405180910390f35b6105266004803603810190610521919061384e565b61106e565b005b610542600480360381019061053d9190613236565b61107c565b60405161054f9190613272565b60405180910390f35b610572600480360381019061056d919061389b565b61112d565b60405161057f91906133e9565b60405180910390f35b6105906111e4565b005b61059a61126c565b6040516105a791906138e9565b60405180910390f35b6105b8611292565b6040516105c59190613272565b60405180910390f35b6105e860048036038101906105e39190613236565b6112bc565b6040516105f591906133e9565b60405180910390f35b6106066112ce565b6040516106139190613214565b60405180910390f35b6106366004803603810190610631919061384e565b611360565b005b610652600480360381019061064d9190613942565b61150b565b005b61066e6004803603810190610669919061399b565b6115cb565b005b61068a600480360381019061068591906139db565b6115fd565b005b6106a660048036038101906106a19190613abc565b611695565b005b6106b06116f7565b6040516106bd91906133e9565b60405180910390f35b6106ce6116fd565b005b6106ea60048036038101906106e59190613236565b6117a5565b6040516106f79190613214565b60405180910390f35b61071a60048036038101906107159190613236565b61184c565b60405161072791906133e9565b60405180910390f35b61074a6004803603810190610745919061389b565b611864565b005b6107666004803603810190610761919061389b565b611924565b604051610773919061316a565b60405180910390f35b61079660048036038101906107919190613b3f565b611a13565b6040516107a39190612e48565b60405180910390f35b6107c660048036038101906107c1919061389b565b611aa7565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108a357506108a282611b9e565b5b9050919050565b6060815167ffffffffffffffff8111156108c7576108c6612ed7565b5b6040519080825280602002602001820160405280156108f55781602001602082028036833780820191505090505b50905060005b825181101561095a576109288484838151811061091b5761091a613b7f565b5b6020026020010151611c08565b82828151811061093b5761093a613b7f565b5b602002602001018181525050808061095290613bdd565b9150506108fb565b5092915050565b60606000805461097090613c54565b80601f016020809104026020016040519081016040528092919081815260200182805461099c90613c54565b80156109e95780601f106109be576101008083540402835291602001916109e9565b820191906000526020600020905b8154815290600101906020018083116109cc57829003601f168201915b5050505050905090565b60006109fe82611d0e565b610a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3490613cf7565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6040517f595162dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600063150b7a0260e01b905095945050505050565b6000610acb8383611c08565b905092915050565b610adb611d7a565b73ffffffffffffffffffffffffffffffffffffffff16610af9611292565b73ffffffffffffffffffffffffffffffffffffffff1614610b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4690613d63565b60405180910390fd5b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610bb2610bac611d7a565b82611d82565b610bf1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be890613df5565b60405180910390fd5b610bfc838383611e60565b505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c2f611d7a565b73ffffffffffffffffffffffffffffffffffffffff16610c4d611292565b73ffffffffffffffffffffffffffffffffffffffff1614610ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9a90613d63565b60405180910390fd5b610cad33826120bb565b50565b600e60019054906101000a900460ff1681565b60606000825167ffffffffffffffff811115610ce257610ce1612ed7565b5b604051908082528060200260200182016040528015610d1557816020015b6060815260200190600190039081610d005790505b50905060005b8351811015610dad576000848281518110610d3957610d38613b7f565b5b6020026020010151905080600c600083815260200190815260200160002060000154604051602001610d6c929190613e36565b604051602081830303815290604052838381518110610d8e57610d8d613b7f565b5b6020026020010181905250508080610da590613bdd565b915050610d1b565b5080915050919050565b610dd283838360405180602001604052806000815250611695565b505050565b610ddf611d7a565b73ffffffffffffffffffffffffffffffffffffffff16610dfd611292565b73ffffffffffffffffffffffffffffffffffffffff1614610e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4a90613d63565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610e9f611d7a565b73ffffffffffffffffffffffffffffffffffffffff16610ebd611292565b73ffffffffffffffffffffffffffffffffffffffff1614610f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0a90613d63565b60405180910390fd5b8060079080519060200190610f29929190612cf1565b5050565b600e60009054906101000a900460ff1681565b60005b8282905081101561104b576000838383818110610f6357610f62613b7f565b5b905060200201359050600e60019054906101000a900460ff16610f9c5743600c6000838152602001908152602001600020600001819055505b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3330846040518463ffffffff1660e01b8152600401610ffb93929190613e99565b600060405180830381600087803b15801561101557600080fd5b505af1158015611029573d6000803e3d6000fd5b505050506110373382612209565b50808061104390613bdd565b915050610f43565b505050565b600c6020528060005260406000206000915090508060000154905081565b61107882826123d6565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111b90613f55565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361119d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119490613fe7565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111ec611d7a565b73ffffffffffffffffffffffffffffffffffffffff1661120a611292565b73ffffffffffffffffffffffffffffffffffffffff1614611260576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125790613d63565b60405180910390fd5b61126a60006124c7565b565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006112c78261258d565b9050919050565b6060600180546112dd90613c54565b80601f016020809104026020016040519081016040528092919081815260200182805461130990613c54565b80156113565780601f1061132b57610100808354040283529160200191611356565b820191906000526020600020905b81548152906001019060200180831161133957829003601f168201915b5050505050905090565b61136a82826123d6565b60005b8282905081101561150657600083838381811061138d5761138c613b7f565b5b90506020020135905061139f81611d0e565b6113e057806040517f3d2f7ef60000000000000000000000000000000000000000000000000000000081526004016113d791906133e9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166114008261107c565b73ffffffffffffffffffffffffffffffffffffffff161461145857806040517fbb69006400000000000000000000000000000000000000000000000000000000815260040161144f91906133e9565b60405180910390fd5b61146181612670565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033846040518463ffffffff1660e01b81526004016114c093929190613e99565b600060405180830381600087803b1580156114da57600080fd5b505af11580156114ee573d6000803e3d6000fd5b505050505080806114fe90613bdd565b91505061136d565b505050565b611513611d7a565b73ffffffffffffffffffffffffffffffffffffffff16611531611292565b73ffffffffffffffffffffffffffffffffffffffff1614611587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157e90613d63565b60405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6040517f595162dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611605611d7a565b73ffffffffffffffffffffffffffffffffffffffff16611623611292565b73ffffffffffffffffffffffffffffffffffffffff1614611679576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167090613d63565b60405180910390fd5b80600d6000848152602001908152602001600020819055505050565b6116a66116a0611d7a565b83611d82565b6116e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116dc90613df5565b60405180910390fd5b6116f184848484612781565b50505050565b600b5481565b611705611d7a565b73ffffffffffffffffffffffffffffffffffffffff16611723611292565b73ffffffffffffffffffffffffffffffffffffffff1614611779576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177090613d63565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b60606117b082611d0e565b6117ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e690614079565b60405180910390fd5b60006117f96127dd565b905060008151116118195760405180602001604052806000815250611844565b806118238461286f565b6040516020016118349291906140d5565b6040516020818303038152906040525b915050919050565b600d6020528060005260406000206000915090505481565b61186c611d7a565b73ffffffffffffffffffffffffffffffffffffffff1661188a611292565b73ffffffffffffffffffffffffffffffffffffffff16146118e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d790613d63565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000806119328461112d565b905060008167ffffffffffffffff8111156119505761194f612ed7565b5b60405190808252806020026020018201604052801561197e5781602001602082028036833780820191505090505b50905060005b828414611a075761199481611d0e565b156119fc578573ffffffffffffffffffffffffffffffffffffffff166119b98261107c565b73ffffffffffffffffffffffffffffffffffffffff16036119fb57808285806001019650815181106119ee576119ed613b7f565b5b6020026020010181815250505b5b806001019050611984565b50809350505050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611aaf611d7a565b73ffffffffffffffffffffffffffffffffffffffff16611acd611292565b73ffffffffffffffffffffffffffffffffffffffff1614611b23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1a90613d63565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b899061416b565b60405180910390fd5b611b9b816124c7565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000611c1382611d0e565b611c5457816040517f3d2f7ef6000000000000000000000000000000000000000000000000000000008152600401611c4b91906133e9565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff16611c748361107c565b73ffffffffffffffffffffffffffffffffffffffff1614611ccc57816040517fbb690064000000000000000000000000000000000000000000000000000000008152600401611cc391906133e9565b60405180910390fd5b6000611cd78361258d565b90506000600c600085815260200190815260200160002060000154611cfe43600b546129cf565b0382029050809250505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b6000611d8d82611d0e565b611dcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc3906141fd565b60405180910390fd5b6000611dd78361107c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e4657508373ffffffffffffffffffffffffffffffffffffffff16611e2e846109f3565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e575750611e568185611a13565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e808261107c565b73ffffffffffffffffffffffffffffffffffffffff1614611ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ecd9061428f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611f45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3c90614321565b60405180910390fd5b611f508383836129e8565b611f5b600082612a99565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fab9190614341565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120029190614375565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016121189190613272565b602060405180830381865afa158015612135573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215991906143e0565b905080821161220457600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b81526004016121bf92919061440d565b6020604051808303816000875af11580156121de573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612202919061444b565b505b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612278576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226f906144c4565b60405180910390fd5b61228181611d0e565b156122c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b890614530565b60405180910390fd5b6122cd600083836129e8565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461231d9190614375565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000805b838390508110156124555760008484838181106123fa576123f9613b7f565b5b90506020020135905061240d3382611c08565b83019250600e60019054906101000a900460ff166124415743600c6000838152602001908152602001600020600001819055505b50808061244d90613bdd565b9150506123da565b507f7ae4d0af15e0352fff8f0a1cfdb164564c83bd0c49be28f0146fcb83efaabae0338484844360405161248d9594939291906145b1565b60405180910390a16000811180156124b25750600e60009054906101000a900460ff16155b156124c2576124c133826120bb565b5b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663afb0a369846040518263ffffffff1660e01b81526004016125eb91906133e9565b602060405180830381865afa158015612608573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262c91906143e0565b90506000600d6000838152602001908152602001600020549050611770670de0b6b3a76400008261265d91906145ff565b6126679190614688565b92505050919050565b600061267b8261107c565b9050612689816000846129e8565b612694600083612a99565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126e49190614341565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b61278c848484611e60565b61279884848484612b52565b6127d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ce9061472b565b60405180910390fd5b50505050565b6060600780546127ec90613c54565b80601f016020809104026020016040519081016040528092919081815260200182805461281890613c54565b80156128655780601f1061283a57610100808354040283529160200191612865565b820191906000526020600020905b81548152906001019060200180831161284857829003601f168201915b5050505050905090565b6060600082036128b6576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506129ca565b600082905060005b600082146128e85780806128d190613bdd565b915050600a826128e19190614688565b91506128be565b60008167ffffffffffffffff81111561290457612903612ed7565b5b6040519080825280601f01601f1916602001820160405280156129365781602001600182028036833780820191505090505b5090505b600085146129c35760018261294f9190614341565b9150600a8561295e919061474b565b603061296a9190614375565b60f81b8183815181106129805761297f613b7f565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856129bc9190614688565b945061293a565b8093505050505b919050565b60008183106129de57816129e0565b825b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015612a525750600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15612a89576040517f072b78c700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612a94838383612cd9565b505050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612b0c8361107c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612b738473ffffffffffffffffffffffffffffffffffffffff16612cde565b15612ccc578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b9c611d7a565b8786866040518563ffffffff1660e01b8152600401612bbe94939291906147b5565b6020604051808303816000875af1925050508015612bfa57506040513d601f19601f82011682018060405250810190612bf79190614816565b60015b612c7c573d8060008114612c2a576040519150601f19603f3d011682016040523d82523d6000602084013e612c2f565b606091505b506000815103612c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6b9061472b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612cd1565b600190505b949350505050565b505050565b600080823b905060008111915050919050565b828054612cfd90613c54565b90600052602060002090601f016020900481019282612d1f5760008555612d66565b82601f10612d3857805160ff1916838001178555612d66565b82800160010185558215612d66579182015b82811115612d65578251825591602001919060010190612d4a565b5b509050612d739190612d77565b5090565b5b80821115612d90576000816000905550600101612d78565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612ddd81612da8565b8114612de857600080fd5b50565b600081359050612dfa81612dd4565b92915050565b600060208284031215612e1657612e15612d9e565b5b6000612e2484828501612deb565b91505092915050565b60008115159050919050565b612e4281612e2d565b82525050565b6000602082019050612e5d6000830184612e39565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612e8e82612e63565b9050919050565b612e9e81612e83565b8114612ea957600080fd5b50565b600081359050612ebb81612e95565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612f0f82612ec6565b810181811067ffffffffffffffff82111715612f2e57612f2d612ed7565b5b80604052505050565b6000612f41612d94565b9050612f4d8282612f06565b919050565b600067ffffffffffffffff821115612f6d57612f6c612ed7565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b612f9681612f83565b8114612fa157600080fd5b50565b600081359050612fb381612f8d565b92915050565b6000612fcc612fc784612f52565b612f37565b90508083825260208201905060208402830185811115612fef57612fee612f7e565b5b835b8181101561301857806130048882612fa4565b845260208401935050602081019050612ff1565b5050509392505050565b600082601f83011261303757613036612ec1565b5b8135613047848260208601612fb9565b91505092915050565b6000806040838503121561306757613066612d9e565b5b600061307585828601612eac565b925050602083013567ffffffffffffffff81111561309657613095612da3565b5b6130a285828601613022565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6130e181612f83565b82525050565b60006130f383836130d8565b60208301905092915050565b6000602082019050919050565b6000613117826130ac565b61312181856130b7565b935061312c836130c8565b8060005b8381101561315d57815161314488826130e7565b975061314f836130ff565b925050600181019050613130565b5085935050505092915050565b60006020820190508181036000830152613184818461310c565b905092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156131c65780820151818401526020810190506131ab565b838111156131d5576000848401525b50505050565b60006131e68261318c565b6131f08185613197565b93506132008185602086016131a8565b61320981612ec6565b840191505092915050565b6000602082019050818103600083015261322e81846131db565b905092915050565b60006020828403121561324c5761324b612d9e565b5b600061325a84828501612fa4565b91505092915050565b61326c81612e83565b82525050565b60006020820190506132876000830184613263565b92915050565b600080604083850312156132a4576132a3612d9e565b5b60006132b285828601612eac565b92505060206132c385828601612fa4565b9150509250929050565b600080fd5b60008083601f8401126132e8576132e7612ec1565b5b8235905067ffffffffffffffff811115613305576133046132cd565b5b60208301915083600182028301111561332157613320612f7e565b5b9250929050565b60008060008060006080868803121561334457613343612d9e565b5b600061335288828901612eac565b955050602061336388828901612eac565b945050604061337488828901612fa4565b935050606086013567ffffffffffffffff81111561339557613394612da3565b5b6133a1888289016132d2565b92509250509295509295909350565b6133b981612da8565b82525050565b60006020820190506133d460008301846133b0565b92915050565b6133e381612f83565b82525050565b60006020820190506133fe60008301846133da565b92915050565b6000819050919050565b600061342961342461341f84612e63565b613404565b612e63565b9050919050565b600061343b8261340e565b9050919050565b600061344d82613430565b9050919050565b61345d81613442565b82525050565b60006020820190506134786000830184613454565b92915050565b60008060006060848603121561349757613496612d9e565b5b60006134a586828701612eac565b93505060206134b686828701612eac565b92505060406134c786828701612fa4565b9150509250925092565b60006134dc82613430565b9050919050565b6134ec816134d1565b82525050565b600060208201905061350760008301846134e3565b92915050565b60006020828403121561352357613522612d9e565b5b600082013567ffffffffffffffff81111561354157613540612da3565b5b61354d84828501613022565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600081519050919050565b600082825260208201905092915050565b60006135a982613582565b6135b3818561358d565b93506135c38185602086016131a8565b6135cc81612ec6565b840191505092915050565b60006135e3838361359e565b905092915050565b6000602082019050919050565b600061360382613556565b61360d8185613561565b93508360208202850161361f85613572565b8060005b8581101561365b578484038952815161363c85826135d7565b9450613647836135eb565b925060208a01995050600181019050613623565b50829750879550505050505092915050565b6000602082019050818103600083015261368781846135f8565b905092915050565b600061369a82612e83565b9050919050565b6136aa8161368f565b81146136b557600080fd5b50565b6000813590506136c7816136a1565b92915050565b6000602082840312156136e3576136e2612d9e565b5b60006136f1848285016136b8565b91505092915050565b600080fd5b600067ffffffffffffffff82111561371a57613719612ed7565b5b61372382612ec6565b9050602081019050919050565b82818337600083830152505050565b600061375261374d846136ff565b612f37565b90508281526020810184848401111561376e5761376d6136fa565b5b613779848285613730565b509392505050565b600082601f83011261379657613795612ec1565b5b81356137a684826020860161373f565b91505092915050565b6000602082840312156137c5576137c4612d9e565b5b600082013567ffffffffffffffff8111156137e3576137e2612da3565b5b6137ef84828501613781565b91505092915050565b60008083601f84011261380e5761380d612ec1565b5b8235905067ffffffffffffffff81111561382b5761382a6132cd565b5b60208301915083602082028301111561384757613846612f7e565b5b9250929050565b6000806020838503121561386557613864612d9e565b5b600083013567ffffffffffffffff81111561388357613882612da3565b5b61388f858286016137f8565b92509250509250929050565b6000602082840312156138b1576138b0612d9e565b5b60006138bf84828501612eac565b91505092915050565b60006138d382613430565b9050919050565b6138e3816138c8565b82525050565b60006020820190506138fe60008301846138da565b92915050565b600061390f82612e83565b9050919050565b61391f81613904565b811461392a57600080fd5b50565b60008135905061393c81613916565b92915050565b60006020828403121561395857613957612d9e565b5b60006139668482850161392d565b91505092915050565b61397881612e2d565b811461398357600080fd5b50565b6000813590506139958161396f565b92915050565b600080604083850312156139b2576139b1612d9e565b5b60006139c085828601612eac565b92505060206139d185828601613986565b9150509250929050565b600080604083850312156139f2576139f1612d9e565b5b6000613a0085828601612fa4565b9250506020613a1185828601612fa4565b9150509250929050565b600067ffffffffffffffff821115613a3657613a35612ed7565b5b613a3f82612ec6565b9050602081019050919050565b6000613a5f613a5a84613a1b565b612f37565b905082815260208101848484011115613a7b57613a7a6136fa565b5b613a86848285613730565b509392505050565b600082601f830112613aa357613aa2612ec1565b5b8135613ab3848260208601613a4c565b91505092915050565b60008060008060808587031215613ad657613ad5612d9e565b5b6000613ae487828801612eac565b9450506020613af587828801612eac565b9350506040613b0687828801612fa4565b925050606085013567ffffffffffffffff811115613b2757613b26612da3565b5b613b3387828801613a8e565b91505092959194509250565b60008060408385031215613b5657613b55612d9e565b5b6000613b6485828601612eac565b9250506020613b7585828601612eac565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613be882612f83565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613c1a57613c19613bae565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c6c57607f821691505b602082108103613c7f57613c7e613c25565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613ce1602c83613197565b9150613cec82613c85565b604082019050919050565b60006020820190508181036000830152613d1081613cd4565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d4d602083613197565b9150613d5882613d17565b602082019050919050565b60006020820190508181036000830152613d7c81613d40565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000613ddf603183613197565b9150613dea82613d83565b604082019050919050565b60006020820190508181036000830152613e0e81613dd2565b9050919050565b6000819050919050565b613e30613e2b82612f83565b613e15565b82525050565b6000613e428285613e1f565b602082019150613e528284613e1f565b6020820191508190509392505050565b600082825260208201905092915050565b50565b6000613e83600083613e62565b9150613e8e82613e73565b600082019050919050565b6000608082019050613eae6000830186613263565b613ebb6020830185613263565b613ec860408301846133da565b8181036060830152613ed981613e76565b9050949350505050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613f3f602983613197565b9150613f4a82613ee3565b604082019050919050565b60006020820190508181036000830152613f6e81613f32565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000613fd1602a83613197565b9150613fdc82613f75565b604082019050919050565b6000602082019050818103600083015261400081613fc4565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614063602f83613197565b915061406e82614007565b604082019050919050565b6000602082019050818103600083015261409281614056565b9050919050565b600081905092915050565b60006140af8261318c565b6140b98185614099565b93506140c98185602086016131a8565b80840191505092915050565b60006140e182856140a4565b91506140ed82846140a4565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614155602683613197565b9150614160826140f9565b604082019050919050565b6000602082019050818103600083015261418481614148565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006141e7602c83613197565b91506141f28261418b565b604082019050919050565b60006020820190508181036000830152614216816141da565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000614279602983613197565b91506142848261421d565b604082019050919050565b600060208201905081810360008301526142a88161426c565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061430b602483613197565b9150614316826142af565b604082019050919050565b6000602082019050818103600083015261433a816142fe565b9050919050565b600061434c82612f83565b915061435783612f83565b92508282101561436a57614369613bae565b5b828203905092915050565b600061438082612f83565b915061438b83612f83565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143c0576143bf613bae565b5b828201905092915050565b6000815190506143da81612f8d565b92915050565b6000602082840312156143f6576143f5612d9e565b5b6000614404848285016143cb565b91505092915050565b60006040820190506144226000830185613263565b61442f60208301846133da565b9392505050565b6000815190506144458161396f565b92915050565b60006020828403121561446157614460612d9e565b5b600061446f84828501614436565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006144ae602083613197565b91506144b982614478565b602082019050919050565b600060208201905081810360008301526144dd816144a1565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061451a601c83613197565b9150614525826144e4565b602082019050919050565b600060208201905081810360008301526145498161450d565b9050919050565b600080fd5b600061456183856130b7565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561459457614593614550565b5b6020830292506145a5838584613730565b82840190509392505050565b60006080820190506145c66000830188613263565b81810360208301526145d9818688614555565b90506145e860408301856133da565b6145f560608301846133da565b9695505050505050565b600061460a82612f83565b915061461583612f83565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561464e5761464d613bae565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061469382612f83565b915061469e83612f83565b9250826146ae576146ad614659565b5b828204905092915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614715603283613197565b9150614720826146b9565b604082019050919050565b6000602082019050818103600083015261474481614708565b9050919050565b600061475682612f83565b915061476183612f83565b92508261477157614770614659565b5b828206905092915050565b600061478782613582565b6147918185613e62565b93506147a18185602086016131a8565b6147aa81612ec6565b840191505092915050565b60006080820190506147ca6000830187613263565b6147d76020830186613263565b6147e460408301856133da565b81810360608301526147f6818461477c565b905095945050505050565b60008151905061481081612dd4565b92915050565b60006020828403121561482c5761482b612d9e565b5b600061483a84828501614801565b9150509291505056fea26469706673582212209760708fc1da85e1ce24287d110be6c02328f99266acdc093b4654329c9dc3c164736f6c634300080d0033

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

000000000000000000000000c524c8678bd18b62a4f2aa3cd981cd2b9a6216410000000000000000000000005948b660f0e4236bbae7a532bf6bcd8f2a7d0bd9000000000000000000000000a4506e04f1777e30dc85e2d6942f062d08cf2aed000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000004b0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000009600000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _erc721Address (address): 0xc524c8678bd18b62A4F2aA3Cd981cD2b9a621641
Arg [1] : _erc20Address (address): 0x5948b660f0e4236bBAE7a532bf6BCD8f2a7d0bD9
Arg [2] : _stakeSealsV1Address (address): 0xA4506e04F1777E30dC85e2D6942F062d08CF2aed
Arg [3] : _defaultRates (uint256[]): 50,60,75,100,150,500,0

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000c524c8678bd18b62a4f2aa3cd981cd2b9a621641
Arg [1] : 0000000000000000000000005948b660f0e4236bbae7a532bf6bcd8f2a7d0bd9
Arg [2] : 000000000000000000000000a4506e04f1777e30dc85e2d6942f062d08cf2aed
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [6] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [7] : 000000000000000000000000000000000000000000000000000000000000004b
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000096
Arg [10] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ 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.