ETH Price: $2,411.71 (+0.27%)
Gas: 2.97 Gwei

Contract

0x592876d59AfA1b510f5dF167dB367c90d2618B2d
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve199965722024-06-01 11:08:47126 days ago1717240127IN
0x592876d5...0d2618B2d
0 ETH0.000126134.68363157
Approve199965602024-06-01 11:06:23126 days ago1717239983IN
0x592876d5...0d2618B2d
0 ETH0.000120454.83115408
Approve146540962022-04-25 13:34:57894 days ago1650893697IN
0x592876d5...0d2618B2d
0 ETH0.0010389641.67177745
Transfer129798752021-08-07 19:33:321155 days ago1628364812IN
0x592876d5...0d2618B2d
0 ETH0.0018947849
Transfer127370752021-06-30 18:46:251193 days ago1625078785IN
0x592876d5...0d2618B2d
0 ETH0.0025626830.25
Transfer126409532021-06-15 19:27:291208 days ago1623785249IN
0x592876d5...0d2618B2d
0 ETH0.0012764733
Transfer126105472021-06-11 2:24:591213 days ago1623378299IN
0x592876d5...0d2618B2d
0 ETH0.000383069.9
Transfer125026052021-05-25 9:09:481229 days ago1621933788IN
0x592876d5...0d2618B2d
0 ETH0.001624642
Transfer124779772021-05-21 13:39:011233 days ago1621604341IN
0x592876d5...0d2618B2d
0 ETH0.0032115183
Transfer124775832021-05-21 12:04:521233 days ago1621598692IN
0x592876d5...0d2618B2d
0 ETH0.0018566848
Transfer124607712021-05-18 21:18:281236 days ago1621372708IN
0x592876d5...0d2618B2d
0 ETH0.00472295122.1
Transfer124603882021-05-18 19:51:421236 days ago1621367502IN
0x592876d5...0d2618B2d
0 ETH0.00421236108.9
Transfer124585902021-05-18 13:15:211236 days ago1621343721IN
0x592876d5...0d2618B2d
0 ETH0.0066163978.1
Transfer124529272021-05-17 16:12:391237 days ago1621267959IN
0x592876d5...0d2618B2d
0 ETH0.0037907398
Transfer124414392021-05-15 21:29:141239 days ago1621114154IN
0x592876d5...0d2618B2d
0 ETH0.001491963
Transfer124389672021-05-15 12:28:581239 days ago1621081738IN
0x592876d5...0d2618B2d
0 ETH0.0029358875.9
Transfer124389552021-05-15 12:25:421239 days ago1621081542IN
0x592876d5...0d2618B2d
0 ETH0.0029010775
Transfer124379902021-05-15 8:51:541239 days ago1621068714IN
0x592876d5...0d2618B2d
0 ETH0.0040615105
Transfer124335542021-05-14 16:22:271240 days ago1621009347IN
0x592876d5...0d2618B2d
0 ETH0.00633784163.9
Transfer124334552021-05-14 16:01:501240 days ago1621008110IN
0x592876d5...0d2618B2d
0 ETH0.00615027159
Transfer124284422021-05-13 21:12:421241 days ago1620940362IN
0x592876d5...0d2618B2d
0 ETH0.0035586592
Transfer124236732021-05-13 3:47:101242 days ago1620877630IN
0x592876d5...0d2618B2d
0 ETH0.00603423156
Transfer124224562021-05-12 23:12:341242 days ago1620861154IN
0x592876d5...0d2618B2d
0 ETH0.00719079185.9
Transfer124178572021-05-12 5:57:351242 days ago1620799055IN
0x592876d5...0d2618B2d
0 ETH0.00804564208
Transfer124141382021-05-11 16:17:351243 days ago1620749855IN
0x592876d5...0d2618B2d
0 ETH0.00970893251
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:
RFD

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";

