ETH Price: $2,114.72 (+4.52%)

Contract

0x8F535b31af83f3217B1d45e04559b34542c61dc8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim215707532025-01-07 6:18:23429 days ago1736230703IN
0x8F535b31...542c61dc8
0 ETH0.001150545.90088177
Claim171122492023-04-23 23:21:111054 days ago1682292071IN
0x8F535b31...542c61dc8
0 ETH0.0031114839.3038479
Toggle Staking170933762023-04-21 7:46:111056 days ago1682063171IN
0x8F535b31...542c61dc8
0 ETH0.0021326239.18544332
Claim170924592023-04-21 4:40:471056 days ago1682052047IN
0x8F535b31...542c61dc8
0 ETH0.004847539.72130738
Claim170571772023-04-16 4:43:111061 days ago1681620191IN
0x8F535b31...542c61dc8
0 ETH0.0034000924.22978452
Claim170337032023-04-12 18:30:231065 days ago1681324223IN
0x8F535b31...542c61dc8
0 ETH0.0020295325.63673957
Claim170310192023-04-12 9:24:231065 days ago1681291463IN
0x8F535b31...542c61dc8
0 ETH0.0016800121.221626
Claim170281292023-04-11 23:37:231066 days ago1681256243IN
0x8F535b31...542c61dc8
0 ETH0.0017053421.5416529
Claim170281032023-04-11 23:32:111066 days ago1681255931IN
0x8F535b31...542c61dc8
0 ETH0.0013496520.04798883
Claim170250922023-04-11 13:16:471066 days ago1681219007IN
0x8F535b31...542c61dc8
0 ETH0.0037460621.44851681
Claim170174052023-04-10 11:08:111067 days ago1681124891IN
0x8F535b31...542c61dc8
0 ETH0.0027861519.64096996
Toggle Staking169996182023-04-07 22:39:471070 days ago1680907187IN
0x8F535b31...542c61dc8
0 ETH0.0011524721.17592712
Claim169965982023-04-07 12:25:471070 days ago1680870347IN
0x8F535b31...542c61dc8
0 ETH0.0083206523.39107931
Claim169949962023-04-07 6:56:351070 days ago1680850595IN
0x8F535b31...542c61dc8
0 ETH0.0046574421.8274991
Toggle Staking169898842023-04-06 13:33:351071 days ago1680788015IN
0x8F535b31...542c61dc8
0 ETH0.0017748832.87311898
Claim169814662023-04-05 8:41:591072 days ago1680684119IN
0x8F535b31...542c61dc8
0 ETH0.019308632.24442332
Claim169696182023-04-03 16:16:111074 days ago1680538571IN
0x8F535b31...542c61dc8
0 ETH0.0111587431.71124434
Claim169670012023-04-03 7:23:231074 days ago1680506603IN
0x8F535b31...542c61dc8
0 ETH0.0028791322.06892841
Toggle Staking169638502023-04-02 20:45:111075 days ago1680468311IN
0x8F535b31...542c61dc8
0 ETH0.0012255822.69944757
Claim169559642023-04-01 18:04:591076 days ago1680372299IN
0x8F535b31...542c61dc8
0 ETH0.0018237318.1653806
Claim169533882023-04-01 9:23:471076 days ago1680341027IN
0x8F535b31...542c61dc8
0 ETH0.0066290321.72848326
Claim169357402023-03-29 21:55:111079 days ago1680126911IN
0x8F535b31...542c61dc8
0 ETH0.0046578627.39502081
Claim169148412023-03-26 23:23:231082 days ago1679873003IN
0x8F535b31...542c61dc8
0 ETH0.007447814.6998723
Claim169144362023-03-26 22:00:591082 days ago1679868059IN
0x8F535b31...542c61dc8
0 ETH0.0014698318.56676512
Toggle Staking169135262023-03-26 18:57:351082 days ago1679857055IN
0x8F535b31...542c61dc8
0 ETH0.001032219.11780155
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TenFTGiraffesStake

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.4;

import "./GRFToken.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";


