Address Details
contract

0x1B9F8A73c6b510c1C26b5099c23FE2a68c1dfe49

Contract Name
Bonus
Creator
0x7d6740–c9cfce at 0xc76360–e978db
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
0 Transfers
Gas Used
Fetching gas used...
Last Balance Update
8655616
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
Bonus




Optimization enabled
false
Compiler version
v0.8.10+commit.fc410830




EVM Version
london




Verified at
2023-02-06T20:22:13.698847Z

scripts/Bonus.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "./IStarNFT.sol";

interface INFTLogic {
    function starMeta(uint256 _tokenId) view external returns (uint8, uint256, uint256, uint256);
    function totalPrice() view external returns (uint256);
}

contract Bonus is ContextUpgradeable, OwnableUpgradeable {

    using SafeMathUpgradeable for uint256;
    IERC20Upgradeable public starToken;
    IERC721Upgradeable public starNFT;
    INFTLogic public NFTLogic;

    IStarNFT public StarNFT1;

    address public lockAddr;
    uint256 public lockRatio;
    uint256 public bonusWithdrawn;
    uint256 public lockWithdrawn;

    mapping(uint256 => uint256) public tokenWithdraw;

    event Test(address indexed user, uint256 amount);

    function initialize(address _starToken, address _lock, uint256 _lockRatio) public initializer {
        __bonus_init(_starToken, _lock, _lockRatio);
    }

    function __bonus_init(address _starToken, address _lock, uint256 _lockRatio) internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
        __bonus_init_unchained(_starToken, _lock, _lockRatio);
    }

    function __bonus_init_unchained(address _starToken, address _lock, uint256 _lockRatio) internal initializer {
        require(_lockRatio < 10000, 'ratio error');
        starToken = IERC20Upgradeable(_starToken);
        lockAddr = _lock;
        lockRatio = _lockRatio;
    }

    function setLockRatio(uint256 _newRatio) onlyOwner public {
        require(_newRatio < 10000, 'ratio error');
        lockRatio = _newRatio;
    }

    function setStarNFTAddress(address _StarNFT) onlyOwner public {
        StarNFT1 = IStarNFT(_StarNFT);
    }

    function lockWithdraw(uint256 _amount) onlyLockUser public {
        require(_amount > 0, "amount error");
        uint256 _balance = starToken.balanceOf(address(this));
        uint256 _availLock = _balance.add(lockWithdrawn).add(bonusWithdrawn).mul(lockRatio).div(10000).sub(lockWithdrawn);
        require(_amount <= _availLock, 'amount error');
        lockWithdrawn = lockWithdrawn.add(_amount);
        starToken.transfer(_msgSender(), _amount);
    }

    function allWithdrawal(address owner) public {
        uint256 _amount = 0;
        for (uint256 i = 0 ; i < StarNFT1.balanceOf(owner); i ++) {
             uint256 _tokenId = StarNFT1.tokenByIndex(owner,i);
             uint256 _number = _getBonus(_tokenId);
             bonusWithdrawn = bonusWithdrawn.add(_amount);
             tokenWithdraw[_tokenId] = tokenWithdraw[_tokenId].add(_amount);
             _amount += _number;
        }
        emit Test(owner,_amount);
        starToken.transfer(_msgSender(), _amount);
    }

    function bonusWithdraw(uint256 _tokenId) public{
        // require(_msgSender() == starNFT.ownerOf(_tokenId), "not your token");
        uint256 _amount =  _getBonus(_tokenId);
        require(_amount > 0, "no bonus");
        bonusWithdrawn = bonusWithdrawn.add(_amount);
        tokenWithdraw[_tokenId] = tokenWithdraw[_tokenId].add(_amount);
        starToken.transfer(_msgSender(), _amount);
    }

    function setTokenWithdraw(uint256 _tokenId,uint256 _amount) external{
        tokenWithdraw[_tokenId] = tokenWithdraw[_tokenId].add(_amount);
    }

    function setBonusWithdrawn(uint256 _amount) external{
        bonusWithdrawn = bonusWithdrawn.add(_amount);
    }

    function getBonus(uint256 _tokenId) view external returns (uint256) {
        return _getBonus(_tokenId);
    }

    function _getBonus(uint256 _tokenId) view internal returns (uint256) {
        uint256 _totalPrice = NFTLogic.totalPrice();
        (, , uint256 _price, uint256 _multi) = NFTLogic.starMeta(_tokenId);
        uint256 _ratio = _price.mul(_multi).div(100).mul(1e12).div(_totalPrice);
        uint256 _balance = starToken.balanceOf(address(this));
        
        uint256 _availBonus = _balance.add(lockWithdrawn).add(bonusWithdrawn).mul(10000 - lockRatio).div(10000).mul(_ratio).div(1e12);
        return _availBonus > tokenWithdraw[_tokenId] ? _availBonus - tokenWithdraw[_tokenId] : 0;
    }

    function setLock(address _addr) onlyOwner public {
        require(address(0) != _addr, 'lock address error');
        lockAddr = _addr;
    }

    function setNFT(address _addr) onlyOwner public {
        require(address(0) != _addr, 'NFT address error');
        starNFT = IERC721Upgradeable(_addr);
    }

    function setNFTLogic(address _addr) onlyOwner public {
        require(address(0) != _addr, 'NFT address error');
        NFTLogic = INFTLogic(_addr);
    }

    modifier onlyLockUser() {
        require(_msgSender() == lockAddr, 'no permission');
        _;
    }
}
        

