ETH Price: $3,416.28 (+3.07%)

Contract

0x9ab5fB83d06702D84413A837F78bFcd37FB8A3C7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer From190986972024-01-27 15:05:35304 days ago1706367935IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0016693728.91847229
Safe Transfer Fr...184272032023-10-25 12:19:23398 days ago1698236363IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0011303918.63465576
Transfer From182928932023-10-06 17:16:59417 days ago1696612619IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0007974613.81436564
Transfer From173384952023-05-25 20:20:59551 days ago1685046059IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0013804233.96810225
Transfer From173384902023-05-25 20:19:59551 days ago1685045999IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0015071133.17662444
Transfer From173384862023-05-25 20:19:11551 days ago1685045951IN
0x9ab5fB83...37FB8A3C7
0 ETH0.00223335.71265815
Safe Transfer Fr...169133902023-03-26 18:30:11611 days ago1679855411IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0010878517.74025758
Transfer From169074752023-03-25 22:33:47612 days ago1679783627IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0008000313.85892466
Safe Transfer Fr...168943572023-03-24 2:21:35614 days ago1679624495IN
0x9ab5fB83...37FB8A3C7
0 ETH0.000888114.48
Safe Transfer Fr...168530842023-03-18 7:13:23620 days ago1679123603IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0009188114.98076334
Boost167282952023-02-28 17:59:23637 days ago1677607163IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0034190441.96740834
Boost166937462023-02-23 21:24:23642 days ago1677187463IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0032446439.83849592
Boost166764862023-02-21 11:09:59644 days ago1676977799IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0022177827.22650641
Boost166764782023-02-21 11:08:23644 days ago1676977703IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0021220626.05135472
Boost166764502023-02-21 11:02:47644 days ago1676977367IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0024896430.56393905
Boost166764452023-02-21 11:01:47644 days ago1676977307IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0026302832.29053343
Boost166661082023-02-20 0:10:35646 days ago1676851835IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0020049124.61318877
Transfer From166624672023-02-19 11:54:23646 days ago1676807663IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0013338323.10596428
Transfer From166279522023-02-14 15:42:11651 days ago1676389331IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0022954639.76420462
Set Approval For...165857622023-02-08 18:14:11657 days ago1675880051IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0018188639.24714308
Mint165152282023-01-29 21:41:35667 days ago1675028495IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0035458619.428625
Transfer From164223002023-01-16 22:20:59680 days ago1673907659IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0012504130.77791613
Transfer From164215412023-01-16 19:48:11680 days ago1673898491IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0014381223
Transfer From164208942023-01-16 17:38:11680 days ago1673890691IN
0x9ab5fB83...37FB8A3C7
0 ETH0.0013277223
Mint163502252023-01-06 20:47:35690 days ago1673038055IN
0x9ab5fB83...37FB8A3C7
0 ETH0.003979724.06182432
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
XfitLiquidNFT

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license
File 1 of 17 : XfitLiquidNFT.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

import "ERC721.sol";
import "Counters.sol";
import "SafeERC20.sol";

import "IFeeGeneratingContract.sol";
import "IXfaiFlashMintable.sol";
import "IXfitLiquidNFT.sol";