import "./NFTStaking.sol";

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

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name = "Reflect Dao";
    string private _symbol = "RFD";
    uint256 private _total = 2 * 10**6 * 10**6;

    mapping(address => bool) private _excluded;
    mapping(address => bool) private _whitelisted;

    address _lpToken;
    IERC1155 _nftToken;
    IERC20 _usdcToken;

    NFTStaking _rewardDistributor;

    uint256 public vipTokenId = 1;

    uint256 _lastRebaseTime;
    uint256 priceFactor = 10**6;

    event TransferFee(address to, uint256 amount);

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(IERC1155 _nftAddr, IERC20 _usdcAddr) {
        _nftToken = _nftAddr;
        _usdcToken = _usdcAddr;
        _lastRebaseTime = block.timestamp;
        _mint(_msgSender(), _total);
        emit Transfer(address(0), _msgSender(), _total);
    }

    modifier onlyExcluded() {
        require(
            _excluded[_msgSender()] ||
                _nftToken.balanceOf(_msgSender(), vipTokenId) > 0 ||
                _rewardDistributor.isStakeHolder(_msgSender()),
            "Not excluded"
        );
        _;
    }

    /**
     * @dev Updates NFT Token Contract
     */
    function updateNFTToken(IERC1155 _nftAddr) external onlyOwner {
        _nftToken = _nftAddr;
    }

    /**
     * @dev set the account to be excluded or included
     */
    function setExcluded(address account, bool _status) external onlyOwner {
        _excluded[account] = _status;
    }

    /**
     * @dev set the account to be whitelisted or not
     */
    function setWhitelisted(address account, bool _status) external onlyOwner {
        _whitelisted[account] = _status;
    }

    /**
     * @dev return if account is excluded
     */
    function isExcluded(address account) public view returns (bool) {
        return
            _excluded[account] ||
            _nftToken.balanceOf(account, vipTokenId) > 0 ||
            _rewardDistributor.isStakeHolder(account);
    }

    /**
     * @dev return if account is excluded
     */
    function isWhitelisted(address account) public view returns (bool) {
        return _whitelisted[account];
    }

    function setLpToken(address _lpAddr) public onlyOwner {
        _lpToken = _lpAddr;
    }

    function setNFTToken(IERC1155 _nftAddr) public onlyOwner {
        _nftToken = _nftAddr;
    }

    function setDistributor(NFTStaking _distAddr) public onlyOwner {
        _rewardDistributor = _distAddr;
    }

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

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

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

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount)
        public
        virtual
        override
        returns (bool)
    {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(
            currentAllowance >= amount,
            "ERC20: transfer amount exceeds allowance"
        );
        _approve(sender, _msgSender(), currentAllowance - amount);

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];

        require(
            senderBalance >= amount,
            "ERC20: transfer amount exceeds balance"
        );
        uint256 _tFee = amount.mul(3).div(100);
        uint256 _rAmount = amount.sub(_tFee);

        if (isExcluded(recipient) || isWhitelisted(sender)) {
            _balances[sender] = senderBalance.sub(amount);
            _balances[recipient] = _balances[recipient].add(amount);
        } else {
            _balances[sender] = senderBalance.sub(amount);
            _balances[recipient] = _balances[recipient].add(_rAmount);

            _balances[address(_rewardDistributor)] = _balances[
                address(_rewardDistributor)
            ]
                .add(_tFee);
            emit TransferFee(address(_rewardDistributor), _tFee);
        }

        emit Transfer(sender, recipient, amount);
    }

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

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

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

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

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

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

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

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

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

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

    function rebase() public onlyExcluded {
        require(
            block.timestamp >= _lastRebaseTime + 8 hours,
            "Not available at this time"
        );
        uint256 usdcBalance = _usdcToken.balanceOf(_lpToken);
        uint256 tokenBalance = balanceOf(_lpToken);

        if (usdcBalance > tokenBalance) {
            priceFactor = priceFactor
                .mul(10**6 + 2 * 10**4)
                .div(10**6)
                .mul(tokenBalance)
                .div(usdcBalance);
            _lastRebaseTime = block.timestamp;
        } else if (usdcBalance < tokenBalance) {
            priceFactor = priceFactor
                .mul(10**6 - 2 * 10**4)
                .div(10**6)
                .mul(tokenBalance)
                .div(usdcBalance);
            _lastRebaseTime = block.timestamp;
        }
    }
}

File 2 of 13 : 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 3 of 13 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
}

File 4 of 13 : 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 5 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

