ETH Price: $3,648.43 (+1.92%)

Contract

0x86ee966910bD3E29C4ACF0f0afCeC2F1c4a11c76
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Rewards203575292024-07-21 21:14:47131 days ago1721596487IN
0x86ee9669...1c4a11c76
0 ETH0.0028558713.24680865
Claim Rewards201950722024-06-29 4:51:23153 days ago1719636683IN
0x86ee9669...1c4a11c76
0 ETH0.000280261.3
Withdraw198917052024-05-17 19:14:47196 days ago1715973287IN
0x86ee9669...1c4a11c76
0 ETH0.001304296.46940627
Claim Rewards198093382024-05-06 6:43:59207 days ago1714977839IN
0x86ee9669...1c4a11c76
0 ETH0.000446724.9296901
Withdraw197061102024-04-21 20:16:59222 days ago1713730619IN
0x86ee9669...1c4a11c76
0 ETH0.001932927.05482853
Withdraw195464792024-03-30 11:29:47244 days ago1711798187IN
0x86ee9669...1c4a11c76
0 ETH0.0027020622.16713671
Claim Rewards195022012024-03-24 5:01:23250 days ago1711256483IN
0x86ee9669...1c4a11c76
0 ETH0.0021084918.61198364
Stake190662062024-01-23 1:47:47312 days ago1705974467IN
0x86ee9669...1c4a11c76
0 ETH0.003738878
Claim Rewards189566852024-01-07 17:28:35327 days ago1704648515IN
0x86ee9669...1c4a11c76
0 ETH0.003157629.91824646
Withdraw189075732023-12-31 19:34:11334 days ago1704051251IN
0x86ee9669...1c4a11c76
0 ETH0.0026803115.16909369
Stake188519782023-12-24 0:08:35342 days ago1703376515IN
0x86ee9669...1c4a11c76
0 ETH0.0058202420.10836631
Withdraw188351792023-12-21 15:37:35344 days ago1703173055IN
0x86ee9669...1c4a11c76
0 ETH0.0129905256.11531445
Withdraw187925672023-12-15 16:00:47350 days ago1702656047IN
0x86ee9669...1c4a11c76
0 ETH0.0120580698.92171228
Withdraw187457672023-12-09 2:42:23357 days ago1702089743IN
0x86ee9669...1c4a11c76
0 ETH0.0038997931.99621578
Claim Rewards187457622023-12-09 2:41:23357 days ago1702089683IN
0x86ee9669...1c4a11c76
0 ETH0.0030369331.54073775
Stake186914082023-12-01 11:56:59364 days ago1701431819IN
0x86ee9669...1c4a11c76
0 ETH0.0125605233.78146401
Stake186864442023-11-30 19:16:47365 days ago1701371807IN
0x86ee9669...1c4a11c76
0 ETH0.0199211449.9276845
Stake186770452023-11-29 11:42:47366 days ago1701258167IN
0x86ee9669...1c4a11c76
0 ETH0.0053430127.64805978
Withdraw186206662023-11-21 14:15:11374 days ago1700576111IN
0x86ee9669...1c4a11c76
0 ETH0.0055912645.86948446
Withdraw186169192023-11-21 1:39:23375 days ago1700530763IN
0x86ee9669...1c4a11c76
0 ETH0.0085859334.75637168
Stake186039552023-11-19 6:05:23376 days ago1700373923IN
0x86ee9669...1c4a11c76
0 ETH0.0023901312.36804423
Withdraw185528902023-11-12 2:35:11384 days ago1699756511IN
0x86ee9669...1c4a11c76
0 ETH0.0023772218.76334488
Claim Rewards184981912023-11-04 10:50:59391 days ago1699095059IN
0x86ee9669...1c4a11c76
0 ETH0.0017897816.95821773
Claim Rewards184953632023-11-04 1:20:11392 days ago1699060811IN
0x86ee9669...1c4a11c76
0 ETH0.0016532615.66464389
Claim Rewards184681942023-10-31 6:01:59395 days ago1698732119IN
0x86ee9669...1c4a11c76
0 ETH0.0036484915.67961956
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NftStaking

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-11-02
*/

// File: NftStaking_flat.sol


// 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/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/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/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/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


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

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

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

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


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: contracts/NftStaking.sol


pragma solidity ^0.8.0;