/_openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol

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

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        _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);
    }
    uint256[49] private __gap;
}
          

/_openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}
          

/_openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

/_openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

/_openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}
          

/_openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 IERC165Upgradeable {
    /**
     * @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);
}
          

/_openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/scripts/IStarNFT.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IStarNFT {
    function mint(address _owner, uint256 _cateId) external returns (uint256);
    function setCateURI(uint256 _cateId, string memory _cateUri) external;
    function massVerifyOwner(address owner, uint256[] memory _tokenIds) view external returns (bool);
    function massBurn(uint256[] memory _tokenIds) external;
    function setSale(bool _sale) external;
    function balanceOf(address owner) view external returns (uint256);
    function tokenByIndex(address owner,uint256 tokenid) view external returns (uint256);
}
          

Contract ABI

[{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Test","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract INFTLogic"}],"name":"NFTLogic","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IStarNFT"}],"name":"StarNFT1","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"allWithdrawal","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"bonusWithdraw","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"bonusWithdrawn","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getBonus","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_starToken","internalType":"address"},{"type":"address","name":"_lock","internalType":"address"},{"type":"uint256","name":"_lockRatio","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"lockAddr","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lockRatio","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"lockWithdraw","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lockWithdrawn","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBonusWithdrawn","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLock","inputs":[{"type":"address","name":"_addr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLockRatio","inputs":[{"type":"uint256","name":"_newRatio","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNFT","inputs":[{"type":"address","name":"_addr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNFTLogic","inputs":[{"type":"address","name":"_addr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setStarNFTAddress","inputs":[{"type":"address","name":"_StarNFT","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTokenWithdraw","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC721Upgradeable"}],"name":"starNFT","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20Upgradeable"}],"name":"starToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenWithdraw","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b50612759806100206000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c806395a0af47116100c3578063d7e751ff1161007c578063d7e751ff14610367578063d9fc0e7f14610397578063da117df8146103b5578063e7bd7191146103d1578063f2fde38b146103ed578063f56e9c661461040957610158565b806395a0af47146102b95780639c3709ea146102d5578063a32088d4146102f3578063b7ca51e81461030f578063bcb470051461032d578063c9fd98231461034b57610158565b806357fe507a1161011557806357fe507a1461021b57806370dca97414610237578063715018a6146102555780637666fc881461025f5780637fdab94e1461027d5780638da5cb5b1461029b57610158565b8063085a4f151461015d5780630f8a8a54146101795780631794bb3c146101975780631f6f7be5146101b357806337ef75c8146101cf5780634aa66b28146101eb575b600080fd5b61017760048036038101906101729190611d01565b610425565b005b610181610713565b60405161018e9190611d3d565b60405180910390f35b6101b160048036038101906101ac9190611db6565b610719565b005b6101cd60048036038101906101c89190611e09565b610800565b005b6101e960048036038101906101e49190611e09565b6108c0565b005b61020560048036038101906102009190611d01565b6109f0565b6040516102129190611d3d565b60405180910390f35b61023560048036038101906102309190611e36565b610a02565b005b61023f610a43565b60405161024c9190611ed5565b60405180910390f35b61025d610a69565b005b610267610af1565b6040516102749190611f11565b60405180910390f35b610285610b17565b6040516102929190611f3b565b60405180910390f35b6102a3610b3d565b6040516102b09190611f3b565b60405180910390f35b6102d360048036038101906102ce9190611d01565b610b67565b005b6102dd610b85565b6040516102ea9190611d3d565b60405180910390f35b61030d60048036038101906103089190611e09565b610b8b565b005b610317610cbb565b6040516103249190611f77565b60405180910390f35b610335610ce1565b6040516103429190611fb3565b60405180910390f35b61036560048036038101906103609190611d01565b610d07565b005b610381600480360381019061037c9190611d01565b610e5b565b60405161038e9190611d3d565b60405180910390f35b61039f610e73565b6040516103ac9190611d3d565b60405180910390f35b6103cf60048036038101906103ca9190611e09565b610e79565b005b6103eb60048036038101906103e69190611d01565b611145565b005b61040760048036038101906104029190611e09565b61120f565b005b610423600480360381019061041e9190611e09565b611307565b005b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610466611437565b73ffffffffffffffffffffffffffffffffffffffff16146104bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104b39061202b565b60405180910390fd5b600081116104ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f690612097565b60405180910390fd5b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161055c9190611f3b565b602060405180830381865afa158015610579573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059d91906120cc565b90506000610606606c546105f86127106105ea606a546105dc606b546105ce606c548b61143f90919063ffffffff16565b61143f90919063ffffffff16565b61145590919063ffffffff16565b61146b90919063ffffffff16565b61148190919063ffffffff16565b90508083111561064b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064290612097565b60405180910390fd5b61066083606c5461143f90919063ffffffff16565b606c81905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6106ac611437565b856040518363ffffffff1660e01b81526004016106ca9291906120f9565b6020604051808303816000875af11580156106e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070d919061215a565b50505050565b606c5481565b600060019054906101000a900460ff168061073f575060008054906101000a900460ff16155b61077e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610775906121f9565b60405180910390fd5b60008060019054906101000a900460ff1615905080156107ce576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6107d9848484611497565b80156107fa5760008060016101000a81548160ff0219169083151502179055505b50505050565b610808611437565b73ffffffffffffffffffffffffffffffffffffffff16610826610b3d565b73ffffffffffffffffffffffffffffffffffffffff161461087c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087390612265565b60405180910390fd5b80606860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6108c8611437565b73ffffffffffffffffffffffffffffffffffffffff166108e6610b3d565b73ffffffffffffffffffffffffffffffffffffffff161461093c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093390612265565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156109ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a3906122d1565b60405180910390fd5b80606760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006109fb8261158e565b9050919050565b610a2881606d60008581526020019081526020016000205461143f90919063ffffffff16565b606d6000848152602001908152602001600020819055505050565b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610a71611437565b73ffffffffffffffffffffffffffffffffffffffff16610a8f610b3d565b73ffffffffffffffffffffffffffffffffffffffff1614610ae5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adc90612265565b60405180910390fd5b610aef6000611895565b565b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610b7c81606b5461143f90919063ffffffff16565b606b8190555050565b606a5481565b610b93611437565b73ffffffffffffffffffffffffffffffffffffffff16610bb1610b3d565b73ffffffffffffffffffffffffffffffffffffffff1614610c07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfe90612265565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff161415610c77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6e9061233d565b60405180910390fd5b80606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610d128261158e565b905060008111610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e906123a9565b60405180910390fd5b610d6c81606b5461143f90919063ffffffff16565b606b81905550610d9881606d60008581526020019081526020016000205461143f90919063ffffffff16565b606d600084815260200190815260200160002081905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610df5611437565b836040518363ffffffff1660e01b8152600401610e139291906120f9565b6020604051808303816000875af1158015610e32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e56919061215a565b505050565b606d6020528060005260406000206000915090505481565b606b5481565b6000805b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401610ed89190611f3b565b602060405180830381865afa158015610ef5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1991906120cc565b81101561104a576000606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cb60f1bf85846040518363ffffffff1660e01b8152600401610f7f9291906120f9565b602060405180830381865afa158015610f9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc091906120cc565b90506000610fcd8261158e565b9050610fe484606b5461143f90919063ffffffff16565b606b8190555061101084606d60008581526020019081526020016000205461143f90919063ffffffff16565b606d600084815260200190815260200160002081905550808461103391906123f8565b9350505080806110429061244e565b915050610e7d565b508173ffffffffffffffffffffffffffffffffffffffff167f4ba54330f8090ac87ed0a0b470fd9c8a6bbec84bfe94f4fa7776d1dc27da9f9c826040516110919190611d3d565b60405180910390a2606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6110df611437565b836040518363ffffffff1660e01b81526004016110fd9291906120f9565b6020604051808303816000875af115801561111c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611140919061215a565b505050565b61114d611437565b73ffffffffffffffffffffffffffffffffffffffff1661116b610b3d565b73ffffffffffffffffffffffffffffffffffffffff16146111c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b890612265565b60405180910390fd5b6127108110611205576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fc906124e3565b60405180910390fd5b80606a8190555050565b611217611437565b73ffffffffffffffffffffffffffffffffffffffff16611235610b3d565b73ffffffffffffffffffffffffffffffffffffffff161461128b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128290612265565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f290612575565b60405180910390fd5b61130481611895565b50565b61130f611437565b73ffffffffffffffffffffffffffffffffffffffff1661132d610b3d565b73ffffffffffffffffffffffffffffffffffffffff1614611383576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137a90612265565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156113f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ea906122d1565b60405180910390fd5b80606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b6000818361144d91906123f8565b905092915050565b600081836114639190612595565b905092915050565b60008183611479919061261e565b905092915050565b6000818361148f919061264f565b905092915050565b600060019054906101000a900460ff16806114bd575060008054906101000a900460ff16155b6114fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f3906121f9565b60405180910390fd5b60008060019054906101000a900460ff16159050801561154c576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61155461195b565b61155c611a34565b611567848484611b1d565b80156115885760008060016101000a81548160ff0219169083151502179055505b50505050565b600080606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ab0d92dd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162291906120cc565b9050600080606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663971276ae866040518263ffffffff1660e01b81526004016116829190611d3d565b608060405180830381865afa15801561169f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c391906126bc565b935093505050600061171a8461170c64e8d4a510006116fe60646116f0888a61145590919063ffffffff16565b61146b90919063ffffffff16565b61145590919063ffffffff16565b61146b90919063ffffffff16565b90506000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117799190611f3b565b602060405180830381865afa158015611796573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ba91906120cc565b9050600061184564e8d4a510006118378561182961271061181b606a546127106117e4919061264f565b61180d606b546117ff606c548d61143f90919063ffffffff16565b61143f90919063ffffffff16565b61145590919063ffffffff16565b61146b90919063ffffffff16565b61145590919063ffffffff16565b61146b90919063ffffffff16565b9050606d6000898152602001908152602001600020548111611868576000611888565b606d60008981526020019081526020016000205481611887919061264f565b5b9650505050505050919050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600060019054906101000a900460ff1680611981575060008054906101000a900460ff16155b6119c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b7906121f9565b60405180910390fd5b60008060019054906101000a900460ff161590508015611a10576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015611a315760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680611a5a575060008054906101000a900460ff16155b611a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a90906121f9565b60405180910390fd5b60008060019054906101000a900460ff161590508015611ae9576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611af9611af4611437565b611895565b8015611b1a5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680611b43575060008054906101000a900460ff16155b611b82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b79906121f9565b60405180910390fd5b60008060019054906101000a900460ff161590508015611bd2576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6127108210611c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0d906124e3565b60405180910390fd5b83606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081606a819055508015611cc05760008060016101000a81548160ff0219169083151502179055505b50505050565b600080fd5b6000819050919050565b611cde81611ccb565b8114611ce957600080fd5b50565b600081359050611cfb81611cd5565b92915050565b600060208284031215611d1757611d16611cc6565b5b6000611d2584828501611cec565b91505092915050565b611d3781611ccb565b82525050565b6000602082019050611d526000830184611d2e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611d8382611d58565b9050919050565b611d9381611d78565b8114611d9e57600080fd5b50565b600081359050611db081611d8a565b92915050565b600080600060608486031215611dcf57611dce611cc6565b5b6000611ddd86828701611da1565b9350506020611dee86828701611da1565b9250506040611dff86828701611cec565b9150509250925092565b600060208284031215611e1f57611e1e611cc6565b5b6000611e2d84828501611da1565b91505092915050565b60008060408385031215611e4d57611e4c611cc6565b5b6000611e5b85828601611cec565b9250506020611e6c85828601611cec565b9150509250929050565b6000819050919050565b6000611e9b611e96611e9184611d58565b611e76565b611d58565b9050919050565b6000611ead82611e80565b9050919050565b6000611ebf82611ea2565b9050919050565b611ecf81611eb4565b82525050565b6000602082019050611eea6000830184611ec6565b92915050565b6000611efb82611ea2565b9050919050565b611f0b81611ef0565b82525050565b6000602082019050611f266000830184611f02565b92915050565b611f3581611d78565b82525050565b6000602082019050611f506000830184611f2c565b92915050565b6000611f6182611ea2565b9050919050565b611f7181611f56565b82525050565b6000602082019050611f8c6000830184611f68565b92915050565b6000611f9d82611ea2565b9050919050565b611fad81611f92565b82525050565b6000602082019050611fc86000830184611fa4565b92915050565b600082825260208201905092915050565b7f6e6f207065726d697373696f6e00000000000000000000000000000000000000600082015250565b6000612015600d83611fce565b915061202082611fdf565b602082019050919050565b6000602082019050818103600083015261204481612008565b9050919050565b7f616d6f756e74206572726f720000000000000000000000000000000000000000600082015250565b6000612081600c83611fce565b915061208c8261204b565b602082019050919050565b600060208201905081810360008301526120b081612074565b9050919050565b6000815190506120c681611cd5565b92915050565b6000602082840312156120e2576120e1611cc6565b5b60006120f0848285016120b7565b91505092915050565b600060408201905061210e6000830185611f2c565b61211b6020830184611d2e565b9392505050565b60008115159050919050565b61213781612122565b811461214257600080fd5b50565b6000815190506121548161212e565b92915050565b6000602082840312156121705761216f611cc6565b5b600061217e84828501612145565b91505092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006121e3602e83611fce565b91506121ee82612187565b604082019050919050565b60006020820190508181036000830152612212816121d6565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061224f602083611fce565b915061225a82612219565b602082019050919050565b6000602082019050818103600083015261227e81612242565b9050919050565b7f4e46542061646472657373206572726f72000000000000000000000000000000600082015250565b60006122bb601183611fce565b91506122c682612285565b602082019050919050565b600060208201905081810360008301526122ea816122ae565b9050919050565b7f6c6f636b2061646472657373206572726f720000000000000000000000000000600082015250565b6000612327601283611fce565b9150612332826122f1565b602082019050919050565b600060208201905081810360008301526123568161231a565b9050919050565b7f6e6f20626f6e7573000000000000000000000000000000000000000000000000600082015250565b6000612393600883611fce565b915061239e8261235d565b602082019050919050565b600060208201905081810360008301526123c281612386565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061240382611ccb565b915061240e83611ccb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612443576124426123c9565b5b828201905092915050565b600061245982611ccb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561248c5761248b6123c9565b5b600182019050919050565b7f726174696f206572726f72000000000000000000000000000000000000000000600082015250565b60006124cd600b83611fce565b91506124d882612497565b602082019050919050565b600060208201905081810360008301526124fc816124c0565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061255f602683611fce565b915061256a82612503565b604082019050919050565b6000602082019050818103600083015261258e81612552565b9050919050565b60006125a082611ccb565b91506125ab83611ccb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156125e4576125e36123c9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061262982611ccb565b915061263483611ccb565b925082612644576126436125ef565b5b828204905092915050565b600061265a82611ccb565b915061266583611ccb565b925082821015612678576126776123c9565b5b828203905092915050565b600060ff82169050919050565b61269981612683565b81146126a457600080fd5b50565b6000815190506126b681612690565b92915050565b600080600080608085870312156126d6576126d5611cc6565b5b60006126e4878288016126a7565b94505060206126f5878288016120b7565b9350506040612706878288016120b7565b9250506060612717878288016120b7565b9150509295919450925056fea264697066735822122001f8c2db98fa6b7567cfd2326bbc6e3b608ad09ac3844ec8a01759f866796fa864736f6c634300080a0033

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101585760003560e01c806395a0af47116100c3578063d7e751ff1161007c578063d7e751ff14610367578063d9fc0e7f14610397578063da117df8146103b5578063e7bd7191146103d1578063f2fde38b146103ed578063f56e9c661461040957610158565b806395a0af47146102b95780639c3709ea146102d5578063a32088d4146102f3578063b7ca51e81461030f578063bcb470051461032d578063c9fd98231461034b57610158565b806357fe507a1161011557806357fe507a1461021b57806370dca97414610237578063715018a6146102555780637666fc881461025f5780637fdab94e1461027d5780638da5cb5b1461029b57610158565b8063085a4f151461015d5780630f8a8a54146101795780631794bb3c146101975780631f6f7be5146101b357806337ef75c8146101cf5780634aa66b28146101eb575b600080fd5b61017760048036038101906101729190611d01565b610425565b005b610181610713565b60405161018e9190611d3d565b60405180910390f35b6101b160048036038101906101ac9190611db6565b610719565b005b6101cd60048036038101906101c89190611e09565b610800565b005b6101e960048036038101906101e49190611e09565b6108c0565b005b61020560048036038101906102009190611d01565b6109f0565b6040516102129190611d3d565b60405180910390f35b61023560048036038101906102309190611e36565b610a02565b005b61023f610a43565b60405161024c9190611ed5565b60405180910390f35b61025d610a69565b005b610267610af1565b6040516102749190611f11565b60405180910390f35b610285610b17565b6040516102929190611f3b565b60405180910390f35b6102a3610b3d565b6040516102b09190611f3b565b60405180910390f35b6102d360048036038101906102ce9190611d01565b610b67565b005b6102dd610b85565b6040516102ea9190611d3d565b60405180910390f35b61030d60048036038101906103089190611e09565b610b8b565b005b610317610cbb565b6040516103249190611f77565b60405180910390f35b610335610ce1565b6040516103429190611fb3565b60405180910390f35b61036560048036038101906103609190611d01565b610d07565b005b610381600480360381019061037c9190611d01565b610e5b565b60405161038e9190611d3d565b60405180910390f35b61039f610e73565b6040516103ac9190611d3d565b60405180910390f35b6103cf60048036038101906103ca9190611e09565b610e79565b005b6103eb60048036038101906103e69190611d01565b611145565b005b61040760048036038101906104029190611e09565b61120f565b005b610423600480360381019061041e9190611e09565b611307565b005b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610466611437565b73ffffffffffffffffffffffffffffffffffffffff16146104bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104b39061202b565b60405180910390fd5b600081116104ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f690612097565b60405180910390fd5b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161055c9190611f3b565b602060405180830381865afa158015610579573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061059d91906120cc565b90506000610606606c546105f86127106105ea606a546105dc606b546105ce606c548b61143f90919063ffffffff16565b61143f90919063ffffffff16565b61145590919063ffffffff16565b61146b90919063ffffffff16565b61148190919063ffffffff16565b90508083111561064b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064290612097565b60405180910390fd5b61066083606c5461143f90919063ffffffff16565b606c81905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6106ac611437565b856040518363ffffffff1660e01b81526004016106ca9291906120f9565b6020604051808303816000875af11580156106e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070d919061215a565b50505050565b606c5481565b600060019054906101000a900460ff168061073f575060008054906101000a900460ff16155b61077e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610775906121f9565b60405180910390fd5b60008060019054906101000a900460ff1615905080156107ce576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6107d9848484611497565b80156107fa5760008060016101000a81548160ff0219169083151502179055505b50505050565b610808611437565b73ffffffffffffffffffffffffffffffffffffffff16610826610b3d565b73ffffffffffffffffffffffffffffffffffffffff161461087c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087390612265565b60405180910390fd5b80606860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6108c8611437565b73ffffffffffffffffffffffffffffffffffffffff166108e6610b3d565b73ffffffffffffffffffffffffffffffffffffffff161461093c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093390612265565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156109ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a3906122d1565b60405180910390fd5b80606760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60006109fb8261158e565b9050919050565b610a2881606d60008581526020019081526020016000205461143f90919063ffffffff16565b606d6000848152602001908152602001600020819055505050565b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610a71611437565b73ffffffffffffffffffffffffffffffffffffffff16610a8f610b3d565b73ffffffffffffffffffffffffffffffffffffffff1614610ae5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adc90612265565b60405180910390fd5b610aef6000611895565b565b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610b7c81606b5461143f90919063ffffffff16565b606b8190555050565b606a5481565b610b93611437565b73ffffffffffffffffffffffffffffffffffffffff16610bb1610b3d565b73ffffffffffffffffffffffffffffffffffffffff1614610c07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfe90612265565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff161415610c77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6e9061233d565b60405180910390fd5b80606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610d128261158e565b905060008111610d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4e906123a9565b60405180910390fd5b610d6c81606b5461143f90919063ffffffff16565b606b81905550610d9881606d60008581526020019081526020016000205461143f90919063ffffffff16565b606d600084815260200190815260200160002081905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610df5611437565b836040518363ffffffff1660e01b8152600401610e139291906120f9565b6020604051808303816000875af1158015610e32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e56919061215a565b505050565b606d6020528060005260406000206000915090505481565b606b5481565b6000805b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401610ed89190611f3b565b602060405180830381865afa158015610ef5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f1991906120cc565b81101561104a576000606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cb60f1bf85846040518363ffffffff1660e01b8152600401610f7f9291906120f9565b602060405180830381865afa158015610f9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fc091906120cc565b90506000610fcd8261158e565b9050610fe484606b5461143f90919063ffffffff16565b606b8190555061101084606d60008581526020019081526020016000205461143f90919063ffffffff16565b606d600084815260200190815260200160002081905550808461103391906123f8565b9350505080806110429061244e565b915050610e7d565b508173ffffffffffffffffffffffffffffffffffffffff167f4ba54330f8090ac87ed0a0b470fd9c8a6bbec84bfe94f4fa7776d1dc27da9f9c826040516110919190611d3d565b60405180910390a2606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6110df611437565b836040518363ffffffff1660e01b81526004016110fd9291906120f9565b6020604051808303816000875af115801561111c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611140919061215a565b505050565b61114d611437565b73ffffffffffffffffffffffffffffffffffffffff1661116b610b3d565b73ffffffffffffffffffffffffffffffffffffffff16146111c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b890612265565b60405180910390fd5b6127108110611205576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fc906124e3565b60405180910390fd5b80606a8190555050565b611217611437565b73ffffffffffffffffffffffffffffffffffffffff16611235610b3d565b73ffffffffffffffffffffffffffffffffffffffff161461128b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128290612265565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f290612575565b60405180910390fd5b61130481611895565b50565b61130f611437565b73ffffffffffffffffffffffffffffffffffffffff1661132d610b3d565b73ffffffffffffffffffffffffffffffffffffffff1614611383576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137a90612265565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156113f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ea906122d1565b60405180910390fd5b80606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b6000818361144d91906123f8565b905092915050565b600081836114639190612595565b905092915050565b60008183611479919061261e565b905092915050565b6000818361148f919061264f565b905092915050565b600060019054906101000a900460ff16806114bd575060008054906101000a900460ff16155b6114fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f3906121f9565b60405180910390fd5b60008060019054906101000a900460ff16159050801561154c576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61155461195b565b61155c611a34565b611567848484611b1d565b80156115885760008060016101000a81548160ff0219169083151502179055505b50505050565b600080606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ab0d92dd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061162291906120cc565b9050600080606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663971276ae866040518263ffffffff1660e01b81526004016116829190611d3d565b608060405180830381865afa15801561169f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c391906126bc565b935093505050600061171a8461170c64e8d4a510006116fe60646116f0888a61145590919063ffffffff16565b61146b90919063ffffffff16565b61145590919063ffffffff16565b61146b90919063ffffffff16565b90506000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117799190611f3b565b602060405180830381865afa158015611796573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ba91906120cc565b9050600061184564e8d4a510006118378561182961271061181b606a546127106117e4919061264f565b61180d606b546117ff606c548d61143f90919063ffffffff16565b61143f90919063ffffffff16565b61145590919063ffffffff16565b61146b90919063ffffffff16565b61145590919063ffffffff16565b61146b90919063ffffffff16565b9050606d6000898152602001908152602001600020548111611868576000611888565b606d60008981526020019081526020016000205481611887919061264f565b5b9650505050505050919050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600060019054906101000a900460ff1680611981575060008054906101000a900460ff16155b6119c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b7906121f9565b60405180910390fd5b60008060019054906101000a900460ff161590508015611a10576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015611a315760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680611a5a575060008054906101000a900460ff16155b611a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a90906121f9565b60405180910390fd5b60008060019054906101000a900460ff161590508015611ae9576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611af9611af4611437565b611895565b8015611b1a5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680611b43575060008054906101000a900460ff16155b611b82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b79906121f9565b60405180910390fd5b60008060019054906101000a900460ff161590508015611bd2576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6127108210611c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0d906124e3565b60405180910390fd5b83606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081606a819055508015611cc05760008060016101000a81548160ff0219169083151502179055505b50505050565b600080fd5b6000819050919050565b611cde81611ccb565b8114611ce957600080fd5b50565b600081359050611cfb81611cd5565b92915050565b600060208284031215611d1757611d16611cc6565b5b6000611d2584828501611cec565b91505092915050565b611d3781611ccb565b82525050565b6000602082019050611d526000830184611d2e565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611d8382611d58565b9050919050565b611d9381611d78565b8114611d9e57600080fd5b50565b600081359050611db081611d8a565b92915050565b600080600060608486031215611dcf57611dce611cc6565b5b6000611ddd86828701611da1565b9350506020611dee86828701611da1565b9250506040611dff86828701611cec565b9150509250925092565b600060208284031215611e1f57611e1e611cc6565b5b6000611e2d84828501611da1565b91505092915050565b60008060408385031215611e4d57611e4c611cc6565b5b6000611e5b85828601611cec565b9250506020611e6c85828601611cec565b9150509250929050565b6000819050919050565b6000611e9b611e96611e9184611d58565b611e76565b611d58565b9050919050565b6000611ead82611e80565b9050919050565b6000611ebf82611ea2565b9050919050565b611ecf81611eb4565b82525050565b6000602082019050611eea6000830184611ec6565b92915050565b6000611efb82611ea2565b9050919050565b611f0b81611ef0565b82525050565b6000602082019050611f266000830184611f02565b92915050565b611f3581611d78565b82525050565b6000602082019050611f506000830184611f2c565b92915050565b6000611f6182611ea2565b9050919050565b611f7181611f56565b82525050565b6000602082019050611f8c6000830184611f68565b92915050565b6000611f9d82611ea2565b9050919050565b611fad81611f92565b82525050565b6000602082019050611fc86000830184611fa4565b92915050565b600082825260208201905092915050565b7f6e6f207065726d697373696f6e00000000000000000000000000000000000000600082015250565b6000612015600d83611fce565b915061202082611fdf565b602082019050919050565b6000602082019050818103600083015261204481612008565b9050919050565b7f616d6f756e74206572726f720000000000000000000000000000000000000000600082015250565b6000612081600c83611fce565b915061208c8261204b565b602082019050919050565b600060208201905081810360008301526120b081612074565b9050919050565b6000815190506120c681611cd5565b92915050565b6000602082840312156120e2576120e1611cc6565b5b60006120f0848285016120b7565b91505092915050565b600060408201905061210e6000830185611f2c565b61211b6020830184611d2e565b9392505050565b60008115159050919050565b61213781612122565b811461214257600080fd5b50565b6000815190506121548161212e565b92915050565b6000602082840312156121705761216f611cc6565b5b600061217e84828501612145565b91505092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b60006121e3602e83611fce565b91506121ee82612187565b604082019050919050565b60006020820190508181036000830152612212816121d6565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061224f602083611fce565b915061225a82612219565b602082019050919050565b6000602082019050818103600083015261227e81612242565b9050919050565b7f4e46542061646472657373206572726f72000000000000000000000000000000600082015250565b60006122bb601183611fce565b91506122c682612285565b602082019050919050565b600060208201905081810360008301526122ea816122ae565b9050919050565b7f6c6f636b2061646472657373206572726f720000000000000000000000000000600082015250565b6000612327601283611fce565b9150612332826122f1565b602082019050919050565b600060208201905081810360008301526123568161231a565b9050919050565b7f6e6f20626f6e7573000000000000000000000000000000000000000000000000600082015250565b6000612393600883611fce565b915061239e8261235d565b602082019050919050565b600060208201905081810360008301526123c281612386565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061240382611ccb565b915061240e83611ccb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612443576124426123c9565b5b828201905092915050565b600061245982611ccb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561248c5761248b6123c9565b5b600182019050919050565b7f726174696f206572726f72000000000000000000000000000000000000000000600082015250565b60006124cd600b83611fce565b91506124d882612497565b602082019050919050565b600060208201905081810360008301526124fc816124c0565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061255f602683611fce565b915061256a82612503565b604082019050919050565b6000602082019050818103600083015261258e81612552565b9050919050565b60006125a082611ccb565b91506125ab83611ccb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156125e4576125e36123c9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061262982611ccb565b915061263483611ccb565b925082612644576126436125ef565b5b828204905092915050565b600061265a82611ccb565b915061266583611ccb565b925082821015612678576126776123c9565b5b828203905092915050565b600060ff82169050919050565b61269981612683565b81146126a457600080fd5b50565b6000815190506126b681612690565b92915050565b600080600080608085870312156126d6576126d5611cc6565b5b60006126e4878288016126a7565b94505060206126f5878288016120b7565b9350506040612706878288016120b7565b9250506060612717878288016120b7565b9150509295919450925056fea264697066735822122001f8c2db98fa6b7567cfd2326bbc6e3b608ad09ac3844ec8a01759f866796fa864736f6c634300080a0033