File 6 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 7 of 13 : 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 8 of 13 : NFTStaking.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract NFTStaking is Context, Ownable, ERC1155Holder {
    using SafeMath for uint256;

    IERC20 _rfdToken;
    IERC1155 _nftToken;

    uint256 vipTokenId = 1;

    struct STAKE {
        uint256 amount;
        uint256 _lastUpdatedAt;
    }

    mapping(address => STAKE) _stakeInfo;
    address[] _stakers;

    event Stake(address _staker, uint256 amount);
    event Unstake(address _staker, uint256 amount);
    event Withdraw(address _staker, uint256 amount);

    constructor(IERC20 _rfdAddr, IERC1155 _nftAddr) {
        _rfdToken = _rfdAddr;
        _nftToken = _nftAddr;
    }

    function totalRewards() public view returns (uint256) {
        return _rfdToken.balanceOf(address(this));
    }

    function isStakeHolder(address _account) public view returns (bool) {
        return _stakeInfo[_account].amount > 0;
    }

    function setNFTToken(IERC1155 _nftAddr) public onlyOwner {
        _nftToken = _nftAddr;
    }

    function setRFDToken(IERC20 _rfdAddr) public onlyOwner {
        _rfdToken = _rfdAddr;
    }

    function rewardOf(address _staker) public view returns (uint256) {
        STAKE memory _stakeDetail = _stakeInfo[_staker];

        uint256 _rewards = totalRewards();
        uint256 _singlePart =
            _stakeDetail.amount.mul(
                block.timestamp.sub(_stakeDetail._lastUpdatedAt)
            );

        uint256 _totalPart;

        for (uint256 i = 0; i < _stakers.length; i++) {
            STAKE memory _singleStake = _stakeInfo[_stakers[i]];

            _totalPart = _totalPart.add(
                _singleStake.amount.mul(
                    block.timestamp.sub(_singleStake._lastUpdatedAt)
                )
            );
        }

        if (_totalPart == 0) return 0;

        return _rewards.mul(_singlePart).div(_totalPart);
    }

    function stake(uint256 _amount) public {
        _nftToken.safeTransferFrom(
            _msgSender(),
            address(this),
            vipTokenId,
            _amount,
            ""
        );

        STAKE storage _stake = _stakeInfo[_msgSender()];

        if (_stake.amount > 0) {
            uint256 reward = rewardOf(_msgSender());
            _rfdToken.transfer(_msgSender(), reward);
            _stake.amount = _stake.amount.add(_amount);
            emit Withdraw(_msgSender(), reward);
        } else {
            _stake.amount = _amount;
            _stakers.push(_msgSender());
        }

        _stake._lastUpdatedAt = block.timestamp;

        emit Stake(_msgSender(), _amount);
    }

    function unstake() public {
        require(_stakeInfo[_msgSender()].amount > 0, "Not staking");

        STAKE storage _stake = _stakeInfo[_msgSender()];
        uint256 reward = rewardOf(_msgSender());
        uint256 _amount = _stake.amount;

        _rfdToken.transfer(_msgSender(), reward);
        _nftToken.safeTransferFrom(
            address(this),
            _msgSender(),
            vipTokenId,
            _stake.amount,
            ""
        );

        _stake.amount = 0;
        _stake._lastUpdatedAt = block.timestamp;

        for (uint256 i = 0; i < _stakers.length; i++) {
            if (_stakers[i] == _msgSender()) {
                _stakers[i] = _stakers[_stakers.length - 1];
                _stakers.pop();
                break;
            }
        }

        emit Unstake(_msgSender(), _amount);
    }

    function claimReward() public {
        uint256 reward = rewardOf(_msgSender());
        STAKE storage _stake = _stakeInfo[_msgSender()];

        _rfdToken.transfer(_msgSender(), reward);

        _stake._lastUpdatedAt = block.timestamp;

        emit Withdraw(_msgSender(), reward);
    }
}

File 9 of 13 : 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 10 of 13 : ERC1155Holder.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC1155Receiver.sol";

/**
 * @dev _Available since v3.1._
 */
contract ERC1155Holder is ERC1155Receiver {
    function onERC1155Received(address, address, uint256, uint256, bytes memory) public virtual override returns (bytes4) {
        return this.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(address, address, uint256[] memory, uint256[] memory, bytes memory) public virtual override returns (bytes4) {
        return this.onERC1155BatchReceived.selector;
    }
}

File 11 of 13 : ERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155Receiver.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev _Available since v3.1._
 */
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return interfaceId == type(IERC1155Receiver).interfaceId
            || super.supportsInterface(interfaceId);
    }
}

File 12 of 13 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {

    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    )
        external
        returns(bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    )
        external
        returns(bytes4);
}

