ETH Price: $2,433.92 (+5.58%)

Contract

0xB2D644291A677abe89E95a01740cdac971E6a206
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...205607362024-08-19 5:58:4731 days ago1724047127IN
0xB2D64429...971E6a206
0 ETH0.000024311.00229089
Set Approval For...200016752024-06-02 4:13:11109 days ago1717301591IN
0xB2D64429...971E6a206
0 ETH0.000108894.48816968
Set Approval For...169089952023-03-26 3:42:11543 days ago1679802131IN
0xB2D64429...971E6a206
0 ETH0.0003265413.45916388
Set Approval For...165196342023-01-30 12:26:59597 days ago1675081619IN
0xB2D64429...971E6a206
0 ETH0.0008356618.13108632
Set Approval For...164862832023-01-25 20:41:23602 days ago1674679283IN
0xB2D64429...971E6a206
0 ETH0.0004273117.6123217
Set Approval For...163904852023-01-12 11:40:35615 days ago1673523635IN
0xB2D64429...971E6a206
0 ETH0.0008444818.29399245
Set Approval For...156443102022-09-30 6:17:47720 days ago1664518667IN
0xB2D64429...971E6a206
0 ETH0.0005082811.00796494
Set Approval For...155684262022-09-19 15:23:11730 days ago1663600991IN
0xB2D64429...971E6a206
0 ETH0.0003506213.3448157
Set Approval For...155684252022-09-19 15:22:59730 days ago1663600979IN
0xB2D64429...971E6a206
0 ETH0.0006001412.99737845
Set Approval For...155153722022-09-11 14:33:41738 days ago1662906821IN
0xB2D64429...971E6a206
0 ETH0.0004660310.09302554
Set Approval For...153752462022-08-20 3:27:52761 days ago1660966072IN
0xB2D64429...971E6a206
0 ETH0.000323927.0152951
Set Approval For...153353552022-08-13 19:52:17767 days ago1660420337IN
0xB2D64429...971E6a206
0 ETH0.0004881610.5915174
Set Approval For...152782442022-08-04 21:23:10776 days ago1659648190IN
0xB2D64429...971E6a206
0 ETH0.0005716112.37963696
Set Approval For...152683982022-08-03 8:11:55778 days ago1659514315IN
0xB2D64429...971E6a206
0 ETH0.00026345.7046999
Set Approval For...152446662022-07-30 15:42:47781 days ago1659195767IN
0xB2D64429...971E6a206
0 ETH0.0006894714.93206111
Set Approval For...151804492022-07-20 15:59:55791 days ago1658332795IN
0xB2D64429...971E6a206
0 ETH0.0018486840.03731339
Set Approval For...151615152022-07-17 17:35:40794 days ago1658079340IN
0xB2D64429...971E6a206
0 ETH0.0014109230.55674872
Set Approval For...151594322022-07-17 9:43:21795 days ago1658051001IN
0xB2D64429...971E6a206
0 ETH0.000218178.30770981
Set Approval For...151594302022-07-17 9:42:41795 days ago1658050961IN
0xB2D64429...971E6a206
0 ETH0.000197558.14268952
Set Approval For...151290632022-07-12 17:01:52799 days ago1657645312IN
0xB2D64429...971E6a206
0 ETH0.0020087543.50402135
Transfer From150506482022-06-30 13:47:37811 days ago1656596857IN
0xB2D64429...971E6a206
0 ETH0.0044932953.82034412
Set Approval For...150058272022-06-22 4:29:31820 days ago1655872171IN
0xB2D64429...971E6a206
0 ETH0.0006427226.49121251
Set Approval For...149193412022-06-07 6:31:17835 days ago1654583477IN
0xB2D64429...971E6a206
0 ETH0.0007512730.96522507
Set Approval For...149186972022-06-07 3:52:17835 days ago1654573937IN
0xB2D64429...971E6a206
0 ETH0.0022362448.43085341
Set Approval For...148280872022-05-23 6:42:48850 days ago1653288168IN
0xB2D64429...971E6a206
0 ETH0.0003687515.1988593
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
141305372022-02-03 3:09:55959 days ago1643857795
0xB2D64429...971E6a206
0.04 ETH
141270932022-02-02 14:12:55959 days ago1643811175
0xB2D64429...971E6a206
0.28 ETH
141270212022-02-02 13:54:31959 days ago1643810071
0xB2D64429...971E6a206
0.04 ETH
141269032022-02-02 13:28:25959 days ago1643808505
0xB2D64429...971E6a206
0.04 ETH
141269012022-02-02 13:27:41959 days ago1643808461
0xB2D64429...971E6a206
0.04 ETH
141268982022-02-02 13:27:04959 days ago1643808424
0xB2D64429...971E6a206
0.04 ETH
141268602022-02-02 13:17:10959 days ago1643807830
0xB2D64429...971E6a206
0.04 ETH
141268422022-02-02 13:14:14959 days ago1643807654
0xB2D64429...971E6a206
0.04 ETH
141268342022-02-02 13:11:44959 days ago1643807504
0xB2D64429...971E6a206
0.28 ETH
141267782022-02-02 12:58:16959 days ago1643806696
0xB2D64429...971E6a206
0.04 ETH
141266832022-02-02 12:38:56959 days ago1643805536
0xB2D64429...971E6a206
0.04 ETH
141266602022-02-02 12:34:34959 days ago1643805274
0xB2D64429...971E6a206
0.28 ETH
141263662022-02-02 11:29:19959 days ago1643801359
0xB2D64429...971E6a206
0.04 ETH
139388442022-01-04 11:54:16988 days ago1641297256
0xB2D64429...971E6a206
0.04 ETH
139353302022-01-03 22:51:46989 days ago1641250306
0xB2D64429...971E6a206
0.04 ETH
139341632022-01-03 18:37:15989 days ago1641235035
0xB2D64429...971E6a206
0.04 ETH
139332332022-01-03 15:20:19989 days ago1641223219
0xB2D64429...971E6a206
0.04 ETH
139331522022-01-03 15:00:52989 days ago1641222052
0xB2D64429...971E6a206
0.04 ETH
139315322022-01-03 8:47:32990 days ago1641199652
0xB2D64429...971E6a206
0.04 ETH
139314972022-01-03 8:41:02990 days ago1641199262
0xB2D64429...971E6a206
0.04 ETH
139255422022-01-02 10:47:14990 days ago1641120434
0xB2D64429...971E6a206
0.04 ETH
139129442021-12-31 11:48:23992 days ago1640951303
0xB2D64429...971E6a206
0.04 ETH
139127262021-12-31 10:53:15992 days ago1640947995
0xB2D64429...971E6a206
0.04 ETH
139120502021-12-31 8:20:52993 days ago1640938852
0xB2D64429...971E6a206
0.04 ETH
139120452021-12-31 8:19:46993 days ago1640938786
0xB2D64429...971E6a206
0.04 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x14747A8d...59b5Acd9b
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
FudFarmGenesis

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : FudFarmGenesis.sol
// SPDX-License-Identifier: MIT


pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./IStaking.sol";

contract FudFarmGenesis is ERC721Enumerable, Ownable {
    using Strings for uint256;
    event Mint(address indexed sender, uint256 startWith, uint256 times);

    mapping (address => bool) public presaleWhitelist;
    

    //supply counters 
    uint256 public total;
    uint256 public presaleTotal = 50;
    uint256 public totalCrop = 500;
    uint256 public totalEth = 277;
    uint256 public presaleMaxWallet = 3;
    uint256 public publicMaxWallet = 7;
    uint256 public totalMax = 777;
    //token Index tracker 

   uint256 public price = 40000000000000000;
   uint256 public cropPrice = 400000000000000000000;

    //string
    string public baseURI;

    //bool
    bool private started;
    bool private presaleStarted; 
    bool private publicStarted;

    //addresses
    IERC721 public fudFarmAddress;
    IERC20 public cropAddress;
    address public contractAddress;
    address public stakeAddress;

    //constructor args 
    constructor(string memory name_, string memory symbol_, string memory baseURI_, address _fudFarmAddress, address _cropAddress, address _stakeAddress) ERC721(name_, symbol_) {
        baseURI = baseURI_;
        fudFarmAddress = IERC721(_fudFarmAddress);
        cropAddress = IERC20(_cropAddress);
        stakeAddress = _stakeAddress;
        contractAddress = address(this);
    }

    //basic functions. 
    function _baseURI() internal view virtual override returns (string memory){
        return baseURI;
    }
    function setBaseURI(string memory _newURI) public onlyOwner {
        baseURI = _newURI;
    }
    function addToWhitelist(address[] calldata _addresses) public onlyOwner {
        for (uint256 i=0; i<_addresses.length; i++) {
            presaleWhitelist[_addresses[i]] = true;
        }
    }
    //ERC271 
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "tokenId does not exist.");
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")) : ".json";
    }

    function setPresaleStart(bool _start) public onlyOwner {
        presaleStarted = _start;
    }
    function setStart(bool _start) public onlyOwner {
        started = _start;
    }
    function setPublicStart(bool _start) public onlyOwner {
        publicStarted = _start;
    }

    function tokensOfOwner(address owner)
        public
        view
        returns (uint256[] memory)
    {
        uint256 count = balanceOf(owner);
        uint256[] memory ids = new uint256[](count);
        for (uint256 i = 0; i < count; i++) {
            ids[i] = tokenOfOwnerByIndex(owner, i);
        }
        return ids;
    }

    function presaleMint(uint256 _times, uint256 _cropAmount) public {
        require(presaleStarted, "presale has not started.");
        require(total + _times <= totalCrop, "Exceed crop allocation");
        require(_cropAmount >= _times * cropPrice, "value error, please check price");
        require(presaleWhitelist[msg.sender], "must be on presale whitelist"); 
        require(_times <= presaleMaxWallet, "cannot mint more than 3");
        require(IERC721(contractAddress).balanceOf(msg.sender) <= presaleMaxWallet, "cannot have more than 3");
        cropAddress.transferFrom(msg.sender, address(this), _cropAmount);
        emit Mint(_msgSender(), total+1, _times);
        for(uint256 i=0; i < _times; i++) {
            _mint(_msgSender(), 1 + total++);
        }
    }

    function publicMint(uint256 _times, uint256 _cropAmount) public {
        require(started, "presale has not started.");
        require(total + _times <= totalCrop, "Exceed crop allocation");
        require(_cropAmount >= _times * cropPrice, "value error, please check price");
        uint256 depositBalance = IStaking(stakeAddress).depositsOf(msg.sender).length;
        require(fudFarmAddress.balanceOf(msg.sender) > 0 || depositBalance > 0, "must hold at least 1 fudFarm");
        require(_times <= publicMaxWallet, "cannot mint more than 3");
        require(IERC721(contractAddress).balanceOf(msg.sender) <= publicMaxWallet, "cannot have more than 3");
        cropAddress.transferFrom(msg.sender, address(this), _cropAmount);
        emit Mint(_msgSender(), total+1, _times);
        for(uint256 i=0; i < _times; i++) {
            _mint(_msgSender(), 1 + total++);
        }
    }

    function devMint(uint256 _times) public onlyOwner {
        require(total +_times <= totalCrop, "exceed max supply.");
        emit Mint(_msgSender(), total+1, _times);
        for(uint256 i=0; i<_times; i++) {
            _mint(_msgSender(), 1 + total++);
        }
    }

    function mint(uint256 _times) payable public {
        require(publicStarted, "Land sale ain't started, partner.");
        require(_times > 0 && _times <= publicMaxWallet, "Too many lands");
        require(IERC721(contractAddress).balanceOf(msg.sender) <= publicMaxWallet, "cannot have more than 7");
        require(total + _times <= totalMax, "ALL BOUGHT OUT");
        require(msg.value == _times * price, "value error, please check price.");
        payable(owner()).transfer(msg.value);
        emit Mint(_msgSender(), total+1, _times);
        for(uint256 i=0; i< _times; i++){
            _mint(_msgSender(), 1 + total++);
        }
    }  

    function withdrawCrop() public onlyOwner {
        uint256 cropBalance = cropAddress.balanceOf(address(this));
        cropAddress.transfer(_msgSender(), cropBalance);
    }
}

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

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

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

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