contract XfitLiquidNFT is IXfitLiquidNFT, ERC721 {
    using SafeERC20 for IERC20;
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIds;
    address private token2Stake;
    //address private token2Redeem;
    address public feeGeneratingContract;
    address private owner;
    uint256 public stakedReserve;
    uint256 public totalReserveShare;
    uint256 private vestingPeriod;
    uint256 private vestingPeriodStart;
    string private baseUri;
    mapping(uint256 => NFTData) private tokenData;

    struct NFTData {
        uint256 share;
        uint256 vestingStart;
        uint256 vestingEnd;
    }

    constructor(
        address _owner,
        address _token2Stake, // xfit
        //address _token2Redeem, // xfai
        uint256 _vestingPeriod,
        uint256 _initialReserve
    ) ERC721("Liquid-NFT", "LNFT") {
        owner = _owner;
        token2Stake = _token2Stake;
        //token2Redeem = _token2Redeem;
        vestingPeriod = _vestingPeriod;
        stakedReserve = _initialReserve;
    }

    modifier onlyOwner() {
        require(msg.sender == owner, 'XfitLiquidNFT: FORBIDDEN');
        _;
    }

    function _baseURI() internal view override returns (string memory) {
        return baseUri;
    }

    function tokenURI(uint256 _tokenID) public view override returns (string memory) {
        require(_exists(_tokenID), "XfitLiquidNFT: URI query for nonexistent token");
        return _baseURI();
    }

    function setBaseURI(string memory _newURI) external override onlyOwner {
        baseUri = _newURI;
    }

    function getLatestID() public view override returns (uint256 counter) {
        counter = _tokenIds.current();
    }

    function stake(uint256 _amount) internal returns (uint256 share) {
        require(_amount > 0, "XfitLiquidNFT: Amount too small");
        IERC20 token = IERC20(token2Stake);
        token.safeTransferFrom(msg.sender, address(this), _amount);
        stakedReserve += _amount;
        share = 1e18 * _amount / stakedReserve;
    }

    function getNFTData(uint256 _tokenID) public view override returns (
        uint256 share,
        uint256 vestingStart,
        uint256 vestingEnd) {
            require(_exists(_tokenID), "XfitLiquidNFT: NFT does not exist");
            NFTData memory nft = tokenData[_tokenID];
            share = nft.share;
            vestingStart = nft.vestingStart;
            vestingEnd = nft.vestingEnd;
        }
    
    function share2Amount(uint256 share) internal view returns (uint256 redeemableAmountOfShare) {
        uint256 feeGeneratingContractReserve = IFeeGeneratingContract(feeGeneratingContract).getFeeReserve();
        redeemableAmountOfShare = feeGeneratingContractReserve * share / totalReserveShare;
    }

    // Returns the underlying value of an NFT in terms of token2Stake 
    function getUnderlyingValue(uint256 _tokenID) public view override returns (uint256 underlyingNFTValue) {
        (uint256 share,,) = getNFTData(_tokenID);
        underlyingNFTValue = share2Amount(share);
    }

    function getRedeemableTokenAmount(uint256 _tokenID) public view override returns (uint256 redeemableAmount) {
        (uint256 share, uint256 vestingStart, uint256 vestingEnd) = getNFTData(_tokenID);
        if (vestingStart < vestingPeriodStart) {
            vestingStart = vestingPeriodStart;
            vestingEnd = vestingPeriodStart + vestingPeriod;
        }
        uint256 currentBlock = block.number;
        uint256 upperBoundBlock = currentBlock <= vestingEnd ? currentBlock : vestingEnd;
        uint256 redeemableShare = share * (upperBoundBlock - vestingStart) / vestingPeriod;
        redeemableAmount = share2Amount(redeemableShare);
    }

    function mint(address _to, uint256 _amount) public override returns (bool) {
        uint256 share = stake(_amount);
        totalReserveShare += share;
        _tokenIds.increment();
        uint256 newTokenID = _tokenIds.current();
        uint256 currentBlock = block.number;
        tokenData[newTokenID] = NFTData(share, currentBlock, currentBlock + vestingPeriod);
        _safeMint(_to, newTokenID);
        emit Staked(_to, _amount, share, newTokenID);
        return true;
    }

    function boost(uint256 _amount, uint256 _tokenID) public override returns (bool) {
        require(msg.sender == ownerOf(_tokenID), "XfitLiquidNFT: Not the owner of the NFT");
        uint256 share = stake(_amount);
        totalReserveShare += share;
        uint256 currentBlock = block.number;
        (uint256 NFTShare,,) = getNFTData(_tokenID);
        tokenData[_tokenID] = NFTData(NFTShare + share, currentBlock, currentBlock + vestingPeriod);
        emit Boosted(msg.sender, _amount, share, _tokenID);
        return true;
    }

    function redeem(address _to, uint256 _amount, uint256 _tokenID) public override returns (bool) {
        require(vestingPeriodStart != 0, "XfitLiquidNFT: Redeem phase is not active yet");
        require(_amount > 0, "XfitLiquidNFT: Invalid amount");
        require(msg.sender == ownerOf(_tokenID), "XfitLiquidNFT: Not the owner of the NFT");
        uint256 redeemableAmount = getRedeemableTokenAmount(_tokenID);
        require(_amount <= redeemableAmount, "XfitLiquidNFT: Amount exceeds redeemable amount");

        uint256 currentBlock = block.number;
        uint256 dif2share;
        uint256 underlyingValue;
        (uint256 NFTShare, , ) = getNFTData(_tokenID);
        underlyingValue = getUnderlyingValue(_tokenID);
        bool redeeemed = IFeeGeneratingContract(feeGeneratingContract).redeemFees(_to, _amount);
        require(redeeemed == true, "XfitLiquidNFT: not able to redeem fees");
        dif2share = NFTShare * _amount / underlyingValue;
        tokenData[_tokenID] = NFTData(NFTShare - dif2share, currentBlock, currentBlock + vestingPeriod);
        totalReserveShare -= dif2share;

        emit Redeemed(msg.sender, _amount, _tokenID);
        return true;
    }

    function setOwner(address _owner) external override onlyOwner {
        owner = _owner;
        emit ChangedOwner(_owner);
    }

    function setFeeGeneratingContract(address _feeGeneratingContract) external override onlyOwner {
        feeGeneratingContract = _feeGeneratingContract;
    }

    function setVestingPeriodStart(uint256 _vestingPeriodStart) external override onlyOwner {
        vestingPeriodStart = _vestingPeriodStart;
    }

    function setVestingPeriod(uint256 _vestingPeriod) external override onlyOwner {
        vestingPeriod = _vestingPeriod;
    }

}

File 2 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC721.sol";
import "IERC721Receiver.sol";
import "IERC721Metadata.sol";
import "IERC721Enumerable.sol";
import "Address.sol";
import "Context.sol";
import "Strings.sol";
import "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}. 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 || ERC721.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 || ERC721.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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

File 3 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "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 4 of 17 : 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);
}

File 5 of 17 : 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 6 of 17 : 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 7 of 17 : 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 8 of 17 : 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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 9 of 17 : 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 10 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}

File 11 of 17 : 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 12 of 17 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }
}

File 13 of 17 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC20.sol";
import "Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 14 of 17 : 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 15 of 17 : IFeeGeneratingContract.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;

interface IFeeGeneratingContract {
    function getFeeReserve() external view returns (uint256);
    function redeemFees(address _to, uint256 _shareAmount) external returns (bool);
}

File 16 of 17 : IXfaiFlashMintable.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;

interface IXfaiFlashMintable {
    function mint(address _account, uint256 _amount) external returns (bool);
    function flashMint(uint256 amount) external returns (bool);

    event FlashMint(address indexed from, uint256 amount);
}

File 17 of 17 : IXfitLiquidNFT.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

interface IXfitLiquidNFT {
    //function tokenURI(uint256 _tokenID) external view returns (string memory);
    function setBaseURI(string memory _newURI) external;
    function getLatestID() external view returns (uint256 counter);
    function getNFTData(uint256 _tokenID) external view returns (uint256 lpShare, uint256 vestingStart, uint256 vestingEnd);
    function getUnderlyingValue(uint256 _tokenID) external view returns (uint256 underlyingNFTValue);
    function getRedeemableTokenAmount(uint256 _tokenID) external view returns (uint256 redeemableAmount);
    function mint(address _to, uint256 _amount) external returns (bool);
    function boost(uint256 _amount, uint256 _tokenID) external returns (bool);
    function redeem(address _to, uint256 _amount, uint256 _tokenID) external returns (bool);