File 13 of 13 : 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;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC1155","name":"_nftAddr","type":"address"},{"internalType":"contract IERC20","name":"_usdcAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferFee","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract NFTStaking","name":"_distAddr","type":"address"}],"name":"setDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setExcluded","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lpAddr","type":"address"}],"name":"setLpToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"_nftAddr","type":"address"}],"name":"setNFTToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"_nftAddr","type":"address"}],"name":"updateNFTToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vipTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526040518060400160405280600b81526020017f5265666c6563742044616f000000000000000000000000000000000000000000815250600490805190602001906200005192919062000439565b506040518060400160405280600381526020017f5246440000000000000000000000000000000000000000000000000000000000815250600590805190602001906200009f92919062000439565b506501d1a94a20006006556001600d55620f4240600f55348015620000c357600080fd5b50604051620032fa380380620032fa8339818101604052810190620000e9919062000517565b6000620000fb620002c660201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555042600e819055506200024562000236620002c660201b60201c565b600654620002ce60201b60201c565b62000255620002c660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600654604051620002b69190620005cd565b60405180910390a3505062000786565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000341576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200033890620005ab565b60405180910390fd5b62000355600083836200043460201b60201c565b8060036000828254620003699190620005fb565b9250508190555080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254620003c19190620005fb565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620004289190620005cd565b60405180910390a35050565b505050565b8280546200044790620006be565b90600052602060002090601f0160209004810192826200046b5760008555620004b7565b82601f106200048657805160ff1916838001178555620004b7565b82800160010185558215620004b7579182015b82811115620004b657825182559160200191906001019062000499565b5b509050620004c69190620004ca565b5090565b5b80821115620004e5576000816000905550600101620004cb565b5090565b600081519050620004fa8162000752565b92915050565b60008151905062000511816200076c565b92915050565b600080604083850312156200052b57600080fd5b60006200053b85828601620004e9565b92505060206200054e8582860162000500565b9150509250929050565b600062000567601f83620005ea565b91507f45524332303a206d696e7420746f20746865207a65726f2061646472657373006000830152602082019050919050565b620005a581620006b4565b82525050565b60006020820190508181036000830152620005c68162000558565b9050919050565b6000602082019050620005e460008301846200059a565b92915050565b600082825260208201905092915050565b60006200060882620006b4565b91506200061583620006b4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200064d576200064c620006f4565b5b828201905092915050565b6000620006658262000694565b9050919050565b6000620006798262000658565b9050919050565b60006200068d8262000658565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006002820490506001821680620006d757607f821691505b60208210811415620006ee57620006ed62000723565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6200075d816200066c565b81146200076957600080fd5b50565b620007778162000680565b81146200078357600080fd5b50565b612b6480620007966000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806375619ab5116100c3578063a9059cbb1161007c578063a9059cbb146103c5578063af14052c146103f5578063cba0e996146103ff578063dd62ed3e1461042f578063f2fde38b1461045f578063fbb8f6931461047b57610158565b806375619ab5146103055780638da5cb5b146103215780639281aa0b1461033f57806395d89b411461035b5780639ee933b514610379578063a457c2d71461039557610158565b8063313ce56711610115578063313ce56714610231578063395093511461024f5780633af32abf1461027f57806359d41f37146102af57806370a08231146102cb578063715018a6146102fb57610158565b806306fdde031461015d578063095ea7b31461017b57806310e71a02146101ab57806318160ddd146101c757806323b872dd146101e55780632836be2414610215575b600080fd5b610165610499565b6040516101729190612656565b60405180910390f35b610195600480360381019061019091906120b2565b61052b565b6040516101a2919061263b565b60405180910390f35b6101c560048036038101906101c09190612117565b610549565b005b6101cf610609565b6040516101dc91906127d8565b60405180910390f35b6101ff60048036038101906101fa9190612027565b610613565b60405161020c919061263b565b60405180910390f35b61022f600480360381019061022a9190612076565b610714565b005b6102396107eb565b60405161024691906127f3565b60405180910390f35b610269600480360381019061026491906120b2565b6107f4565b604051610276919061263b565b60405180910390f35b61029960048036038101906102949190611fc2565b6108a0565b6040516102a6919061263b565b60405180910390f35b6102c960048036038101906102c49190612117565b6108f6565b005b6102e560048036038101906102e09190611fc2565b6109b6565b6040516102f291906127d8565b60405180910390f35b610303610a28565b005b61031f600480360381019061031a9190612140565b610b62565b005b610329610c22565b60405161033691906125f7565b60405180910390f35b61035960048036038101906103549190612076565b610c4b565b005b610363610d22565b6040516103709190612656565b60405180910390f35b610393600480360381019061038e9190611fc2565b610db4565b005b6103af60048036038101906103aa91906120b2565b610e74565b6040516103bc919061263b565b60405180910390f35b6103df60048036038101906103da91906120b2565b610f68565b6040516103ec919061263b565b60405180910390f35b6103fd610f86565b005b61041960048036038101906104149190611fc2565b6113ba565b604051610426919061263b565b60405180910390f35b61044960048036038101906104449190611feb565b61157a565b60405161045691906127d8565b60405180910390f35b61047960048036038101906104749190611fc2565b611601565b005b6104836117aa565b60405161049091906127d8565b60405180910390f35b6060600480546104a8906129eb565b80601f01602080910402602001604051908101604052809291908181526020018280546104d4906129eb565b80156105215780601f106104f657610100808354040283529160200191610521565b820191906000526020600020905b81548152906001019060200180831161050457829003601f168201915b5050505050905090565b600061053f6105386117b0565b84846117b8565b6001905092915050565b6105516117b0565b73ffffffffffffffffffffffffffffffffffffffff1661056f610c22565b73ffffffffffffffffffffffffffffffffffffffff16146105c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105bc90612738565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600354905090565b6000610620848484611983565b6000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061066b6117b0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156106eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e290612718565b60405180910390fd5b610708856106f76117b0565b8584610703919061290b565b6117b8565b60019150509392505050565b61071c6117b0565b73ffffffffffffffffffffffffffffffffffffffff1661073a610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610790576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078790612738565b60405180910390fd5b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60006006905090565b60006108966108016117b0565b84846002600061080f6117b0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610891919061282a565b6117b8565b6001905092915050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6108fe6117b0565b73ffffffffffffffffffffffffffffffffffffffff1661091c610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096990612738565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610a21620f4240610a13600f54600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ed290919063ffffffff16565b611ee890919063ffffffff16565b9050919050565b610a306117b0565b73ffffffffffffffffffffffffffffffffffffffff16610a4e610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610aa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9b90612738565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b610b6a6117b0565b73ffffffffffffffffffffffffffffffffffffffff16610b88610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd590612738565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610c536117b0565b73ffffffffffffffffffffffffffffffffffffffff16610c71610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610cc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbe90612738565b60405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b606060058054610d31906129eb565b80601f0160208091040260200160405190810160405280929190818152602001828054610d5d906129eb565b8015610daa5780601f10610d7f57610100808354040283529160200191610daa565b820191906000526020600020905b815481529060010190602001808311610d8d57829003601f168201915b5050505050905090565b610dbc6117b0565b73ffffffffffffffffffffffffffffffffffffffff16610dda610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2790612738565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060026000610e836117b0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f37906127b8565b60405180910390fd5b610f5d610f4b6117b0565b858584610f58919061290b565b6117b8565b600191505092915050565b6000610f7c610f756117b0565b8484611983565b6001905092915050565b60076000610f926117b0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061109957506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e6110276117b0565b600d546040518363ffffffff1660e01b8152600401611047929190612612565b60206040518083038186803b15801561105f57600080fd5b505afa158015611073573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110979190612169565b115b806111525750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663635121596110e56117b0565b6040518263ffffffff1660e01b815260040161110191906125f7565b60206040518083038186803b15801561111957600080fd5b505afa15801561112d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115191906120ee565b5b611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118890612758565b60405180910390fd5b617080600e546111a1919061282a565b4210156111e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111da906126d8565b60405180910390fd5b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b815260040161126291906125f7565b60206040518083038186803b15801561127a57600080fd5b505afa15801561128e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b29190612169565b905060006112e1600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166109b6565b90508082111561134e5761133c8261132e83611320620f4240611312620f9060600f54611ed290919063ffffffff16565b611ee890919063ffffffff16565b611ed290919063ffffffff16565b611ee890919063ffffffff16565b600f8190555042600e819055506113b6565b808210156113b5576113a7826113998361138b620f424061137d620ef420600f54611ed290919063ffffffff16565b611ee890919063ffffffff16565b611ed290919063ffffffff16565b611ee890919063ffffffff16565b600f8190555042600e819055505b5b5050565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806114c157506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e84600d546040518363ffffffff1660e01b815260040161146f929190612612565b60206040518083038186803b15801561148757600080fd5b505afa15801561149b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114bf9190612169565b115b806115735750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166363512159836040518263ffffffff1660e01b815260040161152291906125f7565b60206040518083038186803b15801561153a57600080fd5b505afa15801561154e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157291906120ee565b5b9050919050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6116096117b0565b73ffffffffffffffffffffffffffffffffffffffff16611627610c22565b73ffffffffffffffffffffffffffffffffffffffff161461167d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167490612738565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e490612698565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d5481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181f90612798565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188f906126b8565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161197691906127d8565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156119f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ea90612778565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5a90612678565b60405180910390fd5b611a6e838383611efe565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aec906126f8565b60405180910390fd5b6000611b1e6064611b10600386611ed290919063ffffffff16565b611ee890919063ffffffff16565b90506000611b358285611f0390919063ffffffff16565b9050611b40856113ba565b80611b505750611b4f866108a0565b5b15611c4557611b688484611f0390919063ffffffff16565b600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611bfd84600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f1990919063ffffffff16565b600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611e65565b611c588484611f0390919063ffffffff16565b600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ced81600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f1990919063ffffffff16565b600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611da48260016000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f1990919063ffffffff16565b60016000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f88b171bb78d3ac5e1caa8e729dddce4e1322e84c80c093ebbe52507b62c77d98600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683604051611e5c929190612612565b60405180910390a15b8473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051611ec291906127d8565b60405180910390a3505050505050565b60008183611ee091906128b1565b905092915050565b60008183611ef69190612880565b905092915050565b505050565b60008183611f11919061290b565b905092915050565b60008183611f27919061282a565b905092915050565b600081359050611f3e81612abb565b92915050565b600081359050611f5381612ad2565b92915050565b600081519050611f6881612ad2565b92915050565b600081359050611f7d81612ae9565b92915050565b600081359050611f9281612b00565b92915050565b600081359050611fa781612b17565b92915050565b600081519050611fbc81612b17565b92915050565b600060208284031215611fd457600080fd5b6000611fe284828501611f2f565b91505092915050565b60008060408385031215611ffe57600080fd5b600061200c85828601611f2f565b925050602061201d85828601611f2f565b9150509250929050565b60008060006060848603121561203c57600080fd5b600061204a86828701611f2f565b935050602061205b86828701611f2f565b925050604061206c86828701611f98565b9150509250925092565b6000806040838503121561208957600080fd5b600061209785828601611f2f565b92505060206120a885828601611f44565b9150509250929050565b600080604083850312156120c557600080fd5b60006120d385828601611f2f565b92505060206120e485828601611f98565b9150509250929050565b60006020828403121561210057600080fd5b600061210e84828501611f59565b91505092915050565b60006020828403121561212957600080fd5b600061213784828501611f6e565b91505092915050565b60006020828403121561215257600080fd5b600061216084828501611f83565b91505092915050565b60006020828403121561217b57600080fd5b600061218984828501611fad565b91505092915050565b61219b8161293f565b82525050565b6121aa81612951565b82525050565b60006121bb8261280e565b6121c58185612819565b93506121d58185602086016129b8565b6121de81612aaa565b840191505092915050565b60006121f6602383612819565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061225c602683612819565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006122c2602283612819565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612328601a83612819565b91507f4e6f7420617661696c61626c6520617420746869732074696d650000000000006000830152602082019050919050565b6000612368602683612819565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206260008301527f616c616e636500000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006123ce602883612819565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206160008301527f6c6c6f77616e63650000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612434602083612819565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000612474600c83612819565b91507f4e6f74206578636c7564656400000000000000000000000000000000000000006000830152602082019050919050565b60006124b4602583612819565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061251a602483612819565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612580602583612819565b91507f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008301527f207a65726f0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6125e2816129a1565b82525050565b6125f1816129ab565b82525050565b600060208201905061260c6000830184612192565b92915050565b60006040820190506126276000830185612192565b61263460208301846125d9565b9392505050565b600060208201905061265060008301846121a1565b92915050565b6000602082019050818103600083015261267081846121b0565b905092915050565b60006020820190508181036000830152612691816121e9565b9050919050565b600060208201905081810360008301526126b18161224f565b9050919050565b600060208201905081810360008301526126d1816122b5565b9050919050565b600060208201905081810360008301526126f18161231b565b9050919050565b600060208201905081810360008301526127118161235b565b9050919050565b60006020820190508181036000830152612731816123c1565b9050919050565b6000602082019050818103600083015261275181612427565b9050919050565b6000602082019050818103600083015261277181612467565b9050919050565b60006020820190508181036000830152612791816124a7565b9050919050565b600060208201905081810360008301526127b18161250d565b9050919050565b600060208201905081810360008301526127d181612573565b9050919050565b60006020820190506127ed60008301846125d9565b92915050565b600060208201905061280860008301846125e8565b92915050565b600081519050919050565b600082825260208201905092915050565b6000612835826129a1565b9150612840836129a1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561287557612874612a1d565b5b828201905092915050565b600061288b826129a1565b9150612896836129a1565b9250826128a6576128a5612a4c565b5b828204905092915050565b60006128bc826129a1565b91506128c7836129a1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612900576128ff612a1d565b5b828202905092915050565b6000612916826129a1565b9150612921836129a1565b92508282101561293457612933612a1d565b5b828203905092915050565b600061294a82612981565b9050919050565b60008115159050919050565b60006129688261293f565b9050919050565b600061297a8261293f565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156129d65780820151818401526020810190506129bb565b838111156129e5576000848401525b50505050565b60006002820490506001821680612a0357607f821691505b60208210811415612a1757612a16612a7b565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b612ac48161293f565b8114612acf57600080fd5b50565b612adb81612951565b8114612ae657600080fd5b50565b612af28161295d565b8114612afd57600080fd5b50565b612b098161296f565b8114612b1457600080fd5b50565b612b20816129a1565b8114612b2b57600080fd5b5056fea264697066735822122055ff9f515c6aa1cf568ba981269cf7f1af0c3c95f40e0e51c028d7d5f533d3f764736f6c63430008000033000000000000000000000000a45e9b86f929a32a91ec81e8f9362f524b058dc8000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c806375619ab5116100c3578063a9059cbb1161007c578063a9059cbb146103c5578063af14052c146103f5578063cba0e996146103ff578063dd62ed3e1461042f578063f2fde38b1461045f578063fbb8f6931461047b57610158565b806375619ab5146103055780638da5cb5b146103215780639281aa0b1461033f57806395d89b411461035b5780639ee933b514610379578063a457c2d71461039557610158565b8063313ce56711610115578063313ce56714610231578063395093511461024f5780633af32abf1461027f57806359d41f37146102af57806370a08231146102cb578063715018a6146102fb57610158565b806306fdde031461015d578063095ea7b31461017b57806310e71a02146101ab57806318160ddd146101c757806323b872dd146101e55780632836be2414610215575b600080fd5b610165610499565b6040516101729190612656565b60405180910390f35b610195600480360381019061019091906120b2565b61052b565b6040516101a2919061263b565b60405180910390f35b6101c560048036038101906101c09190612117565b610549565b005b6101cf610609565b6040516101dc91906127d8565b60405180910390f35b6101ff60048036038101906101fa9190612027565b610613565b60405161020c919061263b565b60405180910390f35b61022f600480360381019061022a9190612076565b610714565b005b6102396107eb565b60405161024691906127f3565b60405180910390f35b610269600480360381019061026491906120b2565b6107f4565b604051610276919061263b565b60405180910390f35b61029960048036038101906102949190611fc2565b6108a0565b6040516102a6919061263b565b60405180910390f35b6102c960048036038101906102c49190612117565b6108f6565b005b6102e560048036038101906102e09190611fc2565b6109b6565b6040516102f291906127d8565b60405180910390f35b610303610a28565b005b61031f600480360381019061031a9190612140565b610b62565b005b610329610c22565b60405161033691906125f7565b60405180910390f35b61035960048036038101906103549190612076565b610c4b565b005b610363610d22565b6040516103709190612656565b60405180910390f35b610393600480360381019061038e9190611fc2565b610db4565b005b6103af60048036038101906103aa91906120b2565b610e74565b6040516103bc919061263b565b60405180910390f35b6103df60048036038101906103da91906120b2565b610f68565b6040516103ec919061263b565b60405180910390f35b6103fd610f86565b005b61041960048036038101906104149190611fc2565b6113ba565b604051610426919061263b565b60405180910390f35b61044960048036038101906104449190611feb565b61157a565b60405161045691906127d8565b60405180910390f35b61047960048036038101906104749190611fc2565b611601565b005b6104836117aa565b60405161049091906127d8565b60405180910390f35b6060600480546104a8906129eb565b80601f01602080910402602001604051908101604052809291908181526020018280546104d4906129eb565b80156105215780601f106104f657610100808354040283529160200191610521565b820191906000526020600020905b81548152906001019060200180831161050457829003601f168201915b5050505050905090565b600061053f6105386117b0565b84846117b8565b6001905092915050565b6105516117b0565b73ffffffffffffffffffffffffffffffffffffffff1661056f610c22565b73ffffffffffffffffffffffffffffffffffffffff16146105c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105bc90612738565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600354905090565b6000610620848484611983565b6000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061066b6117b0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050828110156106eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e290612718565b60405180910390fd5b610708856106f76117b0565b8584610703919061290b565b6117b8565b60019150509392505050565b61071c6117b0565b73ffffffffffffffffffffffffffffffffffffffff1661073a610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610790576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078790612738565b60405180910390fd5b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60006006905090565b60006108966108016117b0565b84846002600061080f6117b0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610891919061282a565b6117b8565b6001905092915050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6108fe6117b0565b73ffffffffffffffffffffffffffffffffffffffff1661091c610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096990612738565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610a21620f4240610a13600f54600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ed290919063ffffffff16565b611ee890919063ffffffff16565b9050919050565b610a306117b0565b73ffffffffffffffffffffffffffffffffffffffff16610a4e610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610aa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9b90612738565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b610b6a6117b0565b73ffffffffffffffffffffffffffffffffffffffff16610b88610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610bde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd590612738565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610c536117b0565b73ffffffffffffffffffffffffffffffffffffffff16610c71610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610cc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbe90612738565b60405180910390fd5b80600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b606060058054610d31906129eb565b80601f0160208091040260200160405190810160405280929190818152602001828054610d5d906129eb565b8015610daa5780601f10610d7f57610100808354040283529160200191610daa565b820191906000526020600020905b815481529060010190602001808311610d8d57829003601f168201915b5050505050905090565b610dbc6117b0565b73ffffffffffffffffffffffffffffffffffffffff16610dda610c22565b73ffffffffffffffffffffffffffffffffffffffff1614610e30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2790612738565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060026000610e836117b0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610f40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f37906127b8565b60405180910390fd5b610f5d610f4b6117b0565b858584610f58919061290b565b6117b8565b600191505092915050565b6000610f7c610f756117b0565b8484611983565b6001905092915050565b60076000610f926117b0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061109957506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e6110276117b0565b600d546040518363ffffffff1660e01b8152600401611047929190612612565b60206040518083038186803b15801561105f57600080fd5b505afa158015611073573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110979190612169565b115b806111525750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663635121596110e56117b0565b6040518263ffffffff1660e01b815260040161110191906125f7565b60206040518083038186803b15801561111957600080fd5b505afa15801561112d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115191906120ee565b5b611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118890612758565b60405180910390fd5b617080600e546111a1919061282a565b4210156111e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111da906126d8565b60405180910390fd5b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b815260040161126291906125f7565b60206040518083038186803b15801561127a57600080fd5b505afa15801561128e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b29190612169565b905060006112e1600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166109b6565b90508082111561134e5761133c8261132e83611320620f4240611312620f9060600f54611ed290919063ffffffff16565b611ee890919063ffffffff16565b611ed290919063ffffffff16565b611ee890919063ffffffff16565b600f8190555042600e819055506113b6565b808210156113b5576113a7826113998361138b620f424061137d620ef420600f54611ed290919063ffffffff16565b611ee890919063ffffffff16565b611ed290919063ffffffff16565b611ee890919063ffffffff16565b600f8190555042600e819055505b5b5050565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806114c157506000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e84600d546040518363ffffffff1660e01b815260040161146f929190612612565b60206040518083038186803b15801561148757600080fd5b505afa15801561149b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114bf9190612169565b115b806115735750600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166363512159836040518263ffffffff1660e01b815260040161152291906125f7565b60206040518083038186803b15801561153a57600080fd5b505afa15801561154e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061157291906120ee565b5b9050919050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6116096117b0565b73ffffffffffffffffffffffffffffffffffffffff16611627610c22565b73ffffffffffffffffffffffffffffffffffffffff161461167d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167490612738565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156116ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e490612698565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600d5481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181f90612798565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188f906126b8565b60405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161197691906127d8565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156119f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ea90612778565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5a90612678565b60405180910390fd5b611a6e838383611efe565b6000600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aec906126f8565b60405180910390fd5b6000611b1e6064611b10600386611ed290919063ffffffff16565b611ee890919063ffffffff16565b90506000611b358285611f0390919063ffffffff16565b9050611b40856113ba565b80611b505750611b4f866108a0565b5b15611c4557611b688484611f0390919063ffffffff16565b600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611bfd84600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f1990919063ffffffff16565b600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611e65565b611c588484611f0390919063ffffffff16565b600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ced81600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f1990919063ffffffff16565b600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611da48260016000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f1990919063ffffffff16565b60016000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f88b171bb78d3ac5e1caa8e729dddce4e1322e84c80c093ebbe52507b62c77d98600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683604051611e5c929190612612565b60405180910390a15b8473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef86604051611ec291906127d8565b60405180910390a3505050505050565b60008183611ee091906128b1565b905092915050565b60008183611ef69190612880565b905092915050565b505050565b60008183611f11919061290b565b905092915050565b60008183611f27919061282a565b905092915050565b600081359050611f3e81612abb565b92915050565b600081359050611f5381612ad2565b92915050565b600081519050611f6881612ad2565b92915050565b600081359050611f7d81612ae9565b92915050565b600081359050611f9281612b00565b92915050565b600081359050611fa781612b17565b92915050565b600081519050611fbc81612b17565b92915050565b600060208284031215611fd457600080fd5b6000611fe284828501611f2f565b91505092915050565b60008060408385031215611ffe57600080fd5b600061200c85828601611f2f565b925050602061201d85828601611f2f565b9150509250929050565b60008060006060848603121561203c57600080fd5b600061204a86828701611f2f565b935050602061205b86828701611f2f565b925050604061206c86828701611f98565b9150509250925092565b6000806040838503121561208957600080fd5b600061209785828601611f2f565b92505060206120a885828601611f44565b9150509250929050565b600080604083850312156120c557600080fd5b60006120d385828601611f2f565b92505060206120e485828601611f98565b9150509250929050565b60006020828403121561210057600080fd5b600061210e84828501611f59565b91505092915050565b60006020828403121561212957600080fd5b600061213784828501611f6e565b91505092915050565b60006020828403121561215257600080fd5b600061216084828501611f83565b91505092915050565b60006020828403121561217b57600080fd5b600061218984828501611fad565b91505092915050565b61219b8161293f565b82525050565b6121aa81612951565b82525050565b60006121bb8261280e565b6121c58185612819565b93506121d58185602086016129b8565b6121de81612aaa565b840191505092915050565b60006121f6602383612819565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061225c602683612819565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006122c2602283612819565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612328601a83612819565b91507f4e6f7420617661696c61626c6520617420746869732074696d650000000000006000830152602082019050919050565b6000612368602683612819565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206260008301527f616c616e636500000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006123ce602883612819565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206160008301527f6c6c6f77616e63650000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612434602083612819565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000612474600c83612819565b91507f4e6f74206578636c7564656400000000000000000000000000000000000000006000830152602082019050919050565b60006124b4602583612819565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061251a602483612819565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612580602583612819565b91507f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008301527f207a65726f0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6125e2816129a1565b82525050565b6125f1816129ab565b82525050565b600060208201905061260c6000830184612192565b92915050565b60006040820190506126276000830185612192565b61263460208301846125d9565b9392505050565b600060208201905061265060008301846121a1565b92915050565b6000602082019050818103600083015261267081846121b0565b905092915050565b60006020820190508181036000830152612691816121e9565b9050919050565b600060208201905081810360008301526126b18161224f565b9050919050565b600060208201905081810360008301526126d1816122b5565b9050919050565b600060208201905081810360008301526126f18161231b565b9050919050565b600060208201905081810360008301526127118161235b565b9050919050565b60006020820190508181036000830152612731816123c1565b9050919050565b6000602082019050818103600083015261275181612427565b9050919050565b6000602082019050818103600083015261277181612467565b9050919050565b60006020820190508181036000830152612791816124a7565b9050919050565b600060208201905081810360008301526127b18161250d565b9050919050565b600060208201905081810360008301526127d181612573565b9050919050565b60006020820190506127ed60008301846125d9565b92915050565b600060208201905061280860008301846125e8565b92915050565b600081519050919050565b600082825260208201905092915050565b6000612835826129a1565b9150612840836129a1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561287557612874612a1d565b5b828201905092915050565b600061288b826129a1565b9150612896836129a1565b9250826128a6576128a5612a4c565b5b828204905092915050565b60006128bc826129a1565b91506128c7836129a1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612900576128ff612a1d565b5b828202905092915050565b6000612916826129a1565b9150612921836129a1565b92508282101561293457612933612a1d565b5b828203905092915050565b600061294a82612981565b9050919050565b60008115159050919050565b60006129688261293f565b9050919050565b600061297a8261293f565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156129d65780820151818401526020810190506129bb565b838111156129e5576000848401525b50505050565b60006002820490506001821680612a0357607f821691505b60208210811415612a1757612a16612a7b565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b612ac48161293f565b8114612acf57600080fd5b50565b612adb81612951565b8114612ae657600080fd5b50565b612af28161295d565b8114612afd57600080fd5b50565b612b098161296f565b8114612b1457600080fd5b50565b612b20816129a1565b8114612b2b57600080fd5b5056fea264697066735822122055ff9f515c6aa1cf568ba981269cf7f1af0c3c95f40e0e51c028d7d5f533d3f764736f6c63430008000033

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

000000000000000000000000a45e9b86f929a32a91ec81e8f9362f524b058dc8000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48

-----Decoded View---------------
Arg [0] : _nftAddr (address): 0xA45E9b86F929A32A91Ec81e8F9362f524B058dC8
Arg [1] : _usdcAddr (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a45e9b86f929a32a91ec81e8f9362f524b058dc8
Arg [1] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48


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.