More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 270 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake All | 17372316 | 691 days ago | IN | 0 ETH | 0.00498338 | ||||
Unstake All | 17331277 | 697 days ago | IN | 0 ETH | 0.00092161 | ||||
Unstake All | 17258948 | 707 days ago | IN | 0 ETH | 0.0058433 | ||||
Unstake All | 17240716 | 709 days ago | IN | 0 ETH | 0.00847825 | ||||
Unstake All | 17097132 | 730 days ago | IN | 0 ETH | 0.00367628 | ||||
Unstake All | 17076906 | 733 days ago | IN | 0 ETH | 0.00515489 | ||||
Unstake All | 17076875 | 733 days ago | IN | 0 ETH | 0.00536863 | ||||
Claim Rewards | 16438347 | 822 days ago | IN | 0 ETH | 0.00107196 | ||||
Claim Rewards | 16437852 | 822 days ago | IN | 0 ETH | 0.00160895 | ||||
Unstake All | 16429884 | 824 days ago | IN | 0 ETH | 0.00239436 | ||||
Unstake All | 16413450 | 826 days ago | IN | 0 ETH | 0.00188382 | ||||
Claim Rewards | 16356703 | 834 days ago | IN | 0 ETH | 0.00103372 | ||||
Unstake All | 16205256 | 855 days ago | IN | 0 ETH | 0.00117159 | ||||
Claim Rewards | 16205245 | 855 days ago | IN | 0 ETH | 0.00119908 | ||||
Unstake All | 16194051 | 856 days ago | IN | 0 ETH | 0.00110977 | ||||
Claim Rewards | 16194048 | 856 days ago | IN | 0 ETH | 0.00113732 | ||||
Stake Tokens | 16184765 | 858 days ago | IN | 0 ETH | 0.00270575 | ||||
Claim Rewards | 16184758 | 858 days ago | IN | 0 ETH | 0.00198062 | ||||
Claim Rewards | 16040051 | 878 days ago | IN | 0 ETH | 0.00080995 | ||||
Stake Tokens | 15998775 | 884 days ago | IN | 0 ETH | 0.00141022 | ||||
Claim Rewards | 15998720 | 884 days ago | IN | 0 ETH | 0.0011445 | ||||
Unstake All | 15920192 | 895 days ago | IN | 0 ETH | 0.00164896 | ||||
Unstake All | 15905821 | 897 days ago | IN | 0 ETH | 0.00121542 | ||||
Stake Tokens | 15905535 | 897 days ago | IN | 0 ETH | 0.00105062 | ||||
Claim Rewards | 15905495 | 897 days ago | IN | 0 ETH | 0.00128897 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
NFTYStakingUpgradeable
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./NFTYToken.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; contract NFTYStakingUpgradeable is AccessControlUpgradeable, ReentrancyGuardUpgradeable { // state variables NFTYToken nftyToken; address private _NFTYTokenAddress; uint256 private _totalStakedToken; uint256[6] private _rewardRate; // creating a new role for admin bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); // event for informing a new stake event NewStake(address indexed staker, uint256 amount); // event for informing the release of reward event RewardReleased(address indexed staker, uint256 reward); //event for informing the addition of amount to the existing stake event StakeUpgraded( address indexed staker, uint256 amount, uint256 totalStake ); // event for informing when someone unstakes event StakeReleased( address indexed staker, uint256 amount, uint256 remainingStake ); // event for informing the change of reward rate event RateChanged( address indexed admin, uint8 rank, uint256 oldRate, uint256 newRate ); // event for informing the transfer of all tokens // to the nfty owner event TransferredAllTokens(address caller, uint256 amount); // modifier for checking the zero address modifier isRealAddress(address account) { require(account != address(0), "NFTYStaking: address is zero address"); _; } // modifier for checking the real amount modifier isRealValue(uint256 value) { require(value > 0, "NFTYStaking: value must be greater than zero"); _; } // modifier for checking if the sendeer is a staker modifier isStaker(address account) { require( StakersData[account].amount > 0, "NFTYStaking: caller is not a staker" ); _; } // structure for storing the staker data struct StakeData { uint256 amount; uint256 reward; uint256 stakingTime; uint256 lastClaimTime; } // mapping for pointing to the stakers data mapping(address => StakeData) public StakersData; function initialize(address NFTYTokenAddress) public isRealAddress(NFTYTokenAddress) isRealAddress(_msgSender()) initializer { __ReentrancyGuard_init(); __AccessControl_init(); _setupRole(ADMIN_ROLE, _msgSender()); _setRoleAdmin(ADMIN_ROLE, ADMIN_ROLE); _NFTYTokenAddress = NFTYTokenAddress; nftyToken = NFTYToken(NFTYTokenAddress); _rewardRate = [13579, 14579, 15079, 15579, 15829, 16079]; // 13.579%, 14.579%, 15.079%, 15.579%, 16.079% } function transferOwnership(address _newOwner) external onlyRole(ADMIN_ROLE) { nftyToken.transferOwnership(_newOwner); } // function for staking the token function stakeTokens(uint256 amount) external isRealAddress(_msgSender()) isRealValue(amount) returns (bool) { require(amount >= _getAmount(1), "NFTYStaking: min stake amount is 1"); require( nftyToken.balanceOf(_msgSender()) >= amount, "NFTYStaking: insufficient balance" ); StakeData storage stakeData = StakersData[_msgSender()]; uint256 _amount = stakeData.amount; // if already staking then add the amount to the existing stake if (_amount > 0) { // calculate the reward for the existing amount uint256 reward = _getReward( stakeData.stakingTime, stakeData.lastClaimTime, _amount ); // update staker's data stakeData.reward += reward; stakeData.amount = _amount + amount; // emit the event for informing the upgraded stake emit StakeUpgraded(_msgSender(), amount, stakeData.amount); } else { // update staker's data stakeData.amount = amount; stakeData.stakingTime = block.timestamp; // emit the event for informing the new stake emit NewStake(_msgSender(), amount); } stakeData.lastClaimTime = block.timestamp; // update the pool _totalStakedToken += amount; // transfer the amount to the staking contract bool result = nftyToken.transferFrom( _msgSender(), address(this), amount ); return result; } // function for claiming reward function claimRewards() external isRealAddress(_msgSender()) isStaker(_msgSender()) { require( nftyToken.owner() == address(this), "Staking contract is not the owner." ); StakeData storage stakeData = StakersData[_msgSender()]; uint256 _amount = stakeData.amount; uint256 reward = _getReward( stakeData.stakingTime, stakeData.lastClaimTime, _amount ); reward = stakeData.reward + reward; // update the staker data stakeData.reward = 0; stakeData.lastClaimTime = block.timestamp; // emit the event for informing the release of reward emit RewardReleased(_msgSender(), reward); // mint the reward back to the stakers account nftyToken.mint(_msgSender(), reward); } // function for showing the reward at any time function showReward(address account) external view isRealAddress(_msgSender()) isRealAddress(account) isStaker(account) returns (uint256) { StakeData storage stakeData = StakersData[account]; uint256 _amount = stakeData.amount; uint256 reward = _getReward( stakeData.stakingTime, stakeData.lastClaimTime, _amount ); reward = stakeData.reward + reward; return reward; } // function for unstaking all the tokens function unstakeAll() external { StakeData storage stakeData = StakersData[_msgSender()]; uint256 amount = stakeData.amount; unstakeTokens(amount); } // function for changing the reward rate function changeRate(uint8 rank, uint256 rate) external onlyRole(ADMIN_ROLE) { require(rate > 0 && rate <= 100000, "NFTYStaking: invalid rate"); require(rank < 6, "NFTYStaking: invalid rank"); uint256 oldRate = _rewardRate[rank]; _rewardRate[rank] = rate; // emit the event for informing the change of rate emit RateChanged(_msgSender(), rank, oldRate, rate); } // function for returning the current reward rate function getRewardRates() external view returns (uint256[6] memory) { return _rewardRate; } // function for returning total stake token (pool) function getPool() external view returns (uint256) { return _totalStakedToken; } function getRewardRate(uint256 amount, uint256 stakingTime) public view returns (uint256 rewardRate) { uint256 rewardRate1; uint256 rewardRate2; stakingTime = block.timestamp - stakingTime; // reward rate based on the staking amount if (amount >= _getAmount(1) && amount < _getAmount(500)) { rewardRate1 = _rewardRate[0]; } else if (amount >= _getAmount(500) && amount < _getAmount(10000)) { rewardRate1 = _rewardRate[1]; } else if (amount >= _getAmount(10000) && amount < _getAmount(25000)) { rewardRate1 = _rewardRate[2]; } else if (amount >= _getAmount(25000) && amount < _getAmount(50000)) { rewardRate1 = _rewardRate[3]; } else if (amount >= _getAmount(50000) && amount < _getAmount(100000)) { rewardRate1 = _rewardRate[4]; } else { rewardRate1 = _rewardRate[5]; } // reward rate based on staking time if (stakingTime < 30 days) { rewardRate2 = _rewardRate[0]; } else if (stakingTime >= 30 days && stakingTime < 45 days) { rewardRate2 = _rewardRate[1]; } else if (stakingTime >= 45 days && stakingTime < 90 days) { rewardRate2 = _rewardRate[2]; } else if (stakingTime >= 90 days && stakingTime < 180 days) { rewardRate2 = _rewardRate[3]; } else if (stakingTime >= 180 days && stakingTime < 365 days) { rewardRate2 = _rewardRate[4]; } else { rewardRate2 = _rewardRate[5]; } // find exact reward rate rewardRate = rewardRate1 < rewardRate2 ? rewardRate1 : rewardRate2; } // function for unstaking the specified amount function unstakeTokens(uint256 amount) public isRealAddress(_msgSender()) isRealValue(amount) isStaker(_msgSender()) { require( nftyToken.owner() == address(this), "Staking contract is not the owner." ); StakeData storage stakeData = StakersData[_msgSender()]; uint256 _amount = stakeData.amount; // check if the user has enough amount to unstake require(_amount >= amount, "NFTYStaking: not enough staked token"); uint256 reward = _getReward( stakeData.stakingTime, stakeData.lastClaimTime, _amount ); // if the staker is unstaking the whole amount if (stakeData.amount == amount) { uint256 totReward = reward + stakeData.reward; // update the staker data stakeData.reward = 0; stakeData.stakingTime = 0; // emit the event for informing the release of reward emit RewardReleased(_msgSender(), totReward); // mint reward to the user nftyToken.mint(_msgSender(), totReward); } else { // update the staker data stakeData.reward += reward; } stakeData.amount -= amount; stakeData.lastClaimTime = block.timestamp; _totalStakedToken -= amount; // emit the event for informing the unstake of tokens emit StakeReleased(_msgSender(), amount, stakeData.amount); nftyToken.transfer(_msgSender(), amount); } // function for finding the reward based on compound equation function _getReward( uint256 stakingTime, uint256 lastClaimTime, uint256 amount ) internal view returns (uint256 reward) { uint256 rewardRate = getRewardRate(amount, stakingTime); uint256 rewardTime = block.timestamp - lastClaimTime; uint256 rateForSecond = (rewardRate * 10**18) / 365 days; reward = (amount * rateForSecond * rewardTime) / 10**23; return reward; } // function for retrieving the exact amount function _getAmount(uint256 value) internal view returns (uint256) { return value * 10**uint256(nftyToken.decimals()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal initializer { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal initializer { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControlUpgradeable.sol"; import "../utils/ContextUpgradeable.sol"; import "../utils/StringsUpgradeable.sol"; import "../utils/introspection/ERC165Upgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable { function __AccessControl_init() internal initializer { __Context_init_unchained(); __ERC165_init_unchained(); __AccessControl_init_unchained(); } function __AccessControl_init_unchained() internal initializer { } struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", StringsUpgradeable.toHexString(uint160(account), 20), " is missing role ", StringsUpgradeable.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; contract NFTYToken is ERC20Upgradeable, OwnableUpgradeable { function initialize() public initializer { __ERC20_init("NFTY Token", "NFTY"); __Ownable_init(); _mint(owner(), 50000 * 10**uint256(decimals())); } function mint(address account, uint256 amount) external onlyOwner { _mint(account, amount); } }
// SPDX-License-Identifier: MIT 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 { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20Upgradeable.sol"; import "./extensions/IERC20MetadataUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC20_init_unchained(name_, symbol_); } function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} uint256[45] private __gap; }
// SPDX-License-Identifier: MIT 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. */ 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; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT 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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControlUpgradeable { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20MetadataUpgradeable is IERC20Upgradeable { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT 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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NewStake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"admin","type":"address"},{"indexed":false,"internalType":"uint8","name":"rank","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"oldRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRate","type":"uint256"}],"name":"RateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"remainingStake","type":"uint256"}],"name":"StakeReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalStake","type":"uint256"}],"name":"StakeUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferredAllTokens","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"StakersData","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"stakingTime","type":"uint256"},{"internalType":"uint256","name":"lastClaimTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"rank","type":"uint8"},{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"changeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"stakingTime","type":"uint256"}],"name":"getRewardRate","outputs":[{"internalType":"uint256","name":"rewardRate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardRates","outputs":[{"internalType":"uint256[6]","name":"","type":"uint256[6]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"NFTYTokenAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"showReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstakeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50613d1a806100206000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806375b238fc116100ad578063c45af5d811610071578063c45af5d814610334578063c4d66de814610364578063d547741f14610380578063f2fde38b1461039c578063f65a34ac146103b85761012c565b806375b238fc146102655780637b69c42a1461028357806391d14854146102b3578063a217fddf146102e3578063a2ec7579146103015761012c565b806335322f37116100f457806335322f37146101e957806336568abe146101f3578063372500ab1461020f578063608e4dd0146102195780637547c7a3146102355761012c565b806301ffc9a714610131578063026b1d5f146101615780630c056a311461017f578063248a9ca31461019d5780632f2ff15d146101cd575b600080fd5b61014b60048036038101906101469190612c6c565b6103d4565b604051610158919061318d565b60405180910390f35b61016961044e565b6040516101769190613365565b60405180910390f35b610187610458565b6040516101949190613172565b60405180910390f35b6101b760048036038101906101b29190612bff565b6104a3565b6040516101c491906131a8565b60405180910390f35b6101e760048036038101906101e29190612c2c565b6104c3565b005b6101f16104ec565b005b61020d60048036038101906102089190612c2c565b61054c565b005b6102176105cf565b005b610233600480360381019061022e9190612c99565b610962565b005b61024f600480360381019061024a9190612c99565b610efe565b60405161025c919061318d565b60405180910390f35b61026d611352565b60405161027a91906131a8565b60405180910390f35b61029d60048036038101906102989190612cf3565b611376565b6040516102aa9190613365565b60405180910390f35b6102cd60048036038101906102c89190612c2c565b611646565b6040516102da919061318d565b60405180910390f35b6102eb6116b1565b6040516102f891906131a8565b60405180910390f35b61031b60048036038101906103169190612b78565b6116b8565b60405161032b94939291906133a9565b60405180910390f35b61034e60048036038101906103499190612b78565b6116e8565b60405161035b9190613365565b60405180910390f35b61037e60048036038101906103799190612b78565b6118dc565b005b61039a60048036038101906103959190612c2c565b611bf0565b005b6103b660048036038101906103b19190612b78565b611c19565b005b6103d260048036038101906103cd9190612d60565b611cdc565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610447575061044682611e3f565b5b9050919050565b600060cb54905090565b610460612a36565b60cc600680602002604051908101604052809291908260068015610499576020028201915b815481526020019060010190808311610485575b5050505050905090565b600060656000838152602001908152602001600020600101549050919050565b6104cc826104a3565b6104dd816104d8611ea9565b611eb1565b6104e78383611f4e565b505050565b600060d260006104fa611ea9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905061054881610962565b5050565b610554611ea9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146105c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b890613345565b60405180910390fd5b6105cb828261202f565b5050565b6105d7611ea9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610647576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063e90613285565b60405180910390fd5b61064f611ea9565b600060d260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154116106d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106cb90613245565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561075357600080fd5b505afa158015610767573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078b9190612ba5565b73ffffffffffffffffffffffffffffffffffffffff16146107e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d8906132c5565b60405180910390fd5b600060d260006107ef611ea9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060006108498360020154846003015484612111565b905080836001015461085b9190613479565b905060008360010181905550428360030181905550610878611ea9565b73ffffffffffffffffffffffffffffffffffffffff167f7a710f494850039a90f19432a11f8187b6226e1f50c3ad3e9b99e10e56c86091826040516108bd9190613365565b60405180910390a260c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1961090b611ea9565b836040518363ffffffff1660e01b8152600401610929929190613149565b600060405180830381600087803b15801561094357600080fd5b505af1158015610957573d6000803e3d6000fd5b505050505050505050565b61096a611ea9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156109da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d190613285565b60405180910390fd5b8160008111610a1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1590613305565b60405180910390fd5b610a26611ea9565b600060d260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411610aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa290613245565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b2a57600080fd5b505afa158015610b3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b629190612ba5565b73ffffffffffffffffffffffffffffffffffffffff1614610bb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610baf906132c5565b60405180910390fd5b600060d26000610bc6611ea9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905085811015610c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4590613205565b60405180910390fd5b6000610c638360020154846003015484612111565b90508683600001541415610d8a576000836001015482610c839190613479565b90506000846001018190555060008460020181905550610ca1611ea9565b73ffffffffffffffffffffffffffffffffffffffff167f7a710f494850039a90f19432a11f8187b6226e1f50c3ad3e9b99e10e56c8609182604051610ce69190613365565b60405180910390a260c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19610d34611ea9565b836040518363ffffffff1660e01b8152600401610d52929190613149565b600060405180830381600087803b158015610d6c57600080fd5b505af1158015610d80573d6000803e3d6000fd5b5050505050610da6565b80836001016000828254610d9e9190613479565b925050819055505b86836000016000828254610dba91906136cb565b925050819055504283600301819055508660cb6000828254610ddc91906136cb565b92505081905550610deb611ea9565b73ffffffffffffffffffffffffffffffffffffffff167ff19d8b33ae9c98771c986a9786b7607e5feae223396359256d996805cdb5be0a888560000154604051610e36929190613380565b60405180910390a260c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610e84611ea9565b896040518363ffffffff1660e01b8152600401610ea2929190613149565b602060405180830381600087803b158015610ebc57600080fd5b505af1158015610ed0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef49190612bd2565b5050505050505050565b6000610f08611ea9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6f90613285565b60405180910390fd5b8260008111610fbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb390613305565b60405180910390fd5b610fc6600161218f565b841015611008576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fff90613265565b60405180910390fd5b8360c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a0823161104f611ea9565b6040518263ffffffff1660e01b815260040161106b91906130f7565b60206040518083038186803b15801561108357600080fd5b505afa158015611097573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bb9190612cc6565b10156110fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f3906132e5565b60405180910390fd5b600060d2600061110a611ea9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060008111156111ff57600061116d8360020154846003015484612111565b9050808360010160008282546111839190613479565b9250508190555086826111969190613479565b83600001819055506111a6611ea9565b73ffffffffffffffffffffffffffffffffffffffff167f4f699bf807c5806fde6d6160537525347e37cc24687dbaceafe2b1114146addd8885600001546040516111f1929190613380565b60405180910390a250611267565b858260000181905550428260020181905550611219611ea9565b73ffffffffffffffffffffffffffffffffffffffff167f42e99fbad9601d25ee3bb515eeee966f97c3c383adadbe5720f651df8c18989d8760405161125e9190613365565b60405180910390a25b4282600301819055508560cb60008282546112829190613479565b92505081905550600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd6112d1611ea9565b308a6040518463ffffffff1660e01b81526004016112f193929190613112565b602060405180830381600087803b15801561130b57600080fd5b505af115801561131f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113439190612bd2565b90508095505050505050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6000806000834261138791906136cb565b9350611393600161218f565b85101580156113ab57506113a86101f461218f565b85105b156113ce5760cc6000600681106113c5576113c4613845565b5b01549150611505565b6113d96101f461218f565b85101580156113f157506113ee61271061218f565b85105b156114145760cc60016006811061140b5761140a613845565b5b01549150611504565b61141f61271061218f565b851015801561143757506114346161a861218f565b85105b1561145a5760cc60026006811061145157611450613845565b5b01549150611503565b6114656161a861218f565b851015801561147d575061147a61c35061218f565b85105b156114a05760cc60036006811061149757611496613845565b5b01549150611502565b6114ab61c35061218f565b85101580156114c457506114c1620186a061218f565b85105b156114e75760cc6004600681106114de576114dd613845565b5b01549150611501565b60cc6005600681106114fc576114fb613845565b5b015491505b5b5b5b5b62278d0084101561152e5760cc60006006811061152557611524613845565b5b0154905061162d565b62278d0084101580156115435750623b538084105b156115665760cc60016006811061155d5761155c613845565b5b0154905061162c565b623b5380841015801561157b57506276a70084105b1561159e5760cc60026006811061159557611594613845565b5b0154905061162b565b6276a70084101580156115b3575062ed4e0084105b156115d65760cc6003600681106115cd576115cc613845565b5b0154905061162a565b62ed4e0084101580156115ec57506301e1338084105b1561160f5760cc60046006811061160657611605613845565b5b01549050611629565b60cc60056006811061162457611623613845565b5b015490505b5b5b5b5b80821061163a578061163c565b815b9250505092915050565b60006065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b60d26020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b60006116f2611ea9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611762576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175990613285565b60405180910390fd5b82600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ca90613285565b60405180910390fd5b83600060d260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411611859576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185090613245565b60405180910390fd5b600060d260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060006118ba8360020154846003015484612111565b90508083600101546118cc9190613479565b9050809650505050505050919050565b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561194d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194490613285565b60405180910390fd5b611955611ea9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bc90613285565b60405180910390fd5b600060019054906101000a900460ff16806119eb575060008054906101000a900460ff16155b611a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a21906132a5565b60405180910390fd5b60008060019054906101000a900460ff161590508015611a7a576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611a82612252565b611a8a612333565b611abb7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611ab6611ea9565b612424565b611ae57fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177580612432565b8360ca60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508360c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060c0016040528061350b61ffff1681526020016138f361ffff168152602001613ae761ffff168152602001613cdb61ffff168152602001613dd561ffff168152602001613ecf61ffff1681525060cc906006611bc8929190612a58565b508015611bea5760008060016101000a81548160ff0219169083151502179055505b50505050565b611bf9826104a3565b611c0a81611c05611ea9565b611eb1565b611c14838361202f565b505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611c4b81611c46611ea9565b611eb1565b60c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b836040518263ffffffff1660e01b8152600401611ca691906130f7565b600060405180830381600087803b158015611cc057600080fd5b505af1158015611cd4573d6000803e3d6000fd5b505050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611d0e81611d09611ea9565b611eb1565b600082118015611d215750620186a08211155b611d60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5790613325565b60405180910390fd5b60068360ff1610611da6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9d90613225565b60405180910390fd5b600060cc8460ff1660068110611dbf57611dbe613845565b5b015490508260cc8560ff1660068110611ddb57611dda613845565b5b0181905550611de8611ea9565b73ffffffffffffffffffffffffffffffffffffffff167f5097eecc44d7085dafb546b6b050a8165c34475fed9053d6610f844882e8d0a5858386604051611e31939291906133ee565b60405180910390a250505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b611ebb8282611646565b611f4a57611ee08173ffffffffffffffffffffffffffffffffffffffff16601461248e565b611eee8360001c602061248e565b604051602001611eff9291906130bd565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4191906131c3565b60405180910390fd5b5050565b611f588282611646565b61202b5760016065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611fd0611ea9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6120398282611646565b1561210d5760006065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506120b2611ea9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60008061211e8386611376565b90506000844261212e91906136cb565b905060006301e13380670de0b6b3a76400008461214b9190613671565b61215591906134cf565b905069152d02c7e14af680000082828761216f9190613671565b6121799190613671565b61218391906134cf565b93505050509392505050565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156121f957600080fd5b505afa15801561220d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122319190612d33565b60ff16600a6122409190613553565b8261224b9190613671565b9050919050565b600060019054906101000a900460ff1680612278575060008054906101000a900460ff16155b6122b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ae906132a5565b60405180910390fd5b60008060019054906101000a900460ff161590508015612307576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61230f6126ca565b80156123305760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612359575060008054906101000a900460ff16155b612398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238f906132a5565b60405180910390fd5b60008060019054906101000a900460ff1615905080156123e8576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6123f06127ab565b6123f8612884565b61240061295d565b80156124215760008060016101000a81548160ff0219169083151502179055505b50565b61242e8282611f4e565b5050565b600061243d836104a3565b90508160656000858152602001908152602001600020600101819055508181847fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff60405160405180910390a4505050565b6060600060028360026124a19190613671565b6124ab9190613479565b67ffffffffffffffff8111156124c4576124c3613874565b5b6040519080825280601f01601f1916602001820160405280156124f65781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061252e5761252d613845565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061259257612591613845565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026125d29190613671565b6125dc9190613479565b90505b600181111561267c577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061261e5761261d613845565b5b1a60f81b82828151811061263557612634613845565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612675906137bd565b90506125df565b50600084146126c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b7906131e5565b60405180910390fd5b8091505092915050565b600060019054906101000a900460ff16806126f0575060008054906101000a900460ff16155b61272f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612726906132a5565b60405180910390fd5b60008060019054906101000a900460ff16159050801561277f576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b600160978190555080156127a85760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff16806127d1575060008054906101000a900460ff16155b612810576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612807906132a5565b60405180910390fd5b60008060019054906101000a900460ff161590508015612860576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156128815760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff16806128aa575060008054906101000a900460ff16155b6128e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e0906132a5565b60405180910390fd5b60008060019054906101000a900460ff161590508015612939576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b801561295a5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612983575060008054906101000a900460ff16155b6129c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b9906132a5565b60405180910390fd5b60008060019054906101000a900460ff161590508015612a12576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015612a335760008060016101000a81548160ff0219169083151502179055505b50565b6040518060c00160405280600690602082028036833780820191505090505090565b8260068101928215612a8d579160200282015b82811115612a8c578251829061ffff16905591602001919060010190612a6b565b5b509050612a9a9190612a9e565b5090565b5b80821115612ab7576000816000905550600101612a9f565b5090565b600081359050612aca81613c5a565b92915050565b600081519050612adf81613c5a565b92915050565b600081519050612af481613c71565b92915050565b600081359050612b0981613c88565b92915050565b600081359050612b1e81613c9f565b92915050565b600081359050612b3381613cb6565b92915050565b600081519050612b4881613cb6565b92915050565b600081359050612b5d81613ccd565b92915050565b600081519050612b7281613ccd565b92915050565b600060208284031215612b8e57612b8d6138a3565b5b6000612b9c84828501612abb565b91505092915050565b600060208284031215612bbb57612bba6138a3565b5b6000612bc984828501612ad0565b91505092915050565b600060208284031215612be857612be76138a3565b5b6000612bf684828501612ae5565b91505092915050565b600060208284031215612c1557612c146138a3565b5b6000612c2384828501612afa565b91505092915050565b60008060408385031215612c4357612c426138a3565b5b6000612c5185828601612afa565b9250506020612c6285828601612abb565b9150509250929050565b600060208284031215612c8257612c816138a3565b5b6000612c9084828501612b0f565b91505092915050565b600060208284031215612caf57612cae6138a3565b5b6000612cbd84828501612b24565b91505092915050565b600060208284031215612cdc57612cdb6138a3565b5b6000612cea84828501612b39565b91505092915050565b60008060408385031215612d0a57612d096138a3565b5b6000612d1885828601612b24565b9250506020612d2985828601612b24565b9150509250929050565b600060208284031215612d4957612d486138a3565b5b6000612d5784828501612b63565b91505092915050565b60008060408385031215612d7757612d766138a3565b5b6000612d8585828601612b4e565b9250506020612d9685828601612b24565b9150509250929050565b6000612dac8383613090565b60208301905092915050565b612dc1816136ff565b82525050565b612dd08161342f565b612dda8184613452565b9250612de582613425565b8060005b83811015612e16578151612dfd8782612da0565b9650612e0883613445565b925050600181019050612de9565b505050505050565b612e2781613711565b82525050565b612e368161371d565b82525050565b6000612e478261343a565b612e51818561345d565b9350612e6181856020860161378a565b612e6a816138a8565b840191505092915050565b6000612e808261343a565b612e8a818561346e565b9350612e9a81856020860161378a565b80840191505092915050565b6000612eb360208361345d565b9150612ebe826138c6565b602082019050919050565b6000612ed660248361345d565b9150612ee1826138ef565b604082019050919050565b6000612ef960198361345d565b9150612f048261393e565b602082019050919050565b6000612f1c60238361345d565b9150612f2782613967565b604082019050919050565b6000612f3f60228361345d565b9150612f4a826139b6565b604082019050919050565b6000612f6260248361345d565b9150612f6d82613a05565b604082019050919050565b6000612f85602e8361345d565b9150612f9082613a54565b604082019050919050565b6000612fa860228361345d565b9150612fb382613aa3565b604082019050919050565b6000612fcb60218361345d565b9150612fd682613af2565b604082019050919050565b6000612fee602c8361345d565b9150612ff982613b41565b604082019050919050565b600061301160198361345d565b915061301c82613b90565b602082019050919050565b600061303460178361346e565b915061303f82613bb9565b601782019050919050565b600061305760118361346e565b915061306282613be2565b601182019050919050565b600061307a602f8361345d565b915061308582613c0b565b604082019050919050565b61309981613773565b82525050565b6130a881613773565b82525050565b6130b78161377d565b82525050565b60006130c882613027565b91506130d48285612e75565b91506130df8261304a565b91506130eb8284612e75565b91508190509392505050565b600060208201905061310c6000830184612db8565b92915050565b60006060820190506131276000830186612db8565b6131346020830185612db8565b613141604083018461309f565b949350505050565b600060408201905061315e6000830185612db8565b61316b602083018461309f565b9392505050565b600060c0820190506131876000830184612dc7565b92915050565b60006020820190506131a26000830184612e1e565b92915050565b60006020820190506131bd6000830184612e2d565b92915050565b600060208201905081810360008301526131dd8184612e3c565b905092915050565b600060208201905081810360008301526131fe81612ea6565b9050919050565b6000602082019050818103600083015261321e81612ec9565b9050919050565b6000602082019050818103600083015261323e81612eec565b9050919050565b6000602082019050818103600083015261325e81612f0f565b9050919050565b6000602082019050818103600083015261327e81612f32565b9050919050565b6000602082019050818103600083015261329e81612f55565b9050919050565b600060208201905081810360008301526132be81612f78565b9050919050565b600060208201905081810360008301526132de81612f9b565b9050919050565b600060208201905081810360008301526132fe81612fbe565b9050919050565b6000602082019050818103600083015261331e81612fe1565b9050919050565b6000602082019050818103600083015261333e81613004565b9050919050565b6000602082019050818103600083015261335e8161306d565b9050919050565b600060208201905061337a600083018461309f565b92915050565b6000604082019050613395600083018561309f565b6133a2602083018461309f565b9392505050565b60006080820190506133be600083018761309f565b6133cb602083018661309f565b6133d8604083018561309f565b6133e5606083018461309f565b95945050505050565b600060608201905061340360008301866130ae565b613410602083018561309f565b61341d604083018461309f565b949350505050565b6000819050919050565b600060069050919050565b600081519050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061348482613773565b915061348f83613773565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156134c4576134c36137e7565b5b828201905092915050565b60006134da82613773565b91506134e583613773565b9250826134f5576134f4613816565b5b828204905092915050565b6000808291508390505b600185111561354a57808604811115613526576135256137e7565b5b60018516156135355780820291505b8081029050613543856138b9565b945061350a565b94509492505050565b600061355e82613773565b915061356983613773565b92506135967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461359e565b905092915050565b6000826135ae576001905061366a565b816135bc576000905061366a565b81600181146135d257600281146135dc5761360b565b600191505061366a565b60ff8411156135ee576135ed6137e7565b5b8360020a915084821115613605576136046137e7565b5b5061366a565b5060208310610133831016604e8410600b84101617156136405782820a90508381111561363b5761363a6137e7565b5b61366a565b61364d8484846001613500565b92509050818404811115613664576136636137e7565b5b81810290505b9392505050565b600061367c82613773565b915061368783613773565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156136c0576136bf6137e7565b5b828202905092915050565b60006136d682613773565b91506136e183613773565b9250828210156136f4576136f36137e7565b5b828203905092915050565b600061370a82613753565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156137a857808201518184015260208101905061378d565b838111156137b7576000848401525b50505050565b60006137c882613773565b915060008214156137dc576137db6137e7565b5b600182039050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4e4654595374616b696e673a206e6f7420656e6f756768207374616b6564207460008201527f6f6b656e00000000000000000000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a20696e76616c69642072616e6b00000000000000600082015250565b7f4e4654595374616b696e673a2063616c6c6572206973206e6f7420612073746160008201527f6b65720000000000000000000000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a206d696e207374616b6520616d6f756e7420697360008201527f2031000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a2061646472657373206973207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f5374616b696e6720636f6e7472616374206973206e6f7420746865206f776e6560008201527f722e000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a20696e73756666696369656e742062616c616e6360008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a2076616c7565206d75737420626520677265617460008201527f6572207468616e207a65726f0000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a20696e76616c6964207261746500000000000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b613c63816136ff565b8114613c6e57600080fd5b50565b613c7a81613711565b8114613c8557600080fd5b50565b613c918161371d565b8114613c9c57600080fd5b50565b613ca881613727565b8114613cb357600080fd5b50565b613cbf81613773565b8114613cca57600080fd5b50565b613cd68161377d565b8114613ce157600080fd5b5056fea264697066735822122060997c737466aa3ff1a299bd6d4bac87ab2efa2866d9603c2db6291f9a43bbb464736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c806375b238fc116100ad578063c45af5d811610071578063c45af5d814610334578063c4d66de814610364578063d547741f14610380578063f2fde38b1461039c578063f65a34ac146103b85761012c565b806375b238fc146102655780637b69c42a1461028357806391d14854146102b3578063a217fddf146102e3578063a2ec7579146103015761012c565b806335322f37116100f457806335322f37146101e957806336568abe146101f3578063372500ab1461020f578063608e4dd0146102195780637547c7a3146102355761012c565b806301ffc9a714610131578063026b1d5f146101615780630c056a311461017f578063248a9ca31461019d5780632f2ff15d146101cd575b600080fd5b61014b60048036038101906101469190612c6c565b6103d4565b604051610158919061318d565b60405180910390f35b61016961044e565b6040516101769190613365565b60405180910390f35b610187610458565b6040516101949190613172565b60405180910390f35b6101b760048036038101906101b29190612bff565b6104a3565b6040516101c491906131a8565b60405180910390f35b6101e760048036038101906101e29190612c2c565b6104c3565b005b6101f16104ec565b005b61020d60048036038101906102089190612c2c565b61054c565b005b6102176105cf565b005b610233600480360381019061022e9190612c99565b610962565b005b61024f600480360381019061024a9190612c99565b610efe565b60405161025c919061318d565b60405180910390f35b61026d611352565b60405161027a91906131a8565b60405180910390f35b61029d60048036038101906102989190612cf3565b611376565b6040516102aa9190613365565b60405180910390f35b6102cd60048036038101906102c89190612c2c565b611646565b6040516102da919061318d565b60405180910390f35b6102eb6116b1565b6040516102f891906131a8565b60405180910390f35b61031b60048036038101906103169190612b78565b6116b8565b60405161032b94939291906133a9565b60405180910390f35b61034e60048036038101906103499190612b78565b6116e8565b60405161035b9190613365565b60405180910390f35b61037e60048036038101906103799190612b78565b6118dc565b005b61039a60048036038101906103959190612c2c565b611bf0565b005b6103b660048036038101906103b19190612b78565b611c19565b005b6103d260048036038101906103cd9190612d60565b611cdc565b005b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610447575061044682611e3f565b5b9050919050565b600060cb54905090565b610460612a36565b60cc600680602002604051908101604052809291908260068015610499576020028201915b815481526020019060010190808311610485575b5050505050905090565b600060656000838152602001908152602001600020600101549050919050565b6104cc826104a3565b6104dd816104d8611ea9565b611eb1565b6104e78383611f4e565b505050565b600060d260006104fa611ea9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905061054881610962565b5050565b610554611ea9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146105c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b890613345565b60405180910390fd5b6105cb828261202f565b5050565b6105d7611ea9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610647576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063e90613285565b60405180910390fd5b61064f611ea9565b600060d260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154116106d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106cb90613245565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561075357600080fd5b505afa158015610767573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078b9190612ba5565b73ffffffffffffffffffffffffffffffffffffffff16146107e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d8906132c5565b60405180910390fd5b600060d260006107ef611ea9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060006108498360020154846003015484612111565b905080836001015461085b9190613479565b905060008360010181905550428360030181905550610878611ea9565b73ffffffffffffffffffffffffffffffffffffffff167f7a710f494850039a90f19432a11f8187b6226e1f50c3ad3e9b99e10e56c86091826040516108bd9190613365565b60405180910390a260c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1961090b611ea9565b836040518363ffffffff1660e01b8152600401610929929190613149565b600060405180830381600087803b15801561094357600080fd5b505af1158015610957573d6000803e3d6000fd5b505050505050505050565b61096a611ea9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156109da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d190613285565b60405180910390fd5b8160008111610a1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1590613305565b60405180910390fd5b610a26611ea9565b600060d260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411610aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aa290613245565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff1660c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610b2a57600080fd5b505afa158015610b3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b629190612ba5565b73ffffffffffffffffffffffffffffffffffffffff1614610bb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610baf906132c5565b60405180910390fd5b600060d26000610bc6611ea9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905085811015610c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4590613205565b60405180910390fd5b6000610c638360020154846003015484612111565b90508683600001541415610d8a576000836001015482610c839190613479565b90506000846001018190555060008460020181905550610ca1611ea9565b73ffffffffffffffffffffffffffffffffffffffff167f7a710f494850039a90f19432a11f8187b6226e1f50c3ad3e9b99e10e56c8609182604051610ce69190613365565b60405180910390a260c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19610d34611ea9565b836040518363ffffffff1660e01b8152600401610d52929190613149565b600060405180830381600087803b158015610d6c57600080fd5b505af1158015610d80573d6000803e3d6000fd5b5050505050610da6565b80836001016000828254610d9e9190613479565b925050819055505b86836000016000828254610dba91906136cb565b925050819055504283600301819055508660cb6000828254610ddc91906136cb565b92505081905550610deb611ea9565b73ffffffffffffffffffffffffffffffffffffffff167ff19d8b33ae9c98771c986a9786b7607e5feae223396359256d996805cdb5be0a888560000154604051610e36929190613380565b60405180910390a260c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb610e84611ea9565b896040518363ffffffff1660e01b8152600401610ea2929190613149565b602060405180830381600087803b158015610ebc57600080fd5b505af1158015610ed0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef49190612bd2565b5050505050505050565b6000610f08611ea9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6f90613285565b60405180910390fd5b8260008111610fbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb390613305565b60405180910390fd5b610fc6600161218f565b841015611008576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fff90613265565b60405180910390fd5b8360c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a0823161104f611ea9565b6040518263ffffffff1660e01b815260040161106b91906130f7565b60206040518083038186803b15801561108357600080fd5b505afa158015611097573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110bb9190612cc6565b10156110fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f3906132e5565b60405180910390fd5b600060d2600061110a611ea9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060008111156111ff57600061116d8360020154846003015484612111565b9050808360010160008282546111839190613479565b9250508190555086826111969190613479565b83600001819055506111a6611ea9565b73ffffffffffffffffffffffffffffffffffffffff167f4f699bf807c5806fde6d6160537525347e37cc24687dbaceafe2b1114146addd8885600001546040516111f1929190613380565b60405180910390a250611267565b858260000181905550428260020181905550611219611ea9565b73ffffffffffffffffffffffffffffffffffffffff167f42e99fbad9601d25ee3bb515eeee966f97c3c383adadbe5720f651df8c18989d8760405161125e9190613365565b60405180910390a25b4282600301819055508560cb60008282546112829190613479565b92505081905550600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd6112d1611ea9565b308a6040518463ffffffff1660e01b81526004016112f193929190613112565b602060405180830381600087803b15801561130b57600080fd5b505af115801561131f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113439190612bd2565b90508095505050505050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b6000806000834261138791906136cb565b9350611393600161218f565b85101580156113ab57506113a86101f461218f565b85105b156113ce5760cc6000600681106113c5576113c4613845565b5b01549150611505565b6113d96101f461218f565b85101580156113f157506113ee61271061218f565b85105b156114145760cc60016006811061140b5761140a613845565b5b01549150611504565b61141f61271061218f565b851015801561143757506114346161a861218f565b85105b1561145a5760cc60026006811061145157611450613845565b5b01549150611503565b6114656161a861218f565b851015801561147d575061147a61c35061218f565b85105b156114a05760cc60036006811061149757611496613845565b5b01549150611502565b6114ab61c35061218f565b85101580156114c457506114c1620186a061218f565b85105b156114e75760cc6004600681106114de576114dd613845565b5b01549150611501565b60cc6005600681106114fc576114fb613845565b5b015491505b5b5b5b5b62278d0084101561152e5760cc60006006811061152557611524613845565b5b0154905061162d565b62278d0084101580156115435750623b538084105b156115665760cc60016006811061155d5761155c613845565b5b0154905061162c565b623b5380841015801561157b57506276a70084105b1561159e5760cc60026006811061159557611594613845565b5b0154905061162b565b6276a70084101580156115b3575062ed4e0084105b156115d65760cc6003600681106115cd576115cc613845565b5b0154905061162a565b62ed4e0084101580156115ec57506301e1338084105b1561160f5760cc60046006811061160657611605613845565b5b01549050611629565b60cc60056006811061162457611623613845565b5b015490505b5b5b5b5b80821061163a578061163c565b815b9250505092915050565b60006065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b81565b60d26020528060005260406000206000915090508060000154908060010154908060020154908060030154905084565b60006116f2611ea9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611762576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175990613285565b60405180910390fd5b82600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156117d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ca90613285565b60405180910390fd5b83600060d260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411611859576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185090613245565b60405180910390fd5b600060d260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060006118ba8360020154846003015484612111565b90508083600101546118cc9190613479565b9050809650505050505050919050565b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561194d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194490613285565b60405180910390fd5b611955611ea9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bc90613285565b60405180910390fd5b600060019054906101000a900460ff16806119eb575060008054906101000a900460ff16155b611a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a21906132a5565b60405180910390fd5b60008060019054906101000a900460ff161590508015611a7a576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611a82612252565b611a8a612333565b611abb7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611ab6611ea9565b612424565b611ae57fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177580612432565b8360ca60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508360c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060c0016040528061350b61ffff1681526020016138f361ffff168152602001613ae761ffff168152602001613cdb61ffff168152602001613dd561ffff168152602001613ecf61ffff1681525060cc906006611bc8929190612a58565b508015611bea5760008060016101000a81548160ff0219169083151502179055505b50505050565b611bf9826104a3565b611c0a81611c05611ea9565b611eb1565b611c14838361202f565b505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611c4b81611c46611ea9565b611eb1565b60c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f2fde38b836040518263ffffffff1660e01b8152600401611ca691906130f7565b600060405180830381600087803b158015611cc057600080fd5b505af1158015611cd4573d6000803e3d6000fd5b505050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775611d0e81611d09611ea9565b611eb1565b600082118015611d215750620186a08211155b611d60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5790613325565b60405180910390fd5b60068360ff1610611da6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9d90613225565b60405180910390fd5b600060cc8460ff1660068110611dbf57611dbe613845565b5b015490508260cc8560ff1660068110611ddb57611dda613845565b5b0181905550611de8611ea9565b73ffffffffffffffffffffffffffffffffffffffff167f5097eecc44d7085dafb546b6b050a8165c34475fed9053d6610f844882e8d0a5858386604051611e31939291906133ee565b60405180910390a250505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b611ebb8282611646565b611f4a57611ee08173ffffffffffffffffffffffffffffffffffffffff16601461248e565b611eee8360001c602061248e565b604051602001611eff9291906130bd565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4191906131c3565b60405180910390fd5b5050565b611f588282611646565b61202b5760016065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611fd0611ea9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6120398282611646565b1561210d5760006065600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506120b2611ea9565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60008061211e8386611376565b90506000844261212e91906136cb565b905060006301e13380670de0b6b3a76400008461214b9190613671565b61215591906134cf565b905069152d02c7e14af680000082828761216f9190613671565b6121799190613671565b61218391906134cf565b93505050509392505050565b600060c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156121f957600080fd5b505afa15801561220d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122319190612d33565b60ff16600a6122409190613553565b8261224b9190613671565b9050919050565b600060019054906101000a900460ff1680612278575060008054906101000a900460ff16155b6122b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ae906132a5565b60405180910390fd5b60008060019054906101000a900460ff161590508015612307576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b61230f6126ca565b80156123305760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612359575060008054906101000a900460ff16155b612398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238f906132a5565b60405180910390fd5b60008060019054906101000a900460ff1615905080156123e8576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6123f06127ab565b6123f8612884565b61240061295d565b80156124215760008060016101000a81548160ff0219169083151502179055505b50565b61242e8282611f4e565b5050565b600061243d836104a3565b90508160656000858152602001908152602001600020600101819055508181847fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff60405160405180910390a4505050565b6060600060028360026124a19190613671565b6124ab9190613479565b67ffffffffffffffff8111156124c4576124c3613874565b5b6040519080825280601f01601f1916602001820160405280156124f65781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061252e5761252d613845565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061259257612591613845565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026125d29190613671565b6125dc9190613479565b90505b600181111561267c577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811061261e5761261d613845565b5b1a60f81b82828151811061263557612634613845565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612675906137bd565b90506125df565b50600084146126c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b7906131e5565b60405180910390fd5b8091505092915050565b600060019054906101000a900460ff16806126f0575060008054906101000a900460ff16155b61272f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612726906132a5565b60405180910390fd5b60008060019054906101000a900460ff16159050801561277f576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b600160978190555080156127a85760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff16806127d1575060008054906101000a900460ff16155b612810576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612807906132a5565b60405180910390fd5b60008060019054906101000a900460ff161590508015612860576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156128815760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff16806128aa575060008054906101000a900460ff16155b6128e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e0906132a5565b60405180910390fd5b60008060019054906101000a900460ff161590508015612939576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b801561295a5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612983575060008054906101000a900460ff16155b6129c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b9906132a5565b60405180910390fd5b60008060019054906101000a900460ff161590508015612a12576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015612a335760008060016101000a81548160ff0219169083151502179055505b50565b6040518060c00160405280600690602082028036833780820191505090505090565b8260068101928215612a8d579160200282015b82811115612a8c578251829061ffff16905591602001919060010190612a6b565b5b509050612a9a9190612a9e565b5090565b5b80821115612ab7576000816000905550600101612a9f565b5090565b600081359050612aca81613c5a565b92915050565b600081519050612adf81613c5a565b92915050565b600081519050612af481613c71565b92915050565b600081359050612b0981613c88565b92915050565b600081359050612b1e81613c9f565b92915050565b600081359050612b3381613cb6565b92915050565b600081519050612b4881613cb6565b92915050565b600081359050612b5d81613ccd565b92915050565b600081519050612b7281613ccd565b92915050565b600060208284031215612b8e57612b8d6138a3565b5b6000612b9c84828501612abb565b91505092915050565b600060208284031215612bbb57612bba6138a3565b5b6000612bc984828501612ad0565b91505092915050565b600060208284031215612be857612be76138a3565b5b6000612bf684828501612ae5565b91505092915050565b600060208284031215612c1557612c146138a3565b5b6000612c2384828501612afa565b91505092915050565b60008060408385031215612c4357612c426138a3565b5b6000612c5185828601612afa565b9250506020612c6285828601612abb565b9150509250929050565b600060208284031215612c8257612c816138a3565b5b6000612c9084828501612b0f565b91505092915050565b600060208284031215612caf57612cae6138a3565b5b6000612cbd84828501612b24565b91505092915050565b600060208284031215612cdc57612cdb6138a3565b5b6000612cea84828501612b39565b91505092915050565b60008060408385031215612d0a57612d096138a3565b5b6000612d1885828601612b24565b9250506020612d2985828601612b24565b9150509250929050565b600060208284031215612d4957612d486138a3565b5b6000612d5784828501612b63565b91505092915050565b60008060408385031215612d7757612d766138a3565b5b6000612d8585828601612b4e565b9250506020612d9685828601612b24565b9150509250929050565b6000612dac8383613090565b60208301905092915050565b612dc1816136ff565b82525050565b612dd08161342f565b612dda8184613452565b9250612de582613425565b8060005b83811015612e16578151612dfd8782612da0565b9650612e0883613445565b925050600181019050612de9565b505050505050565b612e2781613711565b82525050565b612e368161371d565b82525050565b6000612e478261343a565b612e51818561345d565b9350612e6181856020860161378a565b612e6a816138a8565b840191505092915050565b6000612e808261343a565b612e8a818561346e565b9350612e9a81856020860161378a565b80840191505092915050565b6000612eb360208361345d565b9150612ebe826138c6565b602082019050919050565b6000612ed660248361345d565b9150612ee1826138ef565b604082019050919050565b6000612ef960198361345d565b9150612f048261393e565b602082019050919050565b6000612f1c60238361345d565b9150612f2782613967565b604082019050919050565b6000612f3f60228361345d565b9150612f4a826139b6565b604082019050919050565b6000612f6260248361345d565b9150612f6d82613a05565b604082019050919050565b6000612f85602e8361345d565b9150612f9082613a54565b604082019050919050565b6000612fa860228361345d565b9150612fb382613aa3565b604082019050919050565b6000612fcb60218361345d565b9150612fd682613af2565b604082019050919050565b6000612fee602c8361345d565b9150612ff982613b41565b604082019050919050565b600061301160198361345d565b915061301c82613b90565b602082019050919050565b600061303460178361346e565b915061303f82613bb9565b601782019050919050565b600061305760118361346e565b915061306282613be2565b601182019050919050565b600061307a602f8361345d565b915061308582613c0b565b604082019050919050565b61309981613773565b82525050565b6130a881613773565b82525050565b6130b78161377d565b82525050565b60006130c882613027565b91506130d48285612e75565b91506130df8261304a565b91506130eb8284612e75565b91508190509392505050565b600060208201905061310c6000830184612db8565b92915050565b60006060820190506131276000830186612db8565b6131346020830185612db8565b613141604083018461309f565b949350505050565b600060408201905061315e6000830185612db8565b61316b602083018461309f565b9392505050565b600060c0820190506131876000830184612dc7565b92915050565b60006020820190506131a26000830184612e1e565b92915050565b60006020820190506131bd6000830184612e2d565b92915050565b600060208201905081810360008301526131dd8184612e3c565b905092915050565b600060208201905081810360008301526131fe81612ea6565b9050919050565b6000602082019050818103600083015261321e81612ec9565b9050919050565b6000602082019050818103600083015261323e81612eec565b9050919050565b6000602082019050818103600083015261325e81612f0f565b9050919050565b6000602082019050818103600083015261327e81612f32565b9050919050565b6000602082019050818103600083015261329e81612f55565b9050919050565b600060208201905081810360008301526132be81612f78565b9050919050565b600060208201905081810360008301526132de81612f9b565b9050919050565b600060208201905081810360008301526132fe81612fbe565b9050919050565b6000602082019050818103600083015261331e81612fe1565b9050919050565b6000602082019050818103600083015261333e81613004565b9050919050565b6000602082019050818103600083015261335e8161306d565b9050919050565b600060208201905061337a600083018461309f565b92915050565b6000604082019050613395600083018561309f565b6133a2602083018461309f565b9392505050565b60006080820190506133be600083018761309f565b6133cb602083018661309f565b6133d8604083018561309f565b6133e5606083018461309f565b95945050505050565b600060608201905061340360008301866130ae565b613410602083018561309f565b61341d604083018461309f565b949350505050565b6000819050919050565b600060069050919050565b600081519050919050565b6000602082019050919050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061348482613773565b915061348f83613773565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156134c4576134c36137e7565b5b828201905092915050565b60006134da82613773565b91506134e583613773565b9250826134f5576134f4613816565b5b828204905092915050565b6000808291508390505b600185111561354a57808604811115613526576135256137e7565b5b60018516156135355780820291505b8081029050613543856138b9565b945061350a565b94509492505050565b600061355e82613773565b915061356983613773565b92506135967fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461359e565b905092915050565b6000826135ae576001905061366a565b816135bc576000905061366a565b81600181146135d257600281146135dc5761360b565b600191505061366a565b60ff8411156135ee576135ed6137e7565b5b8360020a915084821115613605576136046137e7565b5b5061366a565b5060208310610133831016604e8410600b84101617156136405782820a90508381111561363b5761363a6137e7565b5b61366a565b61364d8484846001613500565b92509050818404811115613664576136636137e7565b5b81810290505b9392505050565b600061367c82613773565b915061368783613773565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156136c0576136bf6137e7565b5b828202905092915050565b60006136d682613773565b91506136e183613773565b9250828210156136f4576136f36137e7565b5b828203905092915050565b600061370a82613753565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b838110156137a857808201518184015260208101905061378d565b838111156137b7576000848401525b50505050565b60006137c882613773565b915060008214156137dc576137db6137e7565b5b600182039050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4e4654595374616b696e673a206e6f7420656e6f756768207374616b6564207460008201527f6f6b656e00000000000000000000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a20696e76616c69642072616e6b00000000000000600082015250565b7f4e4654595374616b696e673a2063616c6c6572206973206e6f7420612073746160008201527f6b65720000000000000000000000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a206d696e207374616b6520616d6f756e7420697360008201527f2031000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a2061646472657373206973207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f5374616b696e6720636f6e7472616374206973206e6f7420746865206f776e6560008201527f722e000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a20696e73756666696369656e742062616c616e6360008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a2076616c7565206d75737420626520677265617460008201527f6572207468616e207a65726f0000000000000000000000000000000000000000602082015250565b7f4e4654595374616b696e673a20696e76616c6964207261746500000000000000600082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b613c63816136ff565b8114613c6e57600080fd5b50565b613c7a81613711565b8114613c8557600080fd5b50565b613c918161371d565b8114613c9c57600080fd5b50565b613ca881613727565b8114613cb357600080fd5b50565b613cbf81613773565b8114613cca57600080fd5b50565b613cd68161377d565b8114613ce157600080fd5b5056fea264697066735822122060997c737466aa3ff1a299bd6d4bac87ab2efa2866d9603c2db6291f9a43bbb464736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.00147 | 898,859.506 | $1,321.11 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.