    // only owner
    function setOwner(address _owner) external;
    function setFeeGeneratingContract(address _feeGeneratingContract) external;
    function setVestingPeriodStart(uint256 _vestingPeriodStart) external;
    function setVestingPeriod(uint256 _vestingPeriod) external;

    event Staked(address indexed from, uint256 staked, uint256 lp, uint256 nftID);
    event Boosted(address indexed from, uint256 staked, uint256 lp, uint256 nftID);
    event Redeemed(address indexed from, uint256 amount, uint256 nftID);
    event ChangedOwner(address indexed newOwner);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_token2Stake","type":"address"},{"internalType":"uint256","name":"_vestingPeriod","type":"uint256"},{"internalType":"uint256","name":"_initialReserve","type":"uint256"}],"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":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"staked","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nftID","type":"uint256"}],"name":"Boosted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"ChangedOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nftID","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"staked","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nftID","type":"uint256"}],"name":"Staked","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":"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":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"boost","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeGeneratingContract","outputs":[{"internalType":"address","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":[],"name":"getLatestID","outputs":[{"internalType":"uint256","name":"counter","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"getNFTData","outputs":[{"internalType":"uint256","name":"share","type":"uint256"},{"internalType":"uint256","name":"vestingStart","type":"uint256"},{"internalType":"uint256","name":"vestingEnd","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"getRedeemableTokenAmount","outputs":[{"internalType":"uint256","name":"redeemableAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"getUnderlyingValue","outputs":[{"internalType":"uint256","name":"underlyingNFTValue","type":"uint256"}],"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":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"_feeGeneratingContract","type":"address"}],"name":"setFeeGeneratingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vestingPeriod","type":"uint256"}],"name":"setVestingPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_vestingPeriodStart","type":"uint256"}],"name":"setVestingPeriodStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakedReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_tokenID","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReserveShare","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"}]

