ETH Price: $2,734.17 (+0.97%)

Contract

0x54B4396b0754416923dd5adcE66E9e0a6B48D23D
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stake157687922022-10-17 15:43:35856 days ago1666021415IN
0x54B4396b...a6B48D23D
0 ETH0.0080612336.31089431
Stake156878712022-10-06 8:28:11867 days ago1665044891IN
0x54B4396b...a6B48D23D
0 ETH0.001824937.65144235
Stake156878122022-10-06 8:16:11867 days ago1665044171IN
0x54B4396b...a6B48D23D
0 ETH0.001665896.84680934
Stake156876392022-10-06 7:41:35868 days ago1665042095IN
0x54B4396b...a6B48D23D
0 ETH0.002177159.70899558
Stake156873102022-10-06 6:35:23868 days ago1665038123IN
0x54B4396b...a6B48D23D
0 ETH0.000185686.23723667
Stake156873072022-10-06 6:34:47868 days ago1665038087IN
0x54B4396b...a6B48D23D
0 ETH0.001467256.030428
Stake156873022022-10-06 6:33:47868 days ago1665038027IN
0x54B4396b...a6B48D23D
0 ETH0.000184296.19297812
Stake156872932022-10-06 6:31:59868 days ago1665037919IN
0x54B4396b...a6B48D23D
0 ETH0.001837236.73037305

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RisingStackersStakingCon

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

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

// SPDX-License-Identifier: MIT

/**
*                                                       .....................
*                   ,dOOOOOOOOOOkkkkkkxxxl'           .o0XXXXXXXXXXXXXXXXXXXKx'
*                  '0MMMMMMMMMMMMMMMMMMMMMX;          cWMMMMMMMMMMMMMMMMMMMMMMx.
*                  .xWMMMMMMMMMMMMMMMMMMMMWc          'kNWMMMMMMWMMMMMMMMMMMMMk.
*                   .;lloooookNMMMMMMMMMMMX;            ';;;;;;;lKMMMMMMMMMMMWo
*                            .xWMMMMMMMMMWd.                     :XMMMMMMMMMNx.
*                             .c0WMMMMMW0c.                       'd0NWWWX0x;
*                               .,codoc,.                           .',;,..
*
*
*                                        .cdoc;,'''''',;:coxOOd,
*                                       .xWMMMMWNNNNNWWMMMMMMMMx.
*                                        c0NMMMMMMMMMMMMMMWNX0x,
*                                         .,:looddddddollc;'..
*                   .','...                                                ..,:cll,
*                 ,kXWWNXK0Oxdlc;,'.....                     .....';:clodxOKXWMMMMNo.
*                .kMMMWMMMMMMMMMMWNXXK000OOkkkkxkkkkkkOOOOOO00KKXNWWMMMMMMMMMMMMMMWk.
*                .dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNl
*                 .kWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWk.
*                  .xNWMMMMMMMMMMMMMN0OO0KKXNNNNWWMMMWNNXXK0Okxd0MMMMMMMMMMMMMMMW0'
*                   .lXMMMMMMMMMMMMMK;  ......'':0MMWx,'....    cWMMMMMMMMMMMMMWO'
*                     ,kNMMMMMMMMMMMK;       .:d0NMMMXko,       :NMMMMMMMMMMMMNx.
*                       ;kNMMMMMMMMMX;      ;0WN0KWMMXXNO.      ;XMMMMMMMMMMWO:.
*                         ;xXMMMMMMMX;     .kMWx'oWMMx''.       ;XMMMMMMMMNO:.
*                           'o0WMMMMN:      ;0WNKXWMMKc.        ;XMMMMMNOo,.
*                             .OMMMMWo       .;ld0WMMMMXk;      :NMMMMMd.
*                              cNMMMMk.          ,KMMXxOWNo.    oWMMMMNc
*                              '0MMMMX;     .:;. 'OMMK,:NMO.   .OMMMMM0'
*                              .dWMMMWd.    lNWKkkXMMNk0MNc    :NMMMMWo
*                               ,0MMMMX:     ,lx0XWMMMWXk;    .OMMMMM0'
*                                :XMMMMK:       .,OMMWx.     .dWMMMMXc
*                                 :XMMMMNd'       :O00;     .oNMMMMNo
*                                  ,OWMMMMXd;.      ..    .;kNMMMMWd.
*                                   .c0WMMMMWXOxolllcclloxKWMMMMMXl.
*                                     .:kNMMMMMMMMMMMMMMMMMMMMMXd'
*                                        'cx0NWMMMMMMMMMMMWN0xc.
*                                           ..,:llooooollc;'.
*
*/


pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}



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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol
pragma solidity ^0.8.0;
/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// Amended by HashLips
/**
    !Disclaimer!
    These contracts have been used to create tutorials,
    and was created for the purpose to teach people
    how to create smart contracts on the blockchain.
    please review this code on your own before using any of
    the following code for production.
    HashLips will not be liable in any way if for the use 
    of the code. That being said, the code has been tested 
    to the best of the developers' knowledge to work as intended.
*/

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

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

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


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

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



pragma solidity ^0.8.0;

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

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

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

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

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

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



pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol



pragma solidity ^0.8.0;


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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol



pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/token/ERC721/ERC721.sol
pragma solidity ^0.8.0;
/**
 * @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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public 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 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 {}
}

// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol



pragma solidity ^0.8.0;



/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

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

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

pragma solidity ^0.8.0;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

pragma solidity ^0.8.0;

contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

contract RisingStackersStakingCon is Ownable {

    using Strings for uint256;

    ERC20 public _token; //Token
    ERC721 public _nft; //NFT
    ERC1155 public _boostToken;

    struct Stake {
        uint256 tokenId;
        uint256 timestamp;
        address owner;
        bool boost;
        uint256 mulx;
        uint256 rank;
    }

    uint256 public totalStaked;

    uint256 public commonPotion;
    uint256 public rarePotion;
    uint256 public legendaryPotion;

    mapping(uint256 => Stake) public stakingDetails;
    mapping(address => uint256[]) public stakedNftPerAddress;

    address[] public stakers;

    constructor(ERC20 token,ERC721 nft,ERC1155 boostToken) {
        _token = token;
        _nft = nft;
        _boostToken = boostToken;
        commonPotion = 28720534249279301211314168146832140054089068317271961506754588106739639386410;
        rarePotion = 28720534249279301211314168146832140054089068317271961506754588105640127758436;
        legendaryPotion = 28720534249279301211314168146832140054089068317271961506754588104540616130562;
    } 

    function stake(uint256 tokenId, bool _boost, uint256 _rank) public {
        uint256 _mulx = 0;
        require(_nft.ownerOf(tokenId) == msg.sender, "It is not your NFT");
        require(stakingDetails[tokenId].tokenId == 0, "Already Staked");
        totalStaked += 1;
        stakedNftPerAddress[msg.sender].push(tokenId);
        addStaker(msg.sender);
        if(_boost == true){
            if(_boostToken.balanceOf(msg.sender,legendaryPotion) > 0){
                _boost = true;
                _mulx = 20;
            }else if(_boostToken.balanceOf(msg.sender,rarePotion) > 0){
                _boost = true;
                _mulx = 15;
            }else if(_boostToken.balanceOf(msg.sender,commonPotion) > 0){
                _boost = true;
                _mulx = 12;
            }else{
                _boost = false;
            }
        }
        _nft.transferFrom(msg.sender, address(this), tokenId);
        stakingDetails[tokenId] = Stake({
            owner: msg.sender,
            tokenId: uint256(tokenId),
            timestamp: uint256(block.timestamp),
            boost : _boost,
            mulx : _mulx,
            rank : _rank
        });
    }

    function unstake(uint256 tokenId) public {
        Stake memory staked = stakingDetails[tokenId];
        require(staked.owner == msg.sender, "You are not an owner");
        uint256 stakedAt = staked.timestamp;
        uint256 earned = 0;
        uint256 reward;
        if(staked.rank == 1){
            reward = 1000 ether;
        }else{
            reward = 500 ether + (((1000 - staked.rank)/1000)*500) * 1 ether;
        }
        reward = reward / 24;
        if(staked.boost){
            earned += (reward * ((block.timestamp - stakedAt) / 3600) * staked.mulx) / 10;
        }else{
            earned += reward * ((block.timestamp - stakedAt) / 3600);
        }
        delete stakingDetails[tokenId];
        removeStakedNftPerAddress(tokenId);
        totalStaked -= 1;
        if(isEmptyStakerNfts(msg.sender)){
            removeStaker(msg.sender);
        }
        require(_token.balanceOf(address(this)) >= earned, "Limit Exceeded");
        _nft.transferFrom(address(this), msg.sender, tokenId);
        _token.transfer(msg.sender, earned);
    }

    function addStaker(address _user) internal {
        if(!checkStaker(_user)){
            stakers.push(_user);
        }
    }

    function checkStaker(address _user) internal view returns (bool) {
        for (uint256 i = 0; i < stakers.length; i++) {
            if (stakers[i] == _user) {
                return true;
            }
        }
        return false;
    }

    function removeStaker(address _user) internal {
        for (uint256 i =0; i < stakers.length; i++) {
            if(stakers[i] == _user){
                stakers[i] = stakers[stakers.length - 1];
                stakers.pop();
            }
        }
    }

    function getStakers() public view returns(address[] memory){
        return stakers;
    }

    function isEmptyStakerNfts(address _user) public view returns(bool){
        return stakedNfts(_user).length == 0;
    }

    function removeStakedNftPerAddress(uint256 tokenId) internal {
        for (uint256 i =0; i < stakedNftPerAddress[msg.sender].length; i++) {
                if(stakedNftPerAddress[msg.sender][i] == tokenId){
                    stakedNftPerAddress[msg.sender][i] = stakedNftPerAddress[msg.sender][stakedNftPerAddress[msg.sender].length-1];
                    stakedNftPerAddress[msg.sender].pop();
                }
            }
    }

    function earningInfo(address _user) public view returns (uint256) {
        uint256 earned = 0;
        for(uint256 i = 1; i <= stakedNfts(_user).length; i++) {
            uint256 tokenId = stakingDetails[stakedNftPerAddress[_user][i-1]].tokenId;
            if (stakingDetails[tokenId].owner == _user) {
                Stake memory staked = stakingDetails[tokenId];
                uint256 stakedAt = staked.timestamp;
                uint256 reward;
                if(staked.rank == 1){
                    reward = 1000 ether;
                }else{
                    reward = 500 ether + (((1000 - staked.rank)/1000)*500) * 1 ether;
                }
                reward = reward / 24;
                if(staked.boost){
                    earned += (reward * ((block.timestamp - stakedAt) / 3600) * staked.mulx) / 10;
                }else{
                    earned += reward * ((block.timestamp - stakedAt) / 3600);
                }
            }
        }
        return earned;
    }

    function singleEarningInfo(address _user,uint256 _tokenId) public view returns (uint256) {
        uint256 earned = 0;
            if (stakingDetails[_tokenId].owner == _user) {
                Stake memory staked = stakingDetails[_tokenId];
                uint256 stakedAt = staked.timestamp;
                uint256 reward;
                if(staked.rank == 1){
                    reward = 1000 ether;
                }else{
                    reward = 500 ether + (((1000 - staked.rank)/1000)*500) * 1 ether;
                }
                reward = reward / 24;
                if(staked.boost){
                    earned += (reward * ((block.timestamp - stakedAt) / 3600) * staked.mulx) / 10;
                }else{
                    earned += reward * ((block.timestamp - stakedAt) / 3600);
                }
            }
        return earned;
    }

    function stakedNfts(address _user) public view returns (uint256[] memory) {
        return stakedNftPerAddress[_user];
    }

    function addTokens(uint256 _tokens) public onlyOwner{
        _token.transferFrom(msg.sender, address(this), _tokens);
    }

    function withdrawTokens(uint256 _tokens) public onlyOwner{
        require(_token.balanceOf(address(this)) >= _tokens, "Limit Exceeded");
        _token.transfer(msg.sender, _tokens);
    }

    function getContractTokens() public view returns(uint256) {
        return _token.balanceOf(address(this));
    }

    function isStakeTokenId(uint256 tokenId) public view returns (bool) {
        return stakingDetails[tokenId].tokenId != 0;
    }

    function getContractBalance() public view returns(uint256) {
        return address(this).balance;
    }

    function addFundToContract() public payable { 
        
    }

    function distributionToStakers(uint256 _value) public onlyOwner{
        for (uint256 i =0; i < stakers.length; i++) {
            payable(stakers[i]).transfer((_value/totalStaked)*stakedNfts(stakers[i]).length);
        }
    }

    function withdraw(uint256 _amount) public onlyOwner {
        require(_amount <= address(this).balance,"You can not withdraw more than contract balance");
        payable(owner()).transfer(_amount);
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ERC20","name":"token","type":"address"},{"internalType":"contract ERC721","name":"nft","type":"address"},{"internalType":"contract ERC1155","name":"boostToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"_boostToken","outputs":[{"internalType":"contract ERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_nft","outputs":[{"internalType":"contract ERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_token","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addFundToContract","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokens","type":"uint256"}],"name":"addTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"commonPotion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"distributionToStakers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"earningInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isEmptyStakerNfts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isStakeTokenId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"legendaryPotion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rarePotion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"singleEarningInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"_boost","type":"bool"},{"internalType":"uint256","name":"_rank","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakedNftPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"stakedNfts","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingDetails","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"bool","name":"boost","type":"bool"},{"internalType":"uint256","name":"mulx","type":"uint256"},{"internalType":"uint256","name":"rank","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokens","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162001e9138038062001e91833981016040819052620000349162000157565b6200003f33620000ee565b600180546001600160a01b039485166001600160a01b0319918216179091556002805493851693821693909317909255600380549190931691161790557f3f7f3f0ee27236c1d3f869f93b55014900f18c1b00000000000004000000012a6005557f3f7f3f0ee27236c1d3f869f93b55014900f18c1b0000000000000300000000646006557f3f7f3f0ee27236c1d3f869f93b55014900f18c1b000000000000020000000002600755620001ab565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200015457600080fd5b50565b6000806000606084860312156200016d57600080fd5b83516200017a816200013e565b60208501519093506200018d816200013e565b6040850151909250620001a0816200013e565b809150509250925092565b611cd680620001bb6000396000f3fe6080604052600436106101b75760003560e01c8063a028b98e116100ec578063d95c7d821161008a578063f15e268311610064578063f15e268314610247578063f1dfa04a14610546578063f2fde38b14610566578063fd5e6dd11461058657600080fd5b8063d95c7d82146104f0578063d98dfb3314610506578063ecd0c0c31461052657600080fd5b8063a9d5b54c116100c6578063a9d5b54c14610409578063befe4941146104a5578063c3ffb884146104bb578063c6ed8990146104d057600080fd5b8063a028b98e1461039c578063a071bf13146103bc578063a6f4ffa7146103e957600080fd5b80634720c3f011610159578063817b1cd211610133578063817b1cd2146103095780638da5cb5b1461031f5780639304bcae1461033d57806398300e181461037c57600080fd5b80634720c3f0146102cb5780636f9fb98a146102e1578063715018a6146102f457600080fd5b80632e1a7d4d116101955780632e1a7d4d14610249578063315a095d1461026957806343352d6114610289578063447da8a6146102ab57600080fd5b80630ec68ff2146101bc5780631a3944a8146101ef5780632e17de7814610227575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004611a1e565b6105a6565b6040519081526020015b60405180910390f35b3480156101fb57600080fd5b5060035461020f906001600160a01b031681565b6040516001600160a01b0390911681526020016101e6565b34801561023357600080fd5b50610247610242366004611a3b565b6107bc565b005b34801561025557600080fd5b50610247610264366004611a3b565b610b77565b34801561027557600080fd5b50610247610284366004611a3b565b610c46565b34801561029557600080fd5b5061029e610d91565b6040516101e69190611a54565b3480156102b757600080fd5b506102476102c6366004611aaf565b610df3565b3480156102d757600080fd5b506101dc60065481565b3480156102ed57600080fd5b50476101dc565b34801561030057600080fd5b506102476111e7565b34801561031557600080fd5b506101dc60045481565b34801561032b57600080fd5b506000546001600160a01b031661020f565b34801561034957600080fd5b5061036c610358366004611a3b565b600090815260086020526040902054151590565b60405190151581526020016101e6565b34801561038857600080fd5b5060025461020f906001600160a01b031681565b3480156103a857600080fd5b5061036c6103b7366004611a1e565b61121d565b3480156103c857600080fd5b506103dc6103d7366004611a1e565b611230565b6040516101e69190611ae7565b3480156103f557600080fd5b506101dc610404366004611b1f565b61129c565b34801561041557600080fd5b50610468610424366004611a3b565b60086020526000908152604090208054600182015460028301546003840154600490940154929391926001600160a01b03821692600160a01b90920460ff16919086565b6040805196875260208701959095526001600160a01b039093169385019390935215156060840152608083019190915260a082015260c0016101e6565b3480156104b157600080fd5b506101dc60055481565b3480156104c757600080fd5b506101dc6112cd565b3480156104dc57600080fd5b506102476104eb366004611a3b565b61133f565b3480156104fc57600080fd5b506101dc60075481565b34801561051257600080fd5b50610247610521366004611a3b565b6113a6565b34801561053257600080fd5b5060015461020f906001600160a01b031681565b34801561055257600080fd5b506101dc610561366004611b1f565b611491565b34801561057257600080fd5b50610247610581366004611a1e565b61162a565b34801561059257600080fd5b5061020f6105a1366004611a3b565b6116c5565b60008060015b6105b584611230565b5181116107b5576001600160a01b038416600090815260096020526040812060089082906105e4600186611b61565b815481106105f4576105f4611b78565b60009182526020808320909101548352828101939093526040918201812054808252600890935220600201549091506001600160a01b0390811690861614156107a2576000818152600860209081526040808320815160c0810183528154815260018083015494820185905260028301546001600160a01b03811694830194909452600160a01b90930460ff16151560608201526003820154608082015260049091015460a0820181905290939114156106b85750683635c9adc5dea0000061070b565b6103e88360a001516103e86106cd9190611b61565b6106d79190611b8e565b6106e3906101f4611bb0565b6106f590670de0b6b3a7640000611bb0565b61070890681b1ae4d6e2ef500000611bcf565b90505b610716601882611b8e565b9050826060015115610770576080830151600a90610e106107378542611b61565b6107419190611b8e565b61074b9084611bb0565b6107559190611bb0565b61075f9190611b8e565b6107699087611bcf565b955061079e565b610e1061077d8342611b61565b6107879190611b8e565b6107919082611bb0565b61079b9087611bcf565b95505b5050505b50806107ad81611be7565b9150506105ac565b5092915050565b600081815260086020908152604091829020825160c0810184528154815260018201549281019290925260028101546001600160a01b038116938301849052600160a01b900460ff1615156060830152600381015460808301526004015460a082015290331461086a5760405162461bcd60e51b81526020600482015260146024820152732cb7ba9030b932903737ba1030b71037bbb732b960611b60448201526064015b60405180910390fd5b602081015160a08201516000908190600114156108915750683635c9adc5dea000006108e4565b6103e88460a001516103e86108a69190611b61565b6108b09190611b8e565b6108bc906101f4611bb0565b6108ce90670de0b6b3a7640000611bb0565b6108e190681b1ae4d6e2ef500000611bcf565b90505b6108ef601882611b8e565b9050836060015115610949576080840151600a90610e106109108642611b61565b61091a9190611b8e565b6109249084611bb0565b61092e9190611bb0565b6109389190611b8e565b6109429083611bcf565b9150610977565b610e106109568442611b61565b6109609190611b8e565b61096a9082611bb0565b6109749083611bcf565b91505b6000858152600860205260408120818155600181018290556002810180546001600160a81b031916905560038101829055600401556109b5856116ef565b6001600460008282546109c89190611b61565b909155506109d790503361121d565b156109e5576109e5336117ed565b6001546040516370a0823160e01b815230600482015283916001600160a01b0316906370a0823190602401602060405180830381865afa158015610a2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a519190611c02565b1015610a905760405162461bcd60e51b815260206004820152600e60248201526d131a5b5a5d08115e18d95959195960921b6044820152606401610861565b6002546040516323b872dd60e01b8152306004820152336024820152604481018790526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015610ae257600080fd5b505af1158015610af6573d6000803e3d6000fd5b505060015460405163a9059cbb60e01b8152336004820152602481018690526001600160a01b03909116925063a9059cbb91506044016020604051808303816000875af1158015610b4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6f9190611c1b565b505050505050565b6000546001600160a01b03163314610ba15760405162461bcd60e51b815260040161086190611c38565b47811115610c095760405162461bcd60e51b815260206004820152602f60248201527f596f752063616e206e6f74207769746864726177206d6f7265207468616e206360448201526e6f6e74726163742062616c616e636560881b6064820152608401610861565b600080546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015610c42573d6000803e3d6000fd5b5050565b6000546001600160a01b03163314610c705760405162461bcd60e51b815260040161086190611c38565b6001546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610cb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdc9190611c02565b1015610d1b5760405162461bcd60e51b815260206004820152600e60248201526d131a5b5a5d08115e18d95959195960921b6044820152606401610861565b60015460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044015b6020604051808303816000875af1158015610d6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c429190611c1b565b6060600a805480602002602001604051908101604052809291908181526020018280548015610de957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610dcb575b5050505050905090565b6002546040516331a9108f60e11b81526004810185905260009133916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610e41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e659190611c6d565b6001600160a01b031614610eb05760405162461bcd60e51b8152602060048201526012602482015271125d081a5cc81b9bdd081e5bdd5c8813919560721b6044820152606401610861565b60008481526008602052604090205415610efd5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e4814dd185ad95960921b6044820152606401610861565b600160046000828254610f109190611bcf565b909155505033600081815260096020908152604082208054600181018255908352912001859055610f40906118f2565b600183151514156110e857600354600754604051627eeac760e11b815233600482015260248101919091526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015610f9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc19190611c02565b1115610fd357506001915060146110e8565b600354600654604051627eeac760e11b815233600482015260248101919091526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015611025573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110499190611c02565b111561105b575060019150600f6110e8565b600354600554604051627eeac760e11b815233600482015260248101919091526000916001600160a01b03169062fdd58e90604401602060405180830381865afa1580156110ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d19190611c02565b11156110e3575060019150600c6110e8565b600092505b6002546040516323b872dd60e01b8152336004820152306024820152604481018690526001600160a01b03909116906323b872dd90606401600060405180830381600087803b15801561113a57600080fd5b505af115801561114e573d6000803e3d6000fd5b50506040805160c08101825287815242602080830191825233838501908152981515606084019081526080840197885260a0840198895260009a8b526008909152929098209051815596516001880155945160028701805496511515600160a01b026001600160a81b03199097166001600160a01b03929092169190911795909517909455505160038401555160049092019190915550565b6000546001600160a01b031633146112115760405162461bcd60e51b815260040161086190611c38565b61121b600061194f565b565b600061122882611230565b511592915050565b6001600160a01b03811660009081526009602090815260409182902080548351818402810184019094528084526060939283018282801561129057602002820191906000526020600020905b81548152602001906001019080831161127c575b50505050509050919050565b600960205281600052604060002081815481106112b857600080fd5b90600052602060002001600091509150505481565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611316573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133a9190611c02565b905090565b6000546001600160a01b031633146113695760405162461bcd60e51b815260040161086190611c38565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401610d4e565b6000546001600160a01b031633146113d05760405162461bcd60e51b815260040161086190611c38565b60005b600a54811015610c4257600a81815481106113f0576113f0611b78565b600091825260209091200154600a80546001600160a01b03909216916108fc9161143e918590811061142457611424611b78565b6000918252602090912001546001600160a01b0316611230565b5160045461144c9086611b8e565b6114569190611bb0565b6040518115909202916000818181858888f1935050505015801561147e573d6000803e3d6000fd5b508061148981611be7565b9150506113d3565b60008181526008602052604081206002015481906001600160a01b0385811691161415611623576000838152600860209081526040808320815160c0810183528154815260018083015494820185905260028301546001600160a01b03811694830194909452600160a01b90930460ff16151560608201526003820154608082015260049091015460a0820181905290939114156115395750683635c9adc5dea0000061158c565b6103e88360a001516103e861154e9190611b61565b6115589190611b8e565b611564906101f4611bb0565b61157690670de0b6b3a7640000611bb0565b61158990681b1ae4d6e2ef500000611bcf565b90505b611597601882611b8e565b90508260600151156115f1576080830151600a90610e106115b88542611b61565b6115c29190611b8e565b6115cc9084611bb0565b6115d69190611bb0565b6115e09190611b8e565b6115ea9085611bcf565b935061161f565b610e106115fe8342611b61565b6116089190611b8e565b6116129082611bb0565b61161c9085611bcf565b93505b5050505b9392505050565b6000546001600160a01b031633146116545760405162461bcd60e51b815260040161086190611c38565b6001600160a01b0381166116b95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610861565b6116c28161194f565b50565b600a81815481106116d557600080fd5b6000918252602090912001546001600160a01b0316905081565b60005b33600090815260096020526040902054811015610c425733600090815260096020526040902080548391908390811061172d5761172d611b78565b906000526020600020015414156117db57336000908152600960205260409020805461175b90600190611b61565b8154811061176b5761176b611b78565b60009182526020808320909101543383526009909152604090912080548390811061179857611798611b78565b60009182526020808320909101929092553381526009909152604090208054806117c4576117c4611c8a565b600190038181906000526020600020016000905590555b806117e581611be7565b9150506116f2565b60005b600a54811015610c4257816001600160a01b0316600a828154811061181757611817611b78565b6000918252602090912001546001600160a01b031614156118e057600a805461184290600190611b61565b8154811061185257611852611b78565b600091825260209091200154600a80546001600160a01b03909216918390811061187e5761187e611b78565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600a8054806118bd576118bd611c8a565b600082815260209020810160001990810180546001600160a01b03191690550190555b806118ea81611be7565b9150506117f0565b6118fb8161199f565b6116c257600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b0383166001600160a01b031990911617905550565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000805b600a54811015611a0057826001600160a01b0316600a82815481106119ca576119ca611b78565b6000918252602090912001546001600160a01b031614156119ee5750600192915050565b806119f881611be7565b9150506119a3565b50600092915050565b6001600160a01b03811681146116c257600080fd5b600060208284031215611a3057600080fd5b813561162381611a09565b600060208284031215611a4d57600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611a955783516001600160a01b031683529284019291840191600101611a70565b50909695505050505050565b80151581146116c257600080fd5b600080600060608486031215611ac457600080fd5b833592506020840135611ad681611aa1565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b81811015611a9557835183529284019291840191600101611b03565b60008060408385031215611b3257600080fd5b8235611b3d81611a09565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b600082821015611b7357611b73611b4b565b500390565b634e487b7160e01b600052603260045260246000fd5b600082611bab57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611bca57611bca611b4b565b500290565b60008219821115611be257611be2611b4b565b500190565b6000600019821415611bfb57611bfb611b4b565b5060010190565b600060208284031215611c1457600080fd5b5051919050565b600060208284031215611c2d57600080fd5b815161162381611aa1565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611c7f57600080fd5b815161162381611a09565b634e487b7160e01b600052603160045260246000fdfea26469706673582212202acd8ef71e44353f5c7df399ddd6957dbc52c673956c94c53b298991bdc2d35e64736f6c634300080b0033000000000000000000000000e1ce7f289f2cb43306c980cf537f2e65d0a80a2d0000000000000000000000004c97e2a33d64cddf3ae0ffeb051b76a77368f524000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e

Deployed Bytecode

0x6080604052600436106101b75760003560e01c8063a028b98e116100ec578063d95c7d821161008a578063f15e268311610064578063f15e268314610247578063f1dfa04a14610546578063f2fde38b14610566578063fd5e6dd11461058657600080fd5b8063d95c7d82146104f0578063d98dfb3314610506578063ecd0c0c31461052657600080fd5b8063a9d5b54c116100c6578063a9d5b54c14610409578063befe4941146104a5578063c3ffb884146104bb578063c6ed8990146104d057600080fd5b8063a028b98e1461039c578063a071bf13146103bc578063a6f4ffa7146103e957600080fd5b80634720c3f011610159578063817b1cd211610133578063817b1cd2146103095780638da5cb5b1461031f5780639304bcae1461033d57806398300e181461037c57600080fd5b80634720c3f0146102cb5780636f9fb98a146102e1578063715018a6146102f457600080fd5b80632e1a7d4d116101955780632e1a7d4d14610249578063315a095d1461026957806343352d6114610289578063447da8a6146102ab57600080fd5b80630ec68ff2146101bc5780631a3944a8146101ef5780632e17de7814610227575b600080fd5b3480156101c857600080fd5b506101dc6101d7366004611a1e565b6105a6565b6040519081526020015b60405180910390f35b3480156101fb57600080fd5b5060035461020f906001600160a01b031681565b6040516001600160a01b0390911681526020016101e6565b34801561023357600080fd5b50610247610242366004611a3b565b6107bc565b005b34801561025557600080fd5b50610247610264366004611a3b565b610b77565b34801561027557600080fd5b50610247610284366004611a3b565b610c46565b34801561029557600080fd5b5061029e610d91565b6040516101e69190611a54565b3480156102b757600080fd5b506102476102c6366004611aaf565b610df3565b3480156102d757600080fd5b506101dc60065481565b3480156102ed57600080fd5b50476101dc565b34801561030057600080fd5b506102476111e7565b34801561031557600080fd5b506101dc60045481565b34801561032b57600080fd5b506000546001600160a01b031661020f565b34801561034957600080fd5b5061036c610358366004611a3b565b600090815260086020526040902054151590565b60405190151581526020016101e6565b34801561038857600080fd5b5060025461020f906001600160a01b031681565b3480156103a857600080fd5b5061036c6103b7366004611a1e565b61121d565b3480156103c857600080fd5b506103dc6103d7366004611a1e565b611230565b6040516101e69190611ae7565b3480156103f557600080fd5b506101dc610404366004611b1f565b61129c565b34801561041557600080fd5b50610468610424366004611a3b565b60086020526000908152604090208054600182015460028301546003840154600490940154929391926001600160a01b03821692600160a01b90920460ff16919086565b6040805196875260208701959095526001600160a01b039093169385019390935215156060840152608083019190915260a082015260c0016101e6565b3480156104b157600080fd5b506101dc60055481565b3480156104c757600080fd5b506101dc6112cd565b3480156104dc57600080fd5b506102476104eb366004611a3b565b61133f565b3480156104fc57600080fd5b506101dc60075481565b34801561051257600080fd5b50610247610521366004611a3b565b6113a6565b34801561053257600080fd5b5060015461020f906001600160a01b031681565b34801561055257600080fd5b506101dc610561366004611b1f565b611491565b34801561057257600080fd5b50610247610581366004611a1e565b61162a565b34801561059257600080fd5b5061020f6105a1366004611a3b565b6116c5565b60008060015b6105b584611230565b5181116107b5576001600160a01b038416600090815260096020526040812060089082906105e4600186611b61565b815481106105f4576105f4611b78565b60009182526020808320909101548352828101939093526040918201812054808252600890935220600201549091506001600160a01b0390811690861614156107a2576000818152600860209081526040808320815160c0810183528154815260018083015494820185905260028301546001600160a01b03811694830194909452600160a01b90930460ff16151560608201526003820154608082015260049091015460a0820181905290939114156106b85750683635c9adc5dea0000061070b565b6103e88360a001516103e86106cd9190611b61565b6106d79190611b8e565b6106e3906101f4611bb0565b6106f590670de0b6b3a7640000611bb0565b61070890681b1ae4d6e2ef500000611bcf565b90505b610716601882611b8e565b9050826060015115610770576080830151600a90610e106107378542611b61565b6107419190611b8e565b61074b9084611bb0565b6107559190611bb0565b61075f9190611b8e565b6107699087611bcf565b955061079e565b610e1061077d8342611b61565b6107879190611b8e565b6107919082611bb0565b61079b9087611bcf565b95505b5050505b50806107ad81611be7565b9150506105ac565b5092915050565b600081815260086020908152604091829020825160c0810184528154815260018201549281019290925260028101546001600160a01b038116938301849052600160a01b900460ff1615156060830152600381015460808301526004015460a082015290331461086a5760405162461bcd60e51b81526020600482015260146024820152732cb7ba9030b932903737ba1030b71037bbb732b960611b60448201526064015b60405180910390fd5b602081015160a08201516000908190600114156108915750683635c9adc5dea000006108e4565b6103e88460a001516103e86108a69190611b61565b6108b09190611b8e565b6108bc906101f4611bb0565b6108ce90670de0b6b3a7640000611bb0565b6108e190681b1ae4d6e2ef500000611bcf565b90505b6108ef601882611b8e565b9050836060015115610949576080840151600a90610e106109108642611b61565b61091a9190611b8e565b6109249084611bb0565b61092e9190611bb0565b6109389190611b8e565b6109429083611bcf565b9150610977565b610e106109568442611b61565b6109609190611b8e565b61096a9082611bb0565b6109749083611bcf565b91505b6000858152600860205260408120818155600181018290556002810180546001600160a81b031916905560038101829055600401556109b5856116ef565b6001600460008282546109c89190611b61565b909155506109d790503361121d565b156109e5576109e5336117ed565b6001546040516370a0823160e01b815230600482015283916001600160a01b0316906370a0823190602401602060405180830381865afa158015610a2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a519190611c02565b1015610a905760405162461bcd60e51b815260206004820152600e60248201526d131a5b5a5d08115e18d95959195960921b6044820152606401610861565b6002546040516323b872dd60e01b8152306004820152336024820152604481018790526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015610ae257600080fd5b505af1158015610af6573d6000803e3d6000fd5b505060015460405163a9059cbb60e01b8152336004820152602481018690526001600160a01b03909116925063a9059cbb91506044016020604051808303816000875af1158015610b4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b6f9190611c1b565b505050505050565b6000546001600160a01b03163314610ba15760405162461bcd60e51b815260040161086190611c38565b47811115610c095760405162461bcd60e51b815260206004820152602f60248201527f596f752063616e206e6f74207769746864726177206d6f7265207468616e206360448201526e6f6e74726163742062616c616e636560881b6064820152608401610861565b600080546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015610c42573d6000803e3d6000fd5b5050565b6000546001600160a01b03163314610c705760405162461bcd60e51b815260040161086190611c38565b6001546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610cb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdc9190611c02565b1015610d1b5760405162461bcd60e51b815260206004820152600e60248201526d131a5b5a5d08115e18d95959195960921b6044820152606401610861565b60015460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044015b6020604051808303816000875af1158015610d6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c429190611c1b565b6060600a805480602002602001604051908101604052809291908181526020018280548015610de957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610dcb575b5050505050905090565b6002546040516331a9108f60e11b81526004810185905260009133916001600160a01b0390911690636352211e90602401602060405180830381865afa158015610e41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e659190611c6d565b6001600160a01b031614610eb05760405162461bcd60e51b8152602060048201526012602482015271125d081a5cc81b9bdd081e5bdd5c8813919560721b6044820152606401610861565b60008481526008602052604090205415610efd5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e4814dd185ad95960921b6044820152606401610861565b600160046000828254610f109190611bcf565b909155505033600081815260096020908152604082208054600181018255908352912001859055610f40906118f2565b600183151514156110e857600354600754604051627eeac760e11b815233600482015260248101919091526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015610f9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc19190611c02565b1115610fd357506001915060146110e8565b600354600654604051627eeac760e11b815233600482015260248101919091526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015611025573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110499190611c02565b111561105b575060019150600f6110e8565b600354600554604051627eeac760e11b815233600482015260248101919091526000916001600160a01b03169062fdd58e90604401602060405180830381865afa1580156110ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d19190611c02565b11156110e3575060019150600c6110e8565b600092505b6002546040516323b872dd60e01b8152336004820152306024820152604481018690526001600160a01b03909116906323b872dd90606401600060405180830381600087803b15801561113a57600080fd5b505af115801561114e573d6000803e3d6000fd5b50506040805160c08101825287815242602080830191825233838501908152981515606084019081526080840197885260a0840198895260009a8b526008909152929098209051815596516001880155945160028701805496511515600160a01b026001600160a81b03199097166001600160a01b03929092169190911795909517909455505160038401555160049092019190915550565b6000546001600160a01b031633146112115760405162461bcd60e51b815260040161086190611c38565b61121b600061194f565b565b600061122882611230565b511592915050565b6001600160a01b03811660009081526009602090815260409182902080548351818402810184019094528084526060939283018282801561129057602002820191906000526020600020905b81548152602001906001019080831161127c575b50505050509050919050565b600960205281600052604060002081815481106112b857600080fd5b90600052602060002001600091509150505481565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611316573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133a9190611c02565b905090565b6000546001600160a01b031633146113695760405162461bcd60e51b815260040161086190611c38565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401610d4e565b6000546001600160a01b031633146113d05760405162461bcd60e51b815260040161086190611c38565b60005b600a54811015610c4257600a81815481106113f0576113f0611b78565b600091825260209091200154600a80546001600160a01b03909216916108fc9161143e918590811061142457611424611b78565b6000918252602090912001546001600160a01b0316611230565b5160045461144c9086611b8e565b6114569190611bb0565b6040518115909202916000818181858888f1935050505015801561147e573d6000803e3d6000fd5b508061148981611be7565b9150506113d3565b60008181526008602052604081206002015481906001600160a01b0385811691161415611623576000838152600860209081526040808320815160c0810183528154815260018083015494820185905260028301546001600160a01b03811694830194909452600160a01b90930460ff16151560608201526003820154608082015260049091015460a0820181905290939114156115395750683635c9adc5dea0000061158c565b6103e88360a001516103e861154e9190611b61565b6115589190611b8e565b611564906101f4611bb0565b61157690670de0b6b3a7640000611bb0565b61158990681b1ae4d6e2ef500000611bcf565b90505b611597601882611b8e565b90508260600151156115f1576080830151600a90610e106115b88542611b61565b6115c29190611b8e565b6115cc9084611bb0565b6115d69190611bb0565b6115e09190611b8e565b6115ea9085611bcf565b935061161f565b610e106115fe8342611b61565b6116089190611b8e565b6116129082611bb0565b61161c9085611bcf565b93505b5050505b9392505050565b6000546001600160a01b031633146116545760405162461bcd60e51b815260040161086190611c38565b6001600160a01b0381166116b95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610861565b6116c28161194f565b50565b600a81815481106116d557600080fd5b6000918252602090912001546001600160a01b0316905081565b60005b33600090815260096020526040902054811015610c425733600090815260096020526040902080548391908390811061172d5761172d611b78565b906000526020600020015414156117db57336000908152600960205260409020805461175b90600190611b61565b8154811061176b5761176b611b78565b60009182526020808320909101543383526009909152604090912080548390811061179857611798611b78565b60009182526020808320909101929092553381526009909152604090208054806117c4576117c4611c8a565b600190038181906000526020600020016000905590555b806117e581611be7565b9150506116f2565b60005b600a54811015610c4257816001600160a01b0316600a828154811061181757611817611b78565b6000918252602090912001546001600160a01b031614156118e057600a805461184290600190611b61565b8154811061185257611852611b78565b600091825260209091200154600a80546001600160a01b03909216918390811061187e5761187e611b78565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600a8054806118bd576118bd611c8a565b600082815260209020810160001990810180546001600160a01b03191690550190555b806118ea81611be7565b9150506117f0565b6118fb8161199f565b6116c257600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80180546001600160a01b0383166001600160a01b031990911617905550565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000805b600a54811015611a0057826001600160a01b0316600a82815481106119ca576119ca611b78565b6000918252602090912001546001600160a01b031614156119ee5750600192915050565b806119f881611be7565b9150506119a3565b50600092915050565b6001600160a01b03811681146116c257600080fd5b600060208284031215611a3057600080fd5b813561162381611a09565b600060208284031215611a4d57600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611a955783516001600160a01b031683529284019291840191600101611a70565b50909695505050505050565b80151581146116c257600080fd5b600080600060608486031215611ac457600080fd5b833592506020840135611ad681611aa1565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b81811015611a9557835183529284019291840191600101611b03565b60008060408385031215611b3257600080fd5b8235611b3d81611a09565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b600082821015611b7357611b73611b4b565b500390565b634e487b7160e01b600052603260045260246000fd5b600082611bab57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611bca57611bca611b4b565b500290565b60008219821115611be257611be2611b4b565b500190565b6000600019821415611bfb57611bfb611b4b565b5060010190565b600060208284031215611c1457600080fd5b5051919050565b600060208284031215611c2d57600080fd5b815161162381611aa1565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611c7f57600080fd5b815161162381611a09565b634e487b7160e01b600052603160045260246000fdfea26469706673582212202acd8ef71e44353f5c7df399ddd6957dbc52c673956c94c53b298991bdc2d35e64736f6c634300080b0033

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

000000000000000000000000e1ce7f289f2cb43306c980cf537f2e65d0a80a2d0000000000000000000000004c97e2a33d64cddf3ae0ffeb051b76a77368f524000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e

-----Decoded View---------------
Arg [0] : token (address): 0xE1Ce7F289F2cB43306c980CF537f2e65d0A80a2d
Arg [1] : nft (address): 0x4C97e2A33d64cDdF3Ae0fFEB051b76A77368F524
Arg [2] : boostToken (address): 0x495f947276749Ce646f68AC8c248420045cb7b5e

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000e1ce7f289f2cb43306c980cf537f2e65d0a80a2d
Arg [1] : 0000000000000000000000004c97e2a33d64cddf3ae0ffeb051b76a77368f524
Arg [2] : 000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5e


Deployed Bytecode Sourcemap

84933:8064:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89707:1024;;;;;;;;;;-1:-1:-1;89707:1024:0;;;;;:::i;:::-;;:::i;:::-;;;548:25:1;;;536:2;521:18;89707:1024:0;;;;;;;;85086:26;;;;;;;;;;-1:-1:-1;85086:26:0;;;;-1:-1:-1;;;;;85086:26:0;;;;;;-1:-1:-1;;;;;764:32:1;;;746:51;;734:2;719:18;85086:26:0;584:219:1;87262:1090:0;;;;;;;;;;-1:-1:-1;87262:1090:0;;;;;:::i;:::-;;:::i;:::-;;92785:207;;;;;;;;;;-1:-1:-1;92785:207:0;;;;;:::i;:::-;;:::i;91899:192::-;;;;;;;;;;-1:-1:-1;91899:192:0;;;;;:::i;:::-;;:::i;89026:92::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;86050:1204::-;;;;;;;;;;-1:-1:-1;86050:1204:0;;;;;:::i;:::-;;:::i;85364:25::-;;;;;;;;;;;;;;;;92360:106;;;;;;;;;;-1:-1:-1;92437:21:0;92360:106;;13654:94;;;;;;;;;;;;;:::i;85295:26::-;;;;;;;;;;;;;;;;13003:87;;;;;;;;;;-1:-1:-1;13049:7:0;13076:6;-1:-1:-1;;;;;13076:6:0;13003:87;;92222:130;;;;;;;;;;-1:-1:-1;92222:130:0;;;;;:::i;:::-;92284:4;92308:23;;;:14;:23;;;;;:31;:36;;;92222:130;;;;2534:14:1;;2527:22;2509:41;;2497:2;2482:18;92222:130:0;2369:187:1;85055:18:0;;;;;;;;;;-1:-1:-1;85055:18:0;;;;-1:-1:-1;;;;;85055:18:0;;;89126:122;;;;;;;;;;-1:-1:-1;89126:122:0;;;;;:::i;:::-;;:::i;91631:126::-;;;;;;;;;;-1:-1:-1;91631:126:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;85489:56::-;;;;;;;;;;-1:-1:-1;85489:56:0;;;;;:::i;:::-;;:::i;85435:47::-;;;;;;;;;;-1:-1:-1;85435:47:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;85435:47:0;;;-1:-1:-1;;;85435:47:0;;;;;;;;;;;;;4022:25:1;;;4078:2;4063:18;;4056:34;;;;-1:-1:-1;;;;;4126:32:1;;;4106:18;;;4099:60;;;;4202:14;4195:22;4190:2;4175:18;;4168:50;4249:3;4234:19;;4227:35;;;;4146:3;4278:19;;4271:35;4009:3;3994:19;85435:47:0;3741:571:1;85330:27:0;;;;;;;;;;;;;;;;92099:115;;;;;;;;;;;;;:::i;91765:126::-;;;;;;;;;;-1:-1:-1;91765:126:0;;;;;:::i;:::-;;:::i;85396:30::-;;;;;;;;;;;;;;;;92545:232;;;;;;;;;;-1:-1:-1;92545:232:0;;;;;:::i;:::-;;:::i;85021:19::-;;;;;;;;;;-1:-1:-1;85021:19:0;;;;-1:-1:-1;;;;;85021:19:0;;;90739:884;;;;;;;;;;-1:-1:-1;90739:884:0;;;;;:::i;:::-;;:::i;13903:192::-;;;;;;;;;;-1:-1:-1;13903:192:0;;;;;:::i;:::-;;:::i;85554:24::-;;;;;;;;;;-1:-1:-1;85554:24:0;;;;;:::i;:::-;;:::i;89707:1024::-;89764:7;;89829:1;89813:887;89837:17;89848:5;89837:10;:17::i;:::-;:24;89832:1;:29;89813:887;;-1:-1:-1;;;;;89916:26:0;;89883:15;89916:26;;;:19;:26;;;;;89901:14;;89883:15;;89943:3;89945:1;89943;:3;:::i;:::-;89916:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;89901:47;;;;;;;;;;;;;;;:55;89975:23;;;:14;:23;;;;:29;;;89901:55;;-1:-1:-1;;;;;;89975:29:0;;;:38;;;;89971:718;;;90034:19;90056:23;;;:14;:23;;;;;;;;90034:45;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;90034:45:0;;;;;;;;;-1:-1:-1;;;90034:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:19;90188:16;90185:193;;;-1:-1:-1;90237:10:0;90185:193;;;90338:4;90325:6;:11;;;90318:4;:18;;;;:::i;:::-;90317:25;;;;:::i;:::-;90316:31;;90344:3;90316:31;:::i;:::-;90315:43;;90351:7;90315:43;:::i;:::-;90303:55;;:9;:55;:::i;:::-;90294:64;;90185:193;90405:11;90414:2;90405:6;:11;:::i;:::-;90396:20;;90438:6;:12;;;90435:239;;;90534:11;;;;90549:2;;90526:4;90496:26;90514:8;90496:15;:26;:::i;:::-;90495:35;;;;:::i;:::-;90485:46;;:6;:46;:::i;:::-;:60;;;;:::i;:::-;90484:67;;;;:::i;:::-;90474:77;;;;:::i;:::-;;;90435:239;;;90649:4;90619:26;90637:8;90619:15;:26;:::i;:::-;90618:35;;;;:::i;:::-;90608:46;;:6;:46;:::i;:::-;90598:56;;;;:::i;:::-;;;90435:239;90015:674;;;89971:718;-1:-1:-1;89863:3:0;;;;:::i;:::-;;;;89813:887;;;-1:-1:-1;90717:6:0;89707:1024;-1:-1:-1;;89707:1024:0:o;87262:1090::-;87314:19;87336:23;;;:14;:23;;;;;;;;;87314:45;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;87314:45:0;;;;;;;;-1:-1:-1;;;87314:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;87394:10;87378:26;87370:59;;;;-1:-1:-1;;;87370:59:0;;5803:2:1;87370:59:0;;;5785:21:1;5842:2;5822:18;;;5815:30;-1:-1:-1;;;5861:18:1;;;5854:50;5921:18;;87370:59:0;;;;;;;;;87459:16;;;;87543:11;;;;87440:16;;;;87558:1;87543:16;87540:161;;;-1:-1:-1;87584:10:0;87540:161;;;87669:4;87656:6;:11;;;87649:4;:18;;;;:::i;:::-;87648:25;;;;:::i;:::-;87647:31;;87675:3;87647:31;:::i;:::-;87646:43;;87682:7;87646:43;:::i;:::-;87634:55;;:9;:55;:::i;:::-;87625:64;;87540:161;87720:11;87729:2;87720:6;:11;:::i;:::-;87711:20;;87745:6;:12;;;87742:207;;;87833:11;;;;87848:2;;87825:4;87795:26;87813:8;87795:15;:26;:::i;:::-;87794:35;;;;:::i;:::-;87784:46;;:6;:46;:::i;:::-;:60;;;;:::i;:::-;87783:67;;;;:::i;:::-;87773:77;;;;:::i;:::-;;;87742:207;;;87932:4;87902:26;87920:8;87902:15;:26;:::i;:::-;87901:35;;;;:::i;:::-;87891:46;;:6;:46;:::i;:::-;87881:56;;;;:::i;:::-;;;87742:207;87966:23;;;;:14;:23;;;;;87959:30;;;;;;;;;;;;;;-1:-1:-1;;;;;;87959:30:0;;;;;;;;;;;;88000:34;87981:7;88000:25;:34::i;:::-;88060:1;88045:11;;:16;;;;;;;:::i;:::-;;;;-1:-1:-1;88075:29:0;;-1:-1:-1;88093:10:0;88075:17;:29::i;:::-;88072:84;;;88120:24;88133:10;88120:12;:24::i;:::-;88174:6;;:31;;-1:-1:-1;;;88174:31:0;;88199:4;88174:31;;;746:51:1;88209:6:0;;-1:-1:-1;;;;;88174:6:0;;:16;;719:18:1;;88174:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;88166:68;;;;-1:-1:-1;;;88166:68:0;;6341:2:1;88166:68:0;;;6323:21:1;6380:2;6360:18;;;6353:30;-1:-1:-1;;;6399:18:1;;;6392:44;6453:18;;88166:68:0;6139:338:1;88166:68:0;88245:4;;:53;;-1:-1:-1;;;88245:53:0;;88271:4;88245:53;;;6722:34:1;88278:10:0;6772:18:1;;;6765:43;6824:18;;;6817:34;;;-1:-1:-1;;;;;88245:4:0;;;;:17;;6657:18:1;;88245:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;88309:6:0;;:35;;-1:-1:-1;;;88309:35:0;;88325:10;88309:35;;;7036:51:1;7103:18;;;7096:34;;;-1:-1:-1;;;;;88309:6:0;;;;-1:-1:-1;88309:15:0;;-1:-1:-1;7009:18:1;;88309:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;87303:1049;;;;87262:1090;:::o;92785:207::-;13049:7;13076:6;-1:-1:-1;;;;;13076:6:0;11881:10;13223:23;13215:68;;;;-1:-1:-1;;;13215:68:0;;;;;;;:::i;:::-;92867:21:::1;92856:7;:32;;92848:91;;;::::0;-1:-1:-1;;;92848:91:0;;7954:2:1;92848:91:0::1;::::0;::::1;7936:21:1::0;7993:2;7973:18;;;7966:30;8032:34;8012:18;;;8005:62;-1:-1:-1;;;8083:18:1;;;8076:45;8138:19;;92848:91:0::1;7752:411:1::0;92848:91:0::1;13049:7:::0;13076:6;;92950:34:::1;::::0;-1:-1:-1;;;;;13076:6:0;;;;92950:34;::::1;;;::::0;92976:7;;92950:34;13049:7;92950:34;92976:7;13076:6;92950:34;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;92785:207:::0;:::o;91899:192::-;13049:7;13076:6;-1:-1:-1;;;;;13076:6:0;11881:10;13223:23;13215:68;;;;-1:-1:-1;;;13215:68:0;;;;;;;:::i;:::-;91975:6:::1;::::0;:31:::1;::::0;-1:-1:-1;;;91975:31:0;;92000:4:::1;91975:31;::::0;::::1;746:51:1::0;92010:7:0;;-1:-1:-1;;;;;91975:6:0::1;::::0;:16:::1;::::0;719:18:1;;91975:31:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:42;;91967:69;;;::::0;-1:-1:-1;;;91967:69:0;;6341:2:1;91967:69:0::1;::::0;::::1;6323:21:1::0;6380:2;6360:18;;;6353:30;-1:-1:-1;;;6399:18:1;;;6392:44;6453:18;;91967:69:0::1;6139:338:1::0;91967:69:0::1;92047:6;::::0;:36:::1;::::0;-1:-1:-1;;;92047:36:0;;92063:10:::1;92047:36;::::0;::::1;7036:51:1::0;7103:18;;;7096:34;;;-1:-1:-1;;;;;92047:6:0;;::::1;::::0;:15:::1;::::0;7009:18:1;;92047:36:0::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;89026:92::-:0;89068:16;89103:7;89096:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;89096:14:0;;;;;;;;;;;;;;;;;;;;;;;89026:92;:::o;86050:1204::-;86164:4;;:21;;-1:-1:-1;;;86164:21:0;;;;;548:25:1;;;86128:13:0;;86189:10;;-1:-1:-1;;;;;86164:4:0;;;;:12;;521:18:1;;86164:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;86164:35:0;;86156:66;;;;-1:-1:-1;;;86156:66:0;;8626:2:1;86156:66:0;;;8608:21:1;8665:2;8645:18;;;8638:30;-1:-1:-1;;;8684:18:1;;;8677:48;8742:18;;86156:66:0;8424:342:1;86156:66:0;86241:23;;;;:14;:23;;;;;:31;:36;86233:63;;;;-1:-1:-1;;;86233:63:0;;8973:2:1;86233:63:0;;;8955:21:1;9012:2;8992:18;;;8985:30;-1:-1:-1;;;9031:18:1;;;9024:44;9085:18;;86233:63:0;8771:338:1;86233:63:0;86322:1;86307:11;;:16;;;;;;;:::i;:::-;;;;-1:-1:-1;;86354:10:0;86334:31;;;;:19;:31;;;;;;;:45;;;;;;;;;;;;;;;;86390:21;;:9;:21::i;:::-;86435:4;86425:14;;;;86422:501;;;86458:11;;86491:15;;86458:49;;-1:-1:-1;;;86458:49:0;;86480:10;86458:49;;;7036:51:1;7103:18;;;7096:34;;;;86510:1:0;;-1:-1:-1;;;;;86458:11:0;;:21;;7009:18:1;;86458:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:53;86455:457;;;-1:-1:-1;86540:4:0;;-1:-1:-1;86571:2:0;86455:457;;;86597:11;;86630:10;;86597:44;;-1:-1:-1;;;86597:44:0;;86619:10;86597:44;;;7036:51:1;7103:18;;;7096:34;;;;86644:1:0;;-1:-1:-1;;;;;86597:11:0;;:21;;7009:18:1;;86597:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;86594:318;;;-1:-1:-1;86674:4:0;;-1:-1:-1;86705:2:0;86594:318;;;86731:11;;86764:12;;86731:46;;-1:-1:-1;;;86731:46:0;;86753:10;86731:46;;;7036:51:1;7103:18;;;7096:34;;;;86780:1:0;;-1:-1:-1;;;;;86731:11:0;;:21;;7009:18:1;;86731:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:50;86728:184;;;-1:-1:-1;86810:4:0;;-1:-1:-1;86841:2:0;86728:184;;;86891:5;86882:14;;86728:184;86933:4;;:53;;-1:-1:-1;;;86933:53:0;;86951:10;86933:53;;;6722:34:1;86971:4:0;6772:18:1;;;6765:43;6824:18;;;6817:34;;;-1:-1:-1;;;;;86933:4:0;;;;:17;;6657:18:1;;86933:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;87023:223:0;;;;;;;;;;;87135:15;87023:223;;;;;;;87051:10;87023:223;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;86997:23:0;;;:14;:23;;;;;;;:249;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;86997:249:0;-1:-1:-1;;;;;;86997:249:0;;;-1:-1:-1;;;;;86997:249:0;;;;;;;;;;;;;;;-1:-1:-1;86997:249:0;;;;;;;;;;;;;;-1:-1:-1;86050:1204:0:o;13654:94::-;13049:7;13076:6;-1:-1:-1;;;;;13076:6:0;11881:10;13223:23;13215:68;;;;-1:-1:-1;;;13215:68:0;;;;;;;:::i;:::-;13719:21:::1;13737:1;13719:9;:21::i;:::-;13654:94::o:0;89126:122::-;89188:4;89211:17;89222:5;89211:10;:17::i;:::-;:24;:29;;89126:122;-1:-1:-1;;89126:122:0:o;91631:126::-;-1:-1:-1;;;;;91723:26:0;;;;;;:19;:26;;;;;;;;;91716:33;;;;;;;;;;;;;;;;;91687:16;;91716:33;;;91723:26;91716:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91631:126;;;:::o;85489:56::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;92099:115::-;92175:6;;:31;;-1:-1:-1;;;92175:31:0;;92200:4;92175:31;;;746:51:1;92148:7:0;;-1:-1:-1;;;;;92175:6:0;;:16;;719:18:1;;92175:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;92168:38;;92099:115;:::o;91765:126::-;13049:7;13076:6;-1:-1:-1;;;;;13076:6:0;11881:10;13223:23;13215:68;;;;-1:-1:-1;;;13215:68:0;;;;;;;:::i;:::-;91828:6:::1;::::0;:55:::1;::::0;-1:-1:-1;;;91828:55:0;;91848:10:::1;91828:55;::::0;::::1;6722:34:1::0;91868:4:0::1;6772:18:1::0;;;6765:43;6824:18;;;6817:34;;;-1:-1:-1;;;;;91828:6:0;;::::1;::::0;:19:::1;::::0;6657:18:1;;91828:55:0::1;6482:375:1::0;92545:232:0;13049:7;13076:6;-1:-1:-1;;;;;13076:6:0;11881:10;13223:23;13215:68;;;;-1:-1:-1;;;13215:68:0;;;;;;;:::i;:::-;92624:9:::1;92619:151;92642:7;:14:::0;92638:18;::::1;92619:151;;;92686:7;92694:1;92686:10;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;92739:7:::1;:10:::0;;-1:-1:-1;;;;;92686:10:0;;::::1;::::0;92678:80:::1;::::0;92728:22:::1;::::0;92747:1;;92739:10;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;92739:10:0::1;92728;:22::i;:::-;:29:::0;92715:11:::1;::::0;92708:18:::1;::::0;:6;:18:::1;:::i;:::-;92707:50;;;;:::i;:::-;92678:80;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;::::1;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;92658:3:0;::::1;::::0;::::1;:::i;:::-;;;;92619:151;;90739:884:::0;90819:7;90876:24;;;:14;:24;;;;;:30;;;90819:7;;-1:-1:-1;;;;;90876:39:0;;;:30;;:39;90872:720;;;90936:19;90958:24;;;:14;:24;;;;;;;;90936:46;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;90936:46:0;;;;;;;;;-1:-1:-1;;;90936:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:19;91091:16;91088:193;;;-1:-1:-1;91140:10:0;91088:193;;;91241:4;91228:6;:11;;;91221:4;:18;;;;:::i;:::-;91220:25;;;;:::i;:::-;91219:31;;91247:3;91219:31;:::i;:::-;91218:43;;91254:7;91218:43;:::i;:::-;91206:55;;:9;:55;:::i;:::-;91197:64;;91088:193;91308:11;91317:2;91308:6;:11;:::i;:::-;91299:20;;91341:6;:12;;;91338:239;;;91437:11;;;;91452:2;;91429:4;91399:26;91417:8;91399:15;:26;:::i;:::-;91398:35;;;;:::i;:::-;91388:46;;:6;:46;:::i;:::-;:60;;;;:::i;:::-;91387:67;;;;:::i;:::-;91377:77;;;;:::i;:::-;;;91338:239;;;91552:4;91522:26;91540:8;91522:15;:26;:::i;:::-;91521:35;;;;:::i;:::-;91511:46;;:6;:46;:::i;:::-;91501:56;;;;:::i;:::-;;;91338:239;90917:675;;;90872:720;91609:6;90739:884;-1:-1:-1;;;90739:884:0:o;13903:192::-;13049:7;13076:6;-1:-1:-1;;;;;13076:6:0;11881:10;13223:23;13215:68;;;;-1:-1:-1;;;13215:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;13992:22:0;::::1;13984:73;;;::::0;-1:-1:-1;;;13984:73:0;;9316:2:1;13984:73:0::1;::::0;::::1;9298:21:1::0;9355:2;9335:18;;;9328:30;9394:34;9374:18;;;9367:62;-1:-1:-1;;;9445:18:1;;;9438:36;9491:19;;13984:73:0::1;9114:402:1::0;13984:73:0::1;14068:19;14078:8;14068:9;:19::i;:::-;13903:192:::0;:::o;85554:24::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;85554:24:0;;-1:-1:-1;85554:24:0;:::o;89256:443::-;89333:9;89328:364;89371:10;89351:31;;;;:19;:31;;;;;:38;89347:42;;89328:364;;;89438:10;89418:31;;;;:19;:31;;;;;:34;;89456:7;;89418:31;89450:1;;89418:34;;;;;;:::i;:::-;;;;;;;;;:45;89415:262;;;89544:10;89524:31;;;;:19;:31;;;;;89556:38;;:40;;89595:1;;89556:40;:::i;:::-;89524:73;;;;;;;;:::i;:::-;;;;;;;;;;;;;89507:10;89487:31;;:19;:31;;;;;;;:34;;89519:1;;89487:34;;;;;;:::i;:::-;;;;;;;;;;;;:110;;;;89640:10;89620:31;;:19;:31;;;;;;:37;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;89415:262;89391:3;;;;:::i;:::-;;;;89328:364;;88754:264;88816:9;88811:200;88834:7;:14;88830:18;;88811:200;;;88887:5;-1:-1:-1;;;;;88873:19:0;:7;88881:1;88873:10;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;88873:10:0;:19;88870:130;;;88925:7;88933:14;;:18;;88950:1;;88933:18;:::i;:::-;88925:27;;;;;;;;:::i;:::-;;;;;;;;;;;88912:7;:10;;-1:-1:-1;;;;;88925:27:0;;;;88920:1;;88912:10;;;;;;:::i;:::-;;;;;;;;;:40;;;;;-1:-1:-1;;;;;88912:40:0;;;;;-1:-1:-1;;;;;88912:40:0;;;;;;88971:7;:13;;;;;;;:::i;:::-;;;;;;;;;;-1:-1:-1;;88971:13:0;;;;;-1:-1:-1;;;;;;88971:13:0;;;;;;88870:130;88850:3;;;;:::i;:::-;;;;88811:200;;88360:130;88418:18;88430:5;88418:11;:18::i;:::-;88414:69;;88452:7;:19;;;;;;;-1:-1:-1;88452:19:0;;;;;;;;-1:-1:-1;;;;;88452:19:0;;-1:-1:-1;;;;;;88452:19:0;;;;;;88360:130;:::o;14103:173::-;14159:16;14178:6;;-1:-1:-1;;;;;14195:17:0;;;-1:-1:-1;;;;;;14195:17:0;;;;;;14228:40;;14178:6;;;;;;;14228:40;;14159:16;14228:40;14148:128;14103:173;:::o;88498:248::-;88557:4;;88574:142;88598:7;:14;88594:18;;88574:142;;;88652:5;-1:-1:-1;;;;;88638:19:0;:7;88646:1;88638:10;;;;;;;;:::i;:::-;;;;;;;;;;;-1:-1:-1;;;;;88638:10:0;:19;88634:71;;;-1:-1:-1;88685:4:0;;88498:248;-1:-1:-1;;88498:248:0:o;88634:71::-;88614:3;;;;:::i;:::-;;;;88574:142;;;-1:-1:-1;88733:5:0;;88498:248;-1:-1:-1;;88498:248:0:o;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;150:247;209:6;262:2;250:9;241:7;237:23;233:32;230:52;;;278:1;275;268:12;230:52;317:9;304:23;336:31;361:5;336:31;:::i;808:180::-;867:6;920:2;908:9;899:7;895:23;891:32;888:52;;;936:1;933;926:12;888:52;-1:-1:-1;959:23:1;;808:180;-1:-1:-1;808:180:1:o;993:658::-;1164:2;1216:21;;;1286:13;;1189:18;;;1308:22;;;1135:4;;1164:2;1387:15;;;;1361:2;1346:18;;;1135:4;1430:195;1444:6;1441:1;1438:13;1430:195;;;1509:13;;-1:-1:-1;;;;;1505:39:1;1493:52;;1600:15;;;;1565:12;;;;1541:1;1459:9;1430:195;;;-1:-1:-1;1642:3:1;;993:658;-1:-1:-1;;;;;;993:658:1:o;1656:118::-;1742:5;1735:13;1728:21;1721:5;1718:32;1708:60;;1764:1;1761;1754:12;1779:377;1853:6;1861;1869;1922:2;1910:9;1901:7;1897:23;1893:32;1890:52;;;1938:1;1935;1928:12;1890:52;1974:9;1961:23;1951:33;;2034:2;2023:9;2019:18;2006:32;2047:28;2069:5;2047:28;:::i;:::-;1779:377;;2094:5;;-1:-1:-1;;;2146:2:1;2131:18;;;;2118:32;;1779:377::o;2784:632::-;2955:2;3007:21;;;3077:13;;2980:18;;;3099:22;;;2926:4;;2955:2;3178:15;;;;3152:2;3137:18;;;2926:4;3221:169;3235:6;3232:1;3229:13;3221:169;;;3296:13;;3284:26;;3365:15;;;;3330:12;;;;3257:1;3250:9;3221:169;;3421:315;3489:6;3497;3550:2;3538:9;3529:7;3525:23;3521:32;3518:52;;;3566:1;3563;3556:12;3518:52;3605:9;3592:23;3624:31;3649:5;3624:31;:::i;:::-;3674:5;3726:2;3711:18;;;;3698:32;;-1:-1:-1;;;3421:315:1:o;4539:127::-;4600:10;4595:3;4591:20;4588:1;4581:31;4631:4;4628:1;4621:15;4655:4;4652:1;4645:15;4671:125;4711:4;4739:1;4736;4733:8;4730:34;;;4744:18;;:::i;:::-;-1:-1:-1;4781:9:1;;4671:125::o;4801:127::-;4862:10;4857:3;4853:20;4850:1;4843:31;4893:4;4890:1;4883:15;4917:4;4914:1;4907:15;4933:217;4973:1;4999;4989:132;;5043:10;5038:3;5034:20;5031:1;5024:31;5078:4;5075:1;5068:15;5106:4;5103:1;5096:15;4989:132;-1:-1:-1;5135:9:1;;4933:217::o;5155:168::-;5195:7;5261:1;5257;5253:6;5249:14;5246:1;5243:21;5238:1;5231:9;5224:17;5220:45;5217:71;;;5268:18;;:::i;:::-;-1:-1:-1;5308:9:1;;5155:168::o;5328:128::-;5368:3;5399:1;5395:6;5392:1;5389:13;5386:39;;;5405:18;;:::i;:::-;-1:-1:-1;5441:9:1;;5328:128::o;5461:135::-;5500:3;-1:-1:-1;;5521:17:1;;5518:43;;;5541:18;;:::i;:::-;-1:-1:-1;5588:1:1;5577:13;;5461:135::o;5950:184::-;6020:6;6073:2;6061:9;6052:7;6048:23;6044:32;6041:52;;;6089:1;6086;6079:12;6041:52;-1:-1:-1;6112:16:1;;5950:184;-1:-1:-1;5950:184:1:o;7141:245::-;7208:6;7261:2;7249:9;7240:7;7236:23;7232:32;7229:52;;;7277:1;7274;7267:12;7229:52;7309:9;7303:16;7328:28;7350:5;7328:28;:::i;7391:356::-;7593:2;7575:21;;;7612:18;;;7605:30;7671:34;7666:2;7651:18;;7644:62;7738:2;7723:18;;7391:356::o;8168:251::-;8238:6;8291:2;8279:9;8270:7;8266:23;8262:32;8259:52;;;8307:1;8304;8297:12;8259:52;8339:9;8333:16;8358:31;8383:5;8358:31;:::i;9521:127::-;9582:10;9577:3;9573:20;9570:1;9563:31;9613:4;9610:1;9603:15;9637:4;9634:1;9627:15

Swarm Source

ipfs://2acd8ef71e44353f5c7df399ddd6957dbc52c673956c94c53b298991bdc2d35e

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.