Address Details
contract
0x60F574C6cdbf97c5Ac164337cb999BDe8bADcBBF
- Contract Name
- Bonus
- Creator
- 0x7d6740–c9cfce at 0x5878ec–85fb79
- 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
- 8947987
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- Bonus
- Optimization enabled
- false
- Compiler version
- v0.8.7+commit.e28d00a7
- EVM Version
- london
- Verified at
- 2023-02-01T12:24:21.727542Z
contracts/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); function setBonusToke(uint256 _tokenId,uint256 _amountBonus) external; function disposeBonusToke(uint256 _tokenId) 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; 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) 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 _getBonus(uint256 _tokenId) public view returns (uint256) { uint256 bonunsAmount = NFTLogic.disposeBonusToke(_tokenId); return bonunsAmount; } function getAllWithdrawal(address owner) public view returns(uint256){ uint256 _amount = 0; for (uint256 i = 0 ; i < StarNFT1.balanceOf(owner); i ++) { uint256 _tokenId = StarNFT1.tokenOfOwnerByIndex(owner,i); _amount += _getBonus(_tokenId); } return _amount; } function allWithdrawal(address owner) public{ uint256 _amount = 0; for (uint256 i = 0 ; i < StarNFT1.balanceOf(owner); i ++){ uint256 _tokenId = StarNFT1.tokenOfOwnerByIndex(owner,i); uint256 _number = _getBonus(_tokenId); bonusWithdrawn = bonusWithdrawn.add(_amount); tokenWithdraw[_tokenId] = tokenWithdraw[_tokenId].add(_amount); NFTLogic.setBonusToke(_tokenId,0); _amount += _number; } starToken.transfer(_msgSender(), _amount); } function getlockRatio() external view returns (uint256) { return lockRatio; } // 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 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.1 (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.1 (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; } } }
/contracts/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 tokenOfOwnerByIndex(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":"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":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_getBonus","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"allWithdrawal","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"bonusWithdrawn","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAllWithdrawal","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getBonus","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getlockRatio","inputs":[]},{"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
0x608060405234801561001057600080fd5b5061252f806100206000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80638da5cb5b116100de578063c861f24311610097578063da117df811610071578063da117df81461044d578063e7bd719114610469578063f2fde38b14610485578063f56e9c66146104a15761018e565b8063c861f243146103cf578063d7e751ff146103ff578063d9fc0e7f1461042f5761018e565b80638da5cb5b1461031f57806395a0af471461033d5780639c3709ea14610359578063a32088d414610377578063b7ca51e814610393578063bcb47005146103b15761018e565b80634aa66b281161014b578063715018a611610125578063715018a6146102a95780637666fc88146102b35780637de61382146102d15780637fdab94e146103015761018e565b80634aa66b281461023f57806357fe507a1461026f57806370dca9741461028b5761018e565b8063085a4f15146101935780630f8a8a54146101af5780631794bb3c146101cd5780631f6f7be5146101e957806337ef75c81461020557806340ee7ce214610221575b600080fd5b6101ad60048036038101906101a89190611c79565b6104bd565b005b6101b76107c9565b6040516101c49190612044565b60405180910390f35b6101e760048036038101906101e29190611bf9565b6107cf565b005b61020360048036038101906101fe9190611bcc565b6108b6565b005b61021f600480360381019061021a9190611bcc565b6108fa565b005b610229610a2a565b6040516102369190612044565b60405180910390f35b61025960048036038101906102549190611c79565b610a34565b6040516102669190612044565b60405180910390f35b61028960048036038101906102849190611cd3565b610a46565b005b610293610a87565b6040516102a09190611ef3565b60405180910390f35b6102b1610aad565b005b6102bb610b35565b6040516102c89190611f29565b60405180910390f35b6102eb60048036038101906102e69190611bcc565b610b5b565b6040516102f89190612044565b60405180910390f35b610309610cfc565b6040516103169190611e94565b60405180910390f35b610327610d22565b6040516103349190611e94565b60405180910390f35b61035760048036038101906103529190611c79565b610d4c565b005b610361610d6a565b60405161036e9190612044565b60405180910390f35b610391600480360381019061038c9190611bcc565b610d70565b005b61039b610ea0565b6040516103a89190611ed8565b60405180910390f35b6103b9610ec6565b6040516103c69190611f0e565b60405180910390f35b6103e960048036038101906103e49190611c79565b610eec565b6040516103f69190612044565b60405180910390f35b61041960048036038101906104149190611c79565b610fa5565b6040516104269190612044565b60405180910390f35b610437610fbd565b6040516104449190612044565b60405180910390f35b61046760048036038101906104629190611bcc565b610fc3565b005b610483600480360381019061047e9190611c79565b6112fe565b005b61049f600480360381019061049a9190611bcc565b6113c8565b005b6104bb60048036038101906104b69190611bcc565b6114c0565b005b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166104fe6115f0565b73ffffffffffffffffffffffffffffffffffffffff1614610554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054b90611f84565b60405180910390fd5b60008111610597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058e90612004565b60405180910390fd5b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105f49190611e94565b60206040518083038186803b15801561060c57600080fd5b505afa158015610620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106449190611ca6565b905060006106ad606c5461069f612710610691606a54610683606b54610675606c548b6115f890919063ffffffff16565b6115f890919063ffffffff16565b61160e90919063ffffffff16565b61162490919063ffffffff16565b61163a90919063ffffffff16565b9050808311156106f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e990612004565b60405180910390fd5b61070783606c546115f890919063ffffffff16565b606c81905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6107536115f0565b856040518363ffffffff1660e01b8152600401610771929190611eaf565b602060405180830381600087803b15801561078b57600080fd5b505af115801561079f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c39190611c4c565b50505050565b606c5481565b600060019054906101000a900460ff16806107f5575060008054906101000a900460ff16155b610834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082b90611fe4565b60405180910390fd5b60008060019054906101000a900460ff161590508015610884576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61088f848484611650565b80156108b05760008060016101000a81548160ff0219169083151502179055505b50505050565b80606860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6109026115f0565b73ffffffffffffffffffffffffffffffffffffffff16610920610d22565b73ffffffffffffffffffffffffffffffffffffffff1614610976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096d90612024565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156109e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dd90611f44565b60405180910390fd5b80606760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000606a54905090565b6000610a3f82610eec565b9050919050565b610a6c81606d6000858152602001908152602001600020546115f890919063ffffffff16565b606d6000848152602001908152602001600020819055505050565b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ab56115f0565b73ffffffffffffffffffffffffffffffffffffffff16610ad3610d22565b73ffffffffffffffffffffffffffffffffffffffff1614610b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2090612024565b60405180910390fd5b610b336000611747565b565b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000905060005b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401610bc09190611e94565b60206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c109190611ca6565b811015610cf2576000606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5986846040518363ffffffff1660e01b8152600401610c76929190611eaf565b60206040518083038186803b158015610c8e57600080fd5b505afa158015610ca2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc69190611ca6565b9050610cd181610eec565b83610cdc9190612099565b9250508080610cea90612274565b915050610b65565b5080915050919050565b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610d6181606b546115f890919063ffffffff16565b606b8190555050565b606a5481565b610d786115f0565b73ffffffffffffffffffffffffffffffffffffffff16610d96610d22565b73ffffffffffffffffffffffffffffffffffffffff1614610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de390612024565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff161415610e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5390611fa4565b60405180910390fd5b80606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c9f09b9c846040518263ffffffff1660e01b8152600401610f4a9190612044565b60206040518083038186803b158015610f6257600080fd5b505afa158015610f76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9a9190611ca6565b905080915050919050565b606d6020528060005260406000206000915090505481565b606b5481565b6000805b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016110229190611e94565b60206040518083038186803b15801561103a57600080fd5b505afa15801561104e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110729190611ca6565b811015611242576000606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5985846040518363ffffffff1660e01b81526004016110d8929190611eaf565b60206040518083038186803b1580156110f057600080fd5b505afa158015611104573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111289190611ca6565b9050600061113582610eec565b905061114c84606b546115f890919063ffffffff16565b606b8190555061117884606d6000858152602001908152602001600020546115f890919063ffffffff16565b606d600084815260200190815260200160002081905550606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e2f29128360006040518363ffffffff1660e01b81526004016111ed92919061205f565b600060405180830381600087803b15801561120757600080fd5b505af115801561121b573d6000803e3d6000fd5b50505050808461122b9190612099565b93505050808061123a90612274565b915050610fc7565b50606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6112896115f0565b836040518363ffffffff1660e01b81526004016112a7929190611eaf565b602060405180830381600087803b1580156112c157600080fd5b505af11580156112d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f99190611c4c565b505050565b6113066115f0565b73ffffffffffffffffffffffffffffffffffffffff16611324610d22565b73ffffffffffffffffffffffffffffffffffffffff161461137a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137190612024565b60405180910390fd5b61271081106113be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b590611fc4565b60405180910390fd5b80606a8190555050565b6113d06115f0565b73ffffffffffffffffffffffffffffffffffffffff166113ee610d22565b73ffffffffffffffffffffffffffffffffffffffff1614611444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143b90612024565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ab90611f64565b60405180910390fd5b6114bd81611747565b50565b6114c86115f0565b73ffffffffffffffffffffffffffffffffffffffff166114e6610d22565b73ffffffffffffffffffffffffffffffffffffffff161461153c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153390612024565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156115ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a390611f44565b60405180910390fd5b80606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600081836116069190612099565b905092915050565b6000818361161c9190612120565b905092915050565b6000818361163291906120ef565b905092915050565b60008183611648919061217a565b905092915050565b600060019054906101000a900460ff1680611676575060008054906101000a900460ff16155b6116b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ac90611fe4565b60405180910390fd5b60008060019054906101000a900460ff161590508015611705576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61170d61180d565b6117156118e6565b6117208484846119cf565b80156117415760008060016101000a81548160ff0219169083151502179055505b50505050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600060019054906101000a900460ff1680611833575060008054906101000a900460ff16155b611872576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186990611fe4565b60405180910390fd5b60008060019054906101000a900460ff1615905080156118c2576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156118e35760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff168061190c575060008054906101000a900460ff16155b61194b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194290611fe4565b60405180910390fd5b60008060019054906101000a900460ff16159050801561199b576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6119ab6119a66115f0565b611747565b80156119cc5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff16806119f5575060008054906101000a900460ff16155b611a34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2b90611fe4565b60405180910390fd5b60008060019054906101000a900460ff161590508015611a84576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6127108210611ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abf90611fc4565b60405180910390fd5b83606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081606a819055508015611b725760008060016101000a81548160ff0219169083151502179055505b50505050565b600081359050611b87816124b4565b92915050565b600081519050611b9c816124cb565b92915050565b600081359050611bb1816124e2565b92915050565b600081519050611bc6816124e2565b92915050565b600060208284031215611be257611be161231b565b5b6000611bf084828501611b78565b91505092915050565b600080600060608486031215611c1257611c1161231b565b5b6000611c2086828701611b78565b9350506020611c3186828701611b78565b9250506040611c4286828701611ba2565b9150509250925092565b600060208284031215611c6257611c6161231b565b5b6000611c7084828501611b8d565b91505092915050565b600060208284031215611c8f57611c8e61231b565b5b6000611c9d84828501611ba2565b91505092915050565b600060208284031215611cbc57611cbb61231b565b5b6000611cca84828501611bb7565b91505092915050565b60008060408385031215611cea57611ce961231b565b5b6000611cf885828601611ba2565b9250506020611d0985828601611ba2565b9150509250929050565b611d1c816121ae565b82525050565b611d2b816121f6565b82525050565b611d3a81612208565b82525050565b611d498161221a565b82525050565b611d588161222c565b82525050565b611d678161223e565b82525050565b6000611d7a601183612088565b9150611d8582612320565b602082019050919050565b6000611d9d602683612088565b9150611da882612349565b604082019050919050565b6000611dc0600d83612088565b9150611dcb82612398565b602082019050919050565b6000611de3601283612088565b9150611dee826123c1565b602082019050919050565b6000611e06600b83612088565b9150611e11826123ea565b602082019050919050565b6000611e29602e83612088565b9150611e3482612413565b604082019050919050565b6000611e4c600c83612088565b9150611e5782612462565b602082019050919050565b6000611e6f602083612088565b9150611e7a8261248b565b602082019050919050565b611e8e816121ec565b82525050565b6000602082019050611ea96000830184611d13565b92915050565b6000604082019050611ec46000830185611d13565b611ed16020830184611e85565b9392505050565b6000602082019050611eed6000830184611d22565b92915050565b6000602082019050611f086000830184611d31565b92915050565b6000602082019050611f236000830184611d40565b92915050565b6000602082019050611f3e6000830184611d4f565b92915050565b60006020820190508181036000830152611f5d81611d6d565b9050919050565b60006020820190508181036000830152611f7d81611d90565b9050919050565b60006020820190508181036000830152611f9d81611db3565b9050919050565b60006020820190508181036000830152611fbd81611dd6565b9050919050565b60006020820190508181036000830152611fdd81611df9565b9050919050565b60006020820190508181036000830152611ffd81611e1c565b9050919050565b6000602082019050818103600083015261201d81611e3f565b9050919050565b6000602082019050818103600083015261203d81611e62565b9050919050565b60006020820190506120596000830184611e85565b92915050565b60006040820190506120746000830185611e85565b6120816020830184611d5e565b9392505050565b600082825260208201905092915050565b60006120a4826121ec565b91506120af836121ec565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156120e4576120e36122bd565b5b828201905092915050565b60006120fa826121ec565b9150612105836121ec565b925082612115576121146122ec565b5b828204905092915050565b600061212b826121ec565b9150612136836121ec565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561216f5761216e6122bd565b5b828202905092915050565b6000612185826121ec565b9150612190836121ec565b9250828210156121a3576121a26122bd565b5b828203905092915050565b60006121b9826121cc565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061220182612250565b9050919050565b600061221382612250565b9050919050565b600061222582612250565b9050919050565b600061223782612250565b9050919050565b6000612249826121ec565b9050919050565b600061225b82612262565b9050919050565b600061226d826121cc565b9050919050565b600061227f826121ec565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156122b2576122b16122bd565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080fd5b7f4e46542061646472657373206572726f72000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6e6f207065726d697373696f6e00000000000000000000000000000000000000600082015250565b7f6c6f636b2061646472657373206572726f720000000000000000000000000000600082015250565b7f726174696f206572726f72000000000000000000000000000000000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f616d6f756e74206572726f720000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6124bd816121ae565b81146124c857600080fd5b50565b6124d4816121c0565b81146124df57600080fd5b50565b6124eb816121ec565b81146124f657600080fd5b5056fea2646970667358221220de4d97df48b2fc10e87d6d246816022a1f8a7cfcdb2ef2b22c7e301396a2027564736f6c63430008070033
Deployed ByteCode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c80638da5cb5b116100de578063c861f24311610097578063da117df811610071578063da117df81461044d578063e7bd719114610469578063f2fde38b14610485578063f56e9c66146104a15761018e565b8063c861f243146103cf578063d7e751ff146103ff578063d9fc0e7f1461042f5761018e565b80638da5cb5b1461031f57806395a0af471461033d5780639c3709ea14610359578063a32088d414610377578063b7ca51e814610393578063bcb47005146103b15761018e565b80634aa66b281161014b578063715018a611610125578063715018a6146102a95780637666fc88146102b35780637de61382146102d15780637fdab94e146103015761018e565b80634aa66b281461023f57806357fe507a1461026f57806370dca9741461028b5761018e565b8063085a4f15146101935780630f8a8a54146101af5780631794bb3c146101cd5780631f6f7be5146101e957806337ef75c81461020557806340ee7ce214610221575b600080fd5b6101ad60048036038101906101a89190611c79565b6104bd565b005b6101b76107c9565b6040516101c49190612044565b60405180910390f35b6101e760048036038101906101e29190611bf9565b6107cf565b005b61020360048036038101906101fe9190611bcc565b6108b6565b005b61021f600480360381019061021a9190611bcc565b6108fa565b005b610229610a2a565b6040516102369190612044565b60405180910390f35b61025960048036038101906102549190611c79565b610a34565b6040516102669190612044565b60405180910390f35b61028960048036038101906102849190611cd3565b610a46565b005b610293610a87565b6040516102a09190611ef3565b60405180910390f35b6102b1610aad565b005b6102bb610b35565b6040516102c89190611f29565b60405180910390f35b6102eb60048036038101906102e69190611bcc565b610b5b565b6040516102f89190612044565b60405180910390f35b610309610cfc565b6040516103169190611e94565b60405180910390f35b610327610d22565b6040516103349190611e94565b60405180910390f35b61035760048036038101906103529190611c79565b610d4c565b005b610361610d6a565b60405161036e9190612044565b60405180910390f35b610391600480360381019061038c9190611bcc565b610d70565b005b61039b610ea0565b6040516103a89190611ed8565b60405180910390f35b6103b9610ec6565b6040516103c69190611f0e565b60405180910390f35b6103e960048036038101906103e49190611c79565b610eec565b6040516103f69190612044565b60405180910390f35b61041960048036038101906104149190611c79565b610fa5565b6040516104269190612044565b60405180910390f35b610437610fbd565b6040516104449190612044565b60405180910390f35b61046760048036038101906104629190611bcc565b610fc3565b005b610483600480360381019061047e9190611c79565b6112fe565b005b61049f600480360381019061049a9190611bcc565b6113c8565b005b6104bb60048036038101906104b69190611bcc565b6114c0565b005b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166104fe6115f0565b73ffffffffffffffffffffffffffffffffffffffff1614610554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054b90611f84565b60405180910390fd5b60008111610597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161058e90612004565b60405180910390fd5b6000606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016105f49190611e94565b60206040518083038186803b15801561060c57600080fd5b505afa158015610620573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106449190611ca6565b905060006106ad606c5461069f612710610691606a54610683606b54610675606c548b6115f890919063ffffffff16565b6115f890919063ffffffff16565b61160e90919063ffffffff16565b61162490919063ffffffff16565b61163a90919063ffffffff16565b9050808311156106f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e990612004565b60405180910390fd5b61070783606c546115f890919063ffffffff16565b606c81905550606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6107536115f0565b856040518363ffffffff1660e01b8152600401610771929190611eaf565b602060405180830381600087803b15801561078b57600080fd5b505af115801561079f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c39190611c4c565b50505050565b606c5481565b600060019054906101000a900460ff16806107f5575060008054906101000a900460ff16155b610834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082b90611fe4565b60405180910390fd5b60008060019054906101000a900460ff161590508015610884576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61088f848484611650565b80156108b05760008060016101000a81548160ff0219169083151502179055505b50505050565b80606860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6109026115f0565b73ffffffffffffffffffffffffffffffffffffffff16610920610d22565b73ffffffffffffffffffffffffffffffffffffffff1614610976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096d90612024565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156109e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dd90611f44565b60405180910390fd5b80606760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000606a54905090565b6000610a3f82610eec565b9050919050565b610a6c81606d6000858152602001908152602001600020546115f890919063ffffffff16565b606d6000848152602001908152602001600020819055505050565b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ab56115f0565b73ffffffffffffffffffffffffffffffffffffffff16610ad3610d22565b73ffffffffffffffffffffffffffffffffffffffff1614610b29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2090612024565b60405180910390fd5b610b336000611747565b565b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000905060005b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401610bc09190611e94565b60206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c109190611ca6565b811015610cf2576000606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5986846040518363ffffffff1660e01b8152600401610c76929190611eaf565b60206040518083038186803b158015610c8e57600080fd5b505afa158015610ca2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc69190611ca6565b9050610cd181610eec565b83610cdc9190612099565b9250508080610cea90612274565b915050610b65565b5080915050919050565b606960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610d6181606b546115f890919063ffffffff16565b606b8190555050565b606a5481565b610d786115f0565b73ffffffffffffffffffffffffffffffffffffffff16610d96610d22565b73ffffffffffffffffffffffffffffffffffffffff1614610dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de390612024565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff161415610e5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5390611fa4565b60405180910390fd5b80606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c9f09b9c846040518263ffffffff1660e01b8152600401610f4a9190612044565b60206040518083038186803b158015610f6257600080fd5b505afa158015610f76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9a9190611ca6565b905080915050919050565b606d6020528060005260406000206000915090505481565b606b5481565b6000805b606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016110229190611e94565b60206040518083038186803b15801561103a57600080fd5b505afa15801561104e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110729190611ca6565b811015611242576000606860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632f745c5985846040518363ffffffff1660e01b81526004016110d8929190611eaf565b60206040518083038186803b1580156110f057600080fd5b505afa158015611104573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111289190611ca6565b9050600061113582610eec565b905061114c84606b546115f890919063ffffffff16565b606b8190555061117884606d6000858152602001908152602001600020546115f890919063ffffffff16565b606d600084815260200190815260200160002081905550606760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e2f29128360006040518363ffffffff1660e01b81526004016111ed92919061205f565b600060405180830381600087803b15801561120757600080fd5b505af115801561121b573d6000803e3d6000fd5b50505050808461122b9190612099565b93505050808061123a90612274565b915050610fc7565b50606560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6112896115f0565b836040518363ffffffff1660e01b81526004016112a7929190611eaf565b602060405180830381600087803b1580156112c157600080fd5b505af11580156112d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112f99190611c4c565b505050565b6113066115f0565b73ffffffffffffffffffffffffffffffffffffffff16611324610d22565b73ffffffffffffffffffffffffffffffffffffffff161461137a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137190612024565b60405180910390fd5b61271081106113be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b590611fc4565b60405180910390fd5b80606a8190555050565b6113d06115f0565b73ffffffffffffffffffffffffffffffffffffffff166113ee610d22565b73ffffffffffffffffffffffffffffffffffffffff1614611444576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143b90612024565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ab90611f64565b60405180910390fd5b6114bd81611747565b50565b6114c86115f0565b73ffffffffffffffffffffffffffffffffffffffff166114e6610d22565b73ffffffffffffffffffffffffffffffffffffffff161461153c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153390612024565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff1614156115ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a390611f44565b60405180910390fd5b80606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600081836116069190612099565b905092915050565b6000818361161c9190612120565b905092915050565b6000818361163291906120ef565b905092915050565b60008183611648919061217a565b905092915050565b600060019054906101000a900460ff1680611676575060008054906101000a900460ff16155b6116b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ac90611fe4565b60405180910390fd5b60008060019054906101000a900460ff161590508015611705576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61170d61180d565b6117156118e6565b6117208484846119cf565b80156117415760008060016101000a81548160ff0219169083151502179055505b50505050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600060019054906101000a900460ff1680611833575060008054906101000a900460ff16155b611872576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186990611fe4565b60405180910390fd5b60008060019054906101000a900460ff1615905080156118c2576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156118e35760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff168061190c575060008054906101000a900460ff16155b61194b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194290611fe4565b60405180910390fd5b60008060019054906101000a900460ff16159050801561199b576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6119ab6119a66115f0565b611747565b80156119cc5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff16806119f5575060008054906101000a900460ff16155b611a34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2b90611fe4565b60405180910390fd5b60008060019054906101000a900460ff161590508015611a84576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6127108210611ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abf90611fc4565b60405180910390fd5b83606560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082606960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081606a819055508015611b725760008060016101000a81548160ff0219169083151502179055505b50505050565b600081359050611b87816124b4565b92915050565b600081519050611b9c816124cb565b92915050565b600081359050611bb1816124e2565b92915050565b600081519050611bc6816124e2565b92915050565b600060208284031215611be257611be161231b565b5b6000611bf084828501611b78565b91505092915050565b600080600060608486031215611c1257611c1161231b565b5b6000611c2086828701611b78565b9350506020611c3186828701611b78565b9250506040611c4286828701611ba2565b9150509250925092565b600060208284031215611c6257611c6161231b565b5b6000611c7084828501611b8d565b91505092915050565b600060208284031215611c8f57611c8e61231b565b5b6000611c9d84828501611ba2565b91505092915050565b600060208284031215611cbc57611cbb61231b565b5b6000611cca84828501611bb7565b91505092915050565b60008060408385031215611cea57611ce961231b565b5b6000611cf885828601611ba2565b9250506020611d0985828601611ba2565b9150509250929050565b611d1c816121ae565b82525050565b611d2b816121f6565b82525050565b611d3a81612208565b82525050565b611d498161221a565b82525050565b611d588161222c565b82525050565b611d678161223e565b82525050565b6000611d7a601183612088565b9150611d8582612320565b602082019050919050565b6000611d9d602683612088565b9150611da882612349565b604082019050919050565b6000611dc0600d83612088565b9150611dcb82612398565b602082019050919050565b6000611de3601283612088565b9150611dee826123c1565b602082019050919050565b6000611e06600b83612088565b9150611e11826123ea565b602082019050919050565b6000611e29602e83612088565b9150611e3482612413565b604082019050919050565b6000611e4c600c83612088565b9150611e5782612462565b602082019050919050565b6000611e6f602083612088565b9150611e7a8261248b565b602082019050919050565b611e8e816121ec565b82525050565b6000602082019050611ea96000830184611d13565b92915050565b6000604082019050611ec46000830185611d13565b611ed16020830184611e85565b9392505050565b6000602082019050611eed6000830184611d22565b92915050565b6000602082019050611f086000830184611d31565b92915050565b6000602082019050611f236000830184611d40565b92915050565b6000602082019050611f3e6000830184611d4f565b92915050565b60006020820190508181036000830152611f5d81611d6d565b9050919050565b60006020820190508181036000830152611f7d81611d90565b9050919050565b60006020820190508181036000830152611f9d81611db3565b9050919050565b60006020820190508181036000830152611fbd81611dd6565b9050919050565b60006020820190508181036000830152611fdd81611df9565b9050919050565b60006020820190508181036000830152611ffd81611e1c565b9050919050565b6000602082019050818103600083015261201d81611e3f565b9050919050565b6000602082019050818103600083015261203d81611e62565b9050919050565b60006020820190506120596000830184611e85565b92915050565b60006040820190506120746000830185611e85565b6120816020830184611d5e565b9392505050565b600082825260208201905092915050565b60006120a4826121ec565b91506120af836121ec565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156120e4576120e36122bd565b5b828201905092915050565b60006120fa826121ec565b9150612105836121ec565b925082612115576121146122ec565b5b828204905092915050565b600061212b826121ec565b9150612136836121ec565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561216f5761216e6122bd565b5b828202905092915050565b6000612185826121ec565b9150612190836121ec565b9250828210156121a3576121a26122bd565b5b828203905092915050565b60006121b9826121cc565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061220182612250565b9050919050565b600061221382612250565b9050919050565b600061222582612250565b9050919050565b600061223782612250565b9050919050565b6000612249826121ec565b9050919050565b600061225b82612262565b9050919050565b600061226d826121cc565b9050919050565b600061227f826121ec565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156122b2576122b16122bd565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600080fd5b7f4e46542061646472657373206572726f72000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6e6f207065726d697373696f6e00000000000000000000000000000000000000600082015250565b7f6c6f636b2061646472657373206572726f720000000000000000000000000000600082015250565b7f726174696f206572726f72000000000000000000000000000000000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f616d6f756e74206572726f720000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6124bd816121ae565b81146124c857600080fd5b50565b6124d4816121c0565b81146124df57600080fd5b50565b6124eb816121ec565b81146124f657600080fd5b5056fea2646970667358221220de4d97df48b2fc10e87d6d246816022a1f8a7cfcdb2ef2b22c7e301396a2027564736f6c63430008070033