60806040523480156200001157600080fd5b50604051620025453803806200254583398101604081905262000034916200019a565b604080518082018252600a815269131a5c5d5a590b53919560b21b6020808301918252835180850190945260048452631313919560e21b9084015281519192916200008291600091620000d7565b50805162000098906001906020840190620000d7565b5050600980546001600160a01b039687166001600160a01b0319918216179091556007805495909616941693909317909355600c5550600a556200021e565b828054620000e590620001e1565b90600052602060002090601f01602090048101928262000109576000855562000154565b82601f106200012457805160ff191683800117855562000154565b8280016001018555821562000154579182015b828111156200015457825182559160200191906001019062000137565b506200016292915062000166565b5090565b5b8082111562000162576000815560010162000167565b80516001600160a01b03811681146200019557600080fd5b919050565b60008060008060808587031215620001b0578384fd5b620001bb856200017d565b9350620001cb602086016200017d565b6040860151606090960151949790965092505050565b600281046001821680620001f657607f821691505b602082108114156200021857634e487b7160e01b600052602260045260246000fd5b50919050565b612317806200022e6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806344277c83116100f9578063b88d4fde11610097578063e985e9c511610071578063e985e9c5146103b3578063f33cc009146103c6578063fc00d771146103ce578063fec62804146103e1576101c4565b8063b88d4fde14610385578063c87b56dd14610398578063e3a42182146103ab576101c4565b80636352211e116100d35780636352211e1461034457806370a082311461035757806395d89b411461036a578063a22cb46514610372576101c4565b806344277c8314610316578063557d31ef1461031e57806355f804b314610331576101c4565b806323b872dd1161016657806340bee0ed1161014057806340bee0ed146102ca57806340c10f19146102dd57806340fe6ee6146102f057806342842e0e14610303576101c4565b806323b872dd146102915780632b83cccd146102a457806340be7bec146102b7576101c4565b8063095ea7b3116101a2578063095ea7b31461022757806309fb43a71461023c5780630ad4c4f41461025c57806313af40351461027e576101c4565b806301ffc9a7146101c957806306fdde03146101f2578063081812fc14610207575b600080fd5b6101dc6101d736600461194f565b6103e9565b6040516101e99190611af4565b60405180910390f35b6101fa610431565b6040516101e99190611aff565b61021a6102153660046119cd565b6104c3565b6040516101e99190611a66565b61023a6102353660046118d8565b61050f565b005b61024f61024a3660046119cd565b6105a7565b6040516101e9919061218c565b61026f61026a3660046119cd565b61062d565b6040516101e9939291906121a3565b61023a61028c3660046117a2565b610695565b61023a61029f3660046117ee565b610709565b6101dc6102b2366004611901565b610741565b6101dc6102c53660046119fd565b61098f565b61023a6102d83660046119cd565b610aa5565b6101dc6102eb3660046118d8565b610ad4565b61024f6102fe3660046119cd565b610bad565b61023a6103113660046117ee565b610bc6565b61024f610be1565b61023a61032c3660046117a2565b610be7565b61023a61033f366004611987565b610c33565b61021a6103523660046119cd565b610c74565b61024f6103653660046117a2565b610ca9565b6101fa610ced565b61023a6103803660046118a2565b610cfc565b61023a610393366004611829565b610dca565b6101fa6103a63660046119cd565b610e09565b61021a610e38565b6101dc6103c13660046117bc565b610e47565b61024f610e75565b61023a6103dc3660046119cd565b610e7b565b61024f610eaa565b60006001600160e01b031982166380ac58cd60e01b148061041a57506001600160e01b03198216635b5e139f60e01b145b80610429575061042982610ebb565b90505b919050565b60606000805461044090612253565b80601f016020809104026020016040519081016040528092919081815260200182805461046c90612253565b80156104b95780601f1061048e576101008083540402835291602001916104b9565b820191906000526020600020905b81548152906001019060200180831161049c57829003601f168201915b5050505050905090565b60006104ce82610ed4565b6104f35760405162461bcd60e51b81526004016104ea90611e51565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061051a82610c74565b9050806001600160a01b0316836001600160a01b0316141561054e5760405162461bcd60e51b81526004016104ea90611f5e565b806001600160a01b0316610560610ef1565b6001600160a01b0316148061057c575061057c816103c1610ef1565b6105985760405162461bcd60e51b81526004016104ea90611d2c565b6105a28383610ef5565b505050565b6000806000806105b68561062d565b925092509250600d548210156105dc57600d54600c549092506105d990836121b9565b90505b436000828211156105ed57826105ef565b815b90506000600c5485836106029190612210565b61060c90886121f1565b61061691906121d1565b905061062181610f63565b98975050505050505050565b600080600061063b84610ed4565b6106575760405162461bcd60e51b81526004016104ea90611e9d565b5050506000908152600f6020908152604091829020825160608101845281548082526001830154938201849052600290920154930183905292909190565b6009546001600160a01b031633146106bf5760405162461bcd60e51b81526004016104ea90611ede565b600980546001600160a01b0319166001600160a01b0383169081179091556040517fa701229f4b9ddf00aa1c7228d248e6320ee7c581d856ddfba036e73947cd0d1390600090a250565b61071a610714610ef1565b82611006565b6107365760405162461bcd60e51b81526004016104ea90612035565b6105a283838361108b565b6000600d54600014156107665760405162461bcd60e51b81526004016104ea90611b12565b600083116107865760405162461bcd60e51b81526004016104ea906120bd565b61078f82610c74565b6001600160a01b0316336001600160a01b0316146107bf5760405162461bcd60e51b81526004016104ea90611fee565b60006107ca836105a7565b9050808411156107ec5760405162461bcd60e51b81526004016104ea90611f9f565b43600080806107fa8761062d565b5050905061080787610bad565b600854604051636b725ce960e01b81529193506000916001600160a01b0390911690636b725ce99061083f908d908d90600401611adb565b602060405180830381600087803b15801561085957600080fd5b505af115801561086d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108919190611933565b90506001811515146108b55760405162461bcd60e51b81526004016104ea90611bb1565b826108c08a846121f1565b6108ca91906121d1565b9350604051806060016040528085846108e39190612210565b8152602001868152602001600c54876108fc91906121b9565b90526000898152600f60209081526040808320845181559184015160018301559290920151600290920191909155600b805486929061093c908490612210565b909155505060405133907ff3a670cd3af7d64b488926880889d08a8585a138ff455227af6737339a1ec26290610975908c908c90612195565b60405180910390a2600196505050505050505b9392505050565b600061099a82610c74565b6001600160a01b0316336001600160a01b0316146109ca5760405162461bcd60e51b81526004016104ea90611fee565b60006109d5846111b8565b905080600b60008282546109e991906121b9565b9091555043905060006109fb8561062d565b5050905060405180606001604052808483610a1691906121b9565b8152602001838152602001600c5484610a2f91906121b9565b90526000868152600f602090815260409182902083518155908301516001820155918101516002909201919091555133907f6efdf34802deef05b12340fb892f0bd30dcfbd078d3c8063cd32e5e137ee799790610a9190899087908a906121a3565b60405180910390a250600195945050505050565b6009546001600160a01b03163314610acf5760405162461bcd60e51b81526004016104ea90611ede565b600c55565b600080610ae0836111b8565b905080600b6000828254610af491906121b9565b90915550610b049050600661121d565b6000610b106006611226565b905060004390506040518060600160405280848152602001828152602001600c5483610b3c91906121b9565b90526000838152600f602090815260409182902083518155908301516001820155910151600290910155610b70868361122a565b856001600160a01b03167fb4caaf29adda3eefee3ad552a8e85058589bf834c7466cae4ee58787f70589ed868585604051610a91939291906121a3565b600080610bb98361062d565b5050905061098881610f63565b6105a283838360405180602001604052806000815250610dca565b600b5481565b6009546001600160a01b03163314610c115760405162461bcd60e51b81526004016104ea90611ede565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b03163314610c5d5760405162461bcd60e51b81526004016104ea90611ede565b8051610c7090600e906020840190611682565b5050565b6000818152600260205260408120546001600160a01b0316806104295760405162461bcd60e51b81526004016104ea90611dd3565b60006001600160a01b038216610cd15760405162461bcd60e51b81526004016104ea90611d89565b506001600160a01b031660009081526003602052604090205490565b60606001805461044090612253565b610d04610ef1565b6001600160a01b0316826001600160a01b03161415610d355760405162461bcd60e51b81526004016104ea90611c72565b8060056000610d42610ef1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610d86610ef1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610dbe9190611af4565b60405180910390a35050565b610ddb610dd5610ef1565b83611006565b610df75760405162461bcd60e51b81526004016104ea90612035565b610e0384848484611244565b50505050565b6060610e1482610ed4565b610e305760405162461bcd60e51b81526004016104ea906120f4565b610429611277565b6008546001600160a01b031681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600a5481565b6009546001600160a01b03163314610ea55760405162461bcd60e51b81526004016104ea90611ede565b600d55565b6000610eb66006611226565b905090565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f2a82610c74565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080600860009054906101000a90046001600160a01b03166001600160a01b031663bba35a156040518163ffffffff1660e01b815260040160206040518083038186803b158015610fb457600080fd5b505afa158015610fc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fec91906119e5565b600b54909150610ffc84836121f1565b61098891906121d1565b600061101182610ed4565b61102d5760405162461bcd60e51b81526004016104ea90611ce0565b600061103883610c74565b9050806001600160a01b0316846001600160a01b031614806110735750836001600160a01b0316611068846104c3565b6001600160a01b0316145b8061108357506110838185610e47565b949350505050565b826001600160a01b031661109e82610c74565b6001600160a01b0316146110c45760405162461bcd60e51b81526004016104ea90611f15565b6001600160a01b0382166110ea5760405162461bcd60e51b81526004016104ea90611c2e565b6110f58383836105a2565b611100600082610ef5565b6001600160a01b0383166000908152600360205260408120805460019290611129908490612210565b90915550506001600160a01b03821660009081526003602052604081208054600192906111579084906121b9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008082116111d95760405162461bcd60e51b81526004016104ea90611ca9565b6007546001600160a01b03166111f181333086611286565b82600a600082825461120391906121b9565b9091555050600a54610ffc84670de0b6b3a76400006121f1565b80546001019055565b5490565b610c708282604051806020016040528060008152506112de565b61124f84848461108b565b61125b84848484611311565b610e035760405162461bcd60e51b81526004016104ea90611b5f565b6060600e805461044090612253565b610e03846323b872dd60e01b8585856040516024016112a793929190611a7a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261142c565b6112e883836114bb565b6112f56000848484611311565b6105a25760405162461bcd60e51b81526004016104ea90611b5f565b6000611325846001600160a01b031661159a565b1561142157836001600160a01b031663150b7a02611341610ef1565b8786866040518563ffffffff1660e01b81526004016113639493929190611a9e565b602060405180830381600087803b15801561137d57600080fd5b505af19250505080156113ad575060408051601f3d908101601f191682019092526113aa9181019061196b565b60015b611407573d8080156113db576040519150601f19603f3d011682016040523d82523d6000602084013e6113e0565b606091505b5080516113ff5760405162461bcd60e51b81526004016104ea90611b5f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611083565b506001949350505050565b6000611481826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115a09092919063ffffffff16565b8051909150156105a2578080602001905181019061149f9190611933565b6105a25760405162461bcd60e51b81526004016104ea90612142565b6001600160a01b0382166114e15760405162461bcd60e51b81526004016104ea90611e1c565b6114ea81610ed4565b156115075760405162461bcd60e51b81526004016104ea90611bf7565b611513600083836105a2565b6001600160a01b038216600090815260036020526040812080546001929061153c9084906121b9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b60606110838484600085856115b48561159a565b6115d05760405162461bcd60e51b81526004016104ea90612086565b600080866001600160a01b031685876040516115ec9190611a4a565b60006040518083038185875af1925050503d8060008114611629576040519150601f19603f3d011682016040523d82523d6000602084013e61162e565b606091505b509150915061163e828286611649565b979650505050505050565b60608315611658575081610988565b8251156116685782518084602001fd5b8160405162461bcd60e51b81526004016104ea9190611aff565b82805461168e90612253565b90600052602060002090601f0160209004810192826116b057600085556116f6565b82601f106116c957805160ff19168380011785556116f6565b828001600101855582156116f6579182015b828111156116f65782518255916020019190600101906116db565b50611702929150611706565b5090565b5b808211156117025760008155600101611707565b600067ffffffffffffffff80841115611736576117366122a4565b604051601f8501601f19168101602001828111828210171561175a5761175a6122a4565b60405284815291508183850186101561177257600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461042c57600080fd5b6000602082840312156117b3578081fd5b6109888261178b565b600080604083850312156117ce578081fd5b6117d78361178b565b91506117e56020840161178b565b90509250929050565b600080600060608486031215611802578081fd5b61180b8461178b565b92506118196020850161178b565b9150604084013590509250925092565b6000806000806080858703121561183e578081fd5b6118478561178b565b93506118556020860161178b565b925060408501359150606085013567ffffffffffffffff811115611877578182fd5b8501601f81018713611887578182fd5b6118968782356020840161171b565b91505092959194509250565b600080604083850312156118b4578182fd5b6118bd8361178b565b915060208301356118cd816122ba565b809150509250929050565b600080604083850312156118ea578182fd5b6118f38361178b565b946020939093013593505050565b600080600060608486031215611915578283fd5b61191e8461178b565b95602085013595506040909401359392505050565b600060208284031215611944578081fd5b8151610988816122ba565b600060208284031215611960578081fd5b8135610988816122cb565b60006020828403121561197c578081fd5b8151610988816122cb565b600060208284031215611998578081fd5b813567ffffffffffffffff8111156119ae578182fd5b8201601f810184136119be578182fd5b6110838482356020840161171b565b6000602082840312156119de578081fd5b5035919050565b6000602082840312156119f6578081fd5b5051919050565b60008060408385031215611a0f578182fd5b50508035926020909101359150565b60008151808452611a36816020860160208601612227565b601f01601f19169290920160200192915050565b60008251611a5c818460208701612227565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ad190830184611a1e565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082526109886020830184611a1e565b6020808252602d908201527f586669744c69717569644e46543a2052656465656d207068617365206973206e60408201526c1bdd081858dd1a5d99481e595d609a1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f586669744c69717569644e46543a206e6f742061626c6520746f2072656465656040820152656d206665657360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f586669744c69717569644e46543a20416d6f756e7420746f6f20736d616c6c00604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526021908201527f586669744c69717569644e46543a204e465420646f6573206e6f7420657869736040820152601d60fa1b606082015260800190565b60208082526018908201527f586669744c69717569644e46543a20464f5242494444454e0000000000000000604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252602f908201527f586669744c69717569644e46543a20416d6f756e74206578636565647320726560408201526e1919595b58589b1948185b5bdd5b9d608a1b606082015260800190565b60208082526027908201527f586669744c69717569644e46543a204e6f7420746865206f776e6572206f66206040820152661d1a194813919560ca1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601d908201527f586669744c69717569644e46543a20496e76616c696420616d6f756e74000000604082015260600190565b6020808252602e908201527f586669744c69717569644e46543a2055524920717565727920666f72206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b90815260200190565b918252602082015260400190565b9283526020830191909152604082015260600190565b600082198211156121cc576121cc61228e565b500190565b6000826121ec57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561220b5761220b61228e565b500290565b6000828210156122225761222261228e565b500390565b60005b8381101561224257818101518382015260200161222a565b83811115610e035750506000910152565b60028104600182168061226757607f821691505b6020821081141561228857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146122c857600080fd5b50565b6001600160e01b0319811681146122c857600080fdfea2646970667358221220c06414044142b572763951e373274bc182e4bdab28e452f83a045ba09556ea4c64736f6c63430008000033000000000000000000000000fc675877a7ab97a2ff02215b2b15ea7ba802054f0000000000000000000000004aa41bc1649c9c3177ed16caaa11482295fc74410000000000000000000000000000000000000000000000000000000000225f1b00000000000000000000000000000000000000000031a17e847807b1bc000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806344277c83116100f9578063b88d4fde11610097578063e985e9c511610071578063e985e9c5146103b3578063f33cc009146103c6578063fc00d771146103ce578063fec62804146103e1576101c4565b8063b88d4fde14610385578063c87b56dd14610398578063e3a42182146103ab576101c4565b80636352211e116100d35780636352211e1461034457806370a082311461035757806395d89b411461036a578063a22cb46514610372576101c4565b806344277c8314610316578063557d31ef1461031e57806355f804b314610331576101c4565b806323b872dd1161016657806340bee0ed1161014057806340bee0ed146102ca57806340c10f19146102dd57806340fe6ee6146102f057806342842e0e14610303576101c4565b806323b872dd146102915780632b83cccd146102a457806340be7bec146102b7576101c4565b8063095ea7b3116101a2578063095ea7b31461022757806309fb43a71461023c5780630ad4c4f41461025c57806313af40351461027e576101c4565b806301ffc9a7146101c957806306fdde03146101f2578063081812fc14610207575b600080fd5b6101dc6101d736600461194f565b6103e9565b6040516101e99190611af4565b60405180910390f35b6101fa610431565b6040516101e99190611aff565b61021a6102153660046119cd565b6104c3565b6040516101e99190611a66565b61023a6102353660046118d8565b61050f565b005b61024f61024a3660046119cd565b6105a7565b6040516101e9919061218c565b61026f61026a3660046119cd565b61062d565b6040516101e9939291906121a3565b61023a61028c3660046117a2565b610695565b61023a61029f3660046117ee565b610709565b6101dc6102b2366004611901565b610741565b6101dc6102c53660046119fd565b61098f565b61023a6102d83660046119cd565b610aa5565b6101dc6102eb3660046118d8565b610ad4565b61024f6102fe3660046119cd565b610bad565b61023a6103113660046117ee565b610bc6565b61024f610be1565b61023a61032c3660046117a2565b610be7565b61023a61033f366004611987565b610c33565b61021a6103523660046119cd565b610c74565b61024f6103653660046117a2565b610ca9565b6101fa610ced565b61023a6103803660046118a2565b610cfc565b61023a610393366004611829565b610dca565b6101fa6103a63660046119cd565b610e09565b61021a610e38565b6101dc6103c13660046117bc565b610e47565b61024f610e75565b61023a6103dc3660046119cd565b610e7b565b61024f610eaa565b60006001600160e01b031982166380ac58cd60e01b148061041a57506001600160e01b03198216635b5e139f60e01b145b80610429575061042982610ebb565b90505b919050565b60606000805461044090612253565b80601f016020809104026020016040519081016040528092919081815260200182805461046c90612253565b80156104b95780601f1061048e576101008083540402835291602001916104b9565b820191906000526020600020905b81548152906001019060200180831161049c57829003601f168201915b5050505050905090565b60006104ce82610ed4565b6104f35760405162461bcd60e51b81526004016104ea90611e51565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061051a82610c74565b9050806001600160a01b0316836001600160a01b0316141561054e5760405162461bcd60e51b81526004016104ea90611f5e565b806001600160a01b0316610560610ef1565b6001600160a01b0316148061057c575061057c816103c1610ef1565b6105985760405162461bcd60e51b81526004016104ea90611d2c565b6105a28383610ef5565b505050565b6000806000806105b68561062d565b925092509250600d548210156105dc57600d54600c549092506105d990836121b9565b90505b436000828211156105ed57826105ef565b815b90506000600c5485836106029190612210565b61060c90886121f1565b61061691906121d1565b905061062181610f63565b98975050505050505050565b600080600061063b84610ed4565b6106575760405162461bcd60e51b81526004016104ea90611e9d565b5050506000908152600f6020908152604091829020825160608101845281548082526001830154938201849052600290920154930183905292909190565b6009546001600160a01b031633146106bf5760405162461bcd60e51b81526004016104ea90611ede565b600980546001600160a01b0319166001600160a01b0383169081179091556040517fa701229f4b9ddf00aa1c7228d248e6320ee7c581d856ddfba036e73947cd0d1390600090a250565b61071a610714610ef1565b82611006565b6107365760405162461bcd60e51b81526004016104ea90612035565b6105a283838361108b565b6000600d54600014156107665760405162461bcd60e51b81526004016104ea90611b12565b600083116107865760405162461bcd60e51b81526004016104ea906120bd565b61078f82610c74565b6001600160a01b0316336001600160a01b0316146107bf5760405162461bcd60e51b81526004016104ea90611fee565b60006107ca836105a7565b9050808411156107ec5760405162461bcd60e51b81526004016104ea90611f9f565b43600080806107fa8761062d565b5050905061080787610bad565b600854604051636b725ce960e01b81529193506000916001600160a01b0390911690636b725ce99061083f908d908d90600401611adb565b602060405180830381600087803b15801561085957600080fd5b505af115801561086d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108919190611933565b90506001811515146108b55760405162461bcd60e51b81526004016104ea90611bb1565b826108c08a846121f1565b6108ca91906121d1565b9350604051806060016040528085846108e39190612210565b8152602001868152602001600c54876108fc91906121b9565b90526000898152600f60209081526040808320845181559184015160018301559290920151600290920191909155600b805486929061093c908490612210565b909155505060405133907ff3a670cd3af7d64b488926880889d08a8585a138ff455227af6737339a1ec26290610975908c908c90612195565b60405180910390a2600196505050505050505b9392505050565b600061099a82610c74565b6001600160a01b0316336001600160a01b0316146109ca5760405162461bcd60e51b81526004016104ea90611fee565b60006109d5846111b8565b905080600b60008282546109e991906121b9565b9091555043905060006109fb8561062d565b5050905060405180606001604052808483610a1691906121b9565b8152602001838152602001600c5484610a2f91906121b9565b90526000868152600f602090815260409182902083518155908301516001820155918101516002909201919091555133907f6efdf34802deef05b12340fb892f0bd30dcfbd078d3c8063cd32e5e137ee799790610a9190899087908a906121a3565b60405180910390a250600195945050505050565b6009546001600160a01b03163314610acf5760405162461bcd60e51b81526004016104ea90611ede565b600c55565b600080610ae0836111b8565b905080600b6000828254610af491906121b9565b90915550610b049050600661121d565b6000610b106006611226565b905060004390506040518060600160405280848152602001828152602001600c5483610b3c91906121b9565b90526000838152600f602090815260409182902083518155908301516001820155910151600290910155610b70868361122a565b856001600160a01b03167fb4caaf29adda3eefee3ad552a8e85058589bf834c7466cae4ee58787f70589ed868585604051610a91939291906121a3565b600080610bb98361062d565b5050905061098881610f63565b6105a283838360405180602001604052806000815250610dca565b600b5481565b6009546001600160a01b03163314610c115760405162461bcd60e51b81526004016104ea90611ede565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6009546001600160a01b03163314610c5d5760405162461bcd60e51b81526004016104ea90611ede565b8051610c7090600e906020840190611682565b5050565b6000818152600260205260408120546001600160a01b0316806104295760405162461bcd60e51b81526004016104ea90611dd3565b60006001600160a01b038216610cd15760405162461bcd60e51b81526004016104ea90611d89565b506001600160a01b031660009081526003602052604090205490565b60606001805461044090612253565b610d04610ef1565b6001600160a01b0316826001600160a01b03161415610d355760405162461bcd60e51b81526004016104ea90611c72565b8060056000610d42610ef1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610d86610ef1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610dbe9190611af4565b60405180910390a35050565b610ddb610dd5610ef1565b83611006565b610df75760405162461bcd60e51b81526004016104ea90612035565b610e0384848484611244565b50505050565b6060610e1482610ed4565b610e305760405162461bcd60e51b81526004016104ea906120f4565b610429611277565b6008546001600160a01b031681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600a5481565b6009546001600160a01b03163314610ea55760405162461bcd60e51b81526004016104ea90611ede565b600d55565b6000610eb66006611226565b905090565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f2a82610c74565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080600860009054906101000a90046001600160a01b03166001600160a01b031663bba35a156040518163ffffffff1660e01b815260040160206040518083038186803b158015610fb457600080fd5b505afa158015610fc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fec91906119e5565b600b54909150610ffc84836121f1565b61098891906121d1565b600061101182610ed4565b61102d5760405162461bcd60e51b81526004016104ea90611ce0565b600061103883610c74565b9050806001600160a01b0316846001600160a01b031614806110735750836001600160a01b0316611068846104c3565b6001600160a01b0316145b8061108357506110838185610e47565b949350505050565b826001600160a01b031661109e82610c74565b6001600160a01b0316146110c45760405162461bcd60e51b81526004016104ea90611f15565b6001600160a01b0382166110ea5760405162461bcd60e51b81526004016104ea90611c2e565b6110f58383836105a2565b611100600082610ef5565b6001600160a01b0383166000908152600360205260408120805460019290611129908490612210565b90915550506001600160a01b03821660009081526003602052604081208054600192906111579084906121b9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008082116111d95760405162461bcd60e51b81526004016104ea90611ca9565b6007546001600160a01b03166111f181333086611286565b82600a600082825461120391906121b9565b9091555050600a54610ffc84670de0b6b3a76400006121f1565b80546001019055565b5490565b610c708282604051806020016040528060008152506112de565b61124f84848461108b565b61125b84848484611311565b610e035760405162461bcd60e51b81526004016104ea90611b5f565b6060600e805461044090612253565b610e03846323b872dd60e01b8585856040516024016112a793929190611a7a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261142c565b6112e883836114bb565b6112f56000848484611311565b6105a25760405162461bcd60e51b81526004016104ea90611b5f565b6000611325846001600160a01b031661159a565b1561142157836001600160a01b031663150b7a02611341610ef1565b8786866040518563ffffffff1660e01b81526004016113639493929190611a9e565b602060405180830381600087803b15801561137d57600080fd5b505af19250505080156113ad575060408051601f3d908101601f191682019092526113aa9181019061196b565b60015b611407573d8080156113db576040519150601f19603f3d011682016040523d82523d6000602084013e6113e0565b606091505b5080516113ff5760405162461bcd60e51b81526004016104ea90611b5f565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611083565b506001949350505050565b6000611481826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115a09092919063ffffffff16565b8051909150156105a2578080602001905181019061149f9190611933565b6105a25760405162461bcd60e51b81526004016104ea90612142565b6001600160a01b0382166114e15760405162461bcd60e51b81526004016104ea90611e1c565b6114ea81610ed4565b156115075760405162461bcd60e51b81526004016104ea90611bf7565b611513600083836105a2565b6001600160a01b038216600090815260036020526040812080546001929061153c9084906121b9565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b60606110838484600085856115b48561159a565b6115d05760405162461bcd60e51b81526004016104ea90612086565b600080866001600160a01b031685876040516115ec9190611a4a565b60006040518083038185875af1925050503d8060008114611629576040519150601f19603f3d011682016040523d82523d6000602084013e61162e565b606091505b509150915061163e828286611649565b979650505050505050565b60608315611658575081610988565b8251156116685782518084602001fd5b8160405162461bcd60e51b81526004016104ea9190611aff565b82805461168e90612253565b90600052602060002090601f0160209004810192826116b057600085556116f6565b82601f106116c957805160ff19168380011785556116f6565b828001600101855582156116f6579182015b828111156116f65782518255916020019190600101906116db565b50611702929150611706565b5090565b5b808211156117025760008155600101611707565b600067ffffffffffffffff80841115611736576117366122a4565b604051601f8501601f19168101602001828111828210171561175a5761175a6122a4565b60405284815291508183850186101561177257600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461042c57600080fd5b6000602082840312156117b3578081fd5b6109888261178b565b600080604083850312156117ce578081fd5b6117d78361178b565b91506117e56020840161178b565b90509250929050565b600080600060608486031215611802578081fd5b61180b8461178b565b92506118196020850161178b565b9150604084013590509250925092565b6000806000806080858703121561183e578081fd5b6118478561178b565b93506118556020860161178b565b925060408501359150606085013567ffffffffffffffff811115611877578182fd5b8501601f81018713611887578182fd5b6118968782356020840161171b565b91505092959194509250565b600080604083850312156118b4578182fd5b6118bd8361178b565b915060208301356118cd816122ba565b809150509250929050565b600080604083850312156118ea578182fd5b6118f38361178b565b946020939093013593505050565b600080600060608486031215611915578283fd5b61191e8461178b565b95602085013595506040909401359392505050565b600060208284031215611944578081fd5b8151610988816122ba565b600060208284031215611960578081fd5b8135610988816122cb565b60006020828403121561197c578081fd5b8151610988816122cb565b600060208284031215611998578081fd5b813567ffffffffffffffff8111156119ae578182fd5b8201601f810184136119be578182fd5b6110838482356020840161171b565b6000602082840312156119de578081fd5b5035919050565b6000602082840312156119f6578081fd5b5051919050565b60008060408385031215611a0f578182fd5b50508035926020909101359150565b60008151808452611a36816020860160208601612227565b601f01601f19169290920160200192915050565b60008251611a5c818460208701612227565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ad190830184611a1e565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b6000602082526109886020830184611a1e565b6020808252602d908201527f586669744c69717569644e46543a2052656465656d207068617365206973206e60408201526c1bdd081858dd1a5d99481e595d609a1b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f586669744c69717569644e46543a206e6f742061626c6520746f2072656465656040820152656d206665657360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f586669744c69717569644e46543a20416d6f756e7420746f6f20736d616c6c00604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526021908201527f586669744c69717569644e46543a204e465420646f6573206e6f7420657869736040820152601d60fa1b606082015260800190565b60208082526018908201527f586669744c69717569644e46543a20464f5242494444454e0000000000000000604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b6020808252602f908201527f586669744c69717569644e46543a20416d6f756e74206578636565647320726560408201526e1919595b58589b1948185b5bdd5b9d608a1b606082015260800190565b60208082526027908201527f586669744c69717569644e46543a204e6f7420746865206f776e6572206f66206040820152661d1a194813919560ca1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601d908201527f586669744c69717569644e46543a20496e76616c696420616d6f756e74000000604082015260600190565b6020808252602e908201527f586669744c69717569644e46543a2055524920717565727920666f72206e6f6e60408201526d32bc34b9ba32b73a103a37b5b2b760911b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b90815260200190565b918252602082015260400190565b9283526020830191909152604082015260600190565b600082198211156121cc576121cc61228e565b500190565b6000826121ec57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561220b5761220b61228e565b500290565b6000828210156122225761222261228e565b500390565b60005b8381101561224257818101518382015260200161222a565b83811115610e035750506000910152565b60028104600182168061226757607f821691505b6020821081141561228857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146122c857600080fd5b50565b6001600160e01b0319811681146122c857600080fdfea2646970667358221220c06414044142b572763951e373274bc182e4bdab28e452f83a045ba09556ea4c64736f6c63430008000033

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

000000000000000000000000fc675877a7ab97a2ff02215b2b15ea7ba802054f0000000000000000000000004aa41bc1649c9c3177ed16caaa11482295fc74410000000000000000000000000000000000000000000000000000000000225f1b00000000000000000000000000000000000000000031a17e847807b1bc000000

-----Decoded View---------------
Arg [0] : _owner (address): 0xfc675877A7AB97A2fF02215B2B15EA7ba802054f
Arg [1] : _token2Stake (address): 0x4aa41bC1649C9C3177eD16CaaA11482295fC7441
Arg [2] : _vestingPeriod (uint256): 2252571
Arg [3] : _initialReserve (uint256): 60000000000000000000000000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000fc675877a7ab97a2ff02215b2b15ea7ba802054f
Arg [1] : 0000000000000000000000004aa41bc1649c9c3177ed16caaa11482295fc7441
Arg [2] : 0000000000000000000000000000000000000000000000000000000000225f1b
Arg [3] : 00000000000000000000000000000000000000000031a17e847807b1bc000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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