ETH Price: $3,439.61 (+1.42%)
Gas: 4 Gwei

Token

Chow (CHOW)
 

Overview

Max Total Supply

1,567,569.88055555555555509 CHOW

Holders

92

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
grip710.eth
Balance
3,000 CHOW

Value
$0.00
0x94f64856e55ab61447f22f90e49ebef60d39b9a1
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ChowToken

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 12 : ChowToken.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

/// @title Chow Token
/// @author MilkyTaste @ Ao Collaboration Ltd.
/// https://www.nlbnft.com/

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./INLBNFT.sol";

contract ChowToken is ERC20, Ownable {
    using ECDSA for bytes32;

    INLBNFT public immutable nlbToken;
    address public signer; // Used for off chain utility
    mapping(address => bool) public isUtilityAddr;

    uint256 public dailyRate = 5 * 10**decimals();
    bool public stakingActive = false;
    uint64 public rewardDoubledBefore;
    mapping(uint256 => bool) public isLegendary;
    uint256 private genesisCutOff = 1000;

    struct StakedInfo {
        address owner;
        uint64 lockedAt;
    }

    mapping(uint256 => StakedInfo) public tokenStakedInfo;
    mapping(address => uint64) public utilityNonce; // Prevent replay attacks

    constructor(address nlbAddress) ERC20("Chow", "CHOW") {
        nlbToken = INLBNFT(nlbAddress);
        rewardDoubledBefore = uint64(block.timestamp + 30 days);
    }

    //
    // Staking
    //

    /**
     * Stake NLB tokens.
     * @param tokenIds The tokens to be staked.
     */
    function stake(uint256[] memory tokenIds) external {
        require(stakingActive, "ChowToken: Staking not active");

        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            nlbToken.transferFrom(msg.sender, address(this), tokenId);
            tokenStakedInfo[tokenId] = StakedInfo(msg.sender, uint64(block.timestamp));
        }
    }

    /**
     * Unstake tokens.
     * @param tokenIds The tokens to unstake.
     * @notice Unstaking voids any unclaimed rewards.
     */
    function unstake(uint256[] memory tokenIds) external {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            // Check staking info
            StakedInfo memory info = tokenStakedInfo[tokenId];
            require(info.owner == msg.sender, "ChowToken: Only owner can unstake");
            delete tokenStakedInfo[tokenId];
            // Send it back
            nlbToken.transferFrom(address(this), msg.sender, tokenId);
        }
    }

    //
    // Chow rewards
    //

    /**
     * Claim earned rewards.
     * @param tokenIds The tokens to claim rewards for.
     * @notice Only the owner can claim the associated rewards.
     */
    function claim(uint256[] memory tokenIds) external {
        uint256 reward = 0;
        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            // Check staking info
            StakedInfo memory info = tokenStakedInfo[tokenId];
            require(info.owner == msg.sender, "ChowToken: Only owner can claim rewards");
            reward += calculateReward(tokenId, info.lockedAt);
            // Update reward timer
            tokenStakedInfo[tokenId].lockedAt = uint64(block.timestamp);
        }
        // Claim tokens
        _mint(msg.sender, reward);
    }

    /**
     * Calculate the currently earned reward.
     * @param lockedAt The time the token was locked.
     * @return reward The amount of CHOW earned for this lock duration.
     */
    function calculateReward(uint256 tokenId, uint64 lockedAt) public view returns (uint256) {
        uint256 rate = dailyRate;
        if (isLegendary[tokenId]) {
            // Legendary tokens earn an extra 10 per day
            rate += 10 * 10**decimals();
        } else if (tokenId < genesisCutOff) {
            // Non legendary genesis earn an extra 5 per day
            rate += 5 * 10**decimals();
        }
        if (lockedAt < rewardDoubledBefore) {
            // Reward doubles if staked before this time
            rate *= 2;
        }
        uint256 reward = ((block.timestamp - lockedAt) * rate) / 1 days;
        return reward;
    }

    //
    // Signer locked
    //

    /**
     * Checks for a valid signature against the stored signer.
     * @param data The message content.
     * @param signature The signed message.
     */
    modifier signed(bytes memory data, bytes calldata signature) {
        require(_verify(data, signature, signer), "ChowToken: Signature not valid");
        _;
    }

    /**
     * Checks for a valid nonce against the account, and increments it after the call.
     * @param account The caller.
     * @param nonce The expected nonce.
     */
    modifier useNonce(address account, uint64 nonce) {
        require(utilityNonce[account] == nonce, "ChowToken: Nonce not valid");
        _;
        utilityNonce[account]++;
    }

    /**
     * Burn CHOW.
     * @param amount The amount to burn.
     * @param nonce The utility nonce value.
     * @param maxTime The max time this burn event can be processed.
     * @param signature The server signed message.
     * @notice This method can only be called with a server signed message.
     * @dev This method does NOT add decimals.
     */
    function burn(
        uint256 amount,
        uint64 nonce,
        uint64 maxTime,
        bytes calldata signature
    ) external useNonce(msg.sender, nonce) signed(abi.encodePacked(msg.sender, nonce, maxTime, amount), signature) {
        require(maxTime > block.timestamp, "ChowToken: Max time exceeded");
        _burn(msg.sender, amount);
    }

    //
    // Utility locked
    //

    /**
     * Checks the call was made from a utility address.
     */
    modifier fromUtility() {
        require(isUtilityAddr[msg.sender], "ChowToken: Not utility address");
        _;
    }

    /**
     * Mint CHOW from a utility address.
     * @param addr The address to mint to.
     * @param amount The amount to mint.
     * @dev This method does NOT add decimals.
     */
    function utilityMint(address addr, uint256 amount) external fromUtility {
        _mint(addr, amount);
    }

    /**
     * Burn CHOW from a utility address.
     * @param addr The address to burn from.
     * @param amount The amount to burn.
     * @dev This method does NOT add decimals.
     */
    function utilityBurn(address addr, uint256 amount) external fromUtility {
        _burn(addr, amount);
    }

    //
    // Admin
    //

    /**
     * Enable / disable staking.
     * @param _stakingActive The new staking status.
     */
    function setStakingActive(bool _stakingActive) external onlyOwner {
        stakingActive = _stakingActive;
    }

    /**
     * Update the daily rate.
     * @param _dailyRate The new amount earned per day.
     * @dev This method will automatically add the correct amount of decimal places.
     */
    function setDailyRate(uint256 _dailyRate) external onlyOwner {
        dailyRate = _dailyRate * 10**decimals();
    }

    /**
     * Update the staking reward doubling timestamp.
     * @param _rewardDoubledBefore The new timestamp for doubling staking rewards.
     */
    function setRewardDoubledBefore(uint64 _rewardDoubledBefore) external onlyOwner {
        rewardDoubledBefore = _rewardDoubledBefore;
    }

    /**
     * Update the utility signer.
     * @param _signer The new utility signing address.
     */
    function setSigner(address _signer) external onlyOwner {
        signer = _signer;
    }

    /**
     * Update the genesis cut off token id.
     * @param _genesisCutOff The new genesis cut off.
     */
    function setGenesisCutOff(uint256 _genesisCutOff) external onlyOwner {
        genesisCutOff = _genesisCutOff;
    }

    /**
     * Toggle the list of legendary ids.
     * @param legendaryIds The list of legendary ids to be toggled.
     * @dev This can be used to set an unset the legendaries list.
     */
    function toggleLegendaries(uint256[] calldata legendaryIds) external onlyOwner {
        for (uint256 i = 0; i < legendaryIds.length; i++) {
            isLegendary[legendaryIds[i]] = !isLegendary[legendaryIds[i]];
        }
    }

    /**
     * Toggle the an address as a utility address.
     * @param addr The utility address to toggle.
     * @dev This can be used to set an unset the utility address.
     */
    function toggleUtilityAddr(address addr) external onlyOwner {
        isUtilityAddr[addr] = !isUtilityAddr[addr];
    }

    /**
     * Airdrop tokens.
     * @param to The address to drop to.
     * @param amount The amount to airdrop.
     * @dev This method will automatically add the correct amount of decimal places.
     */
    function airdrop(address to, uint256 amount) external onlyOwner {
        _mint(to, amount * 10**decimals());
    }

    /**
     * Airdrop tokens to multiple addresses.
     * @param tos The addresses to drop to.
     * @param amount The amount to airdrop.
     * @dev This method will automatically add the correct amount of decimal places.
     */
    function airdropBatch(address[] calldata tos, uint256 amount) external onlyOwner {
        for (uint256 i = 0; i < tos.length; i++) {
            _mint(tos[i], amount * 10**decimals());
        }
    }

    //
    // View functions
    //

    /**
     * Verify a signature
     * @param data The signature data
     * @param signature The signature to verify
     * @param account The signer account
     */
    function _verify(
        bytes memory data,
        bytes memory signature,
        address account
    ) public pure returns (bool) {
        return keccak256(data).toEthSignedMessageHash().recover(signature) == account;
    }

    /**
     * List all the staked tokens owned by the given address.
     * @dev This is NOT gas efficient as so it is highly recommended you do NOT integrate to this
     * @dev interface in other contracts, except when read only.
     */
    function listStakedTokensOfOwner(address owner) public view returns (uint256[] memory) {
        uint256 supply = nlbToken.totalSupply();
        uint256[] memory tokenIds = new uint256[](supply);
        uint256 count = 0;
        for (uint256 tokenId = 0; tokenId <= supply; tokenId++) {
            StakedInfo memory info = tokenStakedInfo[tokenId];
            if (info.owner == owner) {
                tokenIds[count] = tokenId;
                count++;
            }
        }
        return resizeArray(tokenIds, count);
    }

    /**
     * List all the rewards for staked tokens owned by the given address.
     * @dev This is NOT gas efficient as so it is highly recommended you do NOT integrate to this
     * @dev interface in other contracts, except when read only.
     */
    function listClaimableRewardsOfOwner(address owner) external view returns (uint256[] memory) {
        uint256[] memory tokenIds = listStakedTokensOfOwner(owner);
        uint256[] memory claimable = new uint256[](tokenIds.length);
        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            StakedInfo memory info = tokenStakedInfo[tokenId];
            claimable[i] = calculateReward(tokenId, info.lockedAt);
        }
        return claimable;
    }

    /**
     * Helper function to resize an array.
     * @param input The inproperly sized array.
     * @param length The desired length.
     */
    function resizeArray(uint256[] memory input, uint256 length) public pure returns (uint256[] memory) {
        uint256[] memory output = new uint256[](length);
        for (uint256 i = 0; i < length; i++) {
            output[i] = input[i];
        }
        return output;
    }
}

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev 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 {
        _transferOwnership(address(0));
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 12 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 5 of 12 : INLBNFT.sol
// SPDX-License-Identifier: MIT
/**
                               ╓"^  ▐▒└       "∩╖
                          "Q▐   ▒    ▄▐       ╡└▌  ,█   ,
                       █    █µ  ▀└└           └▀  #▀▓   ╓╙▀
                 ²▄     ▀                              4⌐   └▀#
                  `█▄▀                                     ▄└    ,
                                                              ▄█▄└
          ╔└,                                                   '¬ ,#╙
            ▀▄▀                                                    ╙▄▄
       a▄╖▌▄                                                         ▄#"
         "▀                      , ╓█▄,                              "└
     "▀▄,                  ╓█    █▌╙████▄                             ,M"└▐
                         ,██▌   ╫██  ████ ██▀█▄▄▄▄,,                   ▀"
    µ▄▀▀               ,█████   ███ ▐██▀  ╟███▄▄▄▄╙╙▀╙╨╩▒▀ªwµ           K⌐▒▀
     └▀▀             ,██▀▐███▌  ███ ╟██     ▀██████████▄▄  └7V▌¥µ       *▀T`
                    ▄█▀  ▐████  ╫██ ╟██      ███       └██▌    └⌐▀▄
                   ██    ]█████ ╟██ ╟██     ████▄▄▄█████▀└     ^  "U
    ,             █▌      █████▄╟█▌ ▐██      ███████████▄▄ `≈,    ▄
    ▀`            █▄   %  ██▌╟████▌ ▐██      ██▌      └▀▀████, ''          ▀▀
                   ▀W▄«╛  ██▌ ████▌ ]██ ▐██▀▀██⌐           ╙▀██▄
                          ██▌  ███⌐  ██  ╟█████▀█            ╓██▌
       ,       ▌   ▀▄#    ██▌   ██   ██   ▀╙▀██████████████████▀        ,
    ,#░▄       ▌    ▌▀▄   ██▌    █#█▀█████▄╙▀▄▄▄╙▀███▀▀█▀▀▀▀▀└          ▄▄╝▀▀
    ╙'         █    ▌ ╙   ██    ▀  █▄██.╙▀███▄    ]█ε                     '"
     ƒ` ,▌      ▀    ▀▄▄▄█▀`   ▐    └' ╟▌  ╙▀███████                  ^▀╗▄
     '^└          ▀w, ,▄▀       ▀▄µ,,▄█▀       └╙└'                  ▄
        ,▄▀└                      '└└                               ╗╥╜Σ▄
            ▄▀                                                    #▄  "¬
            ,#▀                                                  └ *└¥
           └'  á╖▄                                                  "
              ╝▀.   ▄                                     ,▄█
                 ╓ ╜    ▄                              ▄  "  ▀▄
                  ╙▀   á.  ▐ ╓                     ▄    █
                      ╙▀   ╫╩`  ▌║⌐      #▀ε  └└µ  ▌▀    ▀
                           └   ▐░▌       '"▄   ,ì  ╙ '
                                          └
*/

/// @title NLB NFT Interface
/// @author MilkyTaste @ Ao Collaboration Ltd.
/// Contract address: 0x0E29086b5A3C8A0ABd0662F5f1a4BE2bEE158058
/// Credits: 0xCursed @nftchance @masonnft @squeebo_nft
/// https://www.nlbnft.com/

pragma solidity ^0.8.8;

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

interface INLBNFT is IERC721Enumerable {
    function walletOfOwner(address _owner) external view returns (uint256[] memory);

    function isOwnerOf(address account, uint256[] calldata _tokenIds) external view returns (bool);
}

File 6 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 7 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 9 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 11 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"nlbAddress","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"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"account","type":"address"}],"name":"_verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdropBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint64","name":"nonce","type":"uint64"},{"internalType":"uint64","name":"maxTime","type":"uint64"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint64","name":"lockedAt","type":"uint64"}],"name":"calculateReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dailyRate","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":"uint256","name":"","type":"uint256"}],"name":"isLegendary","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isUtilityAddr","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"listClaimableRewardsOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"listStakedTokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nlbToken","outputs":[{"internalType":"contract INLBNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"input","type":"uint256[]"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"resizeArray","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"rewardDoubledBefore","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_dailyRate","type":"uint256"}],"name":"setDailyRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_genesisCutOff","type":"uint256"}],"name":"setGenesisCutOff","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_rewardDoubledBefore","type":"uint64"}],"name":"setRewardDoubledBefore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_stakingActive","type":"bool"}],"name":"setStakingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"legendaryIds","type":"uint256[]"}],"name":"toggleLegendaries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"toggleUtilityAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenStakedInfo","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint64","name":"lockedAt","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"utilityBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"utilityMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"utilityNonce","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"}]