contract NftStaking is ReentrancyGuard {

    // Interfaces for ERC20 and ERC721
    IERC20 public immutable rewardsToken;
    IERC721 public immutable nftCollection;

    uint256 public totalStaked;
    // Staker info
    struct Staker {
        // Amount of ERC721 Tokens staked
        uint256 amountStaked;
        // Calculated, but unclaimed rewards for the User. The rewards are
        // calculated each time the user writes to the Smart Contract
        uint256 rewards;
        // Income array index for which rewards were calculated
        uint256 incomeIndex;

        uint256 paid;

        // Last time of details update for this User
        uint256 timeOfLastUpdate;
    }

    struct Income {
        uint256 amount;

        uint256 remainingAmount;

        uint256 totalStaked;
    }

    Income[] public incomes;

    // Mapping of User Address to Staker info
    mapping(address => Staker) public stakers;
    // Mapping of Token Id to staker. Made for the SC to remeber
    // who to send back the ERC721 Token to.
    mapping(uint256 => address) public stakerAddress;

    uint256 public totalPaid;



    /**
      Events
    */
    event Staked(address indexed user, uint256[] _tokenIds);
    event Unstaked(address indexed user, uint256[] _tokenIds);
    event IncomeAdded(address indexed user, uint256 amount);
    event RewardsClaimed(address indexed user, uint256 amount);


    // Constructor function
    constructor(IERC721 _nftCollection, IERC20 _rewardsToken) {
        require(address(_nftCollection) != address(0), "Nft collection address can't be set to 0");
        require(address(_rewardsToken) != address(0), "Rewards token address can't be set to 0");
        nftCollection = _nftCollection;
        rewardsToken = _rewardsToken;
    }

    // If address already has ERC721 Token/s staked, calculate the rewards.
    // For every new Token Id in param transferFrom user to this Smart Contract,
    // increment the amountStaked and map msg.sender to the Token Id of the staked
    // Token to later send back on withdrawal. Finally give timeOfLastUpdate the
    // value of now.
    function stake(uint256[] calldata _tokenIds) external nonReentrant {
        if (stakers[msg.sender].amountStaked > 0) {
            uint256 rewards = calculateRewards(msg.sender);
            stakers[msg.sender].rewards += rewards;
            //stakers[msg.sender].incomeIndex = index;
        }
        uint256 len = _tokenIds.length;
        for (uint256 i; i < len; ++i) {
            require(
                nftCollection.ownerOf(_tokenIds[i]) == msg.sender,
                "Can't stake tokens you don't own!"
            );
            nftCollection.transferFrom(msg.sender, address(this), _tokenIds[i]);
            stakerAddress[_tokenIds[i]] = msg.sender;
        }
        stakers[msg.sender].amountStaked += len;
        stakers[msg.sender].timeOfLastUpdate = block.timestamp;
        stakers[msg.sender].incomeIndex = incomes.length;
        totalStaked += len;
    }

    // Check if user has any ERC721 Tokens Staked and if he tried to withdraw,
    // calculate the rewards and store them in the rewards and for each
    // ERC721 Token in param: check if msg.sender is the original staker, decrement
    // the amountStaked of the user and transfer the ERC721 token back to them
    function withdraw(uint256[] calldata _tokenIds) external nonReentrant {
        require(
            stakers[msg.sender].amountStaked > 0,
            "You have no tokens staked"
        );
        uint256 rewards = calculateRewards(msg.sender);
        stakers[msg.sender].rewards += rewards;
        stakers[msg.sender].incomeIndex = incomes.length;
        uint256 len = _tokenIds.length;
        for (uint256 i; i < len; ++i) {
            require(stakerAddress[_tokenIds[i]] == msg.sender);
            stakerAddress[_tokenIds[i]] = address(0);
            nftCollection.transferFrom(address(this), msg.sender, _tokenIds[i]);
        }
        stakers[msg.sender].amountStaked -= len;
        stakers[msg.sender].timeOfLastUpdate = block.timestamp;
        totalStaked -= len;
    }

    // Calculate rewards for the msg.sender, check if there are any rewards
    // claim, add to paid sent amount to the user.
    function claimRewards() external {
        uint256 rewards = calculateRewards(msg.sender);
        stakers[msg.sender].rewards += rewards;
        uint256 availableRewardsAmt = stakers[msg.sender].rewards - stakers[msg.sender].paid;
        require(availableRewardsAmt > 0, "You have no rewards to claim");
        stakers[msg.sender].timeOfLastUpdate = block.timestamp;
        stakers[msg.sender].incomeIndex = incomes.length;
        stakers[msg.sender].paid += availableRewardsAmt;
        totalPaid += availableRewardsAmt;
        require(rewardsToken.transfer(msg.sender, availableRewardsAmt),'Transfer failed');
    }

    function addIncome(uint256 _amount) external {
      require(_amount > 0, 'Amount should be greater than 0');
      require(rewardsToken.transferFrom(msg.sender, address(this), _amount), 'Transfer of funds failed');
      incomes.push(Income(_amount,_amount, totalStaked));
    }

    //////////
    // View //
    //////////

    function userStakeInfo(address _user)
        public
        view
        returns (uint256 _tokensStaked, uint256 _availableRewards)
    {
        return (stakers[_user].amountStaked, availableRewards(_user));
    }

    function availableRewards(address _user) internal view returns (uint256) {
        require(stakers[_user].amountStaked > 0, "User has no tokens staked");
        uint256 rewards = calculateRewards(_user);
        return stakers[_user].rewards + rewards - stakers[_user].paid;
    }

    /////////////
    // Internal//
    /////////////
    function calculateRewards(address _staker)
        internal
        view
        returns (uint256)
    {
        uint256 notAppliedRewardsAmountSum;
        if(incomes.length > 0 && stakers[_staker].incomeIndex < incomes.length) {
            for(uint i = stakers[_staker].incomeIndex; i < incomes.length; i++) {
                notAppliedRewardsAmountSum += stakers[_staker].amountStaked * incomes[i].amount / incomes[i].totalStaked;
            }
        }
        return notAppliedRewardsAmountSum;
    }


}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC721","name":"_nftCollection","type":"address"},{"internalType":"contract IERC20","name":"_rewardsToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"IncomeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addIncome","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"incomes","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"remainingAmount","type":"uint256"},{"internalType":"uint256","name":"totalStaked","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftCollection","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakers","outputs":[{"internalType":"uint256","name":"amountStaked","type":"uint256"},{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"incomeIndex","type":"uint256"},{"internalType":"uint256","name":"paid","type":"uint256"},{"internalType":"uint256","name":"timeOfLastUpdate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"userStakeInfo","outputs":[{"internalType":"uint256","name":"_tokensStaked","type":"uint256"},{"internalType":"uint256","name":"_availableRewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b50604051620021cf380380620021cf833981810160405281019062000037919062000256565b6001600081905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620000b1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a89062000324565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000123576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200011a90620003bc565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505050620003de565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001c58262000198565b9050919050565b6000620001d982620001b8565b9050919050565b620001eb81620001cc565b8114620001f757600080fd5b50565b6000815190506200020b81620001e0565b92915050565b60006200021e82620001b8565b9050919050565b620002308162000211565b81146200023c57600080fd5b50565b600081519050620002508162000225565b92915050565b6000806040838503121562000270576200026f62000193565b5b60006200028085828601620001fa565b925050602062000293858286016200023f565b9150509250929050565b600082825260208201905092915050565b7f4e667420636f6c6c656374696f6e20616464726573732063616e27742062652060008201527f73657420746f2030000000000000000000000000000000000000000000000000602082015250565b60006200030c6028836200029d565b91506200031982620002ae565b604082019050919050565b600060208201905081810360008301526200033f81620002fd565b9050919050565b7f5265776172647320746f6b656e20616464726573732063616e2774206265207360008201527f657420746f203000000000000000000000000000000000000000000000000000602082015250565b6000620003a46027836200029d565b9150620003b18262000346565b604082019050919050565b60006020820190508181036000830152620003d78162000395565b9050919050565b60805160a051611da862000427600039600081816103820152818161048b01528181610a3d0152610ee401526000818161090401528181610ae0015261109f0152611da86000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80639380f973116100715780639380f97314610180578063940670451461019c578063983d95ce146101cc578063afc8c812146101e8578063d1af0c7d1461021a578063e7b0f66614610238576100b4565b80630fbf0a93146100b9578063372500ab146100d55780634ead4327146100df5780636588103b14610110578063817b1cd21461012e5780639168ae721461014c575b600080fd5b6100d360048036038101906100ce91906113f2565b610256565b005b6100dd6106c0565b005b6100f960048036038101906100f4919061149d565b6109e3565b6040516101079291906114e3565b60405180910390f35b610118610a3b565b604051610125919061156b565b60405180910390f35b610136610a5f565b6040516101439190611586565b60405180910390f35b6101666004803603810190610161919061149d565b610a65565b6040516101779594939291906115a1565b60405180910390f35b61019a60048036038101906101959190611620565b610a9b565b005b6101b660048036038101906101b19190611620565b610c28565b6040516101c3919061165c565b60405180910390f35b6101e660048036038101906101e191906113f2565b610c5b565b005b61020260048036038101906101fd9190611620565b611063565b60405161021193929190611677565b60405180910390f35b61022261109d565b60405161022f91906116cf565b60405180910390f35b6102406110c1565b60405161024d9190611586565b60405180910390f35b60026000540361029b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161029290611747565b60405180910390fd5b60026000819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411156103565760006102f9336110c7565b905080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461034d9190611796565b92505081905550505b600082829050905060005b818110156105ad573373ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e8686858181106103cf576103ce6117ec565b5b905060200201356040518263ffffffff1660e01b81526004016103f29190611586565b602060405180830381865afa15801561040f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104339190611830565b73ffffffffffffffffffffffffffffffffffffffff1614610489576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610480906118cf565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd33308787868181106104da576104d96117ec565b5b905060200201356040518463ffffffff1660e01b81526004016104ff939291906118ef565b600060405180830381600087803b15801561051957600080fd5b505af115801561052d573d6000803e3d6000fd5b505050503360046000868685818110610549576105486117ec565b5b90506020020135815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806105a690611926565b9050610361565b5080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282546106009190611796565b9250508190555042600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040181905550600280549050600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018190555080600160008282546106ac9190611796565b925050819055505060016000819055505050565b60006106cb336110c7565b905080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461071f9190611796565b925050819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101546107b8919061196e565b9050600081116107fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f4906119ee565b60405180910390fd5b42600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040181905550600280549050600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018190555080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030160008282546108e29190611796565b9250508190555080600560008282546108fb9190611796565b925050819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161095d929190611a0e565b6020604051808303816000875af115801561097c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a09190611a6f565b6109df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d690611ae8565b60405180910390fd5b5050565b600080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154610a328461124d565b91509150915091565b7f000000000000000000000000000000000000000000000000000000000000000081565b60015481565b60036020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154905085565b60008111610ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad590611b54565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401610b3b939291906118ef565b6020604051808303816000875af1158015610b5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7e9190611a6f565b610bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb490611bc0565b60405180910390fd5b600260405180606001604052808381526020018381526020016001548152509080600181540180825580915050600190039060005260206000209060030201600090919091909150600082015181600001556020820151816001015560408201518160020155505050565b60046020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260005403610ca0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9790611747565b60405180910390fd5b60026000819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411610d2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2490611c2c565b60405180910390fd5b6000610d38336110c7565b905080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254610d8c9190611796565b92505081905550600280549050600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020181905550600083839050905060005b81811015610f9b573373ffffffffffffffffffffffffffffffffffffffff1660046000878785818110610e2057610e1f6117ec565b5b90506020020135815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e7657600080fd5b600060046000878785818110610e8f57610e8e6117ec565b5b90506020020135815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3033888886818110610f3357610f326117ec565b5b905060200201356040518463ffffffff1660e01b8152600401610f58939291906118ef565b600060405180830381600087803b158015610f7257600080fd5b505af1158015610f86573d6000803e3d6000fd5b5050505080610f9490611926565b9050610dea565b5080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254610fee919061196e565b9250508190555042600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040181905550806001600082825461104e919061196e565b92505081905550505060016000819055505050565b6002818154811061107357600080fd5b90600052602060002090600302016000915090508060000154908060010154908060020154905083565b7f000000000000000000000000000000000000000000000000000000000000000081565b60055481565b60008060006002805490501180156111255750600280549050600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154105b15611244576000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015490505b6002805490508110156112425760028181548110611193576111926117ec565b5b906000526020600020906003020160020154600282815481106111b9576111b86117ec565b5b906000526020600020906003020160000154600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546112189190611c4c565b6112229190611cd5565b8261122d9190611796565b9150808061123a90611926565b915050611172565b505b80915050919050565b600080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154116112d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ca90611d52565b60405180910390fd5b60006112de836110c7565b9050600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003015481600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101546113719190611796565b61137b919061196e565b915050919050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f8401126113b2576113b161138d565b5b8235905067ffffffffffffffff8111156113cf576113ce611392565b5b6020830191508360208202830111156113eb576113ea611397565b5b9250929050565b6000806020838503121561140957611408611383565b5b600083013567ffffffffffffffff81111561142757611426611388565b5b6114338582860161139c565b92509250509250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061146a8261143f565b9050919050565b61147a8161145f565b811461148557600080fd5b50565b60008135905061149781611471565b92915050565b6000602082840312156114b3576114b2611383565b5b60006114c184828501611488565b91505092915050565b6000819050919050565b6114dd816114ca565b82525050565b60006040820190506114f860008301856114d4565b61150560208301846114d4565b9392505050565b6000819050919050565b600061153161152c6115278461143f565b61150c565b61143f565b9050919050565b600061154382611516565b9050919050565b600061155582611538565b9050919050565b6115658161154a565b82525050565b6000602082019050611580600083018461155c565b92915050565b600060208201905061159b60008301846114d4565b92915050565b600060a0820190506115b660008301886114d4565b6115c360208301876114d4565b6115d060408301866114d4565b6115dd60608301856114d4565b6115ea60808301846114d4565b9695505050505050565b6115fd816114ca565b811461160857600080fd5b50565b60008135905061161a816115f4565b92915050565b60006020828403121561163657611635611383565b5b60006116448482850161160b565b91505092915050565b6116568161145f565b82525050565b6000602082019050611671600083018461164d565b92915050565b600060608201905061168c60008301866114d4565b61169960208301856114d4565b6116a660408301846114d4565b949350505050565b60006116b982611538565b9050919050565b6116c9816116ae565b82525050565b60006020820190506116e460008301846116c0565b92915050565b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611731601f836116ea565b915061173c826116fb565b602082019050919050565b6000602082019050818103600083015261176081611724565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006117a1826114ca565b91506117ac836114ca565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156117e1576117e0611767565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061182a81611471565b92915050565b60006020828403121561184657611845611383565b5b60006118548482850161181b565b91505092915050565b7f43616e2774207374616b6520746f6b656e7320796f7520646f6e2774206f776e60008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b60006118b96021836116ea565b91506118c48261185d565b604082019050919050565b600060208201905081810360008301526118e8816118ac565b9050919050565b6000606082019050611904600083018661164d565b611911602083018561164d565b61191e60408301846114d4565b949350505050565b6000611931826114ca565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361196357611962611767565b5b600182019050919050565b6000611979826114ca565b9150611984836114ca565b92508282101561199757611996611767565b5b828203905092915050565b7f596f752068617665206e6f207265776172647320746f20636c61696d00000000600082015250565b60006119d8601c836116ea565b91506119e3826119a2565b602082019050919050565b60006020820190508181036000830152611a07816119cb565b9050919050565b6000604082019050611a23600083018561164d565b611a3060208301846114d4565b9392505050565b60008115159050919050565b611a4c81611a37565b8114611a5757600080fd5b50565b600081519050611a6981611a43565b92915050565b600060208284031215611a8557611a84611383565b5b6000611a9384828501611a5a565b91505092915050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000611ad2600f836116ea565b9150611add82611a9c565b602082019050919050565b60006020820190508181036000830152611b0181611ac5565b9050919050565b7f416d6f756e742073686f756c642062652067726561746572207468616e203000600082015250565b6000611b3e601f836116ea565b9150611b4982611b08565b602082019050919050565b60006020820190508181036000830152611b6d81611b31565b9050919050565b7f5472616e73666572206f662066756e6473206661696c65640000000000000000600082015250565b6000611baa6018836116ea565b9150611bb582611b74565b602082019050919050565b60006020820190508181036000830152611bd981611b9d565b9050919050565b7f596f752068617665206e6f20746f6b656e73207374616b656400000000000000600082015250565b6000611c166019836116ea565b9150611c2182611be0565b602082019050919050565b60006020820190508181036000830152611c4581611c09565b9050919050565b6000611c57826114ca565b9150611c62836114ca565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611c9b57611c9a611767565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611ce0826114ca565b9150611ceb836114ca565b925082611cfb57611cfa611ca6565b5b828204905092915050565b7f5573657220686173206e6f20746f6b656e73207374616b656400000000000000600082015250565b6000611d3c6019836116ea565b9150611d4782611d06565b602082019050919050565b60006020820190508181036000830152611d6b81611d2f565b905091905056fea26469706673582212203523a7c8ebc2d7ceb78c2d1089724c166db6c5003136b09fe869c498374fa20d64736f6c634300080f00330000000000000000000000001720d3a3984c75e6514316c5aec903651e4abe2800000000000000000000000064b78325d7495d6d4be92f234fa3f3b8d8964b8b

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80639380f973116100715780639380f97314610180578063940670451461019c578063983d95ce146101cc578063afc8c812146101e8578063d1af0c7d1461021a578063e7b0f66614610238576100b4565b80630fbf0a93146100b9578063372500ab146100d55780634ead4327146100df5780636588103b14610110578063817b1cd21461012e5780639168ae721461014c575b600080fd5b6100d360048036038101906100ce91906113f2565b610256565b005b6100dd6106c0565b005b6100f960048036038101906100f4919061149d565b6109e3565b6040516101079291906114e3565b60405180910390f35b610118610a3b565b604051610125919061156b565b60405180910390f35b610136610a5f565b6040516101439190611586565b60405180910390f35b6101666004803603810190610161919061149d565b610a65565b6040516101779594939291906115a1565b60405180910390f35b61019a60048036038101906101959190611620565b610a9b565b005b6101b660048036038101906101b19190611620565b610c28565b6040516101c3919061165c565b60405180910390f35b6101e660048036038101906101e191906113f2565b610c5b565b005b61020260048036038101906101fd9190611620565b611063565b60405161021193929190611677565b60405180910390f35b61022261109d565b60405161022f91906116cf565b60405180910390f35b6102406110c1565b60405161024d9190611586565b60405180910390f35b60026000540361029b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161029290611747565b60405180910390fd5b60026000819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411156103565760006102f9336110c7565b905080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461034d9190611796565b92505081905550505b600082829050905060005b818110156105ad573373ffffffffffffffffffffffffffffffffffffffff167f0000000000000000000000001720d3a3984c75e6514316c5aec903651e4abe2873ffffffffffffffffffffffffffffffffffffffff16636352211e8686858181106103cf576103ce6117ec565b5b905060200201356040518263ffffffff1660e01b81526004016103f29190611586565b602060405180830381865afa15801561040f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104339190611830565b73ffffffffffffffffffffffffffffffffffffffff1614610489576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610480906118cf565b60405180910390fd5b7f0000000000000000000000001720d3a3984c75e6514316c5aec903651e4abe2873ffffffffffffffffffffffffffffffffffffffff166323b872dd33308787868181106104da576104d96117ec565b5b905060200201356040518463ffffffff1660e01b81526004016104ff939291906118ef565b600060405180830381600087803b15801561051957600080fd5b505af115801561052d573d6000803e3d6000fd5b505050503360046000868685818110610549576105486117ec565b5b90506020020135815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806105a690611926565b9050610361565b5080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282546106009190611796565b9250508190555042600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040181905550600280549050600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018190555080600160008282546106ac9190611796565b925050819055505060016000819055505050565b60006106cb336110c7565b905080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101600082825461071f9190611796565b925050819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030154600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101546107b8919061196e565b9050600081116107fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f4906119ee565b60405180910390fd5b42600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040181905550600280549050600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002018190555080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030160008282546108e29190611796565b9250508190555080600560008282546108fb9190611796565b925050819055507f00000000000000000000000064b78325d7495d6d4be92f234fa3f3b8d8964b8b73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161095d929190611a0e565b6020604051808303816000875af115801561097c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a09190611a6f565b6109df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d690611ae8565b60405180910390fd5b5050565b600080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154610a328461124d565b91509150915091565b7f0000000000000000000000001720d3a3984c75e6514316c5aec903651e4abe2881565b60015481565b60036020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154905085565b60008111610ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad590611b54565b60405180910390fd5b7f00000000000000000000000064b78325d7495d6d4be92f234fa3f3b8d8964b8b73ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401610b3b939291906118ef565b6020604051808303816000875af1158015610b5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7e9190611a6f565b610bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb490611bc0565b60405180910390fd5b600260405180606001604052808381526020018381526020016001548152509080600181540180825580915050600190039060005260206000209060030201600090919091909150600082015181600001556020820151816001015560408201518160020155505050565b60046020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260005403610ca0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9790611747565b60405180910390fd5b60026000819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411610d2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2490611c2c565b60405180910390fd5b6000610d38336110c7565b905080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254610d8c9190611796565b92505081905550600280549050600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020181905550600083839050905060005b81811015610f9b573373ffffffffffffffffffffffffffffffffffffffff1660046000878785818110610e2057610e1f6117ec565b5b90506020020135815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610e7657600080fd5b600060046000878785818110610e8f57610e8e6117ec565b5b90506020020135815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f0000000000000000000000001720d3a3984c75e6514316c5aec903651e4abe2873ffffffffffffffffffffffffffffffffffffffff166323b872dd3033888886818110610f3357610f326117ec565b5b905060200201356040518463ffffffff1660e01b8152600401610f58939291906118ef565b600060405180830381600087803b158015610f7257600080fd5b505af1158015610f86573d6000803e3d6000fd5b5050505080610f9490611926565b9050610dea565b5080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254610fee919061196e565b9250508190555042600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060040181905550806001600082825461104e919061196e565b92505081905550505060016000819055505050565b6002818154811061107357600080fd5b90600052602060002090600302016000915090508060000154908060010154908060020154905083565b7f00000000000000000000000064b78325d7495d6d4be92f234fa3f3b8d8964b8b81565b60055481565b60008060006002805490501180156111255750600280549050600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020154105b15611244576000600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206002015490505b6002805490508110156112425760028181548110611193576111926117ec565b5b906000526020600020906003020160020154600282815481106111b9576111b86117ec565b5b906000526020600020906003020160000154600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546112189190611c4c565b6112229190611cd5565b8261122d9190611796565b9150808061123a90611926565b915050611172565b505b80915050919050565b600080600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154116112d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ca90611d52565b60405180910390fd5b60006112de836110c7565b9050600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003015481600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101546113719190611796565b61137b919061196e565b915050919050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f8401126113b2576113b161138d565b5b8235905067ffffffffffffffff8111156113cf576113ce611392565b5b6020830191508360208202830111156113eb576113ea611397565b5b9250929050565b6000806020838503121561140957611408611383565b5b600083013567ffffffffffffffff81111561142757611426611388565b5b6114338582860161139c565b92509250509250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061146a8261143f565b9050919050565b61147a8161145f565b811461148557600080fd5b50565b60008135905061149781611471565b92915050565b6000602082840312156114b3576114b2611383565b5b60006114c184828501611488565b91505092915050565b6000819050919050565b6114dd816114ca565b82525050565b60006040820190506114f860008301856114d4565b61150560208301846114d4565b9392505050565b6000819050919050565b600061153161152c6115278461143f565b61150c565b61143f565b9050919050565b600061154382611516565b9050919050565b600061155582611538565b9050919050565b6115658161154a565b82525050565b6000602082019050611580600083018461155c565b92915050565b600060208201905061159b60008301846114d4565b92915050565b600060a0820190506115b660008301886114d4565b6115c360208301876114d4565b6115d060408301866114d4565b6115dd60608301856114d4565b6115ea60808301846114d4565b9695505050505050565b6115fd816114ca565b811461160857600080fd5b50565b60008135905061161a816115f4565b92915050565b60006020828403121561163657611635611383565b5b60006116448482850161160b565b91505092915050565b6116568161145f565b82525050565b6000602082019050611671600083018461164d565b92915050565b600060608201905061168c60008301866114d4565b61169960208301856114d4565b6116a660408301846114d4565b949350505050565b60006116b982611538565b9050919050565b6116c9816116ae565b82525050565b60006020820190506116e460008301846116c0565b92915050565b600082825260208201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611731601f836116ea565b915061173c826116fb565b602082019050919050565b6000602082019050818103600083015261176081611724565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006117a1826114ca565b91506117ac836114ca565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156117e1576117e0611767565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061182a81611471565b92915050565b60006020828403121561184657611845611383565b5b60006118548482850161181b565b91505092915050565b7f43616e2774207374616b6520746f6b656e7320796f7520646f6e2774206f776e60008201527f2100000000000000000000000000000000000000000000000000000000000000602082015250565b60006118b96021836116ea565b91506118c48261185d565b604082019050919050565b600060208201905081810360008301526118e8816118ac565b9050919050565b6000606082019050611904600083018661164d565b611911602083018561164d565b61191e60408301846114d4565b949350505050565b6000611931826114ca565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361196357611962611767565b5b600182019050919050565b6000611979826114ca565b9150611984836114ca565b92508282101561199757611996611767565b5b828203905092915050565b7f596f752068617665206e6f207265776172647320746f20636c61696d00000000600082015250565b60006119d8601c836116ea565b91506119e3826119a2565b602082019050919050565b60006020820190508181036000830152611a07816119cb565b9050919050565b6000604082019050611a23600083018561164d565b611a3060208301846114d4565b9392505050565b60008115159050919050565b611a4c81611a37565b8114611a5757600080fd5b50565b600081519050611a6981611a43565b92915050565b600060208284031215611a8557611a84611383565b5b6000611a9384828501611a5a565b91505092915050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000611ad2600f836116ea565b9150611add82611a9c565b602082019050919050565b60006020820190508181036000830152611b0181611ac5565b9050919050565b7f416d6f756e742073686f756c642062652067726561746572207468616e203000600082015250565b6000611b3e601f836116ea565b9150611b4982611b08565b602082019050919050565b60006020820190508181036000830152611b6d81611b31565b9050919050565b7f5472616e73666572206f662066756e6473206661696c65640000000000000000600082015250565b6000611baa6018836116ea565b9150611bb582611b74565b602082019050919050565b60006020820190508181036000830152611bd981611b9d565b9050919050565b7f596f752068617665206e6f20746f6b656e73207374616b656400000000000000600082015250565b6000611c166019836116ea565b9150611c2182611be0565b602082019050919050565b60006020820190508181036000830152611c4581611c09565b9050919050565b6000611c57826114ca565b9150611c62836114ca565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611c9b57611c9a611767565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611ce0826114ca565b9150611ceb836114ca565b925082611cfb57611cfa611ca6565b5b828204905092915050565b7f5573657220686173206e6f20746f6b656e73207374616b656400000000000000600082015250565b6000611d3c6019836116ea565b9150611d4782611d06565b602082019050919050565b60006020820190508181036000830152611d6b81611d2f565b905091905056fea26469706673582212203523a7c8ebc2d7ceb78c2d1089724c166db6c5003136b09fe869c498374fa20d64736f6c634300080f0033

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

0000000000000000000000001720d3a3984c75e6514316c5aec903651e4abe2800000000000000000000000064b78325d7495d6d4be92f234fa3f3b8d8964b8b

-----Decoded View---------------
Arg [0] : _nftCollection (address): 0x1720d3a3984c75E6514316c5AeC903651E4abe28
Arg [1] : _rewardsToken (address): 0x64b78325d7495D6d4be92f234fa3f3B8d8964B8b

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001720d3a3984c75e6514316c5aec903651e4abe28
Arg [1] : 00000000000000000000000064b78325d7495d6d4be92f234fa3f3b8d8964b8b


Deployed Bytecode Sourcemap

26095:6449:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28288:901;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;30456:634;;;:::i;:::-;;31439:221;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;26226:38;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;26273:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;27016:41;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;31098:283;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;27176:48;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;29515:804;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;26937:23;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;26183:36;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;27233:24;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;28288:901;1846:1;2444:7;;:19;2436:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;1846:1;2577:7;:18;;;;28405:1:::1;28370:7;:19;28378:10;28370:19;;;;;;;;;;;;;;;:32;;;:36;28366:224;;;28423:15;28441:28;28458:10;28441:16;:28::i;:::-;28423:46;;28515:7;28484;:19;28492:10;28484:19;;;;;;;;;;;;;;;:27;;;:38;;;;;;;:::i;:::-;;;;;;;;28408:182;28366:224;28600:11;28614:9;;:16;;28600:30;;28646:9;28641:338;28661:3;28657:1;:7;28641:338;;;28751:10;28712:49;;:13;:21;;;28734:9;;28744:1;28734:12;;;;;;;:::i;:::-;;;;;;;;28712:35;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:49;;;28686:144;;;;;;;;;;;;:::i;:::-;;;;;;;;;28845:13;:26;;;28872:10;28892:4;28899:9;;28909:1;28899:12;;;;;;;:::i;:::-;;;;;;;;28845:67;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;28957:10;28927:13;:27;28941:9;;28951:1;28941:12;;;;;;;:::i;:::-;;;;;;;;28927:27;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;28666:3;;;;:::i;:::-;;;28641:338;;;;29025:3;28989:7;:19;28997:10;28989:19;;;;;;;;;;;;;;;:32;;;:39;;;;;;;:::i;:::-;;;;;;;;29078:15;29039:7;:19;29047:10;29039:19;;;;;;;;;;;;;;;:36;;:54;;;;29138:7;:14;;;;29104:7;:19;29112:10;29104:19;;;;;;;;;;;;;;;:31;;:48;;;;29178:3;29163:11;;:18;;;;;;;:::i;:::-;;;;;;;;28355:834;1802:1:::0;2756:7;:22;;;;28288:901;;:::o;30456:634::-;30500:15;30518:28;30535:10;30518:16;:28::i;:::-;30500:46;;30588:7;30557;:19;30565:10;30557:19;;;;;;;;;;;;;;;:27;;;:38;;;;;;;:::i;:::-;;;;;;;;30606:27;30666:7;:19;30674:10;30666:19;;;;;;;;;;;;;;;:24;;;30636:7;:19;30644:10;30636:19;;;;;;;;;;;;;;;:27;;;:54;;;;:::i;:::-;30606:84;;30731:1;30709:19;:23;30701:64;;;;;;;;;;;;:::i;:::-;;;;;;;;;30815:15;30776:7;:19;30784:10;30776:19;;;;;;;;;;;;;;;:36;;:54;;;;30875:7;:14;;;;30841:7;:19;30849:10;30841:19;;;;;;;;;;;;;;;:31;;:48;;;;30928:19;30900:7;:19;30908:10;30900:19;;;;;;;;;;;;;;;:24;;;:47;;;;;;;:::i;:::-;;;;;;;;30971:19;30958:9;;:32;;;;;;;:::i;:::-;;;;;;;;31009:12;:21;;;31031:10;31043:19;31009:54;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;31001:81;;;;;;;;;;;;:::i;:::-;;;;;;;;;30489:601;;30456:634::o;31439:221::-;31525:21;31548:25;31599:7;:14;31607:5;31599:14;;;;;;;;;;;;;;;:27;;;31628:23;31645:5;31628:16;:23::i;:::-;31591:61;;;;31439:221;;;:::o;26226:38::-;;;:::o;26273:26::-;;;;:::o;27016:41::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;31098:283::-;31170:1;31160:7;:11;31152:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;31224:12;:25;;;31250:10;31270:4;31277:7;31224:61;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;31216:98;;;;;;;;;;;;:::i;:::-;;;;;;;;;31323:7;31336:36;;;;;;;;31343:7;31336:36;;;;31351:7;31336:36;;;;31360:11;;31336:36;;;31323:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31098:283;:::o;27176:48::-;;;;;;;;;;;;;;;;;;;;;;:::o;29515:804::-;1846:1;2444:7;;:19;2436:63;;;;;;;;;;;;:::i;:::-;;;;;;;;;1846:1;2577:7;:18;;;;29653:1:::1;29618:7;:19;29626:10;29618:19;;;;;;;;;;;;;;;:32;;;:36;29596:111;;;;;;;;;;;;:::i;:::-;;;;;;;;;29718:15;29736:28;29753:10;29736:16;:28::i;:::-;29718:46;;29806:7;29775;:19;29783:10;29775:19;;;;;;;;;;;;;;;:27;;;:38;;;;;;;:::i;:::-;;;;;;;;29858:7;:14;;;;29824:7;:19;29832:10;29824:19;;;;;;;;;;;;;;;:31;;:48;;;;29883:11;29897:9;;:16;;29883:30;;29929:9;29924:244;29944:3;29940:1;:7;29924:244;;;30008:10;29977:41;;:13;:27;29991:9;;30001:1;29991:12;;;;;;;:::i;:::-;;;;;;;;29977:27;;;;;;;;;;;;;;;;;;;;;:41;;;29969:50;;;::::0;::::1;;30072:1;30034:13;:27;30048:9;;30058:1;30048:12;;;;;;;:::i;:::-;;;;;;;;30034:27;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;30089:13;:26;;;30124:4;30131:10;30143:9;;30153:1;30143:12;;;;;;;:::i;:::-;;;;;;;;30089:67;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;29949:3;;;;:::i;:::-;;;29924:244;;;;30214:3;30178:7;:19;30186:10;30178:19;;;;;;;;;;;;;;;:32;;;:39;;;;;;;:::i;:::-;;;;;;;;30267:15;30228:7;:19;30236:10;30228:19;;;;;;;;;;;;;;;:36;;:54;;;;30308:3;30293:11;;:18;;;;;;;:::i;:::-;;;;;;;;29585:734;;1802:1:::0;2756:7;:22;;;;29515:804;;:::o;26937:23::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;26183:36::-;;;:::o;27233:24::-;;;;:::o;32018:519::-;32111:7;32136:34;32201:1;32184:7;:14;;;;:18;:67;;;;;32237:7;:14;;;;32206:7;:16;32214:7;32206:16;;;;;;;;;;;;;;;:28;;;:45;32184:67;32181:305;;;32272:6;32281:7;:16;32289:7;32281:16;;;;;;;;;;;;;;;:28;;;32272:37;;32268:207;32315:7;:14;;;;32311:1;:18;32268:207;;;32437:7;32445:1;32437:10;;;;;;;;:::i;:::-;;;;;;;;;;;;:22;;;32417:7;32425:1;32417:10;;;;;;;;:::i;:::-;;;;;;;;;;;;:17;;;32385:7;:16;32393:7;32385:16;;;;;;;;;;;;;;;:29;;;:49;;;;:::i;:::-;:74;;;;:::i;:::-;32355:104;;;;;:::i;:::-;;;32331:3;;;;;:::i;:::-;;;;32268:207;;;;32181:305;32503:26;32496:33;;;32018:519;;;:::o;31668:285::-;31732:7;31790:1;31760:7;:14;31768:5;31760:14;;;;;;;;;;;;;;;:27;;;:31;31752:69;;;;;;;;;;;;:::i;:::-;;;;;;;;;31832:15;31850:23;31867:5;31850:16;:23::i;:::-;31832:41;;31926:7;:14;31934:5;31926:14;;;;;;;;;;;;;;;:19;;;31916:7;31891;:14;31899:5;31891:14;;;;;;;;;;;;;;;:22;;;:32;;;;:::i;:::-;:54;;;;:::i;:::-;31884:61;;;31668:285;;;:::o;88:117:1:-;197:1;194;187:12;211:117;320:1;317;310:12;334:117;443:1;440;433:12;457:117;566:1;563;556:12;580:117;689:1;686;679:12;720:568;793:8;803:6;853:3;846:4;838:6;834:17;830:27;820:122;;861:79;;:::i;:::-;820:122;974:6;961:20;951:30;;1004:18;996:6;993:30;990:117;;;1026:79;;:::i;:::-;990:117;1140:4;1132:6;1128:17;1116:29;;1194:3;1186:4;1178:6;1174:17;1164:8;1160:32;1157:41;1154:128;;;1201:79;;:::i;:::-;1154:128;720:568;;;;;:::o;1294:559::-;1380:6;1388;1437:2;1425:9;1416:7;1412:23;1408:32;1405:119;;;1443:79;;:::i;:::-;1405:119;1591:1;1580:9;1576:17;1563:31;1621:18;1613:6;1610:30;1607:117;;;1643:79;;:::i;:::-;1607:117;1756:80;1828:7;1819:6;1808:9;1804:22;1756:80;:::i;:::-;1738:98;;;;1534:312;1294:559;;;;;:::o;1859:126::-;1896:7;1936:42;1929:5;1925:54;1914:65;;1859:126;;;:::o;1991:96::-;2028:7;2057:24;2075:5;2057:24;:::i;:::-;2046:35;;1991:96;;;:::o;2093:122::-;2166:24;2184:5;2166:24;:::i;:::-;2159:5;2156:35;2146:63;;2205:1;2202;2195:12;2146:63;2093:122;:::o;2221:139::-;2267:5;2305:6;2292:20;2283:29;;2321:33;2348:5;2321:33;:::i;:::-;2221:139;;;;:::o;2366:329::-;2425:6;2474:2;2462:9;2453:7;2449:23;2445:32;2442:119;;;2480:79;;:::i;:::-;2442:119;2600:1;2625:53;2670:7;2661:6;2650:9;2646:22;2625:53;:::i;:::-;2615:63;;2571:117;2366:329;;;;:::o;2701:77::-;2738:7;2767:5;2756:16;;2701:77;;;:::o;2784:118::-;2871:24;2889:5;2871:24;:::i;:::-;2866:3;2859:37;2784:118;;:::o;2908:332::-;3029:4;3067:2;3056:9;3052:18;3044:26;;3080:71;3148:1;3137:9;3133:17;3124:6;3080:71;:::i;:::-;3161:72;3229:2;3218:9;3214:18;3205:6;3161:72;:::i;:::-;2908:332;;;;;:::o;3246:60::-;3274:3;3295:5;3288:12;;3246:60;;;:::o;3312:142::-;3362:9;3395:53;3413:34;3422:24;3440:5;3422:24;:::i;:::-;3413:34;:::i;:::-;3395:53;:::i;:::-;3382:66;;3312:142;;;:::o;3460:126::-;3510:9;3543:37;3574:5;3543:37;:::i;:::-;3530:50;;3460:126;;;:::o;3592:141::-;3657:9;3690:37;3721:5;3690:37;:::i;:::-;3677:50;;3592:141;;;:::o;3739:161::-;3841:52;3887:5;3841:52;:::i;:::-;3836:3;3829:65;3739:161;;:::o;3906:252::-;4014:4;4052:2;4041:9;4037:18;4029:26;;4065:86;4148:1;4137:9;4133:17;4124:6;4065:86;:::i;:::-;3906:252;;;;:::o;4164:222::-;4257:4;4295:2;4284:9;4280:18;4272:26;;4308:71;4376:1;4365:9;4361:17;4352:6;4308:71;:::i;:::-;4164:222;;;;:::o;4392:664::-;4597:4;4635:3;4624:9;4620:19;4612:27;;4649:71;4717:1;4706:9;4702:17;4693:6;4649:71;:::i;:::-;4730:72;4798:2;4787:9;4783:18;4774:6;4730:72;:::i;:::-;4812;4880:2;4869:9;4865:18;4856:6;4812:72;:::i;:::-;4894;4962:2;4951:9;4947:18;4938:6;4894:72;:::i;:::-;4976:73;5044:3;5033:9;5029:19;5020:6;4976:73;:::i;:::-;4392:664;;;;;;;;:::o;5062:122::-;5135:24;5153:5;5135:24;:::i;:::-;5128:5;5125:35;5115:63;;5174:1;5171;5164:12;5115:63;5062:122;:::o;5190:139::-;5236:5;5274:6;5261:20;5252:29;;5290:33;5317:5;5290:33;:::i;:::-;5190:139;;;;:::o;5335:329::-;5394:6;5443:2;5431:9;5422:7;5418:23;5414:32;5411:119;;;5449:79;;:::i;:::-;5411:119;5569:1;5594:53;5639:7;5630:6;5619:9;5615:22;5594:53;:::i;:::-;5584:63;;5540:117;5335:329;;;;:::o;5670:118::-;5757:24;5775:5;5757:24;:::i;:::-;5752:3;5745:37;5670:118;;:::o;5794:222::-;5887:4;5925:2;5914:9;5910:18;5902:26;;5938:71;6006:1;5995:9;5991:17;5982:6;5938:71;:::i;:::-;5794:222;;;;:::o;6022:442::-;6171:4;6209:2;6198:9;6194:18;6186:26;;6222:71;6290:1;6279:9;6275:17;6266:6;6222:71;:::i;:::-;6303:72;6371:2;6360:9;6356:18;6347:6;6303:72;:::i;:::-;6385;6453:2;6442:9;6438:18;6429:6;6385:72;:::i;:::-;6022:442;;;;;;:::o;6470:140::-;6534:9;6567:37;6598:5;6567:37;:::i;:::-;6554:50;;6470:140;;;:::o;6616:159::-;6717:51;6762:5;6717:51;:::i;:::-;6712:3;6705:64;6616:159;;:::o;6781:250::-;6888:4;6926:2;6915:9;6911:18;6903:26;;6939:85;7021:1;7010:9;7006:17;6997:6;6939:85;:::i;:::-;6781:250;;;;:::o;7037:169::-;7121:11;7155:6;7150:3;7143:19;7195:4;7190:3;7186:14;7171:29;;7037:169;;;;:::o;7212:181::-;7352:33;7348:1;7340:6;7336:14;7329:57;7212:181;:::o;7399:366::-;7541:3;7562:67;7626:2;7621:3;7562:67;:::i;:::-;7555:74;;7638:93;7727:3;7638:93;:::i;:::-;7756:2;7751:3;7747:12;7740:19;;7399:366;;;:::o;7771:419::-;7937:4;7975:2;7964:9;7960:18;7952:26;;8024:9;8018:4;8014:20;8010:1;7999:9;7995:17;7988:47;8052:131;8178:4;8052:131;:::i;:::-;8044:139;;7771:419;;;:::o;8196:180::-;8244:77;8241:1;8234:88;8341:4;8338:1;8331:15;8365:4;8362:1;8355:15;8382:305;8422:3;8441:20;8459:1;8441:20;:::i;:::-;8436:25;;8475:20;8493:1;8475:20;:::i;:::-;8470:25;;8629:1;8561:66;8557:74;8554:1;8551:81;8548:107;;;8635:18;;:::i;:::-;8548:107;8679:1;8676;8672:9;8665:16;;8382:305;;;;:::o;8693:180::-;8741:77;8738:1;8731:88;8838:4;8835:1;8828:15;8862:4;8859:1;8852:15;8879:143;8936:5;8967:6;8961:13;8952:22;;8983:33;9010:5;8983:33;:::i;:::-;8879:143;;;;:::o;9028:351::-;9098:6;9147:2;9135:9;9126:7;9122:23;9118:32;9115:119;;;9153:79;;:::i;:::-;9115:119;9273:1;9298:64;9354:7;9345:6;9334:9;9330:22;9298:64;:::i;:::-;9288:74;;9244:128;9028:351;;;;:::o;9385:220::-;9525:34;9521:1;9513:6;9509:14;9502:58;9594:3;9589:2;9581:6;9577:15;9570:28;9385:220;:::o;9611:366::-;9753:3;9774:67;9838:2;9833:3;9774:67;:::i;:::-;9767:74;;9850:93;9939:3;9850:93;:::i;:::-;9968:2;9963:3;9959:12;9952:19;;9611:366;;;:::o;9983:419::-;10149:4;10187:2;10176:9;10172:18;10164:26;;10236:9;10230:4;10226:20;10222:1;10211:9;10207:17;10200:47;10264:131;10390:4;10264:131;:::i;:::-;10256:139;;9983:419;;;:::o;10408:442::-;10557:4;10595:2;10584:9;10580:18;10572:26;;10608:71;10676:1;10665:9;10661:17;10652:6;10608:71;:::i;:::-;10689:72;10757:2;10746:9;10742:18;10733:6;10689:72;:::i;:::-;10771;10839:2;10828:9;10824:18;10815:6;10771:72;:::i;:::-;10408:442;;;;;;:::o;10856:233::-;10895:3;10918:24;10936:5;10918:24;:::i;:::-;10909:33;;10964:66;10957:5;10954:77;10951:103;;11034:18;;:::i;:::-;10951:103;11081:1;11074:5;11070:13;11063:20;;10856:233;;;:::o;11095:191::-;11135:4;11155:20;11173:1;11155:20;:::i;:::-;11150:25;;11189:20;11207:1;11189:20;:::i;:::-;11184:25;;11228:1;11225;11222:8;11219:34;;;11233:18;;:::i;:::-;11219:34;11278:1;11275;11271:9;11263:17;;11095:191;;;;:::o;11292:178::-;11432:30;11428:1;11420:6;11416:14;11409:54;11292:178;:::o;11476:366::-;11618:3;11639:67;11703:2;11698:3;11639:67;:::i;:::-;11632:74;;11715:93;11804:3;11715:93;:::i;:::-;11833:2;11828:3;11824:12;11817:19;;11476:366;;;:::o;11848:419::-;12014:4;12052:2;12041:9;12037:18;12029:26;;12101:9;12095:4;12091:20;12087:1;12076:9;12072:17;12065:47;12129:131;12255:4;12129:131;:::i;:::-;12121:139;;11848:419;;;:::o;12273:332::-;12394:4;12432:2;12421:9;12417:18;12409:26;;12445:71;12513:1;12502:9;12498:17;12489:6;12445:71;:::i;:::-;12526:72;12594:2;12583:9;12579:18;12570:6;12526:72;:::i;:::-;12273:332;;;;;:::o;12611:90::-;12645:7;12688:5;12681:13;12674:21;12663:32;;12611:90;;;:::o;12707:116::-;12777:21;12792:5;12777:21;:::i;:::-;12770:5;12767:32;12757:60;;12813:1;12810;12803:12;12757:60;12707:116;:::o;12829:137::-;12883:5;12914:6;12908:13;12899:22;;12930:30;12954:5;12930:30;:::i;:::-;12829:137;;;;:::o;12972:345::-;13039:6;13088:2;13076:9;13067:7;13063:23;13059:32;13056:119;;;13094:79;;:::i;:::-;13056:119;13214:1;13239:61;13292:7;13283:6;13272:9;13268:22;13239:61;:::i;:::-;13229:71;;13185:125;12972:345;;;;:::o;13323:165::-;13463:17;13459:1;13451:6;13447:14;13440:41;13323:165;:::o;13494:366::-;13636:3;13657:67;13721:2;13716:3;13657:67;:::i;:::-;13650:74;;13733:93;13822:3;13733:93;:::i;:::-;13851:2;13846:3;13842:12;13835:19;;13494:366;;;:::o;13866:419::-;14032:4;14070:2;14059:9;14055:18;14047:26;;14119:9;14113:4;14109:20;14105:1;14094:9;14090:17;14083:47;14147:131;14273:4;14147:131;:::i;:::-;14139:139;;13866:419;;;:::o;14291:181::-;14431:33;14427:1;14419:6;14415:14;14408:57;14291:181;:::o;14478:366::-;14620:3;14641:67;14705:2;14700:3;14641:67;:::i;:::-;14634:74;;14717:93;14806:3;14717:93;:::i;:::-;14835:2;14830:3;14826:12;14819:19;;14478:366;;;:::o;14850:419::-;15016:4;15054:2;15043:9;15039:18;15031:26;;15103:9;15097:4;15093:20;15089:1;15078:9;15074:17;15067:47;15131:131;15257:4;15131:131;:::i;:::-;15123:139;;14850:419;;;:::o;15275:174::-;15415:26;15411:1;15403:6;15399:14;15392:50;15275:174;:::o;15455:366::-;15597:3;15618:67;15682:2;15677:3;15618:67;:::i;:::-;15611:74;;15694:93;15783:3;15694:93;:::i;:::-;15812:2;15807:3;15803:12;15796:19;;15455:366;;;:::o;15827:419::-;15993:4;16031:2;16020:9;16016:18;16008:26;;16080:9;16074:4;16070:20;16066:1;16055:9;16051:17;16044:47;16108:131;16234:4;16108:131;:::i;:::-;16100:139;;15827:419;;;:::o;16252:175::-;16392:27;16388:1;16380:6;16376:14;16369:51;16252:175;:::o;16433:366::-;16575:3;16596:67;16660:2;16655:3;16596:67;:::i;:::-;16589:74;;16672:93;16761:3;16672:93;:::i;:::-;16790:2;16785:3;16781:12;16774:19;;16433:366;;;:::o;16805:419::-;16971:4;17009:2;16998:9;16994:18;16986:26;;17058:9;17052:4;17048:20;17044:1;17033:9;17029:17;17022:47;17086:131;17212:4;17086:131;:::i;:::-;17078:139;;16805:419;;;:::o;17230:348::-;17270:7;17293:20;17311:1;17293:20;:::i;:::-;17288:25;;17327:20;17345:1;17327:20;:::i;:::-;17322:25;;17515:1;17447:66;17443:74;17440:1;17437:81;17432:1;17425:9;17418:17;17414:105;17411:131;;;17522:18;;:::i;:::-;17411:131;17570:1;17567;17563:9;17552:20;;17230:348;;;;:::o;17584:180::-;17632:77;17629:1;17622:88;17729:4;17726:1;17719:15;17753:4;17750:1;17743:15;17770:185;17810:1;17827:20;17845:1;17827:20;:::i;:::-;17822:25;;17861:20;17879:1;17861:20;:::i;:::-;17856:25;;17900:1;17890:35;;17905:18;;:::i;:::-;17890:35;17947:1;17944;17940:9;17935:14;;17770:185;;;;:::o;17961:175::-;18101:27;18097:1;18089:6;18085:14;18078:51;17961:175;:::o;18142:366::-;18284:3;18305:67;18369:2;18364:3;18305:67;:::i;:::-;18298:74;;18381:93;18470:3;18381:93;:::i;:::-;18499:2;18494:3;18490:12;18483:19;;18142:366;;;:::o;18514:419::-;18680:4;18718:2;18707:9;18703:18;18695:26;;18767:9;18761:4;18757:20;18753:1;18742:9;18738:17;18731:47;18795:131;18921:4;18795:131;:::i;:::-;18787:139;;18514:419;;;:::o

Swarm Source

ipfs://3523a7c8ebc2d7ceb78c2d1089724c166db6c5003136b09fe869c498374fa20d

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.