File 3 of 15 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 5 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT

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

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

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

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

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

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

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

File 6 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 7 of 15 : IStaking.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

interface IStaking {
    function depositsOf(address account)
      external 
      view 
      returns (uint256[] memory);
}

File 8 of 15 : Context.sol
// SPDX-License-Identifier: MIT

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 9 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 10 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

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 tokenId);

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

File 11 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 12 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 13 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"baseURI_","type":"string"},{"internalType":"address","name":"_fudFarmAddress","type":"address"},{"internalType":"address","name":"_cropAddress","type":"address"},{"internalType":"address","name":"_stakeAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"startWith","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"times","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cropAddress","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cropPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_times","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fudFarmAddress","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_times","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMaxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_times","type":"uint256"},{"internalType":"uint256","name":"_cropAmount","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"presaleTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMaxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_times","type":"uint256"},{"internalType":"uint256","name":"_cropAmount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_start","type":"bool"}],"name":"setPresaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_start","type":"bool"}],"name":"setPublicStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_start","type":"bool"}],"name":"setStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"total","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCrop","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawCrop","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x6080604052600436106102725760003560e01c80637f6497831161014f578063a22cb465116100c1578063d4a770ad1161007a578063d4a770ad1461071e578063dc1d85f614610734578063e985e9c51461074a578063eb8835ab14610793578063f2fde38b146107c3578063f6b4dfb4146107e357600080fd5b8063a22cb46514610672578063a29eed9214610692578063a37f85a1146106b2578063b88d4fde146106c8578063c50a2ac2146106e8578063c87b56dd146106fe57600080fd5b80638da5cb5b116101135780638da5cb5b146105d657806393383085146105f457806395d89b411461061457806398ae99a814610629578063a035b1fe14610649578063a0712d681461065f57600080fd5b80637f6497831461052c578063809061971461054c5780638462151c1461057357806385107367146105a05780638cb5367f146105c057600080fd5b806342842e0e116101e857806364feb7ca116101ac57806364feb7ca1461048d5780636555dc40146104ad57806368e24327146104c25780636c0360eb146104e257806370a08231146104f7578063715018a61461051757600080fd5b806342842e0e146103ed5780634f6ccce71461040d57806355f804b31461042d57806358dd175d1461044d5780636352211e1461046d57600080fd5b806318160ddd1161023a57806318160ddd1461034c57806323b872dd146103615780632ddbd13a146103815780632f745c5914610397578063375a069a146103b75780633c3c9c23146103d757600080fd5b806301ffc9a71461027757806306fdde03146102ac578063081812fc146102ce578063095ea7b31461030657806310cd0c9d14610328575b600080fd5b34801561028357600080fd5b50610297610292366004612cdb565b610803565b60405190151581526020015b60405180910390f35b3480156102b857600080fd5b506102c161082e565b6040516102a39190612f2d565b3480156102da57600080fd5b506102ee6102e9366004612d59565b6108c0565b6040516001600160a01b0390911681526020016102a3565b34801561031257600080fd5b50610326610321366004612b62565b61095a565b005b34801561033457600080fd5b5061033e600e5481565b6040519081526020016102a3565b34801561035857600080fd5b5060085461033e565b34801561036d57600080fd5b5061032661037c366004612a78565b610a70565b34801561038d57600080fd5b5061033e600c5481565b3480156103a357600080fd5b5061033e6103b2366004612b62565b610aa1565b3480156103c357600080fd5b506103266103d2366004612d59565b610b37565b3480156103e357600080fd5b5061033e600f5481565b3480156103f957600080fd5b50610326610408366004612a78565b610c36565b34801561041957600080fd5b5061033e610428366004612d59565b610c51565b34801561043957600080fd5b50610326610448366004612d13565b610cf2565b34801561045957600080fd5b50610326610468366004612d89565b610d2f565b34801561047957600080fd5b506102ee610488366004612d59565b61108e565b34801561049957600080fd5b506103266104a8366004612ca3565b611105565b3480156104b957600080fd5b5061032661114b565b3480156104ce57600080fd5b506103266104dd366004612ca3565b611286565b3480156104ee57600080fd5b506102c16112c3565b34801561050357600080fd5b5061033e610512366004612a25565b611351565b34801561052357600080fd5b506103266113d8565b34801561053857600080fd5b50610326610547366004612b8b565b61140e565b34801561055857600080fd5b506016546102ee90630100000090046001600160a01b031681565b34801561057f57600080fd5b5061059361058e366004612a25565b6114b8565b6040516102a39190612ee9565b3480156105ac57600080fd5b506019546102ee906001600160a01b031681565b3480156105cc57600080fd5b5061033e60145481565b3480156105e257600080fd5b50600a546001600160a01b03166102ee565b34801561060057600080fd5b5061032661060f366004612ca3565b611576565b34801561062057600080fd5b506102c16115ba565b34801561063557600080fd5b50610326610644366004612d89565b6115c9565b34801561065557600080fd5b5061033e60135481565b61032661066d366004612d59565b611a2a565b34801561067e57600080fd5b5061032661068d366004612b2c565b611ce9565b34801561069e57600080fd5b506017546102ee906001600160a01b031681565b3480156106be57600080fd5b5061033e60125481565b3480156106d457600080fd5b506103266106e3366004612ab3565b611dae565b3480156106f457600080fd5b5061033e60105481565b34801561070a57600080fd5b506102c1610719366004612d59565b611de0565b34801561072a57600080fd5b5061033e60115481565b34801561074057600080fd5b5061033e600d5481565b34801561075657600080fd5b50610297610765366004612a46565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561079f57600080fd5b506102976107ae366004612a25565b600b6020526000908152604090205460ff1681565b3480156107cf57600080fd5b506103266107de366004612a25565b611eb1565b3480156107ef57600080fd5b506018546102ee906001600160a01b031681565b60006001600160e01b0319821663780e9d6360e01b1480610828575061082882611f4c565b92915050565b60606000805461083d906130d7565b80601f0160208091040260200160405190810160405280929190818152602001828054610869906130d7565b80156108b65780601f1061088b576101008083540402835291602001916108b6565b820191906000526020600020905b81548152906001019060200180831161089957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661093e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109658261108e565b9050806001600160a01b0316836001600160a01b031614156109d35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610935565b336001600160a01b03821614806109ef57506109ef8133610765565b610a615760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610935565b610a6b8383611f9c565b505050565b610a7a338261200a565b610a965760405162461bcd60e51b815260040161093590612fc7565b610a6b838383612101565b6000610aac83611351565b8210610b0e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610935565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600a546001600160a01b03163314610b615760405162461bcd60e51b815260040161093590612f92565b600e5481600c54610b729190613049565b1115610bb55760405162461bcd60e51b815260206004820152601260248201527132bc31b2b2b21036b0bc1039bab838363c9760711b6044820152606401610935565b600c5433906000805160206131a883398151915290610bd5906001613049565b60408051918252602082018590520160405180910390a260005b81811015610c3257610c20335b600c8054906000610c0c83613112565b90915550610c1b906001613049565b6122ac565b80610c2a81613112565b915050610bef565b5050565b610a6b83838360405180602001604052806000815250611dae565b6000610c5c60085490565b8210610cbf5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610935565b60088281548110610ce057634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600a546001600160a01b03163314610d1c5760405162461bcd60e51b815260040161093590612f92565b8051610c32906015906020840190612918565b601654610100900460ff16610d815760405162461bcd60e51b8152602060048201526018602482015277383932b9b0b632903430b9903737ba1039ba30b93a32b21760411b6044820152606401610935565b600e5482600c54610d929190613049565b1115610dd95760405162461bcd60e51b815260206004820152601660248201527522bc31b2b2b21031b937b81030b63637b1b0ba34b7b760511b6044820152606401610935565b601454610de69083613075565b811015610e355760405162461bcd60e51b815260206004820152601f60248201527f76616c7565206572726f722c20706c6561736520636865636b207072696365006044820152606401610935565b336000908152600b602052604090205460ff16610e945760405162461bcd60e51b815260206004820152601c60248201527f6d757374206265206f6e2070726573616c652077686974656c697374000000006044820152606401610935565b601054821115610ee05760405162461bcd60e51b815260206004820152601760248201527663616e6e6f74206d696e74206d6f7265207468616e203360481b6044820152606401610935565b6010546018546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610f2657600080fd5b505afa158015610f3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5e9190612d71565b1115610fa65760405162461bcd60e51b815260206004820152601760248201527663616e6e6f742068617665206d6f7265207468616e203360481b6044820152606401610935565b6017546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b158015610ff857600080fd5b505af115801561100c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110309190612cbf565b50600c5433906000805160206131a883398151915290611051906001613049565b60408051918252602082018690520160405180910390a260005b82811015610a6b5761107c33610bfc565b8061108681613112565b91505061106b565b6000818152600260205260408120546001600160a01b0316806108285760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610935565b600a546001600160a01b0316331461112f5760405162461bcd60e51b815260040161093590612f92565b60168054911515620100000262ff000019909216919091179055565b600a546001600160a01b031633146111755760405162461bcd60e51b815260040161093590612f92565b6017546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156111b957600080fd5b505afa1580156111cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f19190612d71565b6017549091506001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b15801561124e57600080fd5b505af1158015611262573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c329190612cbf565b600a546001600160a01b031633146112b05760405162461bcd60e51b815260040161093590612f92565b6016805460ff1916911515919091179055565b601580546112d0906130d7565b80601f01602080910402602001604051908101604052809291908181526020018280546112fc906130d7565b80156113495780601f1061131e57610100808354040283529160200191611349565b820191906000526020600020905b81548152906001019060200180831161132c57829003601f168201915b505050505081565b60006001600160a01b0382166113bc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610935565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b031633146114025760405162461bcd60e51b815260040161093590612f92565b61140c60006123fa565b565b600a546001600160a01b031633146114385760405162461bcd60e51b815260040161093590612f92565b60005b81811015610a6b576001600b600085858581811061146957634e487b7160e01b600052603260045260246000fd5b905060200201602081019061147e9190612a25565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806114b081613112565b91505061143b565b606060006114c583611351565b905060008167ffffffffffffffff8111156114f057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611519578160200160208202803683370190505b50905060005b8281101561156e576115318582610aa1565b82828151811061155157634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061156681613112565b91505061151f565b509392505050565b600a546001600160a01b031633146115a05760405162461bcd60e51b815260040161093590612f92565b601680549115156101000261ff0019909216919091179055565b60606001805461083d906130d7565b60165460ff166116165760405162461bcd60e51b8152602060048201526018602482015277383932b9b0b632903430b9903737ba1039ba30b93a32b21760411b6044820152606401610935565b600e5482600c546116279190613049565b111561166e5760405162461bcd60e51b815260206004820152601660248201527522bc31b2b2b21031b937b81030b63637b1b0ba34b7b760511b6044820152606401610935565b60145461167b9083613075565b8110156116ca5760405162461bcd60e51b815260206004820152601f60248201527f76616c7565206572726f722c20706c6561736520636865636b207072696365006044820152606401610935565b6019546040516371d4ed8d60e11b81523360048201526000916001600160a01b03169063e3a9db1a9060240160006040518083038186803b15801561170e57600080fd5b505afa158015611722573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261174a9190810190612bfb565b516016546040516370a0823160e01b815233600482015291925060009163010000009091046001600160a01b0316906370a082319060240160206040518083038186803b15801561179a57600080fd5b505afa1580156117ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d29190612d71565b11806117de5750600081115b61182a5760405162461bcd60e51b815260206004820152601c60248201527f6d75737420686f6c64206174206c656173742031206675644661726d000000006044820152606401610935565b6011548311156118765760405162461bcd60e51b815260206004820152601760248201527663616e6e6f74206d696e74206d6f7265207468616e203360481b6044820152606401610935565b6011546018546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156118bc57600080fd5b505afa1580156118d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118f49190612d71565b111561193c5760405162461bcd60e51b815260206004820152601760248201527663616e6e6f742068617665206d6f7265207468616e203360481b6044820152606401610935565b6017546040516323b872dd60e01b8152336004820152306024820152604481018490526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561198e57600080fd5b505af11580156119a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c69190612cbf565b50600c5433906000805160206131a8833981519152906119e7906001613049565b60408051918252602082018790520160405180910390a260005b83811015611a2457611a1233610bfc565b80611a1c81613112565b915050611a01565b50505050565b60165462010000900460ff16611a8c5760405162461bcd60e51b815260206004820152602160248201527f4c616e642073616c652061696e277420737461727465642c20706172746e65726044820152601760f91b6064820152608401610935565b600081118015611a9e57506011548111155b611adb5760405162461bcd60e51b815260206004820152600e60248201526d546f6f206d616e79206c616e647360901b6044820152606401610935565b6011546018546040516370a0823160e01b81523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015611b2157600080fd5b505afa158015611b35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b599190612d71565b1115611ba75760405162461bcd60e51b815260206004820152601760248201527f63616e6e6f742068617665206d6f7265207468616e20370000000000000000006044820152606401610935565b60125481600c54611bb89190613049565b1115611bf75760405162461bcd60e51b815260206004820152600e60248201526d105313081093d551d2150813d55560921b6044820152606401610935565b601354611c049082613075565b3414611c525760405162461bcd60e51b815260206004820181905260248201527f76616c7565206572726f722c20706c6561736520636865636b2070726963652e6044820152606401610935565b600a546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015611c8b573d6000803e3d6000fd5b50600c5433906000805160206131a883398151915290611cac906001613049565b60408051918252602082018590520160405180910390a260005b81811015610c3257611cd733610bfc565b80611ce181613112565b915050611cc6565b6001600160a01b038216331415611d425760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610935565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611db8338361200a565b611dd45760405162461bcd60e51b815260040161093590612fc7565b611a248484848461244c565b6000818152600260205260409020546060906001600160a01b0316611e475760405162461bcd60e51b815260206004820152601760248201527f746f6b656e496420646f6573206e6f742065786973742e0000000000000000006044820152606401610935565b600060158054611e56906130d7565b905011611e805760405180604001604052806005815260200164173539b7b760d91b815250610828565b6015611e8b8361247f565b604051602001611e9c929190612df2565b60405160208183030381529060405292915050565b600a546001600160a01b03163314611edb5760405162461bcd60e51b815260040161093590612f92565b6001600160a01b038116611f405760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610935565b611f49816123fa565b50565b60006001600160e01b031982166380ac58cd60e01b1480611f7d57506001600160e01b03198216635b5e139f60e01b145b8061082857506301ffc9a760e01b6001600160e01b0319831614610828565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611fd18261108e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166120835760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610935565b600061208e8361108e565b9050806001600160a01b0316846001600160a01b031614806120c95750836001600160a01b03166120be846108c0565b6001600160a01b0316145b806120f957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166121148261108e565b6001600160a01b03161461217c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610935565b6001600160a01b0382166121de5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610935565b6121e9838383612599565b6121f4600082611f9c565b6001600160a01b038316600090815260036020526040812080546001929061221d908490613094565b90915550506001600160a01b038216600090815260036020526040812080546001929061224b908490613049565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0382166123025760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610935565b6000818152600260205260409020546001600160a01b0316156123675760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610935565b61237360008383612599565b6001600160a01b038216600090815260036020526040812080546001929061239c908490613049565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612457848484612101565b61246384848484612651565b611a245760405162461bcd60e51b815260040161093590612f40565b6060816124a35750506040805180820190915260018152600360fc1b602082015290565b8160005b81156124cd57806124b781613112565b91506124c69050600a83613061565b91506124a7565b60008167ffffffffffffffff8111156124f657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612520576020820181803683370190505b5090505b84156120f957612535600183613094565b9150612542600a8661312d565b61254d906030613049565b60f81b81838151811061257057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612592600a86613061565b9450612524565b6001600160a01b0383166125f4576125ef81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612617565b816001600160a01b0316836001600160a01b03161461261757612617838261275e565b6001600160a01b03821661262e57610a6b816127fb565b826001600160a01b0316826001600160a01b031614610a6b57610a6b82826128d4565b60006001600160a01b0384163b1561275357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612695903390899088908890600401612eac565b602060405180830381600087803b1580156126af57600080fd5b505af19250505080156126df575060408051601f3d908101601f191682019092526126dc91810190612cf7565b60015b612739573d80801561270d576040519150601f19603f3d011682016040523d82523d6000602084013e612712565b606091505b5080516127315760405162461bcd60e51b815260040161093590612f40565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506120f9565b506001949350505050565b6000600161276b84611351565b6127759190613094565b6000838152600760205260409020549091508082146127c8576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061280d90600190613094565b6000838152600960205260408120546008805493945090928490811061284357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061287257634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806128b857634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006128df83611351565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612924906130d7565b90600052602060002090601f016020900481019282612946576000855561298c565b82601f1061295f57805160ff191683800117855561298c565b8280016001018555821561298c579182015b8281111561298c578251825591602001919060010190612971565b5061299892915061299c565b5090565b5b80821115612998576000815560010161299d565b600067ffffffffffffffff8311156129cb576129cb61316d565b6129de601f8401601f1916602001613018565b90508281528383830111156129f257600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612a2057600080fd5b919050565b600060208284031215612a36578081fd5b612a3f82612a09565b9392505050565b60008060408385031215612a58578081fd5b612a6183612a09565b9150612a6f60208401612a09565b90509250929050565b600080600060608486031215612a8c578081fd5b612a9584612a09565b9250612aa360208501612a09565b9150604084013590509250925092565b60008060008060808587031215612ac8578081fd5b612ad185612a09565b9350612adf60208601612a09565b925060408501359150606085013567ffffffffffffffff811115612b01578182fd5b8501601f81018713612b11578182fd5b612b20878235602084016129b1565b91505092959194509250565b60008060408385031215612b3e578182fd5b612b4783612a09565b91506020830135612b5781613183565b809150509250929050565b60008060408385031215612b74578182fd5b612b7d83612a09565b946020939093013593505050565b60008060208385031215612b9d578182fd5b823567ffffffffffffffff80821115612bb4578384fd5b818501915085601f830112612bc7578384fd5b813581811115612bd5578485fd5b8660208260051b8501011115612be9578485fd5b60209290920196919550909350505050565b60006020808385031215612c0d578182fd5b825167ffffffffffffffff80821115612c24578384fd5b818501915085601f830112612c37578384fd5b815181811115612c4957612c4961316d565b8060051b9150612c5a848301613018565b8181528481019084860184860187018a1015612c74578788fd5b8795505b83861015612c96578051835260019590950194918601918601612c78565b5098975050505050505050565b600060208284031215612cb4578081fd5b8135612a3f81613183565b600060208284031215612cd0578081fd5b8151612a3f81613183565b600060208284031215612cec578081fd5b8135612a3f81613191565b600060208284031215612d08578081fd5b8151612a3f81613191565b600060208284031215612d24578081fd5b813567ffffffffffffffff811115612d3a578182fd5b8201601f81018413612d4a578182fd5b6120f9848235602084016129b1565b600060208284031215612d6a578081fd5b5035919050565b600060208284031215612d82578081fd5b5051919050565b60008060408385031215612d9b578182fd5b50508035926020909101359150565b60008151808452612dc28160208601602086016130ab565b601f01601f19169290920160200192915050565b60008151612de88185602086016130ab565b9290920192915050565b600080845482600182811c915080831680612e0e57607f831692505b6020808410821415612e2e57634e487b7160e01b87526022600452602487fd5b818015612e425760018114612e5357612e7f565b60ff19861689528489019650612e7f565b60008b815260209020885b86811015612e775781548b820152908501908301612e5e565b505084890196505b505050505050612ea3612e928286612dd6565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612edf90830184612daa565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612f2157835183529284019291840191600101612f05565b50909695505050505050565b602081526000612a3f6020830184612daa565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156130415761304161316d565b604052919050565b6000821982111561305c5761305c613141565b500190565b60008261307057613070613157565b500490565b600081600019048311821515161561308f5761308f613141565b500290565b6000828210156130a6576130a6613141565b500390565b60005b838110156130c65781810151838201526020016130ae565b83811115611a245750506000910152565b600181811c908216806130eb57607f821691505b6020821081141561310c57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561312657613126613141565b5060010190565b60008261313c5761313c613157565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114611f4957600080fd5b6001600160e01b031981168114611f4957600080fdfe4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4fa2646970667358221220ba960423daa34992f543ec0fb8c6871b3fb41a03fc493a0364ad38c4fe0d5cd164736f6c63430008040033

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