60a0604052620000126012600a62000341565b6200001f90600562000359565b6008556009805460ff191690556103e8600b553480156200003f57600080fd5b50604051620030943803806200309483398101604081905262000062916200037b565b6040518060400160405280600481526020016343686f7760e01b8152506040518060400160405280600481526020016343484f5760e01b8152508160039080519060200190620000b492919062000186565b508051620000ca90600490602084019062000186565b505050620000e7620000e16200013060201b60201c565b62000134565b6001600160a01b038116608052620001034262278d00620003a6565b600960016101000a8154816001600160401b0302191690836001600160401b0316021790555050620003fe565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200019490620003c1565b90600052602060002090601f016020900481019282620001b8576000855562000203565b82601f10620001d357805160ff191683800117855562000203565b8280016001018555821562000203579182015b8281111562000203578251825591602001919060010190620001e6565b506200021192915062000215565b5090565b5b8082111562000211576000815560010162000216565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620002835781600019048211156200026757620002676200022c565b808516156200027557918102915b93841c939080029062000247565b509250929050565b6000826200029c575060016200033b565b81620002ab575060006200033b565b8160018114620002c45760028114620002cf57620002ef565b60019150506200033b565b60ff841115620002e357620002e36200022c565b50506001821b6200033b565b5060208310610133831016604e8410600b841016171562000314575081810a6200033b565b62000320838362000242565b80600019048211156200033757620003376200022c565b0290505b92915050565b60006200035260ff8416836200028b565b9392505050565b60008160001904831182151516156200037657620003766200022c565b500290565b6000602082840312156200038e57600080fd5b81516001600160a01b03811681146200035257600080fd5b60008219821115620003bc57620003bc6200022c565b500190565b600181811c90821680620003d657607f821691505b60208210811415620003f857634e487b7160e01b600052602260045260246000fd5b50919050565b608051612c656200042f6000396000818161049001528181610a0101528181611485015261172a0152612c656000f3fe608060405234801561001057600080fd5b50600436106102e95760003560e01c806370a0823111610191578063a4e7104c116100e3578063ca20aa6111610097578063e449f34111610071578063e449f341146106f2578063f2fde38b14610705578063f7aa0d911461071857600080fd5b8063ca20aa6114610693578063ca3d3518146106a6578063dd62ed3e146106b957600080fd5b8063a9059cbb116100c8578063a9059cbb1461064a578063bf99de981461065d578063c5a991f81461067057600080fd5b8063a4e7104c1461062a578063a6ac4b351461063d57600080fd5b80638ba4cc3c1161014557806395d89b411161011f57806395d89b41146105ab57806395e197a7146105b3578063a457c2d71461061757600080fd5b80638ba4cc3c146105745780638da5cb5b1461058757806391edf9ff1461059857600080fd5b806374df19c31161017657806374df19c3146105355780638336f2741461053e578063867134761461055157600080fd5b806370a0823114610504578063715018a61461052d57600080fd5b8063281105e31161024a578063575f88fa116101fe578063671c3e4f116101d8578063671c3e4f146104cb5780636ba4c138146104de5780636c19e783146104f157600080fd5b8063575f88fa146104785780635d44b4b11461048b5780635e8b279a146104b257600080fd5b8063395093511161022f578063395093511461040f578063532104db1461042257806356bf68751461043557600080fd5b8063281105e3146103ed578063313ce5671461040057600080fd5b806318160ddd116102a15780631ed27ca1116102865780631ed27ca11461039c578063238ac933146103af57806323b872dd146103da57600080fd5b806318160ddd14610381578063187ab7a21461038957600080fd5b8063095ea7b3116102d2578063095ea7b3146103295780630b82a36d1461034c5780630fbf0a931461036c57600080fd5b8063026662c3146102ee57806306fdde0314610314575b600080fd5b6103016102fc36600461247d565b61072b565b6040519081526020015b60405180910390f35b61031c610803565b60405161030b91906124a9565b61033c610337366004612515565b610895565b604051901515815260200161030b565b61035f61035a366004612606565b6108ad565b60405161030b919061264b565b61037f61037a36600461268f565b610952565b005b600254610301565b61037f6103973660046126cc565b610ae8565b61037f6103aa3660046126e5565b610b4c565b6006546103c2906001600160a01b031681565b6040516001600160a01b03909116815260200161030b565b61033c6103e8366004612707565b610bbe565b61037f6103fb366004612743565b610be2565b6040516012815260200161030b565b61033c61041d366004612515565b610c3d565b61037f610430366004612765565b610c7c565b61045f610443366004612765565b600d6020526000908152604090205467ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161030b565b61037f610486366004612515565b610ced565b6103c27f000000000000000000000000000000000000000000000000000000000000000081565b60095461045f90610100900467ffffffffffffffff1681565b61037f6104d93660046127c5565b610d56565b61037f6104ec36600461268f565b610e06565b61037f6104ff366004612765565b610f68565b610301610512366004612765565b6001600160a01b031660009081526020819052604090205490565b61037f610fdf565b61030160085481565b61033c61054c366004612881565b611033565b61033c61055f366004612765565b60076020526000908152604090205460ff1681565b61037f610582366004612515565b6110b9565b6005546001600160a01b03166103c2565b61035f6105a6366004612765565b61111b565b61031c61121b565b6105ef6105c13660046126cc565b600c602052600090815260409020546001600160a01b03811690600160a01b900467ffffffffffffffff1682565b604080516001600160a01b03909316835267ffffffffffffffff90911660208301520161030b565b61033c610625366004612515565b61122a565b61037f610638366004612515565b6112d4565b60095461033c9060ff1681565b61033c610658366004612515565b61133d565b61037f61066b3660046128f5565b61134b565b61033c61067e3660046126cc565b600a6020526000908152604090205460ff1681565b61037f6106a13660046126cc565b611432565b61035f6106b4366004612765565b61147f565b6103016106c7366004612937565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61037f61070036600461268f565b611606565b61037f610713366004612765565b61179b565b61037f610726366004612961565b61186b565b6008546000838152600a602052604081205490919060ff1615610770576107546012600a612af6565b61075f90600a612b05565b6107699082612b24565b905061079e565b600b5484101561079e576107866012600a612af6565b610791906005612b05565b61079b9082612b24565b90505b60095467ffffffffffffffff610100909104811690841610156107c9576107c6600282612b05565b90505b600062015180826107e467ffffffffffffffff871642612b3c565b6107ee9190612b05565b6107f89190612b53565b925050505b92915050565b60606003805461081290612b75565b80601f016020809104026020016040519081016040528092919081815260200182805461083e90612b75565b801561088b5780601f106108605761010080835404028352916020019161088b565b820191906000526020600020905b81548152906001019060200180831161086e57829003601f168201915b5050505050905090565b6000336108a3818585611aa1565b5060019392505050565b606060008267ffffffffffffffff8111156108ca576108ca61253f565b6040519080825280602002602001820160405280156108f3578160200160208202803683370190505b50905060005b8381101561094a5784818151811061091357610913612bb0565b602002602001015182828151811061092d5761092d612bb0565b60209081029190910101528061094281612bc6565b9150506108f9565b509392505050565b60095460ff166109a95760405162461bcd60e51b815260206004820152601d60248201527f43686f77546f6b656e3a205374616b696e67206e6f742061637469766500000060448201526064015b60405180910390fd5b60005b8151811015610ae45760008282815181106109c9576109c9612bb0565b60209081029190910101516040516323b872dd60e01b8152336004820152306024820152604481018290529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401600060405180830381600087803b158015610a4557600080fd5b505af1158015610a59573d6000803e3d6000fd5b505060408051808201825233815267ffffffffffffffff42811660208084019182526000978852600c905292909520905181549251909516600160a01b027fffffffff000000000000000000000000000000000000000000000000000000009092166001600160a01b0395909516949094171790925550819050610adc81612bc6565b9150506109ac565b5050565b6005546001600160a01b03163314610b305760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b610b3c6012600a612af6565b610b469082612b05565b60085550565b6005546001600160a01b03163314610b945760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b6009805467ffffffffffffffff9092166101000268ffffffffffffffff0019909216919091179055565b600033610bcc858285611bc5565b610bd7858585611c51565b506001949350505050565b6005546001600160a01b03163314610c2a5760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b6009805460ff1916911515919091179055565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906108a39082908690610c77908790612b24565b611aa1565b6005546001600160a01b03163314610cc45760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b6001600160a01b03166000908152600760205260409020805460ff19811660ff90911615179055565b3360009081526007602052604090205460ff16610d4c5760405162461bcd60e51b815260206004820152601e60248201527f43686f77546f6b656e3a204e6f74207574696c6974792061646472657373000060448201526064016109a0565b610ae48282611e4e565b6005546001600160a01b03163314610d9e5760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b60005b82811015610e0057610dee848483818110610dbe57610dbe612bb0565b9050602002016020810190610dd39190612765565b610ddf6012600a612af6565b610de99085612b05565b611f9c565b80610df881612bc6565b915050610da1565b50505050565b6000805b8251811015610f5d576000838281518110610e2757610e27612bb0565b6020908102919091018101516000818152600c83526040908190208151808301909252546001600160a01b038116808352600160a01b90910467ffffffffffffffff1693820193909352909250903314610ee95760405162461bcd60e51b815260206004820152602760248201527f43686f77546f6b656e3a204f6e6c79206f776e65722063616e20636c61696d2060448201527f726577617264730000000000000000000000000000000000000000000000000060648201526084016109a0565b610ef782826020015161072b565b610f019085612b24565b6000928352600c602052604090922080547fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff16600160a01b4267ffffffffffffffff160217905550915080610f5581612bc6565b915050610e0a565b50610ae43382611f9c565b6005546001600160a01b03163314610fb05760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6005546001600160a01b031633146110275760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b611031600061207b565b565b6000816001600160a01b03166110a7846110a187805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906120da565b6001600160a01b031614949350505050565b6005546001600160a01b031633146111015760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b610ae4826111116012600a612af6565b610de99084612b05565b606060006111288361147f565b90506000815167ffffffffffffffff8111156111465761114661253f565b60405190808252806020026020018201604052801561116f578160200160208202803683370190505b50905060005b825181101561094a57600083828151811061119257611192612bb0565b6020908102919091018101516000818152600c83526040908190208151808301909252546001600160a01b0381168252600160a01b900467ffffffffffffffff16928101839052909250906111e890839061072b565b8484815181106111fa576111fa612bb0565b6020026020010181815250505050808061121390612bc6565b915050611175565b60606004805461081290612b75565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156112c75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016109a0565b610bd78286868403611aa1565b3360009081526007602052604090205460ff166113335760405162461bcd60e51b815260206004820152601e60248201527f43686f77546f6b656e3a204e6f74207574696c6974792061646472657373000060448201526064016109a0565b610ae48282611f9c565b6000336108a3818585611c51565b6005546001600160a01b031633146113935760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b60005b8181101561142d57600a60008484848181106113b4576113b4612bb0565b90506020020135815260200190815260200160002060009054906101000a900460ff1615600a60008585858181106113ee576113ee612bb0565b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550808061142590612bc6565b915050611396565b505050565b6005546001600160a01b0316331461147a5760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b600b55565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114dc57600080fd5b505afa1580156114f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115149190612be1565b905060008167ffffffffffffffff8111156115315761153161253f565b60405190808252806020026020018201604052801561155a578160200160208202803683370190505b5090506000805b8381116115f2576000818152600c60209081526040918290208251808401909352546001600160a01b03808216808552600160a01b90920467ffffffffffffffff169284019290925290881614156115df57818484815181106115c6576115c6612bb0565b6020908102919091010152826115db81612bc6565b9350505b50806115ea81612bc6565b915050611561565b506115fd82826108ad565b95945050505050565b60005b8151811015610ae457600082828151811061162657611626612bb0565b6020908102919091018101516000818152600c83526040908190208151808301909252546001600160a01b038116808352600160a01b90910467ffffffffffffffff16938201939093529092509033146116cc5760405162461bcd60e51b815260206004820152602160248201527f43686f77546f6b656e3a204f6e6c79206f776e65722063616e20756e7374616b6044820152606560f81b60648201526084016109a0565b6000828152600c60205260409081902080547fffffffff00000000000000000000000000000000000000000000000000000000169055516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401600060405180830381600087803b15801561176e57600080fd5b505af1158015611782573d6000803e3d6000fd5b505050505050808061179390612bc6565b915050611609565b6005546001600160a01b031633146117e35760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b6001600160a01b03811661185f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109a0565b6118688161207b565b50565b336000818152600d6020526040902054859067ffffffffffffffff8083169116146118d85760405162461bcd60e51b815260206004820152601a60248201527f43686f77546f6b656e3a204e6f6e6365206e6f742076616c696400000000000060448201526064016109a0565b6040516bffffffffffffffffffffffff193360601b1660208201527fffffffffffffffff00000000000000000000000000000000000000000000000060c088811b8216603484015287901b16603c8201526044810188905260640160405160208183030381529060405284846119918383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506006546001600160a01b031691506110339050565b6119dd5760405162461bcd60e51b815260206004820152601e60248201527f43686f77546f6b656e3a205369676e6174757265206e6f742076616c6964000060448201526064016109a0565b428867ffffffffffffffff1611611a365760405162461bcd60e51b815260206004820152601c60248201527f43686f77546f6b656e3a204d61782074696d652065786365656465640000000060448201526064016109a0565b611a40338b611e4e565b5050506001600160a01b0382166000908152600d60205260408120805467ffffffffffffffff1691611a7183612bfa565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050505050505050565b6001600160a01b038316611b035760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109a0565b6001600160a01b038216611b645760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109a0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610e005781811015611c445760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109a0565b610e008484848403611aa1565b6001600160a01b038316611ccd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016109a0565b6001600160a01b038216611d2f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016109a0565b6001600160a01b03831660009081526020819052604090205481811015611dbe5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016109a0565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611df5908490612b24565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e4191815260200190565b60405180910390a3610e00565b6001600160a01b038216611eae5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109a0565b6001600160a01b03821660009081526020819052604090205481811015611f225760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016109a0565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611f51908490612b3c565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6001600160a01b038216611ff25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109a0565b80600260008282546120049190612b24565b90915550506001600160a01b03821660009081526020819052604081208054839290612031908490612b24565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008060006120e985856120f6565b9150915061094a81612166565b60008082516041141561212d5760208301516040840151606085015160001a61212187828585612321565b9450945050505061215f565b825160401415612157576020830151604084015161214c86838361240e565b93509350505061215f565b506000905060025b9250929050565b600081600481111561217a5761217a612c22565b14156121835750565b600181600481111561219757612197612c22565b14156121e55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109a0565b60028160048111156121f9576121f9612c22565b14156122475760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109a0565b600381600481111561225b5761225b612c22565b14156122b45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109a0565b60048160048111156122c8576122c8612c22565b14156118685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016109a0565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123585750600090506003612405565b8460ff16601b1415801561237057508460ff16601c14155b156123815750600090506004612405565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156123d5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166123fe57600060019250925050612405565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161244460ff86901c601b612b24565b905061245287828885612321565b935093505050935093915050565b803567ffffffffffffffff8116811461247857600080fd5b919050565b6000806040838503121561249057600080fd5b823591506124a060208401612460565b90509250929050565b600060208083528351808285015260005b818110156124d6578581018301518582016040015282016124ba565b818111156124e8576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461247857600080fd5b6000806040838503121561252857600080fd5b612531836124fe565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561257e5761257e61253f565b604052919050565b600082601f83011261259757600080fd5b8135602067ffffffffffffffff8211156125b3576125b361253f565b8160051b6125c2828201612555565b92835284810182019282810190878511156125dc57600080fd5b83870192505b848310156125fb578235825291830191908301906125e2565b979650505050505050565b6000806040838503121561261957600080fd5b823567ffffffffffffffff81111561263057600080fd5b61263c85828601612586565b95602094909401359450505050565b6020808252825182820181905260009190848201906040850190845b8181101561268357835183529284019291840191600101612667565b50909695505050505050565b6000602082840312156126a157600080fd5b813567ffffffffffffffff8111156126b857600080fd5b6126c484828501612586565b949350505050565b6000602082840312156126de57600080fd5b5035919050565b6000602082840312156126f757600080fd5b61270082612460565b9392505050565b60008060006060848603121561271c57600080fd5b612725846124fe565b9250612733602085016124fe565b9150604084013590509250925092565b60006020828403121561275557600080fd5b8135801515811461270057600080fd5b60006020828403121561277757600080fd5b612700826124fe565b60008083601f84011261279257600080fd5b50813567ffffffffffffffff8111156127aa57600080fd5b6020830191508360208260051b850101111561215f57600080fd5b6000806000604084860312156127da57600080fd5b833567ffffffffffffffff8111156127f157600080fd5b6127fd86828701612780565b909790965060209590950135949350505050565b600082601f83011261282257600080fd5b813567ffffffffffffffff81111561283c5761283c61253f565b61284f601f8201601f1916602001612555565b81815284602083860101111561286457600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561289657600080fd5b833567ffffffffffffffff808211156128ae57600080fd5b6128ba87838801612811565b945060208601359150808211156128d057600080fd5b506128dd86828701612811565b9250506128ec604085016124fe565b90509250925092565b6000806020838503121561290857600080fd5b823567ffffffffffffffff81111561291f57600080fd5b61292b85828601612780565b90969095509350505050565b6000806040838503121561294a57600080fd5b612953836124fe565b91506124a0602084016124fe565b60008060008060006080868803121561297957600080fd5b8535945061298960208701612460565b935061299760408701612460565b9250606086013567ffffffffffffffff808211156129b457600080fd5b818801915088601f8301126129c857600080fd5b8135818111156129d757600080fd5b8960208285010111156129e957600080fd5b9699959850939650602001949392505050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115612a4d578160001904821115612a3357612a336129fc565b80851615612a4057918102915b93841c9390800290612a17565b509250929050565b600082612a64575060016107fd565b81612a71575060006107fd565b8160018114612a875760028114612a9157612aad565b60019150506107fd565b60ff841115612aa257612aa26129fc565b50506001821b6107fd565b5060208310610133831016604e8410600b8410161715612ad0575081810a6107fd565b612ada8383612a12565b8060001904821115612aee57612aee6129fc565b029392505050565b600061270060ff841683612a55565b6000816000190483118215151615612b1f57612b1f6129fc565b500290565b60008219821115612b3757612b376129fc565b500190565b600082821015612b4e57612b4e6129fc565b500390565b600082612b7057634e487b7160e01b600052601260045260246000fd5b500490565b600181811c90821680612b8957607f821691505b60208210811415612baa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612bda57612bda6129fc565b5060010190565b600060208284031215612bf357600080fd5b5051919050565b600067ffffffffffffffff80831681811415612c1857612c186129fc565b6001019392505050565b634e487b7160e01b600052602160045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c6343000809000a0000000000000000000000000e29086b5a3c8a0abd0662f5f1a4be2bee158058

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102e95760003560e01c806370a0823111610191578063a4e7104c116100e3578063ca20aa6111610097578063e449f34111610071578063e449f341146106f2578063f2fde38b14610705578063f7aa0d911461071857600080fd5b8063ca20aa6114610693578063ca3d3518146106a6578063dd62ed3e146106b957600080fd5b8063a9059cbb116100c8578063a9059cbb1461064a578063bf99de981461065d578063c5a991f81461067057600080fd5b8063a4e7104c1461062a578063a6ac4b351461063d57600080fd5b80638ba4cc3c1161014557806395d89b411161011f57806395d89b41146105ab57806395e197a7146105b3578063a457c2d71461061757600080fd5b80638ba4cc3c146105745780638da5cb5b1461058757806391edf9ff1461059857600080fd5b806374df19c31161017657806374df19c3146105355780638336f2741461053e578063867134761461055157600080fd5b806370a0823114610504578063715018a61461052d57600080fd5b8063281105e31161024a578063575f88fa116101fe578063671c3e4f116101d8578063671c3e4f146104cb5780636ba4c138146104de5780636c19e783146104f157600080fd5b8063575f88fa146104785780635d44b4b11461048b5780635e8b279a146104b257600080fd5b8063395093511161022f578063395093511461040f578063532104db1461042257806356bf68751461043557600080fd5b8063281105e3146103ed578063313ce5671461040057600080fd5b806318160ddd116102a15780631ed27ca1116102865780631ed27ca11461039c578063238ac933146103af57806323b872dd146103da57600080fd5b806318160ddd14610381578063187ab7a21461038957600080fd5b8063095ea7b3116102d2578063095ea7b3146103295780630b82a36d1461034c5780630fbf0a931461036c57600080fd5b8063026662c3146102ee57806306fdde0314610314575b600080fd5b6103016102fc36600461247d565b61072b565b6040519081526020015b60405180910390f35b61031c610803565b60405161030b91906124a9565b61033c610337366004612515565b610895565b604051901515815260200161030b565b61035f61035a366004612606565b6108ad565b60405161030b919061264b565b61037f61037a36600461268f565b610952565b005b600254610301565b61037f6103973660046126cc565b610ae8565b61037f6103aa3660046126e5565b610b4c565b6006546103c2906001600160a01b031681565b6040516001600160a01b03909116815260200161030b565b61033c6103e8366004612707565b610bbe565b61037f6103fb366004612743565b610be2565b6040516012815260200161030b565b61033c61041d366004612515565b610c3d565b61037f610430366004612765565b610c7c565b61045f610443366004612765565b600d6020526000908152604090205467ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161030b565b61037f610486366004612515565b610ced565b6103c27f0000000000000000000000000e29086b5a3c8a0abd0662f5f1a4be2bee15805881565b60095461045f90610100900467ffffffffffffffff1681565b61037f6104d93660046127c5565b610d56565b61037f6104ec36600461268f565b610e06565b61037f6104ff366004612765565b610f68565b610301610512366004612765565b6001600160a01b031660009081526020819052604090205490565b61037f610fdf565b61030160085481565b61033c61054c366004612881565b611033565b61033c61055f366004612765565b60076020526000908152604090205460ff1681565b61037f610582366004612515565b6110b9565b6005546001600160a01b03166103c2565b61035f6105a6366004612765565b61111b565b61031c61121b565b6105ef6105c13660046126cc565b600c602052600090815260409020546001600160a01b03811690600160a01b900467ffffffffffffffff1682565b604080516001600160a01b03909316835267ffffffffffffffff90911660208301520161030b565b61033c610625366004612515565b61122a565b61037f610638366004612515565b6112d4565b60095461033c9060ff1681565b61033c610658366004612515565b61133d565b61037f61066b3660046128f5565b61134b565b61033c61067e3660046126cc565b600a6020526000908152604090205460ff1681565b61037f6106a13660046126cc565b611432565b61035f6106b4366004612765565b61147f565b6103016106c7366004612937565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61037f61070036600461268f565b611606565b61037f610713366004612765565b61179b565b61037f610726366004612961565b61186b565b6008546000838152600a602052604081205490919060ff1615610770576107546012600a612af6565b61075f90600a612b05565b6107699082612b24565b905061079e565b600b5484101561079e576107866012600a612af6565b610791906005612b05565b61079b9082612b24565b90505b60095467ffffffffffffffff610100909104811690841610156107c9576107c6600282612b05565b90505b600062015180826107e467ffffffffffffffff871642612b3c565b6107ee9190612b05565b6107f89190612b53565b925050505b92915050565b60606003805461081290612b75565b80601f016020809104026020016040519081016040528092919081815260200182805461083e90612b75565b801561088b5780601f106108605761010080835404028352916020019161088b565b820191906000526020600020905b81548152906001019060200180831161086e57829003601f168201915b5050505050905090565b6000336108a3818585611aa1565b5060019392505050565b606060008267ffffffffffffffff8111156108ca576108ca61253f565b6040519080825280602002602001820160405280156108f3578160200160208202803683370190505b50905060005b8381101561094a5784818151811061091357610913612bb0565b602002602001015182828151811061092d5761092d612bb0565b60209081029190910101528061094281612bc6565b9150506108f9565b509392505050565b60095460ff166109a95760405162461bcd60e51b815260206004820152601d60248201527f43686f77546f6b656e3a205374616b696e67206e6f742061637469766500000060448201526064015b60405180910390fd5b60005b8151811015610ae45760008282815181106109c9576109c9612bb0565b60209081029190910101516040516323b872dd60e01b8152336004820152306024820152604481018290529091506001600160a01b037f0000000000000000000000000e29086b5a3c8a0abd0662f5f1a4be2bee15805816906323b872dd90606401600060405180830381600087803b158015610a4557600080fd5b505af1158015610a59573d6000803e3d6000fd5b505060408051808201825233815267ffffffffffffffff42811660208084019182526000978852600c905292909520905181549251909516600160a01b027fffffffff000000000000000000000000000000000000000000000000000000009092166001600160a01b0395909516949094171790925550819050610adc81612bc6565b9150506109ac565b5050565b6005546001600160a01b03163314610b305760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b610b3c6012600a612af6565b610b469082612b05565b60085550565b6005546001600160a01b03163314610b945760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b6009805467ffffffffffffffff9092166101000268ffffffffffffffff0019909216919091179055565b600033610bcc858285611bc5565b610bd7858585611c51565b506001949350505050565b6005546001600160a01b03163314610c2a5760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b6009805460ff1916911515919091179055565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906108a39082908690610c77908790612b24565b611aa1565b6005546001600160a01b03163314610cc45760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b6001600160a01b03166000908152600760205260409020805460ff19811660ff90911615179055565b3360009081526007602052604090205460ff16610d4c5760405162461bcd60e51b815260206004820152601e60248201527f43686f77546f6b656e3a204e6f74207574696c6974792061646472657373000060448201526064016109a0565b610ae48282611e4e565b6005546001600160a01b03163314610d9e5760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b60005b82811015610e0057610dee848483818110610dbe57610dbe612bb0565b9050602002016020810190610dd39190612765565b610ddf6012600a612af6565b610de99085612b05565b611f9c565b80610df881612bc6565b915050610da1565b50505050565b6000805b8251811015610f5d576000838281518110610e2757610e27612bb0565b6020908102919091018101516000818152600c83526040908190208151808301909252546001600160a01b038116808352600160a01b90910467ffffffffffffffff1693820193909352909250903314610ee95760405162461bcd60e51b815260206004820152602760248201527f43686f77546f6b656e3a204f6e6c79206f776e65722063616e20636c61696d2060448201527f726577617264730000000000000000000000000000000000000000000000000060648201526084016109a0565b610ef782826020015161072b565b610f019085612b24565b6000928352600c602052604090922080547fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff16600160a01b4267ffffffffffffffff160217905550915080610f5581612bc6565b915050610e0a565b50610ae43382611f9c565b6005546001600160a01b03163314610fb05760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b6006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6005546001600160a01b031633146110275760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b611031600061207b565b565b6000816001600160a01b03166110a7846110a187805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906120da565b6001600160a01b031614949350505050565b6005546001600160a01b031633146111015760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b610ae4826111116012600a612af6565b610de99084612b05565b606060006111288361147f565b90506000815167ffffffffffffffff8111156111465761114661253f565b60405190808252806020026020018201604052801561116f578160200160208202803683370190505b50905060005b825181101561094a57600083828151811061119257611192612bb0565b6020908102919091018101516000818152600c83526040908190208151808301909252546001600160a01b0381168252600160a01b900467ffffffffffffffff16928101839052909250906111e890839061072b565b8484815181106111fa576111fa612bb0565b6020026020010181815250505050808061121390612bc6565b915050611175565b60606004805461081290612b75565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156112c75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016109a0565b610bd78286868403611aa1565b3360009081526007602052604090205460ff166113335760405162461bcd60e51b815260206004820152601e60248201527f43686f77546f6b656e3a204e6f74207574696c6974792061646472657373000060448201526064016109a0565b610ae48282611f9c565b6000336108a3818585611c51565b6005546001600160a01b031633146113935760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b60005b8181101561142d57600a60008484848181106113b4576113b4612bb0565b90506020020135815260200190815260200160002060009054906101000a900460ff1615600a60008585858181106113ee576113ee612bb0565b90506020020135815260200190815260200160002060006101000a81548160ff021916908315150217905550808061142590612bc6565b915050611396565b505050565b6005546001600160a01b0316331461147a5760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b600b55565b606060007f0000000000000000000000000e29086b5a3c8a0abd0662f5f1a4be2bee1580586001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114dc57600080fd5b505afa1580156114f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115149190612be1565b905060008167ffffffffffffffff8111156115315761153161253f565b60405190808252806020026020018201604052801561155a578160200160208202803683370190505b5090506000805b8381116115f2576000818152600c60209081526040918290208251808401909352546001600160a01b03808216808552600160a01b90920467ffffffffffffffff169284019290925290881614156115df57818484815181106115c6576115c6612bb0565b6020908102919091010152826115db81612bc6565b9350505b50806115ea81612bc6565b915050611561565b506115fd82826108ad565b95945050505050565b60005b8151811015610ae457600082828151811061162657611626612bb0565b6020908102919091018101516000818152600c83526040908190208151808301909252546001600160a01b038116808352600160a01b90910467ffffffffffffffff16938201939093529092509033146116cc5760405162461bcd60e51b815260206004820152602160248201527f43686f77546f6b656e3a204f6e6c79206f776e65722063616e20756e7374616b6044820152606560f81b60648201526084016109a0565b6000828152600c60205260409081902080547fffffffff00000000000000000000000000000000000000000000000000000000169055516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b037f0000000000000000000000000e29086b5a3c8a0abd0662f5f1a4be2bee15805816906323b872dd90606401600060405180830381600087803b15801561176e57600080fd5b505af1158015611782573d6000803e3d6000fd5b505050505050808061179390612bc6565b915050611609565b6005546001600160a01b031633146117e35760405162461bcd60e51b81526020600482018190526024820152600080516020612c3983398151915260448201526064016109a0565b6001600160a01b03811661185f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109a0565b6118688161207b565b50565b336000818152600d6020526040902054859067ffffffffffffffff8083169116146118d85760405162461bcd60e51b815260206004820152601a60248201527f43686f77546f6b656e3a204e6f6e6365206e6f742076616c696400000000000060448201526064016109a0565b6040516bffffffffffffffffffffffff193360601b1660208201527fffffffffffffffff00000000000000000000000000000000000000000000000060c088811b8216603484015287901b16603c8201526044810188905260640160405160208183030381529060405284846119918383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506006546001600160a01b031691506110339050565b6119dd5760405162461bcd60e51b815260206004820152601e60248201527f43686f77546f6b656e3a205369676e6174757265206e6f742076616c6964000060448201526064016109a0565b428867ffffffffffffffff1611611a365760405162461bcd60e51b815260206004820152601c60248201527f43686f77546f6b656e3a204d61782074696d652065786365656465640000000060448201526064016109a0565b611a40338b611e4e565b5050506001600160a01b0382166000908152600d60205260408120805467ffffffffffffffff1691611a7183612bfa565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050505050505050565b6001600160a01b038316611b035760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109a0565b6001600160a01b038216611b645760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109a0565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610e005781811015611c445760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109a0565b610e008484848403611aa1565b6001600160a01b038316611ccd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016109a0565b6001600160a01b038216611d2f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016109a0565b6001600160a01b03831660009081526020819052604090205481811015611dbe5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016109a0565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611df5908490612b24565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611e4191815260200190565b60405180910390a3610e00565b6001600160a01b038216611eae5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109a0565b6001600160a01b03821660009081526020819052604090205481811015611f225760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016109a0565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611f51908490612b3c565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6001600160a01b038216611ff25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109a0565b80600260008282546120049190612b24565b90915550506001600160a01b03821660009081526020819052604081208054839290612031908490612b24565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008060006120e985856120f6565b9150915061094a81612166565b60008082516041141561212d5760208301516040840151606085015160001a61212187828585612321565b9450945050505061215f565b825160401415612157576020830151604084015161214c86838361240e565b93509350505061215f565b506000905060025b9250929050565b600081600481111561217a5761217a612c22565b14156121835750565b600181600481111561219757612197612c22565b14156121e55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109a0565b60028160048111156121f9576121f9612c22565b14156122475760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109a0565b600381600481111561225b5761225b612c22565b14156122b45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016109a0565b60048160048111156122c8576122c8612c22565b14156118685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016109a0565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156123585750600090506003612405565b8460ff16601b1415801561237057508460ff16601c14155b156123815750600090506004612405565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156123d5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166123fe57600060019250925050612405565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161244460ff86901c601b612b24565b905061245287828885612321565b935093505050935093915050565b803567ffffffffffffffff8116811461247857600080fd5b919050565b6000806040838503121561249057600080fd5b823591506124a060208401612460565b90509250929050565b600060208083528351808285015260005b818110156124d6578581018301518582016040015282016124ba565b818111156124e8576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461247857600080fd5b6000806040838503121561252857600080fd5b612531836124fe565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561257e5761257e61253f565b604052919050565b600082601f83011261259757600080fd5b8135602067ffffffffffffffff8211156125b3576125b361253f565b8160051b6125c2828201612555565b92835284810182019282810190878511156125dc57600080fd5b83870192505b848310156125fb578235825291830191908301906125e2565b979650505050505050565b6000806040838503121561261957600080fd5b823567ffffffffffffffff81111561263057600080fd5b61263c85828601612586565b95602094909401359450505050565b6020808252825182820181905260009190848201906040850190845b8181101561268357835183529284019291840191600101612667565b50909695505050505050565b6000602082840312156126a157600080fd5b813567ffffffffffffffff8111156126b857600080fd5b6126c484828501612586565b949350505050565b6000602082840312156126de57600080fd5b5035919050565b6000602082840312156126f757600080fd5b61270082612460565b9392505050565b60008060006060848603121561271c57600080fd5b612725846124fe565b9250612733602085016124fe565b9150604084013590509250925092565b60006020828403121561275557600080fd5b8135801515811461270057600080fd5b60006020828403121561277757600080fd5b612700826124fe565b60008083601f84011261279257600080fd5b50813567ffffffffffffffff8111156127aa57600080fd5b6020830191508360208260051b850101111561215f57600080fd5b6000806000604084860312156127da57600080fd5b833567ffffffffffffffff8111156127f157600080fd5b6127fd86828701612780565b909790965060209590950135949350505050565b600082601f83011261282257600080fd5b813567ffffffffffffffff81111561283c5761283c61253f565b61284f601f8201601f1916602001612555565b81815284602083860101111561286457600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561289657600080fd5b833567ffffffffffffffff808211156128ae57600080fd5b6128ba87838801612811565b945060208601359150808211156128d057600080fd5b506128dd86828701612811565b9250506128ec604085016124fe565b90509250925092565b6000806020838503121561290857600080fd5b823567ffffffffffffffff81111561291f57600080fd5b61292b85828601612780565b90969095509350505050565b6000806040838503121561294a57600080fd5b612953836124fe565b91506124a0602084016124fe565b60008060008060006080868803121561297957600080fd5b8535945061298960208701612460565b935061299760408701612460565b9250606086013567ffffffffffffffff808211156129b457600080fd5b818801915088601f8301126129c857600080fd5b8135818111156129d757600080fd5b8960208285010111156129e957600080fd5b9699959850939650602001949392505050565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115612a4d578160001904821115612a3357612a336129fc565b80851615612a4057918102915b93841c9390800290612a17565b509250929050565b600082612a64575060016107fd565b81612a71575060006107fd565b8160018114612a875760028114612a9157612aad565b60019150506107fd565b60ff841115612aa257612aa26129fc565b50506001821b6107fd565b5060208310610133831016604e8410600b8410161715612ad0575081810a6107fd565b612ada8383612a12565b8060001904821115612aee57612aee6129fc565b029392505050565b600061270060ff841683612a55565b6000816000190483118215151615612b1f57612b1f6129fc565b500290565b60008219821115612b3757612b376129fc565b500190565b600082821015612b4e57612b4e6129fc565b500390565b600082612b7057634e487b7160e01b600052601260045260246000fd5b500490565b600181811c90821680612b8957607f821691505b60208210811415612baa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612bda57612bda6129fc565b5060010190565b600060208284031215612bf357600080fd5b5051919050565b600067ffffffffffffffff80831681811415612c1857612c186129fc565b6001019392505050565b634e487b7160e01b600052602160045260246000fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a164736f6c6343000809000a

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

0000000000000000000000000e29086b5a3c8a0abd0662f5f1a4be2bee158058

-----Decoded View---------------
Arg [0] : nlbAddress (address): 0x0E29086b5A3C8A0ABd0662F5f1a4BE2bEE158058

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000e29086b5a3c8a0abd0662f5f1a4be2bee158058


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.