contract TenFTGiraffesStake is  Ownable {
 // uint256 public totalStaked;
  uint256 private rewardsPerDay = 10000000000000000000;//10 ether
  // struct to store a stake's token, owner, and earning values
 
    ///NEWWW
    mapping(uint256 => uint256) private stakeStarted;
    mapping(uint256 => uint256) private stakingTotal;
    bool public stakeOpen = false;
    event Staked(uint256 indexed tokenId);
    event Unstaked(uint256 indexed tokenId);
    event Expelled(uint256 indexed tokenId);

    IERC721Enumerable nft;
    GRF token;

     constructor(IERC721Enumerable _nft, GRF _token) { 
            nft = _nft;
            token = _token;
        }


    function toggleStaking(uint256[] calldata tokenIds) external {
        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
        _toggleStaking(msg.sender,tokenIds[i]);
        }
    }
    function _toggleStaking(address account,uint256 tokenId) internal{
        require(stakeOpen, "10FTGiraffes: staking closed");
        require(nft.ownerOf(tokenId) == account,"10FTGiraffes: Not owner");
        uint256 start = stakeStarted[tokenId];
        if (start == 0) {
        stakeStarted[tokenId] = block.timestamp;
        emit Staked(tokenId);
        } else {
        stakingTotal[tokenId] += block.timestamp - start;
        stakeStarted[tokenId] = 0;
        emit Unstaked(tokenId);
        }
    }

    function claim(uint256[] calldata tokenIds) external {
        _claimforTokens(msg.sender, tokenIds);
    }

    function _claimforTokens(address account,uint256[] calldata tokenIds) internal {
        uint256 tokenId;
        uint256 start;
        uint256 current;
        uint256 totaltimeforToken;
        uint256 totalforTokens;
      for (uint i = 0; i < tokenIds.length; i++) {
        tokenId = tokenIds[i];
        require(nft.ownerOf(tokenId) == account,"10FTGiraffes: Not owner");
        start = stakeStarted[tokenId];
        if (start != 0) {
        current = block.timestamp - start;
        stakeStarted[tokenId]=block.timestamp;
        }
        stakingTotal[tokenId]=0;
        totaltimeforToken = current + stakingTotal[tokenId];
        totalforTokens += rewardsPerDay *totaltimeforToken / 86400;

     }
      if (totalforTokens > 0) {
          token.mint(account, totalforTokens);
        }
  }



    function earningInfo(uint256 tokenId) external view returns (
            bool staking,
            uint256 current,
            uint256 total,
            uint256 start
        ) {
            start = stakeStarted[tokenId];

            if (start != 0) {
            staking = true;
            current = block.timestamp - start;
            }
            total = current + stakingTotal[tokenId];
        }

   
    function earningInfoForTokens(uint256[] calldata tokenIds) external view returns (
        bool[] memory staking,
        uint256[] memory currents,
        uint256  totalforTokens,
        uint256[] memory starts
    ) {
        uint256 tokenId;
        uint256  start;
        uint256 current;
        staking=new bool[](tokenIds.length);
        starts=new uint256[](tokenIds.length);
        currents=new uint256[](tokenIds.length);
      for (uint i = 0; i < tokenIds.length; i++) {
            tokenId = tokenIds[i];
            start = stakeStarted[tokenId];
            starts[i]=start;
        if (start != 0) {
            current = block.timestamp - start;
            currents[i]=current;
            staking[i]=true;
        }else{
            currents[i]=0;
            staking[i]=false;    
        }
         totalforTokens += rewardsPerDay *(current + stakingTotal[tokenId] )/ 86400;
        }
    }

  
        function setStakingOpen(bool open) external onlyOwner {
            stakeOpen = open;
        }
        function expelFromStake(uint256 tokenId) external onlyOwner {
            require(stakeStarted[tokenId] != 0, "10FT Giraffes: not staking");

            stakingTotal[tokenId] += block.timestamp - stakeStarted[tokenId];
            stakeStarted[tokenId] = 0;

            emit Staked(tokenId);
            emit Expelled(tokenId);
        }
  
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";


