ETH Price: $2,498.41 (-2.06%)
Gas: 4.17 Gwei

Contract

0x985A5860F3BD00b8FE6BFf3e9048bF9435AE9091
 
Transaction Hash
Method
Block
From
To
Stack209086322024-10-06 19:34:1118 days ago1728243251IN
0x985A5860...435AE9091
0 ETH0.000936495.91053944
Un Stack208775472024-10-02 11:34:2322 days ago1727868863IN
0x985A5860...435AE9091
0 ETH0.000851686.90003942
Stack208571602024-09-29 15:21:4725 days ago1727623307IN
0x985A5860...435AE9091
0 ETH0.0018803211.86736659
Stack208048252024-09-22 8:08:4732 days ago1726992527IN
0x985A5860...435AE9091
0 ETH0.00179311.3162515
Stack206671582024-09-03 2:46:4752 days ago1725331607IN
0x985A5860...435AE9091
0 ETH0.000233661.47474018
Un Stack206465422024-08-31 5:44:1154 days ago1725083051IN
0x985A5860...435AE9091
0 ETH0.000145821.18139386
Un Stack206350872024-08-29 15:18:5956 days ago1724944739IN
0x985A5860...435AE9091
0 ETH0.000464365.20397405
Un Stack206350742024-08-29 15:16:2356 days ago1724944583IN
0x985A5860...435AE9091
0 ETH0.000653825.29705676
Un Stack205260312024-08-14 9:39:3571 days ago1723628375IN
0x985A5860...435AE9091
0 ETH0.000420993.41073325
Un Stack205235742024-08-14 1:25:5972 days ago1723598759IN
0x985A5860...435AE9091
0 ETH0.000116640.94498642
Un Stack205127582024-08-12 13:13:4773 days ago1723468427IN
0x985A5860...435AE9091
0 ETH0.000420063.40323531
Stack204861682024-08-08 20:09:5977 days ago1723147799IN
0x985A5860...435AE9091
0 ETH0.000586883.81972878
Un Stack204855972024-08-08 18:15:2377 days ago1723140923IN
0x985A5860...435AE9091
0 ETH0.000428114.79775941
Un Stack204855952024-08-08 18:14:5977 days ago1723140899IN
0x985A5860...435AE9091
0 ETH0.000462615.1844161
Un Stack204855922024-08-08 18:14:2377 days ago1723140863IN
0x985A5860...435AE9091
0 ETH0.000437734.90563637
Un Stack204855892024-08-08 18:13:4777 days ago1723140827IN
0x985A5860...435AE9091
0 ETH0.000432444.8462681
Un Stack204855832024-08-08 18:12:3577 days ago1723140755IN
0x985A5860...435AE9091
0 ETH0.000661915.36260891
Un Stack204835612024-08-08 11:26:5977 days ago1723116419IN
0x985A5860...435AE9091
0 ETH0.000426554.78027182
Un Stack204835582024-08-08 11:26:2377 days ago1723116383IN
0x985A5860...435AE9091
0 ETH0.000426174.77606027
Un Stack204835532024-08-08 11:25:2377 days ago1723116323IN
0x985A5860...435AE9091
0 ETH0.000530114.98548416
Un Stack204650352024-08-05 21:25:2380 days ago1722893123IN
0x985A5860...435AE9091
0 ETH0.000627795.08618779
Stack204561562024-08-04 15:42:1181 days ago1722786131IN
0x985A5860...435AE9091
0 ETH0.0018749911.48579559
Stack204561532024-08-04 15:41:3581 days ago1722786095IN
0x985A5860...435AE9091
0 ETH0.0018710911.46189033
Un Stack204390242024-08-02 6:18:3583 days ago1722579515IN
0x985A5860...435AE9091
0 ETH0.000319523.00499901
Stack204093072024-07-29 2:42:3588 days ago1722220955IN
0x985A5860...435AE9091
0 ETH0.000292411.79126125
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
209086322024-10-06 19:34:1118 days ago1728243251
0x985A5860...435AE9091
0 ETH
209086322024-10-06 19:34:1118 days ago1728243251
0x985A5860...435AE9091
0 ETH
209086322024-10-06 19:34:1118 days ago1728243251
0x985A5860...435AE9091
0 ETH
209086322024-10-06 19:34:1118 days ago1728243251
0x985A5860...435AE9091
0 ETH
208775472024-10-02 11:34:2322 days ago1727868863
0x985A5860...435AE9091
0 ETH
208775472024-10-02 11:34:2322 days ago1727868863
0x985A5860...435AE9091
0 ETH
208571602024-09-29 15:21:4725 days ago1727623307
0x985A5860...435AE9091
0 ETH
208571602024-09-29 15:21:4725 days ago1727623307
0x985A5860...435AE9091
0 ETH
208571602024-09-29 15:21:4725 days ago1727623307
0x985A5860...435AE9091
0 ETH
208571602024-09-29 15:21:4725 days ago1727623307
0x985A5860...435AE9091
0 ETH
208048252024-09-22 8:08:4732 days ago1726992527
0x985A5860...435AE9091
0 ETH
208048252024-09-22 8:08:4732 days ago1726992527
0x985A5860...435AE9091
0 ETH
208048252024-09-22 8:08:4732 days ago1726992527
0x985A5860...435AE9091
0 ETH
208048252024-09-22 8:08:4732 days ago1726992527
0x985A5860...435AE9091
0 ETH
206671582024-09-03 2:46:4752 days ago1725331607
0x985A5860...435AE9091
0 ETH
206671582024-09-03 2:46:4752 days ago1725331607
0x985A5860...435AE9091
0 ETH
206671582024-09-03 2:46:4752 days ago1725331607
0x985A5860...435AE9091
0 ETH
206671582024-09-03 2:46:4752 days ago1725331607
0x985A5860...435AE9091
0 ETH
206465422024-08-31 5:44:1154 days ago1725083051
0x985A5860...435AE9091
0 ETH
206465422024-08-31 5:44:1154 days ago1725083051
0x985A5860...435AE9091
0 ETH
206350872024-08-29 15:18:5956 days ago1724944739
0x985A5860...435AE9091
0 ETH
206350872024-08-29 15:18:5956 days ago1724944739
0x985A5860...435AE9091
0 ETH
206350742024-08-29 15:16:2356 days ago1724944583
0x985A5860...435AE9091
0 ETH
206350742024-08-29 15:16:2356 days ago1724944583
0x985A5860...435AE9091
0 ETH
205260312024-08-14 9:39:3571 days ago1723628375
0x985A5860...435AE9091
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RagsToRichieStaking

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

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


// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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


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

pragma solidity ^0.8.0;

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

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


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

pragma solidity ^0.8.0;


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

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


// OpenZeppelin Contracts (last updated v4.7.0) (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`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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


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

pragma solidity ^0.8.0;


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

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

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

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


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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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


// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

// File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol


// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;


/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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


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

pragma solidity ^0.8.0;

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

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

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


// OpenZeppelin Contracts (last updated v4.7.0) (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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 {}

    /**
     * @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.
     * - `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 tokenId
    ) internal virtual {}
}

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


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

// File: contracts/RichieStacking.sol

//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;





contract RagsToRichieStaking is Ownable, ReentrancyGuard {

    struct Stack {
        address owner;
        uint card;
        uint richie;
    }
    
    mapping (uint => Stack) Stacked;

    // Address collection NFT
    ERC721 private collectionRichie;

    // Address collection NFT
    ERC721 private collectionRichieBank;

    // Staking is paused
    bool private isPaused;

    // Total NFT staked
    uint public totalStacked;

    constructor(ERC721 _collectionRichie, ERC721 _collectionRichieBank) {
        collectionRichie = _collectionRichie;
        collectionRichieBank = _collectionRichieBank;
    }

    /*
    * Function to register staker
    * @params _tokenId
    */
    function stack(uint  _richie, uint  _richieBank) external nonReentrant {
        require(isPaused == false, "Staking paused");
        require(collectionRichie.ownerOf(_richie) == msg.sender, "Not the owner");
        require(collectionRichieBank.ownerOf(_richieBank) == msg.sender, "Not the owner");
        require(Stacked[_richie].owner == address(0), "This token is already staked");

        collectionRichie.transferFrom(msg.sender, address(this), _richie);
        collectionRichieBank.transferFrom(msg.sender, address(this), _richieBank);

        Stacked[_richie].richie = _richie;
        Stacked[_richie].card = _richieBank;
        Stacked[_richie].owner = msg.sender;

        totalStacked += 1;
    }

    /*
    * Function to withraw NFT
    * @params _owner
    * @params _tokenId
    */
    function unStack(uint _richie) external nonReentrant {
        require(isPaused == false, "Staking paused");
        require(Stacked[_richie].owner == msg.sender, "Not the owner");

        // Transfert NFT to the owner
        collectionRichie.transferFrom(address(this), msg.sender, _richie);
        collectionRichieBank.transferFrom(address(this), msg.sender, Stacked[_richie].card);

        // Unstack from staking
        Stacked[_richie].richie = 0;
        Stacked[_richie].card = 0;
        Stacked[_richie].owner = address(0);
        totalStacked -= 1;
    }

    /*
    * Function to get richie by index
    * @params _richie
    */
    function getRichieOf(uint _richie) public view returns (Stack memory){
        return Stacked[_richie];
    }

    /*
    * Function to set the richie collection
    * @params _richie
    * @params _destination
    */
    function setCollectionRichie(ERC721 _collectionRichie) onlyOwner external {
        collectionRichie = _collectionRichie;
    }

    /*
    * Function to set the richie bank collection
    * @params _richie
    * @params _destination
    */
    function setCollectionRichieBank(ERC721 _collectionRichieBank) onlyOwner external {
        collectionRichieBank = _collectionRichieBank;
    }

    /*
    * Function to adjust stacking
    * @params _richie
    * @params _destination
    */
    function updateStacking(uint _index, uint _richie, uint _card, address _owner) onlyOwner external {
        Stacked[_index].richie = _richie;
        Stacked[_index].card = _card;
        Stacked[_index].owner = _owner;
    }

    /*
    * Function to transfer back a richie
    * @params _richie
    * @params _destination
    */
    function transferRichie(uint _richie, address _destination) onlyOwner external {
        collectionRichie.transferFrom(address(this), _destination, _richie);
    }

    /*
    * Function to transfer back a richie bank
    * @params _richieBank
    * @params _destination
    */
    function transferRichieBank(uint _richieBank, address _destination) onlyOwner external {
        collectionRichieBank.transferFrom(address(this), _destination, _richieBank);
    }

    // Functions admin

    /*
    * Function to pause staking
    * @params _isActive
    */
    function pauseStaking(bool _isActive) onlyOwner external {
        isPaused = _isActive;
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ERC721","name":"_collectionRichie","type":"address"},{"internalType":"contract ERC721","name":"_collectionRichieBank","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":[{"internalType":"uint256","name":"_richie","type":"uint256"}],"name":"getRichieOf","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"card","type":"uint256"},{"internalType":"uint256","name":"richie","type":"uint256"}],"internalType":"struct RagsToRichieStaking.Stack","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"pauseStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ERC721","name":"_collectionRichie","type":"address"}],"name":"setCollectionRichie","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ERC721","name":"_collectionRichieBank","type":"address"}],"name":"setCollectionRichieBank","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_richie","type":"uint256"},{"internalType":"uint256","name":"_richieBank","type":"uint256"}],"name":"stack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalStacked","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":"_richie","type":"uint256"},{"internalType":"address","name":"_destination","type":"address"}],"name":"transferRichie","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_richieBank","type":"uint256"},{"internalType":"address","name":"_destination","type":"address"}],"name":"transferRichieBank","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_richie","type":"uint256"}],"name":"unStack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"uint256","name":"_richie","type":"uint256"},{"internalType":"uint256","name":"_card","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"name":"updateStacking","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162001a1838038062001a18833981810160405281019062000037919062000232565b620000576200004b620000e860201b60201c565b620000f060201b60201c565b6001808190555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000279565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001e682620001b9565b9050919050565b6000620001fa82620001d9565b9050919050565b6200020c81620001ed565b81146200021857600080fd5b50565b6000815190506200022c8162000201565b92915050565b600080604083850312156200024c576200024b620001b4565b5b60006200025c858286016200021b565b92505060206200026f858286016200021b565b9150509250929050565b61178f80620002896000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80635769848c1161008c578063715018a611610066578063715018a6146101e65780638da5cb5b146101f0578063e7dc29a41461020e578063f2fde38b1461022a576100cf565b80635769848c1461019257806362280eb9146101ae57806362b22b48146101ca576100cf565b806329eae70d146100d4578063397d079e146100f25780633b42fad61461010e5780633c39b49e1461012a5780633d9995271461015a578063565e540214610176575b600080fd5b6100dc610246565b6040516100e9919061102a565b60405180910390f35b61010c600480360381019061010791906110d4565b61024c565b005b61012860048036038101906101239190611114565b6102e9565b005b610144600480360381019061013f919061117b565b610382565b6040516101519190611208565b60405180910390f35b610174600480360381019061016f91906110d4565b610419565b005b610190600480360381019061018b9190611261565b6104b6565b005b6101ac60048036038101906101a791906112c6565b610502565b005b6101c860048036038101906101c3919061117b565b610527565b005b6101e460048036038101906101df91906112f3565b610858565b005b6101ee610d84565b005b6101f8610d98565b6040516102059190611342565b60405180910390f35b61022860048036038101906102239190611261565b610dc1565b005b610244600480360381019061023f919061135d565b610e0d565b005b60055481565b610254610e90565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3083856040518463ffffffff1660e01b81526004016102b39392919061138a565b600060405180830381600087803b1580156102cd57600080fd5b505af11580156102e1573d6000803e3d6000fd5b505050505050565b6102f1610e90565b826002600086815260200190815260200160002060020181905550816002600086815260200190815260200160002060010181905550806002600086815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b61038a610fda565b600260008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815250509050919050565b610421610e90565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3083856040518463ffffffff1660e01b81526004016104809392919061138a565b600060405180830381600087803b15801561049a57600080fd5b505af11580156104ae573d6000803e3d6000fd5b505050505050565b6104be610e90565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61050a610e90565b80600460146101000a81548160ff02191690831515021790555050565b60026001540361056c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105639061141e565b60405180910390fd5b600260018190555060001515600460149054906101000a900460ff161515146105ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c19061148a565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461066e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610665906114f6565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3033846040518463ffffffff1660e01b81526004016106cd9392919061138a565b600060405180830381600087803b1580156106e757600080fd5b505af11580156106fb573d6000803e3d6000fd5b50505050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd303360026000868152602001908152602001600020600101546040518463ffffffff1660e01b81526004016107749392919061138a565b600060405180830381600087803b15801561078e57600080fd5b505af11580156107a2573d6000803e3d6000fd5b50505050600060026000838152602001908152602001600020600201819055506000600260008381526020019081526020016000206001018190555060006002600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600560008282546108479190611545565b925050819055506001808190555050565b60026001540361089d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108949061141e565b60405180910390fd5b600260018190555060001515600460149054906101000a900460ff161515146108fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f29061148a565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040161096d919061102a565b602060405180830381865afa15801561098a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ae919061158e565b73ffffffffffffffffffffffffffffffffffffffff1614610a04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fb906114f6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610a76919061102a565b602060405180830381865afa158015610a93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab7919061158e565b73ffffffffffffffffffffffffffffffffffffffff1614610b0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b04906114f6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba990611607565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401610c119392919061138a565b600060405180830381600087803b158015610c2b57600080fd5b505af1158015610c3f573d6000803e3d6000fd5b50505050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401610ca29392919061138a565b600060405180830381600087803b158015610cbc57600080fd5b505af1158015610cd0573d6000803e3d6000fd5b50505050816002600084815260200190815260200160002060020181905550806002600084815260200190815260200160002060010181905550336002600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160056000828254610d729190611627565b92505081905550600180819055505050565b610d8c610e90565b610d966000610f0e565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610dc9610e90565b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610e15610e90565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7b906116cd565b60405180910390fd5b610e8d81610f0e565b50565b610e98610fd2565b73ffffffffffffffffffffffffffffffffffffffff16610eb6610d98565b73ffffffffffffffffffffffffffffffffffffffff1614610f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0390611739565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6000819050919050565b61102481611011565b82525050565b600060208201905061103f600083018461101b565b92915050565b600080fd5b61105381611011565b811461105e57600080fd5b50565b6000813590506110708161104a565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006110a182611076565b9050919050565b6110b181611096565b81146110bc57600080fd5b50565b6000813590506110ce816110a8565b92915050565b600080604083850312156110eb576110ea611045565b5b60006110f985828601611061565b925050602061110a858286016110bf565b9150509250929050565b6000806000806080858703121561112e5761112d611045565b5b600061113c87828801611061565b945050602061114d87828801611061565b935050604061115e87828801611061565b925050606061116f878288016110bf565b91505092959194509250565b60006020828403121561119157611190611045565b5b600061119f84828501611061565b91505092915050565b6111b181611096565b82525050565b6111c081611011565b82525050565b6060820160008201516111dc60008501826111a8565b5060208201516111ef60208501826111b7565b50604082015161120260408501826111b7565b50505050565b600060608201905061121d60008301846111c6565b92915050565b600061122e82611096565b9050919050565b61123e81611223565b811461124957600080fd5b50565b60008135905061125b81611235565b92915050565b60006020828403121561127757611276611045565b5b60006112858482850161124c565b91505092915050565b60008115159050919050565b6112a38161128e565b81146112ae57600080fd5b50565b6000813590506112c08161129a565b92915050565b6000602082840312156112dc576112db611045565b5b60006112ea848285016112b1565b91505092915050565b6000806040838503121561130a57611309611045565b5b600061131885828601611061565b925050602061132985828601611061565b9150509250929050565b61133c81611096565b82525050565b60006020820190506113576000830184611333565b92915050565b60006020828403121561137357611372611045565b5b6000611381848285016110bf565b91505092915050565b600060608201905061139f6000830186611333565b6113ac6020830185611333565b6113b9604083018461101b565b949350505050565b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611408601f836113c1565b9150611413826113d2565b602082019050919050565b60006020820190508181036000830152611437816113fb565b9050919050565b7f5374616b696e6720706175736564000000000000000000000000000000000000600082015250565b6000611474600e836113c1565b915061147f8261143e565b602082019050919050565b600060208201905081810360008301526114a381611467565b9050919050565b7f4e6f7420746865206f776e657200000000000000000000000000000000000000600082015250565b60006114e0600d836113c1565b91506114eb826114aa565b602082019050919050565b6000602082019050818103600083015261150f816114d3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061155082611011565b915061155b83611011565b925082820390508181111561157357611572611516565b5b92915050565b600081519050611588816110a8565b92915050565b6000602082840312156115a4576115a3611045565b5b60006115b284828501611579565b91505092915050565b7f5468697320746f6b656e20697320616c7265616479207374616b656400000000600082015250565b60006115f1601c836113c1565b91506115fc826115bb565b602082019050919050565b60006020820190508181036000830152611620816115e4565b9050919050565b600061163282611011565b915061163d83611011565b925082820190508082111561165557611654611516565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006116b76026836113c1565b91506116c28261165b565b604082019050919050565b600060208201905081810360008301526116e6816116aa565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006117236020836113c1565b915061172e826116ed565b602082019050919050565b6000602082019050818103600083015261175281611716565b905091905056fea2646970667358221220e74109988cce6b833de2857ffebf2ab28ee453616c1e0585e88b5c9a947c41fa64736f6c634300081100330000000000000000000000003e7fc44e25c07be3d67c241e6e59cb838df2f892000000000000000000000000f661588d2f8c537119c13da151e84362abcaee66

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80635769848c1161008c578063715018a611610066578063715018a6146101e65780638da5cb5b146101f0578063e7dc29a41461020e578063f2fde38b1461022a576100cf565b80635769848c1461019257806362280eb9146101ae57806362b22b48146101ca576100cf565b806329eae70d146100d4578063397d079e146100f25780633b42fad61461010e5780633c39b49e1461012a5780633d9995271461015a578063565e540214610176575b600080fd5b6100dc610246565b6040516100e9919061102a565b60405180910390f35b61010c600480360381019061010791906110d4565b61024c565b005b61012860048036038101906101239190611114565b6102e9565b005b610144600480360381019061013f919061117b565b610382565b6040516101519190611208565b60405180910390f35b610174600480360381019061016f91906110d4565b610419565b005b610190600480360381019061018b9190611261565b6104b6565b005b6101ac60048036038101906101a791906112c6565b610502565b005b6101c860048036038101906101c3919061117b565b610527565b005b6101e460048036038101906101df91906112f3565b610858565b005b6101ee610d84565b005b6101f8610d98565b6040516102059190611342565b60405180910390f35b61022860048036038101906102239190611261565b610dc1565b005b610244600480360381019061023f919061135d565b610e0d565b005b60055481565b610254610e90565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3083856040518463ffffffff1660e01b81526004016102b39392919061138a565b600060405180830381600087803b1580156102cd57600080fd5b505af11580156102e1573d6000803e3d6000fd5b505050505050565b6102f1610e90565b826002600086815260200190815260200160002060020181905550816002600086815260200190815260200160002060010181905550806002600086815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b61038a610fda565b600260008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815250509050919050565b610421610e90565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3083856040518463ffffffff1660e01b81526004016104809392919061138a565b600060405180830381600087803b15801561049a57600080fd5b505af11580156104ae573d6000803e3d6000fd5b505050505050565b6104be610e90565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61050a610e90565b80600460146101000a81548160ff02191690831515021790555050565b60026001540361056c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105639061141e565b60405180910390fd5b600260018190555060001515600460149054906101000a900460ff161515146105ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c19061148a565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461066e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610665906114f6565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3033846040518463ffffffff1660e01b81526004016106cd9392919061138a565b600060405180830381600087803b1580156106e757600080fd5b505af11580156106fb573d6000803e3d6000fd5b50505050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd303360026000868152602001908152602001600020600101546040518463ffffffff1660e01b81526004016107749392919061138a565b600060405180830381600087803b15801561078e57600080fd5b505af11580156107a2573d6000803e3d6000fd5b50505050600060026000838152602001908152602001600020600201819055506000600260008381526020019081526020016000206001018190555060006002600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600560008282546108479190611545565b925050819055506001808190555050565b60026001540361089d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108949061141e565b60405180910390fd5b600260018190555060001515600460149054906101000a900460ff161515146108fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f29061148a565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b815260040161096d919061102a565b602060405180830381865afa15801561098a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ae919061158e565b73ffffffffffffffffffffffffffffffffffffffff1614610a04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fb906114f6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401610a76919061102a565b602060405180830381865afa158015610a93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab7919061158e565b73ffffffffffffffffffffffffffffffffffffffff1614610b0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b04906114f6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba990611607565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401610c119392919061138a565b600060405180830381600087803b158015610c2b57600080fd5b505af1158015610c3f573d6000803e3d6000fd5b50505050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401610ca29392919061138a565b600060405180830381600087803b158015610cbc57600080fd5b505af1158015610cd0573d6000803e3d6000fd5b50505050816002600084815260200190815260200160002060020181905550806002600084815260200190815260200160002060010181905550336002600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160056000828254610d729190611627565b92505081905550600180819055505050565b610d8c610e90565b610d966000610f0e565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610dc9610e90565b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610e15610e90565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7b906116cd565b60405180910390fd5b610e8d81610f0e565b50565b610e98610fd2565b73ffffffffffffffffffffffffffffffffffffffff16610eb6610d98565b73ffffffffffffffffffffffffffffffffffffffff1614610f0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0390611739565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b6000819050919050565b61102481611011565b82525050565b600060208201905061103f600083018461101b565b92915050565b600080fd5b61105381611011565b811461105e57600080fd5b50565b6000813590506110708161104a565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006110a182611076565b9050919050565b6110b181611096565b81146110bc57600080fd5b50565b6000813590506110ce816110a8565b92915050565b600080604083850312156110eb576110ea611045565b5b60006110f985828601611061565b925050602061110a858286016110bf565b9150509250929050565b6000806000806080858703121561112e5761112d611045565b5b600061113c87828801611061565b945050602061114d87828801611061565b935050604061115e87828801611061565b925050606061116f878288016110bf565b91505092959194509250565b60006020828403121561119157611190611045565b5b600061119f84828501611061565b91505092915050565b6111b181611096565b82525050565b6111c081611011565b82525050565b6060820160008201516111dc60008501826111a8565b5060208201516111ef60208501826111b7565b50604082015161120260408501826111b7565b50505050565b600060608201905061121d60008301846111c6565b92915050565b600061122e82611096565b9050919050565b61123e81611223565b811461124957600080fd5b50565b60008135905061125b81611235565b92915050565b60006020828403121561127757611276611045565b5b60006112858482850161124c565b91505092915050565b60008115159050919050565b6112a38161128e565b81146112ae57600080fd5b50565b6000813590506112c08161129a565b92915050565b6000602082840312156112dc576112db611045565b5b60006112ea848285016112b1565b91505092915050565b6000806040838503121561130a57611309611045565b5b600061131885828601611061565b925050602061132985828601611061565b9150509250929050565b61133c81611096565b82525050565b60006020820190506113576000830184611333565b92915050565b60006020828403121561137357611372611045565b5b6000611381848285016110bf565b91505092915050565b600060608201905061139f6000830186611333565b6113ac6020830185611333565b6113b9604083018461101b565b949350505050565b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611408601f836113c1565b9150611413826113d2565b602082019050919050565b60006020820190508181036000830152611437816113fb565b9050919050565b7f5374616b696e6720706175736564000000000000000000000000000000000000600082015250565b6000611474600e836113c1565b915061147f8261143e565b602082019050919050565b600060208201905081810360008301526114a381611467565b9050919050565b7f4e6f7420746865206f776e657200000000000000000000000000000000000000600082015250565b60006114e0600d836113c1565b91506114eb826114aa565b602082019050919050565b6000602082019050818103600083015261150f816114d3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061155082611011565b915061155b83611011565b925082820390508181111561157357611572611516565b5b92915050565b600081519050611588816110a8565b92915050565b6000602082840312156115a4576115a3611045565b5b60006115b284828501611579565b91505092915050565b7f5468697320746f6b656e20697320616c7265616479207374616b656400000000600082015250565b60006115f1601c836113c1565b91506115fc826115bb565b602082019050919050565b60006020820190508181036000830152611620816115e4565b9050919050565b600061163282611011565b915061163d83611011565b925082820190508082111561165557611654611516565b5b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006116b76026836113c1565b91506116c28261165b565b604082019050919050565b600060208201905081810360008301526116e6816116aa565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006117236020836113c1565b915061172e826116ed565b602082019050919050565b6000602082019050818103600083015261175281611716565b905091905056fea2646970667358221220e74109988cce6b833de2857ffebf2ab28ee453616c1e0585e88b5c9a947c41fa64736f6c63430008110033

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

0000000000000000000000003e7fc44e25c07be3d67c241e6e59cb838df2f892000000000000000000000000f661588d2f8c537119c13da151e84362abcaee66

-----Decoded View---------------
Arg [0] : _collectionRichie (address): 0x3e7FC44E25c07Be3d67C241E6E59cb838DF2F892
Arg [1] : _collectionRichieBank (address): 0xF661588D2F8c537119c13DA151e84362ABCaEe66

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003e7fc44e25c07be3d67c241e6e59cb838df2f892
Arg [1] : 000000000000000000000000f661588d2f8c537119c13da151e84362abcaee66


Deployed Bytecode Sourcemap

49759:3991:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50191:24;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;53360:181;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;52723:229;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;51983:111;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;53069:165;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;52214:129;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;53649:96;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;51314:583;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;50485:728;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;48834:103;;;:::i;:::-;;48186:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;52468:145;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;49092:201;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;50191:24;;;;:::o;53360:181::-;48072:13;:11;:13::i;:::-;53458:20:::1;;;;;;;;;;;:33;;;53500:4;53507:12;53521:11;53458:75;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;53360:181:::0;;:::o;52723:229::-;48072:13;:11;:13::i;:::-;52857:7:::1;52832;:15;52840:6;52832:15;;;;;;;;;;;:22;;:32;;;;52898:5;52875:7;:15;52883:6;52875:15;;;;;;;;;;;:20;;:28;;;;52938:6;52914:7;:15;52922:6;52914:15;;;;;;;;;;;:21;;;:30;;;;;;;;;;;;;;;;;;52723:229:::0;;;;:::o;51983:111::-;52039:12;;:::i;:::-;52070:7;:16;52078:7;52070:16;;;;;;;;;;;52063:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51983:111;;;:::o;53069:165::-;48072:13;:11;:13::i;:::-;53159:16:::1;;;;;;;;;;;:29;;;53197:4;53204:12;53218:7;53159:67;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;53069:165:::0;;:::o;52214:129::-;48072:13;:11;:13::i;:::-;52318:17:::1;52299:16;;:36;;;;;;;;;;;;;;;;;;52214:129:::0;:::o;53649:96::-;48072:13;:11;:13::i;:::-;53728:9:::1;53717:8;;:20;;;;;;;;;;;;;;;;;;53649:96:::0;:::o;51314:583::-;19052:1;19650:7;;:19;19642:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;19052:1;19783:7;:18;;;;51398:5:::1;51386:17;;:8;;;;;;;;;;;:17;;;51378:44;;;;;;;;;;;;:::i;:::-;;;;;;;;;51467:10;51441:36;;:7;:16;51449:7;51441:16;;;;;;;;;;;:22;;;;;;;;;;;;:36;;;51433:62;;;;;;;;;;;;:::i;:::-;;;;;;;;;51547:16;;;;;;;;;;;:29;;;51585:4;51592:10;51604:7;51547:65;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;51623:20;;;;;;;;;;;:33;;;51665:4;51672:10;51684:7;:16;51692:7;51684:16;;;;;;;;;;;:21;;;51623:83;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;51778:1;51752:7;:16;51760:7;51752:16;;;;;;;;;;;:23;;:27;;;;51814:1;51790:7;:16;51798:7;51790:16;;;;;;;;;;;:21;;:25;;;;51859:1;51826:7;:16;51834:7;51826:16;;;;;;;;;;;:22;;;:35;;;;;;;;;;;;;;;;;;51888:1;51872:12;;:17;;;;;;;:::i;:::-;;;;;;;;19008:1:::0;19962:7;:22;;;;51314:583;:::o;50485:728::-;19052:1;19650:7;;:19;19642:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;19052:1;19783:7;:18;;;;50587:5:::1;50575:17;;:8;;;;;;;;;;;:17;;;50567:44;;;;;;;;;;;;:::i;:::-;;;;;;;;;50667:10;50630:47;;:16;;;;;;;;;;;:24;;;50655:7;50630:33;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;;;50622:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;50759:10;50714:55;;:20;;;;;;;;;;;:28;;;50743:11;50714:41;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:55;;;50706:81;;;;;;;;;;;;:::i;:::-;;;;;;;;;50840:1;50806:36;;:7;:16;50814:7;50806:16;;;;;;;;;;;:22;;;;;;;;;;;;:36;;;50798:77;;;;;;;;;;;;:::i;:::-;;;;;;;;;50888:16;;;;;;;;;;;:29;;;50918:10;50938:4;50945:7;50888:65;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;50964:20;;;;;;;;;;;:33;;;50998:10;51018:4;51025:11;50964:73;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;51076:7;51050;:16;51058:7;51050:16;;;;;;;;;;;:23;;:33;;;;51118:11;51094:7;:16;51102:7;51094:16;;;;;;;;;;;:21;;:35;;;;51165:10;51140:7;:16;51148:7;51140:16;;;;;;;;;;;:22;;;:35;;;;;;;;;;;;;;;;;;51204:1;51188:12;;:17;;;;;;;:::i;:::-;;;;;;;;19008:1:::0;19962:7;:22;;;;50485:728;;:::o;48834:103::-;48072:13;:11;:13::i;:::-;48899:30:::1;48926:1;48899:18;:30::i;:::-;48834:103::o:0;48186:87::-;48232:7;48259:6;;;;;;;;;;;48252:13;;48186:87;:::o;52468:145::-;48072:13;:11;:13::i;:::-;52584:21:::1;52561:20;;:44;;;;;;;;;;;;;;;;;;52468:145:::0;:::o;49092:201::-;48072:13;:11;:13::i;:::-;49201:1:::1;49181:22;;:8;:22;;::::0;49173:73:::1;;;;;;;;;;;;:::i;:::-;;;;;;;;;49257:28;49276:8;49257:18;:28::i;:::-;49092:201:::0;:::o;48351:132::-;48426:12;:10;:12::i;:::-;48415:23;;:7;:5;:7::i;:::-;:23;;;48407:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;48351:132::o;49453:191::-;49527:16;49546:6;;;;;;;;;;;49527:25;;49572:8;49563:6;;:17;;;;;;;;;;;;;;;;;;49627:8;49596:40;;49617:8;49596:40;;;;;;;;;;;;49516:128;49453:191;:::o;32148:98::-;32201:7;32228:10;32221:17;;32148:98;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;523:117::-;632:1;629;622:12;769:122;842:24;860:5;842:24;:::i;:::-;835:5;832:35;822:63;;881:1;878;871:12;822:63;769:122;:::o;897:139::-;943:5;981:6;968:20;959:29;;997:33;1024:5;997:33;:::i;:::-;897:139;;;;:::o;1042:126::-;1079:7;1119:42;1112:5;1108:54;1097:65;;1042:126;;;:::o;1174:96::-;1211:7;1240:24;1258:5;1240:24;:::i;:::-;1229:35;;1174:96;;;:::o;1276:122::-;1349:24;1367:5;1349:24;:::i;:::-;1342:5;1339:35;1329:63;;1388:1;1385;1378:12;1329:63;1276:122;:::o;1404:139::-;1450:5;1488:6;1475:20;1466:29;;1504:33;1531:5;1504:33;:::i;:::-;1404:139;;;;:::o;1549:474::-;1617:6;1625;1674:2;1662:9;1653:7;1649:23;1645:32;1642:119;;;1680:79;;:::i;:::-;1642:119;1800:1;1825:53;1870:7;1861:6;1850:9;1846:22;1825:53;:::i;:::-;1815:63;;1771:117;1927:2;1953:53;1998:7;1989:6;1978:9;1974:22;1953:53;:::i;:::-;1943:63;;1898:118;1549:474;;;;;:::o;2029:765::-;2115:6;2123;2131;2139;2188:3;2176:9;2167:7;2163:23;2159:33;2156:120;;;2195:79;;:::i;:::-;2156:120;2315:1;2340:53;2385:7;2376:6;2365:9;2361:22;2340:53;:::i;:::-;2330:63;;2286:117;2442:2;2468:53;2513:7;2504:6;2493:9;2489:22;2468:53;:::i;:::-;2458:63;;2413:118;2570:2;2596:53;2641:7;2632:6;2621:9;2617:22;2596:53;:::i;:::-;2586:63;;2541:118;2698:2;2724:53;2769:7;2760:6;2749:9;2745:22;2724:53;:::i;:::-;2714:63;;2669:118;2029:765;;;;;;;:::o;2800:329::-;2859:6;2908:2;2896:9;2887:7;2883:23;2879:32;2876:119;;;2914:79;;:::i;:::-;2876:119;3034:1;3059:53;3104:7;3095:6;3084:9;3080:22;3059:53;:::i;:::-;3049:63;;3005:117;2800:329;;;;:::o;3135:108::-;3212:24;3230:5;3212:24;:::i;:::-;3207:3;3200:37;3135:108;;:::o;3249:::-;3326:24;3344:5;3326:24;:::i;:::-;3321:3;3314:37;3249:108;;:::o;3439:680::-;3582:4;3577:3;3573:14;3670:4;3663:5;3659:16;3653:23;3689:63;3746:4;3741:3;3737:14;3723:12;3689:63;:::i;:::-;3597:165;3844:4;3837:5;3833:16;3827:23;3863:63;3920:4;3915:3;3911:14;3897:12;3863:63;:::i;:::-;3772:164;4020:4;4013:5;4009:16;4003:23;4039:63;4096:4;4091:3;4087:14;4073:12;4039:63;:::i;:::-;3946:166;3551:568;3439:680;;:::o;4125:314::-;4264:4;4302:2;4291:9;4287:18;4279:26;;4315:117;4429:1;4418:9;4414:17;4405:6;4315:117;:::i;:::-;4125:314;;;;:::o;4445:111::-;4497:7;4526:24;4544:5;4526:24;:::i;:::-;4515:35;;4445:111;;;:::o;4562:152::-;4650:39;4683:5;4650:39;:::i;:::-;4643:5;4640:50;4630:78;;4704:1;4701;4694:12;4630:78;4562:152;:::o;4720:169::-;4781:5;4819:6;4806:20;4797:29;;4835:48;4877:5;4835:48;:::i;:::-;4720:169;;;;:::o;4895:359::-;4969:6;5018:2;5006:9;4997:7;4993:23;4989:32;4986:119;;;5024:79;;:::i;:::-;4986:119;5144:1;5169:68;5229:7;5220:6;5209:9;5205:22;5169:68;:::i;:::-;5159:78;;5115:132;4895:359;;;;:::o;5260:90::-;5294:7;5337:5;5330:13;5323:21;5312:32;;5260:90;;;:::o;5356:116::-;5426:21;5441:5;5426:21;:::i;:::-;5419:5;5416:32;5406:60;;5462:1;5459;5452:12;5406:60;5356:116;:::o;5478:133::-;5521:5;5559:6;5546:20;5537:29;;5575:30;5599:5;5575:30;:::i;:::-;5478:133;;;;:::o;5617:323::-;5673:6;5722:2;5710:9;5701:7;5697:23;5693:32;5690:119;;;5728:79;;:::i;:::-;5690:119;5848:1;5873:50;5915:7;5906:6;5895:9;5891:22;5873:50;:::i;:::-;5863:60;;5819:114;5617:323;;;;:::o;5946:474::-;6014:6;6022;6071:2;6059:9;6050:7;6046:23;6042:32;6039:119;;;6077:79;;:::i;:::-;6039:119;6197:1;6222:53;6267:7;6258:6;6247:9;6243:22;6222:53;:::i;:::-;6212:63;;6168:117;6324:2;6350:53;6395:7;6386:6;6375:9;6371:22;6350:53;:::i;:::-;6340:63;;6295:118;5946:474;;;;;:::o;6426:118::-;6513:24;6531:5;6513:24;:::i;:::-;6508:3;6501:37;6426:118;;:::o;6550:222::-;6643:4;6681:2;6670:9;6666:18;6658:26;;6694:71;6762:1;6751:9;6747:17;6738:6;6694:71;:::i;:::-;6550:222;;;;:::o;6778:329::-;6837:6;6886:2;6874:9;6865:7;6861:23;6857:32;6854:119;;;6892:79;;:::i;:::-;6854:119;7012:1;7037:53;7082:7;7073:6;7062:9;7058:22;7037:53;:::i;:::-;7027:63;;6983:117;6778:329;;;;:::o;7113:442::-;7262:4;7300:2;7289:9;7285:18;7277:26;;7313:71;7381:1;7370:9;7366:17;7357:6;7313:71;:::i;:::-;7394:72;7462:2;7451:9;7447:18;7438:6;7394:72;:::i;:::-;7476;7544:2;7533:9;7529:18;7520:6;7476:72;:::i;:::-;7113:442;;;;;;:::o;7561:169::-;7645:11;7679:6;7674:3;7667:19;7719:4;7714:3;7710:14;7695:29;;7561:169;;;;:::o;7736:181::-;7876:33;7872:1;7864:6;7860:14;7853:57;7736:181;:::o;7923:366::-;8065:3;8086:67;8150:2;8145:3;8086:67;:::i;:::-;8079:74;;8162:93;8251:3;8162:93;:::i;:::-;8280:2;8275:3;8271:12;8264:19;;7923:366;;;:::o;8295:419::-;8461:4;8499:2;8488:9;8484:18;8476:26;;8548:9;8542:4;8538:20;8534:1;8523:9;8519:17;8512:47;8576:131;8702:4;8576:131;:::i;:::-;8568:139;;8295:419;;;:::o;8720:164::-;8860:16;8856:1;8848:6;8844:14;8837:40;8720:164;:::o;8890:366::-;9032:3;9053:67;9117:2;9112:3;9053:67;:::i;:::-;9046:74;;9129:93;9218:3;9129:93;:::i;:::-;9247:2;9242:3;9238:12;9231:19;;8890:366;;;:::o;9262:419::-;9428:4;9466:2;9455:9;9451:18;9443:26;;9515:9;9509:4;9505:20;9501:1;9490:9;9486:17;9479:47;9543:131;9669:4;9543:131;:::i;:::-;9535:139;;9262:419;;;:::o;9687:163::-;9827:15;9823:1;9815:6;9811:14;9804:39;9687:163;:::o;9856:366::-;9998:3;10019:67;10083:2;10078:3;10019:67;:::i;:::-;10012:74;;10095:93;10184:3;10095:93;:::i;:::-;10213:2;10208:3;10204:12;10197:19;;9856:366;;;:::o;10228:419::-;10394:4;10432:2;10421:9;10417:18;10409:26;;10481:9;10475:4;10471:20;10467:1;10456:9;10452:17;10445:47;10509:131;10635:4;10509:131;:::i;:::-;10501:139;;10228:419;;;:::o;10653:180::-;10701:77;10698:1;10691:88;10798:4;10795:1;10788:15;10822:4;10819:1;10812:15;10839:194;10879:4;10899:20;10917:1;10899:20;:::i;:::-;10894:25;;10933:20;10951:1;10933:20;:::i;:::-;10928:25;;10977:1;10974;10970:9;10962:17;;11001:1;10995:4;10992:11;10989:37;;;11006:18;;:::i;:::-;10989:37;10839:194;;;;:::o;11039:143::-;11096:5;11127:6;11121:13;11112:22;;11143:33;11170:5;11143:33;:::i;:::-;11039:143;;;;:::o;11188:351::-;11258:6;11307:2;11295:9;11286:7;11282:23;11278:32;11275:119;;;11313:79;;:::i;:::-;11275:119;11433:1;11458:64;11514:7;11505:6;11494:9;11490:22;11458:64;:::i;:::-;11448:74;;11404:128;11188:351;;;;:::o;11545:178::-;11685:30;11681:1;11673:6;11669:14;11662:54;11545:178;:::o;11729:366::-;11871:3;11892:67;11956:2;11951:3;11892:67;:::i;:::-;11885:74;;11968:93;12057:3;11968:93;:::i;:::-;12086:2;12081:3;12077:12;12070:19;;11729:366;;;:::o;12101:419::-;12267:4;12305:2;12294:9;12290:18;12282:26;;12354:9;12348:4;12344:20;12340:1;12329:9;12325:17;12318:47;12382:131;12508:4;12382:131;:::i;:::-;12374:139;;12101:419;;;:::o;12526:191::-;12566:3;12585:20;12603:1;12585:20;:::i;:::-;12580:25;;12619:20;12637:1;12619:20;:::i;:::-;12614:25;;12662:1;12659;12655:9;12648:16;;12683:3;12680:1;12677:10;12674:36;;;12690:18;;:::i;:::-;12674:36;12526:191;;;;:::o;12723:225::-;12863:34;12859:1;12851:6;12847:14;12840:58;12932:8;12927:2;12919:6;12915:15;12908:33;12723:225;:::o;12954:366::-;13096:3;13117:67;13181:2;13176:3;13117:67;:::i;:::-;13110:74;;13193:93;13282:3;13193:93;:::i;:::-;13311:2;13306:3;13302:12;13295:19;;12954:366;;;:::o;13326:419::-;13492:4;13530:2;13519:9;13515:18;13507:26;;13579:9;13573:4;13569:20;13565:1;13554:9;13550:17;13543:47;13607:131;13733:4;13607:131;:::i;:::-;13599:139;;13326:419;;;:::o;13751:182::-;13891:34;13887:1;13879:6;13875:14;13868:58;13751:182;:::o;13939:366::-;14081:3;14102:67;14166:2;14161:3;14102:67;:::i;:::-;14095:74;;14178:93;14267:3;14178:93;:::i;:::-;14296:2;14291:3;14287:12;14280:19;;13939:366;;;:::o;14311:419::-;14477:4;14515:2;14504:9;14500:18;14492:26;;14564:9;14558:4;14554:20;14550:1;14539:9;14535:17;14528:47;14592:131;14718:4;14592:131;:::i;:::-;14584:139;;14311:419;;;:::o

Swarm Source

ipfs://e74109988cce6b833de2857ffebf2ab28ee453616c1e0585e88b5c9a947c41fa

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.