contract GRF is ERC20, ERC20Burnable, Ownable {

  mapping(address => bool) controllers;
    uint256 constant MILLION = 1_000_000 * 10**uint256(18);
  uint256 constant MAX_SUPPLY = 40 * MILLION;
  constructor() ERC20("GRF", "$GRF") { }

  function mint(address to, uint256 amount) external {
    require(controllers[msg.sender], "Only controllers can mint");
    require(totalSupply() + amount <= MAX_SUPPLY,"Max supply exceeded!");
    _mint(to, amount);
  }

  function burnFrom(address account, uint256 amount) public override {
      if (controllers[msg.sender]) {
          _burn(account, amount);
      }

  }

  function addController(address controller) external onlyOwner {
    controllers[controller] = true;
  }

  function removeController(address controller) external onlyOwner {
    controllers[controller] = false;
  }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../utils/Context.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @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.openzeppelin.com/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;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _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;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _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;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _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 {}
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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);
}

// SPDX-License-Identifier: MIT
// 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;
    }
}

// SPDX-License-Identifier: MIT
// 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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

// SPDX-License-Identifier: MIT
// 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);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC721Enumerable","name":"_nft","type":"address"},{"internalType":"contract GRF","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Expelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"earningInfo","outputs":[{"internalType":"bool","name":"staking","type":"bool"},{"internalType":"uint256","name":"current","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"earningInfoForTokens","outputs":[{"internalType":"bool[]","name":"staking","type":"bool[]"},{"internalType":"uint256[]","name":"currents","type":"uint256[]"},{"internalType":"uint256","name":"totalforTokens","type":"uint256"},{"internalType":"uint256[]","name":"starts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expelFromStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"open","type":"bool"}],"name":"setStakingOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"toggleStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052678ac7230489e800006001556004805460ff1916905534801561002657600080fd5b50604051610e8e380380610e8e833981016040819052610045916100f1565b61004e33610089565b60048054610100600160a81b0319166101006001600160a01b0394851602179055600580546001600160a01b0319169190921617905561012b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146100ee57600080fd5b50565b6000806040838503121561010457600080fd5b825161010f816100d9565b6020840151909250610120816100d9565b809150509250929050565b610d548061013a6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063715018a611610066578063715018a61461011d5780638da5cb5b14610125578063987e659514610140578063b4e78ea414610175578063f2fde38b1461019257600080fd5b8063178e0c32146100a3578063564892dc146100cf5780636b6e6b4e146100e45780636ba4c138146100f75780636ef4f9b51461010a575b600080fd5b6100b66100b1366004610a9b565b6101a5565b6040516100c69493929190610b4b565b60405180910390f35b6100e26100dd366004610bc0565b6103d6565b005b6100e26100f2366004610be9565b6103f1565b6100e2610105366004610a9b565b6104fb565b6100e2610118366004610a9b565b61050a565b6100e261054e565b6000546040516001600160a01b0390911681526020016100c6565b61015361014e366004610be9565b610562565b60408051941515855260208501939093529183015260608201526080016100c6565b6004546101829060ff1681565b60405190151581526020016100c6565b6100e26101a0366004610c17565b6105ae565b6060806000818180808767ffffffffffffffff8111156101c7576101c7610c34565b6040519080825280602002602001820160405280156101f0578160200160208202803683370190505b5096508767ffffffffffffffff81111561020c5761020c610c34565b604051908082528060200260200182016040528015610235578160200160208202803683370190505b5093508767ffffffffffffffff81111561025157610251610c34565b60405190808252806020026020018201604052801561027a578160200160208202803683370190505b50955060005b888110156103c95789898281811061029a5761029a610c4a565b90506020020135935060026000858152602001908152602001600020549250828582815181106102cc576102cc610c4a565b60209081029190910101528215610331576102e78342610c76565b9150818782815181106102fc576102fc610c4a565b602002602001018181525050600188828151811061031c5761031c610c4a565b91151560209283029190910190910152610376565b600087828151811061034557610345610c4a565b602002602001018181525050600088828151811061036557610365610c4a565b911515602092830291909101909101525b60008481526003602052604090205462015180906103949084610c8d565b6001546103a19190610ca5565b6103ab9190610cc4565b6103b59087610c8d565b9550806103c181610ce6565b915050610280565b5050505092959194509250565b6103de610627565b6004805460ff1916911515919091179055565b6103f9610627565b6000818152600260205260409020546104595760405162461bcd60e51b815260206004820152601a60248201527f313046542047697261666665733a206e6f74207374616b696e6700000000000060448201526064015b60405180910390fd5b6000818152600260205260409020546104729042610c76565b60008281526003602052604081208054909190610490908490610c8d565b90915550506000818152600260205260408082208290555182917feebbaa86c348cb664e392b180fd0ff2e1998af9fa833ef69a778cb0b42d3ca2791a260405181907f3ebee94e74ea24f711b5876dca724062e18b7b37b6883e686a92f093248a4fcf90600090a250565b610506338383610681565b5050565b8060005b81811015610548576105383385858481811061052c5761052c610c4a565b90506020020135610879565b61054181610ce6565b905061050e565b50505050565b610556610627565b6105606000610a4b565b565b60008181526002602052604081205481908190801561058c57600193506105898142610c76565b92505b6000858152600360205260409020546105a59084610c8d565b91509193509193565b6105b6610627565b6001600160a01b03811661061b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610450565b61062481610a4b565b50565b6000546001600160a01b031633146105605760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610450565b600080808080805b86811015610801578787828181106106a3576106a3610c4a565b600480546040516331a9108f60e11b8152602093909302949094013590820181905298506001600160a01b038c8116936101009004169150636352211e90602401602060405180830381865afa158015610701573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107259190610d01565b6001600160a01b0316146107755760405162461bcd60e51b81526020600482015260176024820152761898232a23b4b930b33332b99d102737ba1037bbb732b960491b6044820152606401610450565b600086815260026020526040902054945084156107aa576107968542610c76565b600087815260026020526040902042905593505b60008681526003602052604081208190556107c59085610c8d565b925062015180836001546107d99190610ca5565b6107e39190610cc4565b6107ed9083610c8d565b9150806107f981610ce6565b915050610689565b50801561086f576005546040516340c10f1960e01b81526001600160a01b038a8116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b15801561085657600080fd5b505af115801561086a573d6000803e3d6000fd5b505050505b5050505050505050565b60045460ff166108cb5760405162461bcd60e51b815260206004820152601c60248201527f3130465447697261666665733a207374616b696e6720636c6f736564000000006044820152606401610450565b600480546040516331a9108f60e11b81529182018390526001600160a01b03848116926101009092041690636352211e90602401602060405180830381865afa15801561091c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109409190610d01565b6001600160a01b0316146109905760405162461bcd60e51b81526020600482015260176024820152761898232a23b4b930b33332b99d102737ba1037bbb732b960491b6044820152606401610450565b600081815260026020526040902054806109e1576000828152600260205260408082204290555183917feebbaa86c348cb664e392b180fd0ff2e1998af9fa833ef69a778cb0b42d3ca2791a2505050565b6109eb8142610c76565b60008381526003602052604081208054909190610a09908490610c8d565b90915550506000828152600260205260408082208290555183917f11725367022c3ff288940f4b5473aa61c2da6a24af7363a1128ee2401e8983b291a2505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060208385031215610aae57600080fd5b823567ffffffffffffffff80821115610ac657600080fd5b818501915085601f830112610ada57600080fd5b813581811115610ae957600080fd5b8660208260051b8501011115610afe57600080fd5b60209290920196919550909350505050565b600081518084526020808501945080840160005b83811015610b4057815187529582019590820190600101610b24565b509495945050505050565b6080808252855190820181905260009060209060a0840190828901845b82811015610b86578151151584529284019290840190600101610b68565b50505083810382850152610b9a8188610b10565b9150508460408401528281036060840152610bb58185610b10565b979650505050505050565b600060208284031215610bd257600080fd5b81358015158114610be257600080fd5b9392505050565b600060208284031215610bfb57600080fd5b5035919050565b6001600160a01b038116811461062457600080fd5b600060208284031215610c2957600080fd5b8135610be281610c02565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015610c8857610c88610c60565b500390565b60008219821115610ca057610ca0610c60565b500190565b6000816000190483118215151615610cbf57610cbf610c60565b500290565b600082610ce157634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415610cfa57610cfa610c60565b5060010190565b600060208284031215610d1357600080fd5b8151610be281610c0256fea264697066735822122060bb242c3ab89409a12a29e49885b515b0e79c84608c6c5fbf29cefb1081811c64736f6c634300080a0033000000000000000000000000b51bf70057c072c6ff803942e44b0d210fdee2fe00000000000000000000000088dcdd09231c2392e8dc59e2c37636cefa2a133b

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063715018a611610066578063715018a61461011d5780638da5cb5b14610125578063987e659514610140578063b4e78ea414610175578063f2fde38b1461019257600080fd5b8063178e0c32146100a3578063564892dc146100cf5780636b6e6b4e146100e45780636ba4c138146100f75780636ef4f9b51461010a575b600080fd5b6100b66100b1366004610a9b565b6101a5565b6040516100c69493929190610b4b565b60405180910390f35b6100e26100dd366004610bc0565b6103d6565b005b6100e26100f2366004610be9565b6103f1565b6100e2610105366004610a9b565b6104fb565b6100e2610118366004610a9b565b61050a565b6100e261054e565b6000546040516001600160a01b0390911681526020016100c6565b61015361014e366004610be9565b610562565b60408051941515855260208501939093529183015260608201526080016100c6565b6004546101829060ff1681565b60405190151581526020016100c6565b6100e26101a0366004610c17565b6105ae565b6060806000818180808767ffffffffffffffff8111156101c7576101c7610c34565b6040519080825280602002602001820160405280156101f0578160200160208202803683370190505b5096508767ffffffffffffffff81111561020c5761020c610c34565b604051908082528060200260200182016040528015610235578160200160208202803683370190505b5093508767ffffffffffffffff81111561025157610251610c34565b60405190808252806020026020018201604052801561027a578160200160208202803683370190505b50955060005b888110156103c95789898281811061029a5761029a610c4a565b90506020020135935060026000858152602001908152602001600020549250828582815181106102cc576102cc610c4a565b60209081029190910101528215610331576102e78342610c76565b9150818782815181106102fc576102fc610c4a565b602002602001018181525050600188828151811061031c5761031c610c4a565b91151560209283029190910190910152610376565b600087828151811061034557610345610c4a565b602002602001018181525050600088828151811061036557610365610c4a565b911515602092830291909101909101525b60008481526003602052604090205462015180906103949084610c8d565b6001546103a19190610ca5565b6103ab9190610cc4565b6103b59087610c8d565b9550806103c181610ce6565b915050610280565b5050505092959194509250565b6103de610627565b6004805460ff1916911515919091179055565b6103f9610627565b6000818152600260205260409020546104595760405162461bcd60e51b815260206004820152601a60248201527f313046542047697261666665733a206e6f74207374616b696e6700000000000060448201526064015b60405180910390fd5b6000818152600260205260409020546104729042610c76565b60008281526003602052604081208054909190610490908490610c8d565b90915550506000818152600260205260408082208290555182917feebbaa86c348cb664e392b180fd0ff2e1998af9fa833ef69a778cb0b42d3ca2791a260405181907f3ebee94e74ea24f711b5876dca724062e18b7b37b6883e686a92f093248a4fcf90600090a250565b610506338383610681565b5050565b8060005b81811015610548576105383385858481811061052c5761052c610c4a565b90506020020135610879565b61054181610ce6565b905061050e565b50505050565b610556610627565b6105606000610a4b565b565b60008181526002602052604081205481908190801561058c57600193506105898142610c76565b92505b6000858152600360205260409020546105a59084610c8d565b91509193509193565b6105b6610627565b6001600160a01b03811661061b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610450565b61062481610a4b565b50565b6000546001600160a01b031633146105605760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610450565b600080808080805b86811015610801578787828181106106a3576106a3610c4a565b600480546040516331a9108f60e11b8152602093909302949094013590820181905298506001600160a01b038c8116936101009004169150636352211e90602401602060405180830381865afa158015610701573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107259190610d01565b6001600160a01b0316146107755760405162461bcd60e51b81526020600482015260176024820152761898232a23b4b930b33332b99d102737ba1037bbb732b960491b6044820152606401610450565b600086815260026020526040902054945084156107aa576107968542610c76565b600087815260026020526040902042905593505b60008681526003602052604081208190556107c59085610c8d565b925062015180836001546107d99190610ca5565b6107e39190610cc4565b6107ed9083610c8d565b9150806107f981610ce6565b915050610689565b50801561086f576005546040516340c10f1960e01b81526001600160a01b038a8116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b15801561085657600080fd5b505af115801561086a573d6000803e3d6000fd5b505050505b5050505050505050565b60045460ff166108cb5760405162461bcd60e51b815260206004820152601c60248201527f3130465447697261666665733a207374616b696e6720636c6f736564000000006044820152606401610450565b600480546040516331a9108f60e11b81529182018390526001600160a01b03848116926101009092041690636352211e90602401602060405180830381865afa15801561091c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109409190610d01565b6001600160a01b0316146109905760405162461bcd60e51b81526020600482015260176024820152761898232a23b4b930b33332b99d102737ba1037bbb732b960491b6044820152606401610450565b600081815260026020526040902054806109e1576000828152600260205260408082204290555183917feebbaa86c348cb664e392b180fd0ff2e1998af9fa833ef69a778cb0b42d3ca2791a2505050565b6109eb8142610c76565b60008381526003602052604081208054909190610a09908490610c8d565b90915550506000828152600260205260408082208290555183917f11725367022c3ff288940f4b5473aa61c2da6a24af7363a1128ee2401e8983b291a2505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060208385031215610aae57600080fd5b823567ffffffffffffffff80821115610ac657600080fd5b818501915085601f830112610ada57600080fd5b813581811115610ae957600080fd5b8660208260051b8501011115610afe57600080fd5b60209290920196919550909350505050565b600081518084526020808501945080840160005b83811015610b4057815187529582019590820190600101610b24565b509495945050505050565b6080808252855190820181905260009060209060a0840190828901845b82811015610b86578151151584529284019290840190600101610b68565b50505083810382850152610b9a8188610b10565b9150508460408401528281036060840152610bb58185610b10565b979650505050505050565b600060208284031215610bd257600080fd5b81358015158114610be257600080fd5b9392505050565b600060208284031215610bfb57600080fd5b5035919050565b6001600160a01b038116811461062457600080fd5b600060208284031215610c2957600080fd5b8135610be281610c02565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082821015610c8857610c88610c60565b500390565b60008219821115610ca057610ca0610c60565b500190565b6000816000190483118215151615610cbf57610cbf610c60565b500290565b600082610ce157634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415610cfa57610cfa610c60565b5060010190565b600060208284031215610d1357600080fd5b8151610be281610c0256fea264697066735822122060bb242c3ab89409a12a29e49885b515b0e79c84608c6c5fbf29cefb1081811c64736f6c634300080a0033

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

000000000000000000000000b51bf70057c072c6ff803942e44b0d210fdee2fe00000000000000000000000088dcdd09231c2392e8dc59e2c37636cefa2a133b

-----Decoded View---------------
Arg [0] : _nft (address): 0xB51bf70057C072C6ff803942E44b0D210FdEe2fE
Arg [1] : _token (address): 0x88DcdD09231c2392E8dC59e2c37636cEfA2a133b

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b51bf70057c072c6ff803942e44b0d210fdee2fe
Arg [1] : 00000000000000000000000088dcdd09231c2392e8dc59e2c37636cefa2a133b


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.