More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 398 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unlock | 20667115 | 3 hrs ago | IN | 0 ETH | 0.00008849 | ||||
Stake | 20667112 | 3 hrs ago | IN | 0 ETH | 0.00027469 | ||||
Claim | 20664350 | 12 hrs ago | IN | 0 ETH | 0.0010847 | ||||
Stake | 20663823 | 14 hrs ago | IN | 0 ETH | 0.00184332 | ||||
Claim | 20642589 | 3 days ago | IN | 0 ETH | 0.00028524 | ||||
Claim | 20639359 | 4 days ago | IN | 0 ETH | 0.00012496 | ||||
Unlock | 20633043 | 4 days ago | IN | 0 ETH | 0.00010588 | ||||
Stake | 20632815 | 4 days ago | IN | 0 ETH | 0.00027409 | ||||
Unlock | 20630501 | 5 days ago | IN | 0 ETH | 0.00009533 | ||||
Unlock | 20630138 | 5 days ago | IN | 0 ETH | 0.000092 | ||||
Stake | 20629508 | 5 days ago | IN | 0 ETH | 0.0008465 | ||||
Stake | 20627376 | 5 days ago | IN | 0 ETH | 0.00031865 | ||||
Stake | 20616897 | 7 days ago | IN | 0 ETH | 0.00015401 | ||||
Unlock | 20607521 | 8 days ago | IN | 0 ETH | 0.00007618 | ||||
Unlock | 20607516 | 8 days ago | IN | 0 ETH | 0.00006678 | ||||
Unlock | 20607512 | 8 days ago | IN | 0 ETH | 0.00010379 | ||||
Stake | 20585944 | 11 days ago | IN | 0 ETH | 0.00036154 | ||||
Stake | 20584004 | 11 days ago | IN | 0 ETH | 0.00027156 | ||||
Unlock | 20582722 | 11 days ago | IN | 0 ETH | 0.0000721 | ||||
Unlock | 20575561 | 12 days ago | IN | 0 ETH | 0.00007632 | ||||
Unlock | 20568444 | 13 days ago | IN | 0 ETH | 0.00014189 | ||||
Stake | 20561385 | 14 days ago | IN | 0 ETH | 0.00031816 | ||||
Stake | 20561266 | 14 days ago | IN | 0 ETH | 0.00024174 | ||||
Stake | 20557940 | 15 days ago | IN | 0 ETH | 0.000213 | ||||
Unlock | 20556238 | 15 days ago | IN | 0 ETH | 0.00009707 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | ||||
---|---|---|---|---|---|---|---|
20667112 | 3 hrs ago | 0 ETH | |||||
20664350 | 12 hrs ago | 0 ETH | |||||
20663823 | 14 hrs ago | 0 ETH | |||||
20642589 | 3 days ago | 0 ETH | |||||
20639359 | 4 days ago | 0 ETH | |||||
20632815 | 4 days ago | 0 ETH | |||||
20629508 | 5 days ago | 0 ETH | |||||
20627376 | 5 days ago | 0 ETH | |||||
20616897 | 7 days ago | 0 ETH | |||||
20585944 | 11 days ago | 0 ETH | |||||
20584004 | 11 days ago | 0 ETH | |||||
20561385 | 14 days ago | 0 ETH | |||||
20561266 | 14 days ago | 0 ETH | |||||
20557940 | 15 days ago | 0 ETH | |||||
20547259 | 16 days ago | 0 ETH | |||||
20536807 | 18 days ago | 0 ETH | |||||
20536757 | 18 days ago | 0 ETH | |||||
20536422 | 18 days ago | 0 ETH | |||||
20534504 | 18 days ago | 0 ETH | |||||
20533091 | 18 days ago | 0 ETH | |||||
20528036 | 19 days ago | 0 ETH | |||||
20519086 | 20 days ago | 0 ETH | |||||
20518182 | 20 days ago | 0 ETH | |||||
20518151 | 20 days ago | 0 ETH | |||||
20515518 | 21 days ago | 0 ETH |
Loading...
Loading
Contract Name:
MasaStaking
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.18; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol"; import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {Address} from "@openzeppelin/contracts/utils/Address.sol"; /** * @dev Implementation of a staking contract for MasaToken. This contract allows * users to stake their MasaTokens for a specified period and earn interest * based on the staking period. The contract includes functionalities for * staking, unstaking, and querying staked balances and earned interest. */ contract MasaStaking is ReentrancyGuard, AccessControl, Pausable { using SafeERC20 for IERC20; /** * @dev Struct to store information about each stake including amount, * start timestamp, period, and interest rate. */ struct Stake { uint256 amount; // The amount of tokens staked. uint256 startTime; // The timestamp when the stake was initiated. uint256 unlockTime; // The timestamp when the stake was unlocked. uint256 period; // The period of the stake. uint256 interestRate; // The interest rate applicable to the stake. } /** * @dev Struct to store details about each stake including amount, * start timestamp, unlock timestamp, period, interest rate, and eligibility * for unlocking and claiming. Used for querying stake details. */ struct StakeDetails { Stake stake; bool canUnlock; bool canClaim; } /* ========== STATE VARIABLES =========================================== */ uint256 public constant INTEREST_PRECISSION = 1_000_000; IERC20 public immutable masaToken; uint256 public immutable secondsForPeriod; // seconds for each period uint256 public cooldownPeriod; // period for unstaking mapping(address => Stake[]) public stakes; mapping(uint256 => uint256) public interestRates; // period => interest rate // array with all the periods uint256[] public periods; uint256 public rewardsNotReserved; // rewards not reserved for staking uint256 public rewardsReserved; // rewards reserved for staking (not yet claimed) uint256 public totalStaked; mapping(uint256 => uint256) public totalStakedForPeriod; /// @dev State variable to control the availability of staking functionality. bool public stakingEnabled; /* ========== EVENTS ==================================================== */ event StakingEnabled(address indexed by); event StakingDisabled(address indexed by); event InterestRateUpdated(address indexed by, uint256 period, uint256 rate); event CooldownPeriodUpdated(address indexed by, uint256 cooldownPeriod); event Staked( address indexed user, uint256 amount, uint256 startTime, uint256 period, uint256 interestRate, uint256 index ); event Unlocked(address indexed user, uint256 amount, uint256 index); event Claimed( address indexed user, uint256 amount, uint256 reward, uint256 index ); /* ========== INITIALIZE ================================================ */ /** * @dev Sets the initial values for the MasaToken address and initializes * roles and default interest rates for different periods. * @param _masaTokenAddress The address of the MasaToken contract. * @param _admin The address of the admin account. * @param _secondsForPeriod The number of seconds for each staking period. * @param _cooldownPeriod The period for unstaking in seconds. */ constructor( address _masaTokenAddress, address _admin, uint256 _secondsForPeriod, uint256 _cooldownPeriod ) { require(_secondsForPeriod > 0, "Invalid seconds for period"); masaToken = IERC20(_masaTokenAddress); secondsForPeriod = _secondsForPeriod; cooldownPeriod = _cooldownPeriod; // set staking enabled default stakingEnabled = true; _setupRole(DEFAULT_ADMIN_ROLE, _admin); } /* ========== RESTRICTED FUNCTIONS ====================================== */ /** * @notice Disables the staking functionality. * @dev This function can only be called by an account with the DEFAULT_ADMIN_ROLE. * It sets the `stakingEnabled` state variable to false. */ function disableStaking() external onlyRole(DEFAULT_ADMIN_ROLE) { require(stakingEnabled, "Staking is already disabled"); stakingEnabled = false; emit StakingDisabled(msg.sender); } /** * @notice Enables the staking functionality. * @dev This function can only be called by an account with the DEFAULT_ADMIN_ROLE. * It sets the `stakingEnabled` state variable to true. */ function enableStaking() external onlyRole(DEFAULT_ADMIN_ROLE) { require(!stakingEnabled, "Staking is already enabled"); stakingEnabled = true; emit StakingEnabled(msg.sender); } /** * @dev Pauses all staking and unstaking functions. Only callable by accounts * with the DEFAULT_ADMIN_ROLE. */ function pause() external onlyRole(DEFAULT_ADMIN_ROLE) { _pause(); emit Paused(msg.sender); } /** * @dev Unpauses all staking and unstaking functions. Only callable by accounts * with the DEFAULT_ADMIN_ROLE. */ function unpause() external onlyRole(DEFAULT_ADMIN_ROLE) { _unpause(); emit Unpaused(msg.sender); } /** * @dev Updates the interest rate for a specific staking period. * Only callable by accounts with the DEFAULT_ADMIN_ROLE. * @param _period The staking period to update the interest rate for. * @param _rate The new interest rate for the specified staking period. */ function setInterestRate( uint256 _period, uint256 _rate ) external onlyRole(DEFAULT_ADMIN_ROLE) { require(interestRates[_period] != _rate, "Rate is the same"); interestRates[_period] = _rate; // Add the period to the periods array if it doesn't already exist bool periodExists = false; uint periodsLength = periods.length; for (uint256 i = 0; i < periodsLength; i++) { if (periods[i] == _period) { periodExists = true; break; } } if (!periodExists) { periods.push(_period); } emit InterestRateUpdated(msg.sender, _period, _rate); } /** * @dev Updates the cooldown period for unstaking. * Only callable by accounts with the DEFAULT_ADMIN_ROLE. * @param _cooldownPeriod The new cooldown period in seconds. */ function setCooldownPeriod( uint256 _cooldownPeriod ) external onlyRole(DEFAULT_ADMIN_ROLE) { require( cooldownPeriod != _cooldownPeriod, "Cooldown period is the same" ); cooldownPeriod = _cooldownPeriod; emit CooldownPeriodUpdated(msg.sender, _cooldownPeriod); } /* ========== MUTATIVE FUNCTIONS ======================================== */ /** * @dev Allows the admin to add MasaToken to the reward pool. * @param _amount The amount of MasaToken to add to the reward pool. */ function addRewards(uint256 _amount) external nonReentrant whenNotPaused { require(_amount > 0, "Invalid amount"); rewardsNotReserved += _amount; masaToken.safeTransferFrom(msg.sender, address(this), _amount); } /** * @dev Allows users to stake a specified amount of MasaToken for a specified period. Stakes are recorded * in the stakes mapping, and users are added to the allStakers array if they haven't staked before. * @param _amount The amount of MasaToken to be staked. * @param _period The period for which the MasaToken is staked, in months. */ function stake( uint256 _amount, uint256 _period ) external nonReentrant whenNotPaused { require(stakingEnabled, "Staking is currently disabled"); require(interestRates[_period] > 0, "Invalid staking period"); require(_amount > 0, "Invalid amount"); // Calculate the reward based on the staked amount and the interest rate uint256 reward = (_amount * interestRates[_period]) / (100 * INTEREST_PRECISSION); require( rewardsNotReserved >= reward, "Not enough rewards to reserve for staking" ); totalStaked += _amount; totalStakedForPeriod[_period] += _amount; // decrease the rewards not reserved for staking rewardsNotReserved -= reward; // increase the rewards reserved for staking rewardsReserved += reward; stakes[msg.sender].push( Stake({ amount: _amount, startTime: block.timestamp, unlockTime: 0, period: _period, interestRate: interestRates[_period] }) ); masaToken.safeTransferFrom(msg.sender, address(this), _amount); emit Staked( msg.sender, _amount, block.timestamp, _period, interestRates[_period], stakes[msg.sender].length - 1 ); } /** * @dev Allows users to unlock a specific stake identified by its index after the staking period has fully elapsed. * @param _index The index of the stake within the user's array of stakes to be unlocked. */ function unlock(uint256 _index) external nonReentrant whenNotPaused { require(_index < stakes[msg.sender].length, "Invalid index"); Stake memory stakeData = stakes[msg.sender][_index]; // Ensure the current timestamp is beyond the unlock timestamp require( canUnlockStake(msg.sender, _index), "Staking period has not yet elapsed" ); stakes[msg.sender][_index].unlockTime = block.timestamp; emit Unlocked(msg.sender, stakeData.amount, _index); } /** * @dev Allows users to claim a specific stake identified by its index after the cooldown period has fully elapsed. * @param _index The index of the stake within the user's array of stakes to be claimed. */ function claim(uint256 _index) external nonReentrant whenNotPaused { require(_index < stakes[msg.sender].length, "Invalid index"); Stake memory stakeData = stakes[msg.sender][_index]; // Ensure the current timestamp is beyond the cooldown period require( canClaimStake(msg.sender, _index), "Cooldown period has not yet elapsed" ); // Calculate the reward based on the staked amount and the interest rate uint256 reward = (stakeData.amount * stakeData.interestRate) / (100 * INTEREST_PRECISSION); // Remove the stake from the user's stakes array _removeStake(msg.sender, _index); // decrease the rewards reserved for staking rewardsReserved -= reward; // Transfer the staked amount plus the reward back to the user masaToken.safeTransfer(msg.sender, stakeData.amount + reward); emit Claimed(msg.sender, stakeData.amount, reward, _index); } /* ========== VIEWS ===================================================== */ /** * @dev Returns the periods for which interest rates have been set. * @return An array of periods. */ function getPeriods() external view returns (uint256[] memory) { return periods; } /** * @dev Returns the number of stakes a user has made. * @param _user The address of the user. * @return The number of stakes. */ function getUserStakeCount(address _user) external view returns (uint256) { return stakes[_user].length; } /** * @dev Returns details of a specific stake for a user, including whether it can be unstaked. * @param _user The address of the user. * @param _index The index of the stake in the user's stakes array. * @return StakeDetails The details of the stake. */ function getUserStake( address _user, uint256 _index ) external view returns (StakeDetails memory) { require(_index < stakes[_user].length, "Invalid index"); Stake memory stakeData = stakes[_user][_index]; return StakeDetails({ stake: stakeData, canUnlock: canUnlockStake(_user, _index), canClaim: canClaimStake(_user, _index) }); } /** * @dev Returns the total staked balance of a user by summing up the amounts in all their stakes. * @param _user The address of the user whose total staked balance is being queried. * @return uint256 The total staked balance of the user. */ function getUserStakedBalance( address _user ) external view returns (uint256) { uint256 totalBalance = 0; for (uint256 i = 0; i < stakes[_user].length; i++) { totalBalance += stakes[_user][i].amount; } return totalBalance; } /** * @dev Returns the principal amounts and interest earned for each stake of a user * This function calculates the interest based on the elapsed time since each stake was made. * @param _user The address of the user whose stakes and interest are being queried. * @return principalAmounts An array of the principal amounts for each stake of the user. * @return interestEarned An array of the interest earned for each stake of the user. */ function getUserStakesWithInterest( address _user ) external view returns ( uint256[] memory principalAmounts, uint256[] memory interestEarned ) { uint256 stakeCount = stakes[_user].length; principalAmounts = new uint256[](stakeCount); interestEarned = new uint256[](stakeCount); for (uint256 i = 0; i < stakeCount; i++) { Stake memory stakeData = stakes[_user][i]; principalAmounts[i] = stakeData.amount; // Calculate seconds elapsed since the stake started uint256 secondsElapsed = block.timestamp - stakeData.startTime; // Calculate the fraction of the staking period that has elapsed uint256 secondsInPeriod = stakeData.period * secondsForPeriod; if (secondsElapsed > secondsInPeriod) { secondsElapsed = secondsInPeriod; } // Multiply by 1e18 for precision uint256 elapsedFraction = secondsInPeriod > 0 ? (secondsElapsed * 1e18) / secondsInPeriod : 0; // Calculate prorated interest based on the elapsed fraction of the period uint256 interestFraction = (stakeData.amount * stakeData.interestRate); // Note: We divide by 100 and then multiply by elapsedFraction and divide by 1e18 for precision interestEarned[i] = (interestFraction * elapsedFraction) / (100 * INTEREST_PRECISSION * 1e18); } return (principalAmounts, interestEarned); } /** * @dev Determines if a stake is eligible for unlocking based on the current timestamp. * @param _user The address of the user querying unlock eligibility. * @param _index The index of the stake within the user's array of stakes. * @return canUnlock True if the stake can be unlocked, false otherwise. */ function canUnlockStake( address _user, uint256 _index ) public view returns (bool canUnlock) { require(_index < stakes[_user].length, "Invalid index"); Stake memory stakeData = stakes[_user][_index]; if (stakeData.unlockTime > 0) { canUnlock = false; } else { uint256 secondsInPeriod = stakeData.period * secondsForPeriod; uint256 unlockTime = stakeData.startTime + secondsInPeriod; canUnlock = block.timestamp >= unlockTime; } return canUnlock; } /** * @dev Determines if a stake is eligible for claiming based on the current timestamp. * @param _user The address of the user querying claim eligibility. * @param _index The index of the stake within the user's array of stakes. * @return canClaim True if the stake can be claimed, false otherwise. */ function canClaimStake( address _user, uint256 _index ) public view returns (bool canClaim) { require(_index < stakes[_user].length, "Invalid index"); Stake memory stakeData = stakes[_user][_index]; canClaim = stakeData.unlockTime > 0 && block.timestamp >= stakeData.unlockTime + cooldownPeriod; return canClaim; } /* ========== PRIVATE FUNCTIONS ========================================= */ /** * @dev Removes a stake from the stakes array for a user by index. * This is a private function used internally by the unstake function. * @param _user The address of the user from whom the stake is removed. * @param _index The index of the stake within the user's stakes array to remove. */ function _removeStake(address _user, uint256 _index) private { require(_index < stakes[_user].length, "Invalid index"); totalStaked -= stakes[_user][_index].amount; totalStakedForPeriod[stakes[_user][_index].period] -= stakes[_user][ _index ].amount; stakes[_user][_index] = stakes[_user][stakes[_user].length - 1]; stakes[_user].pop(); } /// @notice Transfer native tokens. /// @param _amount Token amount /// @param _receiver Receiver address function rescueNativeToken( uint256 _amount, address _receiver ) external onlyRole(DEFAULT_ADMIN_ROLE) { Address.sendValue(payable(_receiver), _amount); } /// @notice Transfer tokens. /// @param _token Token contract address /// @param _amount Token amount /// @param _receiver Receiver address function rescueERC20Token( address _token, uint256 _amount, address _receiver ) external onlyRole(DEFAULT_ADMIN_ROLE) { // Ensure the contract doesn't allow rescuing the staking token in a way that affects the staked or reserved funds if (_token == address(masaToken)) { uint256 masaBalance = masaToken.balanceOf(address(this)); uint256 totalProtected = rewardsReserved + totalStaked; // This is the amount that must remain in the contract uint256 notAllocated = masaBalance - totalProtected - rewardsNotReserved; require( masaBalance - _amount >= totalProtected, "Operation would affect staked or reserved funds" ); // If rescuing the masaToken, adjust the not reserved rewards if (_amount > notAllocated) { rewardsNotReserved -= (_amount - notAllocated); } } // Perform the transfer IERC20(_token).safeTransfer(_receiver, _amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.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: * * ```solidity * 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}: * * ```solidity * 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. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { 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); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @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 virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), " is missing role ", Strings.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 virtual 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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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 revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ 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. * * May emit a {RoleGranted} event. * * [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}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ 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); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @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 // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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 ReentrancyGuard { // 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; constructor() { _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 making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
{ "optimizer": { "enabled": true, "runs": 1, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_masaTokenAddress","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"uint256","name":"_secondsForPeriod","type":"uint256"},{"internalType":"uint256","name":"_cooldownPeriod","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"cooldownPeriod","type":"uint256"}],"name":"CooldownPeriodUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"period","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rate","type":"uint256"}],"name":"InterestRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"period","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"interestRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"}],"name":"StakingDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"}],"name":"StakingEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"Unlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INTEREST_PRECISSION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"canClaimStake","outputs":[{"internalType":"bool","name":"canClaim","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"canUnlockStake","outputs":[{"internalType":"bool","name":"canUnlock","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cooldownPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPeriods","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getUserStake","outputs":[{"components":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"unlockTime","type":"uint256"},{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"uint256","name":"interestRate","type":"uint256"}],"internalType":"struct MasaStaking.Stake","name":"stake","type":"tuple"},{"internalType":"bool","name":"canUnlock","type":"bool"},{"internalType":"bool","name":"canClaim","type":"bool"}],"internalType":"struct MasaStaking.StakeDetails","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserStakeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserStakedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserStakesWithInterest","outputs":[{"internalType":"uint256[]","name":"principalAmounts","type":"uint256[]"},{"internalType":"uint256[]","name":"interestEarned","type":"uint256[]"}],"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":"uint256","name":"","type":"uint256"}],"name":"interestRates","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"masaToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"periods","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"rescueERC20Token","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"rescueNativeToken","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":[],"name":"rewardsNotReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondsForPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cooldownPeriod","type":"uint256"}],"name":"setCooldownPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_period","type":"uint256"},{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setInterestRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_period","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"unlockTime","type":"uint256"},{"internalType":"uint256","name":"period","type":"uint256"},{"internalType":"uint256","name":"interestRate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalStakedForPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b5060405162002ebc38038062002ebc83398101604081905262000034916200019f565b60016000556002805460ff19169055816200006c5760405162461bcd60e51b815260040162000063906200020d565b60405180910390fd5b6001600160a01b03841660805260a08290526003819055600b805460ff191660011790556200009d600084620000a7565b5050505062000249565b620000b38282620000b7565b5050565b620000c3828262000125565b620000b35760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b60006001600160a01b0382166200014c565b6200016f8162000152565b81146200017b57600080fd5b50565b80516200014c8162000164565b806200016f565b80516200014c816200018b565b60008060008060808587031215620001ba57620001ba600080fd5b6000620001c887876200017e565b9450506020620001db878288016200017e565b9350506040620001ee8782880162000192565b9250506060620002018782880162000192565b91505092959194509250565b602080825281016200014c81601a81527f496e76616c6964207365636f6e647320666f7220706572696f64000000000000602082015260400190565b60805160a051612c1c620002a0600039600081816102680152818161128d01526116660152600081816104b70152818161074801528181610e2d01528181610ff50152818161141301526114640152612c1c6000f3fe608060405234801561001057600080fd5b50600436106101cd5760003560e01c806301ffc9a7146101d257806304646a49146101fb578063067cf7aa146102115780631b545a171461021a5780631cfff51b14610243578063248a9ca31461025057806324d629ec14610263578063250284a81461028a57806328696de2146102945780632f2ff15d1461029e57806336568abe146102b1578063379607f5146102c45780633abac467146102d75780633f4ba83a146102ea57806345c9a558146102f2578063584b62a1146103075780635b9dac891461032b5780635c975abb1461033e5780635ffc4fea146103495780636198e339146103695780637418c3001461037c5780637713b5781461038f5780637b0472f01461039857806380ea3de1146103ab578063817b1cd2146103be5780638456cb59146103c757806391d14854146103cf5780639a4d8ba1146103e2578063a217fddf14610402578063beceed391461040a578063cec695fa1461041d578063cf91ada01461043d578063d0489c3a14610450578063d11aca6214610471578063d547741f14610479578063de05e7121461048c578063ea4a11041461049f578063ebda4396146104b2578063f09a89d4146104e6575b600080fd5b6101e56101e0366004611f95565b6104f9565b6040516101f29190611fc0565b60405180910390f35b61020460035481565b6040516101f29190611fd4565b61020460075481565b61020461022836600461200d565b6001600160a01b031660009081526004602052604090205490565b600b546101e59060ff1681565b61020461025e36600461203f565b610530565b6102047f000000000000000000000000000000000000000000000000000000000000000081565b610204620f424081565b61029c610546565b005b61029c6102ac366004612060565b6105b4565b61029c6102bf366004612060565b6105d5565b61029c6102d236600461203f565b61060b565b6102046102e536600461200d565b6107bd565b61029c610844565b6102fa61087f565b6040516101f291906120fa565b61031a61031536600461210b565b6108d7565b6040516101f295949392919061213e565b61029c61033936600461218a565b610925565b60025460ff166101e5565b61020461035736600461203f565b600a6020526000908152604090205481565b61029c61037736600461203f565b610a41565b6101e561038a36600461210b565b610b93565b61020460085481565b61029c6103a636600461218a565b610c6e565b61029c6103b936600461203f565b610ed6565b61020460095481565b61029c610f45565b6101e56103dd366004612060565b610f75565b6102046103f036600461203f565b60056020526000908152604090205481565b610204600081565b61029c61041836600461203f565b610fa0565b61043061042b36600461210b565b611027565b6040516101f29190612240565b61029c61044b366004612060565b611115565b61046361045e36600461200d565b61112a565b6040516101f292919061224e565b61029c611381565b61029c610487366004612060565b6113ea565b61029c61049a366004612273565b611406565b6102046104ad36600461203f565b61157d565b6104d97f000000000000000000000000000000000000000000000000000000000000000081565b6040516101f291906122fb565b6101e56104f436600461210b565b61159e565b60006001600160e01b03198216637965db0b60e01b148061052a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000908152600160208190526040909120015490565b6000610551816116b5565b600b5460ff1661057c5760405162461bcd60e51b81526004016105739061233e565b60405180910390fd5b600b805460ff1916905560405133907f9235e601663aec0db4f23459c059a6aadd04045aaf55631e7765d8999b0e31b090600090a250565b6105bd82610530565b6105c6816116b5565b6105d083836116bf565b505050565b6001600160a01b03811633146105fd5760405162461bcd60e51b81526004016105739061239d565b610607828261172a565b5050565b610613611791565b61061b6117ba565b3360009081526004602052604090205481106106495760405162461bcd60e51b8152600401610573906123d1565b33600090815260046020526040812080548390811061066a5761066a6123e1565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506106c13383610b93565b6106dd5760405162461bcd60e51b815260040161057390612437565b60006106ed620f4240606461245d565b608083015183516106fe919061245d565b610708919061248b565b905061071433846117df565b8060086000828254610726919061249f565b9091555050815161076f90339061073e9084906124b2565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190611a26565b815160405133917f9cdcf2f7714cca3508c7f0110b04a90a80a3a8dd0e35de99689db74d28c5383e916107a69190859088906124c5565b60405180910390a250506107ba6001600055565b50565b600080805b6001600160a01b03841660009081526004602052604090205481101561083d576001600160a01b038416600090815260046020526040902080548290811061080c5761080c6123e1565b9060005260206000209060050201600001548261082991906124b2565b915080610835816124ed565b9150506107c2565b5092915050565b600061084f816116b5565b610857611a7c565b600080516020612ba7833981519152336040516108749190612510565b60405180910390a150565b606060068054806020026020016040519081016040528092919081815260200182805480156108cd57602002820191906000526020600020905b8154815260200190600101908083116108b9575b5050505050905090565b600460205281600052604060002081815481106108f357600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b6000610930816116b5565b60008381526005602052604090205482900361095e5760405162461bcd60e51b815260040161057390612545565b6000838152600560205260408120839055600654815b818110156109bb578560068281548110610990576109906123e1565b9060005260206000200154036109a957600192506109bb565b806109b3816124ed565b915050610974565b50816109f757600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f018590555b336001600160a01b03167f3aebbb85b9698ba4e1588e9f25e8e3bb8d3c5fb5199f6b36b362e6775947b3838686604051610a32929190612555565b60405180910390a25050505050565b610a49611791565b610a516117ba565b336000908152600460205260409020548110610a7f5760405162461bcd60e51b8152600401610573906123d1565b336000908152600460205260408120805483908110610aa057610aa06123e1565b90600052602060002090600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050610af7338361159e565b610b135760405162461bcd60e51b8152600401610573906125af565b336000908152600460205260409020805442919084908110610b3757610b376123e1565b6000918252602090912060026005909202010155805160405133917f3f2f29fa02cc34566ac167b446be0be9e0254cac18eda93b2dfe6a7a7c8affb991610b8091908690612555565b60405180910390a2506107ba6001600055565b6001600160a01b0382166000908152600460205260408120548210610bca5760405162461bcd60e51b8152600401610573906123d1565b6001600160a01b0383166000908152600460205260408120805484908110610bf457610bf46123e1565b90600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050905060008160400151118015610c6657506003548160400151610c6291906124b2565b4210155b949350505050565b610c76611791565b610c7e6117ba565b600b5460ff16610ca05760405162461bcd60e51b8152600401610573906125f3565b600081815260056020526040902054610ccb5760405162461bcd60e51b815260040161057390612630565b60008211610ceb5760405162461bcd60e51b815260040161057390612665565b6000610cfb620f4240606461245d565b600083815260056020526040902054610d14908561245d565b610d1e919061248b565b9050806007541015610d425760405162461bcd60e51b8152600401610573906126bb565b8260096000828254610d5491906124b2565b90915550506000828152600a602052604081208054859290610d779084906124b2565b925050819055508060076000828254610d90919061249f565b925050819055508060086000828254610da991906124b2565b9091555050336000818152600460208181526040808420815160a08101835289815242818501908152818401878152606083018b81528b895260058088529589205460808501908152855460018181018855968b529790992093519690950290920194855551918401919091555160028301555160038201559151910155610e5d907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316903086611ab6565b60008281526005602090815260408083205433808552600490935292205490917f6381ea17a5324d29cc015352644672ead5185c1c61a0d3a521eda97e35cec97e9186914291879190610eb29060019061249f565b604051610ec395949392919061213e565b60405180910390a2506106076001600055565b6000610ee1816116b5565b8160035403610f025760405162461bcd60e51b8152600401610573906126fd565b600382905560405133907f9304c247b6a1da4f8ed290a9b1016a028a06c48d17d9f174b32c546c531220b490610f39908590611fd4565b60405180910390a25050565b6000610f50816116b5565b610f58611ad7565b600080516020612bc7833981519152336040516108749190612510565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610fa8611791565b610fb06117ba565b60008111610fd05760405162461bcd60e51b815260040161057390612665565b8060076000828254610fe291906124b2565b9091555061101d90506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084611ab6565b6107ba6001600055565b61102f611f22565b6001600160a01b03831660009081526004602052604090205482106110665760405162461bcd60e51b8152600401610573906123d1565b6001600160a01b0383166000908152600460205260408120805484908110611090576110906123e1565b90600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050905060405180606001604052808281526020016110f8868661159e565b151581526020016111098686610b93565b15159052949350505050565b6000611120816116b5565b6105d08284611b02565b6001600160a01b0381166000908152600460205260409020546060908190806001600160401b038111156111605761116061270d565b604051908082528060200260200182016040528015611189578160200160208202803683370190505b509250806001600160401b038111156111a4576111a461270d565b6040519080825280602002602001820160405280156111cd578160200160208202803683370190505b50915060005b8181101561137a576001600160a01b0385166000908152600460205260408120805483908110611205576112056123e1565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090508060000151858381518110611269576112696123e1565b6020026020010181815250506000816020015142611287919061249f565b905060007f000000000000000000000000000000000000000000000000000000000000000083606001516112bb919061245d565b9050808211156112c9578091505b60008082116112d95760006112f6565b816112ec84670de0b6b3a764000061245d565b6112f6919061248b565b905060008460800151856000015161130e919061245d565b905061131e620f4240606461245d565b61133090670de0b6b3a764000061245d565b61133a838361245d565b611344919061248b565b888781518110611356576113566123e1565b60200260200101818152505050505050508080611372906124ed565b9150506111d3565b5050915091565b600061138c816116b5565b600b5460ff16156113af5760405162461bcd60e51b815260040161057390612754565b600b805460ff1916600117905560405133907fe260bbe81911ea5292accc26c8b035d1ffcb9b2e98cedf068d68cf42f5efef6490600090a250565b6113f382610530565b6113fc816116b5565b6105d0838361172a565b6000611411816116b5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031603611563576040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190611499903090600401612510565b602060405180830381865afa1580156114b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114da919061276f565b905060006009546008546114ee91906124b2565b905060006007548284611501919061249f565b61150b919061249f565b905081611518878561249f565b10156115365760405162461bcd60e51b8152600401610573906127dc565b8086111561155f57611548818761249f565b60076000828254611559919061249f565b90915550505b5050505b6115776001600160a01b0385168385611a26565b50505050565b6006818154811061158d57600080fd5b600091825260209091200154905081565b6001600160a01b03821660009081526004602052604081205482106115d55760405162461bcd60e51b8152600401610573906123d1565b6001600160a01b03831660009081526004602052604081208054849081106115ff576115ff6123e1565b90600052602060002090600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050600081604001511115611662576000915061083d565b60007f00000000000000000000000000000000000000000000000000000000000000008260600151611694919061245d565b905060008183602001516116a891906124b2565b4210159695505050505050565b6107ba8133611b9e565b6116c98282610f75565b6106075760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6117348282610f75565b156106075760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6002600054036117b35760405162461bcd60e51b815260040161057390612820565b6002600055565b60025460ff16156117dd5760405162461bcd60e51b815260040161057390612857565b565b6001600160a01b03821660009081526004602052604090205481106118165760405162461bcd60e51b8152600401610573906123d1565b6001600160a01b0382166000908152600460205260409020805482908110611840576118406123e1565b90600052602060002090600502016000015460096000828254611863919061249f565b90915550506001600160a01b0382166000908152600460205260409020805482908110611892576118926123e1565b906000526020600020906005020160000154600a600060046000866001600160a01b03166001600160a01b0316815260200190815260200160002084815481106118de576118de6123e1565b9060005260206000209060050201600301548152602001908152602001600020600082825461190d919061249f565b90915550506001600160a01b038216600090815260046020526040902080546119389060019061249f565b81548110611948576119486123e1565b906000526020600020906005020160046000846001600160a01b03166001600160a01b03168152602001908152602001600020828154811061198c5761198c6123e1565b600091825260208083208454600590930201918255600180850154908301556002808501549083015560038085015490830155600493840154918401919091556001600160a01b038516825291909152604090208054806119ef576119ef612867565b6000828152602081206005600019909301928302018181556001810182905560028101829055600381018290556004015590555050565b6105d08363a9059cbb60e01b8484604051602401611a4592919061287d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611bf7565b611a84611c89565b6002805460ff19169055600080516020612ba7833981519152335b604051611aac9190612510565b60405180910390a1565b611577846323b872dd60e01b858585604051602401611a459392919061288b565b611adf6117ba565b6002805460ff19166001179055600080516020612bc7833981519152611a9f3390565b80471015611b225760405162461bcd60e51b8152600401610573906128da565b6000826001600160a01b031682604051611b3b906128ea565b60006040518083038185875af1925050503d8060008114611b78576040519150601f19603f3d011682016040523d82523d6000602084013e611b7d565b606091505b50509050806105d05760405162461bcd60e51b81526004016105739061294c565b611ba88282610f75565b61060757611bb581611cab565b611bc0836020611cbd565b604051602001611bd19291906129a2565b60408051601f198184030181529082905262461bcd60e51b825261057391600401612a26565b6000611c4c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e2f9092919063ffffffff16565b9050805160001480611c6d575080806020019051810190611c6d9190612a4a565b6105d05760405162461bcd60e51b815260040161057390612ab2565b60025460ff166117dd5760405162461bcd60e51b815260040161057390612aed565b606061052a6001600160a01b03831660145b60606000611ccc83600261245d565b611cd79060026124b2565b6001600160401b03811115611cee57611cee61270d565b6040519080825280601f01601f191660200182016040528015611d18576020820181803683370190505b509050600360fc1b81600081518110611d3357611d336123e1565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611d6257611d626123e1565b60200101906001600160f81b031916908160001a9053506000611d8684600261245d565b611d919060016124b2565b90505b6001811115611e09576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611dc557611dc56123e1565b1a60f81b828281518110611ddb57611ddb6123e1565b60200101906001600160f81b031916908160001a90535060049490941c93611e0281612afd565b9050611d94565b508315611e285760405162461bcd60e51b815260040161057390612b46565b9392505050565b6060610c66848460008585600080866001600160a01b03168587604051611e569190612b56565b60006040518083038185875af1925050503d8060008114611e93576040519150601f19603f3d011682016040523d82523d6000602084013e611e98565b606091505b5091509150611ea987838387611eb4565b979650505050505050565b60608315611ef3578251600003611eec576001600160a01b0385163b611eec5760405162461bcd60e51b815260040161057390612b96565b5081610c66565b610c668383815115611f085781518083602001fd5b8060405162461bcd60e51b81526004016105739190612a26565b6040518060600160405280611f5f6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b815260006020820181905260409091015290565b6001600160e01b031981165b81146107ba57600080fd5b803561052a81611f73565b600060208284031215611faa57611faa600080fd5b6000610c668484611f8a565b8015155b82525050565b6020810161052a8284611fb6565b80611fba565b6020810161052a8284611fce565b6001600160a01b031690565b600061052a82611fe2565b611f7f81611fee565b803561052a81611ff9565b60006020828403121561202257612022600080fd5b6000610c668484612002565b80611f7f565b803561052a8161202e565b60006020828403121561205457612054600080fd5b6000610c668484612034565b6000806040838503121561207657612076600080fd5b60006120828585612034565b925050602061209385828601612002565b9150509250929050565b60006120a98383611fce565b505060200190565b60006120bb825190565b80845260209384019383018060005b838110156120ef5781516120de888261209d565b9750602083019250506001016120ca565b509495945050505050565b60208082528101611e2881846120b1565b6000806040838503121561212157612121600080fd5b600061212d8585612002565b925050602061209385828601612034565b60a0810161214c8288611fce565b6121596020830187611fce565b6121666040830186611fce565b6121736060830185611fce565b6121806080830184611fce565b9695505050505050565b600080604083850312156121a0576121a0600080fd5b600061212d8585612034565b805160a08301906121bd8482611fce565b5060208201516121d06020850182611fce565b5060408201516121e36040850182611fce565b5060608201516121f66060850182611fce565b5060808201516115776080850182611fce565b805160e083019061221a84826121ac565b50602082015161222d60a0850182611fb6565b50604082015161157760c0850182611fb6565b60e0810161052a8284612209565b6040808252810161225f81856120b1565b90508181036020830152610c6681846120b1565b60008060006060848603121561228b5761228b600080fd5b60006122978686612002565b93505060206122a886828701612034565b92505060406122b986828701612002565b9150509250925092565b600061052a6122d76122d484611fe2565b90565b611fe2565b600061052a826122c3565b600061052a826122dc565b611fba816122e7565b6020810161052a82846122f2565b601b81526000602082017a14dd185ada5b99c81a5cc8185b1c9958591e48191a5cd8589b1959602a1b815291505b5060200190565b6020808252810161052a81612309565b602f81526000602082017f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636581526e103937b632b9903337b91039b2b63360891b602082015291505b5060400190565b6020808252810161052a8161234e565b600d81526000602082016c092dcecc2d8d2c840d2dcc8caf609b1b81529150612337565b6020808252810161052a816123ad565b634e487b7160e01b600052603260045260246000fd5b602381526000602082017f436f6f6c646f776e20706572696f6420686173206e6f742079657420656c61708152621cd95960ea1b60208201529150612396565b6020808252810161052a816123f7565b634e487b7160e01b600052601160045260246000fd5b81810280821583820485141761083d5761083d612447565b634e487b7160e01b600052601260045260246000fd5b60008261249a5761249a612475565b500490565b8181038181111561052a5761052a612447565b8082018082111561052a5761052a612447565b606081016124d38286611fce565b6124e06020830185611fce565b610c666040830184611fce565b6000600019820361250057612500612447565b5060010190565b611fba81611fee565b6020810161052a8284612507565b601081526000602082016f52617465206973207468652073616d6560801b81529150612337565b6020808252810161052a8161251e565b604081016125638285611fce565b611e286020830184611fce565b602281526000602082017f5374616b696e6720706572696f6420686173206e6f742079657420656c617073815261195960f21b60208201529150612396565b6020808252810161052a81612570565b601d81526000602082017f5374616b696e672069732063757272656e746c792064697361626c656400000081529150612337565b6020808252810161052a816125bf565b6016815260006020820175125b9d985b1a59081cdd185ada5b99c81c195c9a5bd960521b81529150612337565b6020808252810161052a81612603565b600e81526000602082016d125b9d985b1a5908185b5bdd5b9d60921b81529150612337565b6020808252810161052a81612640565b602981526000602082017f4e6f7420656e6f756768207265776172647320746f207265736572766520666f81526872207374616b696e6760b81b60208201529150612396565b6020808252810161052a81612675565b601b81526000602082017a436f6f6c646f776e20706572696f64206973207468652073616d6560281b81529150612337565b6020808252810161052a816126cb565b634e487b7160e01b600052604160045260246000fd5b601a81526000602082017914dd185ada5b99c81a5cc8185b1c9958591e48195b98589b195960321b81529150612337565b6020808252810161052a81612723565b805161052a8161202e565b60006020828403121561278457612784600080fd5b6000610c668484612764565b602f81526000602082017f4f7065726174696f6e20776f756c6420616666656374207374616b6564206f7281526e2072657365727665642066756e647360881b60208201529150612396565b6020808252810161052a81612790565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081529150612337565b6020808252810161052a816127ec565b601081526000602082016f14185d5cd8589b194e881c185d5cd95960821b81529150612337565b6020808252810161052a81612830565b634e487b7160e01b600052603160045260246000fd5b604081016125638285612507565b606081016128998286612507565b6124e06020830185612507565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150612337565b6020808252810161052a816128a6565b600061052a826122d4565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c20728152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b60208201529150612396565b6020808252810161052a816128f5565b60005b8381101561297757818101518382015260200161295f565b50506000910152565b600061298a825190565b61299881856020860161295c565b9290920192915050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260170160006129ce8285612980565b7001034b99036b4b9b9b4b733903937b6329607d1b81526011019150610c668284612980565b60006129fe825190565b808452602084019350612a1581856020860161295c565b601f01601f19169290920192915050565b60208082528101611e2881846129f4565b801515611f7f565b805161052a81612a37565b600060208284031215612a5f57612a5f600080fd5b6000610c668484612a3f565b602a81526000602082017f5361666545524332303a204552433230206f7065726174696f6e20646964206e8152691bdd081cdd58d8d9595960b21b60208201529150612396565b6020808252810161052a81612a6b565b601481526000602082017314185d5cd8589b194e881b9bdd081c185d5cd95960621b81529150612337565b6020808252810161052a81612ac2565b600081612b0c57612b0c612447565b506000190190565b60208082527f537472696e67733a20686578206c656e67746820696e73756666696369656e7491019081526000612337565b6020808252810161052a81612b14565b6000611e288284612980565b601d81526000602082017f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081529150612337565b6020808252810161052a81612b6256fe5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258a26469706673582212200cb57a38ff92fb68fc9003df175b8132e1726cf2e821242a41458e74fad3176f64736f6c63430008120033000000000000000000000000944824290cc12f31ae18ef51216a223ba40630920000000000000000000000000640ac8ead0c5ebf0dc94b08bf2393768e3cb6260000000000000000000000000000000000000000000000000000000000278d0000000000000000000000000000000000000000000000000000000000001baf80
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cd5760003560e01c806301ffc9a7146101d257806304646a49146101fb578063067cf7aa146102115780631b545a171461021a5780631cfff51b14610243578063248a9ca31461025057806324d629ec14610263578063250284a81461028a57806328696de2146102945780632f2ff15d1461029e57806336568abe146102b1578063379607f5146102c45780633abac467146102d75780633f4ba83a146102ea57806345c9a558146102f2578063584b62a1146103075780635b9dac891461032b5780635c975abb1461033e5780635ffc4fea146103495780636198e339146103695780637418c3001461037c5780637713b5781461038f5780637b0472f01461039857806380ea3de1146103ab578063817b1cd2146103be5780638456cb59146103c757806391d14854146103cf5780639a4d8ba1146103e2578063a217fddf14610402578063beceed391461040a578063cec695fa1461041d578063cf91ada01461043d578063d0489c3a14610450578063d11aca6214610471578063d547741f14610479578063de05e7121461048c578063ea4a11041461049f578063ebda4396146104b2578063f09a89d4146104e6575b600080fd5b6101e56101e0366004611f95565b6104f9565b6040516101f29190611fc0565b60405180910390f35b61020460035481565b6040516101f29190611fd4565b61020460075481565b61020461022836600461200d565b6001600160a01b031660009081526004602052604090205490565b600b546101e59060ff1681565b61020461025e36600461203f565b610530565b6102047f0000000000000000000000000000000000000000000000000000000000278d0081565b610204620f424081565b61029c610546565b005b61029c6102ac366004612060565b6105b4565b61029c6102bf366004612060565b6105d5565b61029c6102d236600461203f565b61060b565b6102046102e536600461200d565b6107bd565b61029c610844565b6102fa61087f565b6040516101f291906120fa565b61031a61031536600461210b565b6108d7565b6040516101f295949392919061213e565b61029c61033936600461218a565b610925565b60025460ff166101e5565b61020461035736600461203f565b600a6020526000908152604090205481565b61029c61037736600461203f565b610a41565b6101e561038a36600461210b565b610b93565b61020460085481565b61029c6103a636600461218a565b610c6e565b61029c6103b936600461203f565b610ed6565b61020460095481565b61029c610f45565b6101e56103dd366004612060565b610f75565b6102046103f036600461203f565b60056020526000908152604090205481565b610204600081565b61029c61041836600461203f565b610fa0565b61043061042b36600461210b565b611027565b6040516101f29190612240565b61029c61044b366004612060565b611115565b61046361045e36600461200d565b61112a565b6040516101f292919061224e565b61029c611381565b61029c610487366004612060565b6113ea565b61029c61049a366004612273565b611406565b6102046104ad36600461203f565b61157d565b6104d97f000000000000000000000000944824290cc12f31ae18ef51216a223ba406309281565b6040516101f291906122fb565b6101e56104f436600461210b565b61159e565b60006001600160e01b03198216637965db0b60e01b148061052a57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000908152600160208190526040909120015490565b6000610551816116b5565b600b5460ff1661057c5760405162461bcd60e51b81526004016105739061233e565b60405180910390fd5b600b805460ff1916905560405133907f9235e601663aec0db4f23459c059a6aadd04045aaf55631e7765d8999b0e31b090600090a250565b6105bd82610530565b6105c6816116b5565b6105d083836116bf565b505050565b6001600160a01b03811633146105fd5760405162461bcd60e51b81526004016105739061239d565b610607828261172a565b5050565b610613611791565b61061b6117ba565b3360009081526004602052604090205481106106495760405162461bcd60e51b8152600401610573906123d1565b33600090815260046020526040812080548390811061066a5761066a6123e1565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506106c13383610b93565b6106dd5760405162461bcd60e51b815260040161057390612437565b60006106ed620f4240606461245d565b608083015183516106fe919061245d565b610708919061248b565b905061071433846117df565b8060086000828254610726919061249f565b9091555050815161076f90339061073e9084906124b2565b6001600160a01b037f000000000000000000000000944824290cc12f31ae18ef51216a223ba4063092169190611a26565b815160405133917f9cdcf2f7714cca3508c7f0110b04a90a80a3a8dd0e35de99689db74d28c5383e916107a69190859088906124c5565b60405180910390a250506107ba6001600055565b50565b600080805b6001600160a01b03841660009081526004602052604090205481101561083d576001600160a01b038416600090815260046020526040902080548290811061080c5761080c6123e1565b9060005260206000209060050201600001548261082991906124b2565b915080610835816124ed565b9150506107c2565b5092915050565b600061084f816116b5565b610857611a7c565b600080516020612ba7833981519152336040516108749190612510565b60405180910390a150565b606060068054806020026020016040519081016040528092919081815260200182805480156108cd57602002820191906000526020600020905b8154815260200190600101908083116108b9575b5050505050905090565b600460205281600052604060002081815481106108f357600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b6000610930816116b5565b60008381526005602052604090205482900361095e5760405162461bcd60e51b815260040161057390612545565b6000838152600560205260408120839055600654815b818110156109bb578560068281548110610990576109906123e1565b9060005260206000200154036109a957600192506109bb565b806109b3816124ed565b915050610974565b50816109f757600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f018590555b336001600160a01b03167f3aebbb85b9698ba4e1588e9f25e8e3bb8d3c5fb5199f6b36b362e6775947b3838686604051610a32929190612555565b60405180910390a25050505050565b610a49611791565b610a516117ba565b336000908152600460205260409020548110610a7f5760405162461bcd60e51b8152600401610573906123d1565b336000908152600460205260408120805483908110610aa057610aa06123e1565b90600052602060002090600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050610af7338361159e565b610b135760405162461bcd60e51b8152600401610573906125af565b336000908152600460205260409020805442919084908110610b3757610b376123e1565b6000918252602090912060026005909202010155805160405133917f3f2f29fa02cc34566ac167b446be0be9e0254cac18eda93b2dfe6a7a7c8affb991610b8091908690612555565b60405180910390a2506107ba6001600055565b6001600160a01b0382166000908152600460205260408120548210610bca5760405162461bcd60e51b8152600401610573906123d1565b6001600160a01b0383166000908152600460205260408120805484908110610bf457610bf46123e1565b90600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050905060008160400151118015610c6657506003548160400151610c6291906124b2565b4210155b949350505050565b610c76611791565b610c7e6117ba565b600b5460ff16610ca05760405162461bcd60e51b8152600401610573906125f3565b600081815260056020526040902054610ccb5760405162461bcd60e51b815260040161057390612630565b60008211610ceb5760405162461bcd60e51b815260040161057390612665565b6000610cfb620f4240606461245d565b600083815260056020526040902054610d14908561245d565b610d1e919061248b565b9050806007541015610d425760405162461bcd60e51b8152600401610573906126bb565b8260096000828254610d5491906124b2565b90915550506000828152600a602052604081208054859290610d779084906124b2565b925050819055508060076000828254610d90919061249f565b925050819055508060086000828254610da991906124b2565b9091555050336000818152600460208181526040808420815160a08101835289815242818501908152818401878152606083018b81528b895260058088529589205460808501908152855460018181018855968b529790992093519690950290920194855551918401919091555160028301555160038201559151910155610e5d907f000000000000000000000000944824290cc12f31ae18ef51216a223ba40630926001600160a01b0316903086611ab6565b60008281526005602090815260408083205433808552600490935292205490917f6381ea17a5324d29cc015352644672ead5185c1c61a0d3a521eda97e35cec97e9186914291879190610eb29060019061249f565b604051610ec395949392919061213e565b60405180910390a2506106076001600055565b6000610ee1816116b5565b8160035403610f025760405162461bcd60e51b8152600401610573906126fd565b600382905560405133907f9304c247b6a1da4f8ed290a9b1016a028a06c48d17d9f174b32c546c531220b490610f39908590611fd4565b60405180910390a25050565b6000610f50816116b5565b610f58611ad7565b600080516020612bc7833981519152336040516108749190612510565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610fa8611791565b610fb06117ba565b60008111610fd05760405162461bcd60e51b815260040161057390612665565b8060076000828254610fe291906124b2565b9091555061101d90506001600160a01b037f000000000000000000000000944824290cc12f31ae18ef51216a223ba406309216333084611ab6565b6107ba6001600055565b61102f611f22565b6001600160a01b03831660009081526004602052604090205482106110665760405162461bcd60e51b8152600401610573906123d1565b6001600160a01b0383166000908152600460205260408120805484908110611090576110906123e1565b90600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050905060405180606001604052808281526020016110f8868661159e565b151581526020016111098686610b93565b15159052949350505050565b6000611120816116b5565b6105d08284611b02565b6001600160a01b0381166000908152600460205260409020546060908190806001600160401b038111156111605761116061270d565b604051908082528060200260200182016040528015611189578160200160208202803683370190505b509250806001600160401b038111156111a4576111a461270d565b6040519080825280602002602001820160405280156111cd578160200160208202803683370190505b50915060005b8181101561137a576001600160a01b0385166000908152600460205260408120805483908110611205576112056123e1565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090508060000151858381518110611269576112696123e1565b6020026020010181815250506000816020015142611287919061249f565b905060007f0000000000000000000000000000000000000000000000000000000000278d0083606001516112bb919061245d565b9050808211156112c9578091505b60008082116112d95760006112f6565b816112ec84670de0b6b3a764000061245d565b6112f6919061248b565b905060008460800151856000015161130e919061245d565b905061131e620f4240606461245d565b61133090670de0b6b3a764000061245d565b61133a838361245d565b611344919061248b565b888781518110611356576113566123e1565b60200260200101818152505050505050508080611372906124ed565b9150506111d3565b5050915091565b600061138c816116b5565b600b5460ff16156113af5760405162461bcd60e51b815260040161057390612754565b600b805460ff1916600117905560405133907fe260bbe81911ea5292accc26c8b035d1ffcb9b2e98cedf068d68cf42f5efef6490600090a250565b6113f382610530565b6113fc816116b5565b6105d0838361172a565b6000611411816116b5565b7f000000000000000000000000944824290cc12f31ae18ef51216a223ba40630926001600160a01b0316846001600160a01b031603611563576040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000944824290cc12f31ae18ef51216a223ba406309216906370a0823190611499903090600401612510565b602060405180830381865afa1580156114b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114da919061276f565b905060006009546008546114ee91906124b2565b905060006007548284611501919061249f565b61150b919061249f565b905081611518878561249f565b10156115365760405162461bcd60e51b8152600401610573906127dc565b8086111561155f57611548818761249f565b60076000828254611559919061249f565b90915550505b5050505b6115776001600160a01b0385168385611a26565b50505050565b6006818154811061158d57600080fd5b600091825260209091200154905081565b6001600160a01b03821660009081526004602052604081205482106115d55760405162461bcd60e51b8152600401610573906123d1565b6001600160a01b03831660009081526004602052604081208054849081106115ff576115ff6123e1565b90600052602060002090600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050600081604001511115611662576000915061083d565b60007f0000000000000000000000000000000000000000000000000000000000278d008260600151611694919061245d565b905060008183602001516116a891906124b2565b4210159695505050505050565b6107ba8133611b9e565b6116c98282610f75565b6106075760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6117348282610f75565b156106075760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6002600054036117b35760405162461bcd60e51b815260040161057390612820565b6002600055565b60025460ff16156117dd5760405162461bcd60e51b815260040161057390612857565b565b6001600160a01b03821660009081526004602052604090205481106118165760405162461bcd60e51b8152600401610573906123d1565b6001600160a01b0382166000908152600460205260409020805482908110611840576118406123e1565b90600052602060002090600502016000015460096000828254611863919061249f565b90915550506001600160a01b0382166000908152600460205260409020805482908110611892576118926123e1565b906000526020600020906005020160000154600a600060046000866001600160a01b03166001600160a01b0316815260200190815260200160002084815481106118de576118de6123e1565b9060005260206000209060050201600301548152602001908152602001600020600082825461190d919061249f565b90915550506001600160a01b038216600090815260046020526040902080546119389060019061249f565b81548110611948576119486123e1565b906000526020600020906005020160046000846001600160a01b03166001600160a01b03168152602001908152602001600020828154811061198c5761198c6123e1565b600091825260208083208454600590930201918255600180850154908301556002808501549083015560038085015490830155600493840154918401919091556001600160a01b038516825291909152604090208054806119ef576119ef612867565b6000828152602081206005600019909301928302018181556001810182905560028101829055600381018290556004015590555050565b6105d08363a9059cbb60e01b8484604051602401611a4592919061287d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611bf7565b611a84611c89565b6002805460ff19169055600080516020612ba7833981519152335b604051611aac9190612510565b60405180910390a1565b611577846323b872dd60e01b858585604051602401611a459392919061288b565b611adf6117ba565b6002805460ff19166001179055600080516020612bc7833981519152611a9f3390565b80471015611b225760405162461bcd60e51b8152600401610573906128da565b6000826001600160a01b031682604051611b3b906128ea565b60006040518083038185875af1925050503d8060008114611b78576040519150601f19603f3d011682016040523d82523d6000602084013e611b7d565b606091505b50509050806105d05760405162461bcd60e51b81526004016105739061294c565b611ba88282610f75565b61060757611bb581611cab565b611bc0836020611cbd565b604051602001611bd19291906129a2565b60408051601f198184030181529082905262461bcd60e51b825261057391600401612a26565b6000611c4c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e2f9092919063ffffffff16565b9050805160001480611c6d575080806020019051810190611c6d9190612a4a565b6105d05760405162461bcd60e51b815260040161057390612ab2565b60025460ff166117dd5760405162461bcd60e51b815260040161057390612aed565b606061052a6001600160a01b03831660145b60606000611ccc83600261245d565b611cd79060026124b2565b6001600160401b03811115611cee57611cee61270d565b6040519080825280601f01601f191660200182016040528015611d18576020820181803683370190505b509050600360fc1b81600081518110611d3357611d336123e1565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611d6257611d626123e1565b60200101906001600160f81b031916908160001a9053506000611d8684600261245d565b611d919060016124b2565b90505b6001811115611e09576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611dc557611dc56123e1565b1a60f81b828281518110611ddb57611ddb6123e1565b60200101906001600160f81b031916908160001a90535060049490941c93611e0281612afd565b9050611d94565b508315611e285760405162461bcd60e51b815260040161057390612b46565b9392505050565b6060610c66848460008585600080866001600160a01b03168587604051611e569190612b56565b60006040518083038185875af1925050503d8060008114611e93576040519150601f19603f3d011682016040523d82523d6000602084013e611e98565b606091505b5091509150611ea987838387611eb4565b979650505050505050565b60608315611ef3578251600003611eec576001600160a01b0385163b611eec5760405162461bcd60e51b815260040161057390612b96565b5081610c66565b610c668383815115611f085781518083602001fd5b8060405162461bcd60e51b81526004016105739190612a26565b6040518060600160405280611f5f6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b815260006020820181905260409091015290565b6001600160e01b031981165b81146107ba57600080fd5b803561052a81611f73565b600060208284031215611faa57611faa600080fd5b6000610c668484611f8a565b8015155b82525050565b6020810161052a8284611fb6565b80611fba565b6020810161052a8284611fce565b6001600160a01b031690565b600061052a82611fe2565b611f7f81611fee565b803561052a81611ff9565b60006020828403121561202257612022600080fd5b6000610c668484612002565b80611f7f565b803561052a8161202e565b60006020828403121561205457612054600080fd5b6000610c668484612034565b6000806040838503121561207657612076600080fd5b60006120828585612034565b925050602061209385828601612002565b9150509250929050565b60006120a98383611fce565b505060200190565b60006120bb825190565b80845260209384019383018060005b838110156120ef5781516120de888261209d565b9750602083019250506001016120ca565b509495945050505050565b60208082528101611e2881846120b1565b6000806040838503121561212157612121600080fd5b600061212d8585612002565b925050602061209385828601612034565b60a0810161214c8288611fce565b6121596020830187611fce565b6121666040830186611fce565b6121736060830185611fce565b6121806080830184611fce565b9695505050505050565b600080604083850312156121a0576121a0600080fd5b600061212d8585612034565b805160a08301906121bd8482611fce565b5060208201516121d06020850182611fce565b5060408201516121e36040850182611fce565b5060608201516121f66060850182611fce565b5060808201516115776080850182611fce565b805160e083019061221a84826121ac565b50602082015161222d60a0850182611fb6565b50604082015161157760c0850182611fb6565b60e0810161052a8284612209565b6040808252810161225f81856120b1565b90508181036020830152610c6681846120b1565b60008060006060848603121561228b5761228b600080fd5b60006122978686612002565b93505060206122a886828701612034565b92505060406122b986828701612002565b9150509250925092565b600061052a6122d76122d484611fe2565b90565b611fe2565b600061052a826122c3565b600061052a826122dc565b611fba816122e7565b6020810161052a82846122f2565b601b81526000602082017a14dd185ada5b99c81a5cc8185b1c9958591e48191a5cd8589b1959602a1b815291505b5060200190565b6020808252810161052a81612309565b602f81526000602082017f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636581526e103937b632b9903337b91039b2b63360891b602082015291505b5060400190565b6020808252810161052a8161234e565b600d81526000602082016c092dcecc2d8d2c840d2dcc8caf609b1b81529150612337565b6020808252810161052a816123ad565b634e487b7160e01b600052603260045260246000fd5b602381526000602082017f436f6f6c646f776e20706572696f6420686173206e6f742079657420656c61708152621cd95960ea1b60208201529150612396565b6020808252810161052a816123f7565b634e487b7160e01b600052601160045260246000fd5b81810280821583820485141761083d5761083d612447565b634e487b7160e01b600052601260045260246000fd5b60008261249a5761249a612475565b500490565b8181038181111561052a5761052a612447565b8082018082111561052a5761052a612447565b606081016124d38286611fce565b6124e06020830185611fce565b610c666040830184611fce565b6000600019820361250057612500612447565b5060010190565b611fba81611fee565b6020810161052a8284612507565b601081526000602082016f52617465206973207468652073616d6560801b81529150612337565b6020808252810161052a8161251e565b604081016125638285611fce565b611e286020830184611fce565b602281526000602082017f5374616b696e6720706572696f6420686173206e6f742079657420656c617073815261195960f21b60208201529150612396565b6020808252810161052a81612570565b601d81526000602082017f5374616b696e672069732063757272656e746c792064697361626c656400000081529150612337565b6020808252810161052a816125bf565b6016815260006020820175125b9d985b1a59081cdd185ada5b99c81c195c9a5bd960521b81529150612337565b6020808252810161052a81612603565b600e81526000602082016d125b9d985b1a5908185b5bdd5b9d60921b81529150612337565b6020808252810161052a81612640565b602981526000602082017f4e6f7420656e6f756768207265776172647320746f207265736572766520666f81526872207374616b696e6760b81b60208201529150612396565b6020808252810161052a81612675565b601b81526000602082017a436f6f6c646f776e20706572696f64206973207468652073616d6560281b81529150612337565b6020808252810161052a816126cb565b634e487b7160e01b600052604160045260246000fd5b601a81526000602082017914dd185ada5b99c81a5cc8185b1c9958591e48195b98589b195960321b81529150612337565b6020808252810161052a81612723565b805161052a8161202e565b60006020828403121561278457612784600080fd5b6000610c668484612764565b602f81526000602082017f4f7065726174696f6e20776f756c6420616666656374207374616b6564206f7281526e2072657365727665642066756e647360881b60208201529150612396565b6020808252810161052a81612790565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081529150612337565b6020808252810161052a816127ec565b601081526000602082016f14185d5cd8589b194e881c185d5cd95960821b81529150612337565b6020808252810161052a81612830565b634e487b7160e01b600052603160045260246000fd5b604081016125638285612507565b606081016128998286612507565b6124e06020830185612507565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150612337565b6020808252810161052a816128a6565b600061052a826122d4565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c20728152791958da5c1a595b9d081b585e481a185d99481c995d995c9d195960321b60208201529150612396565b6020808252810161052a816128f5565b60005b8381101561297757818101518382015260200161295f565b50506000910152565b600061298a825190565b61299881856020860161295c565b9290920192915050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260170160006129ce8285612980565b7001034b99036b4b9b9b4b733903937b6329607d1b81526011019150610c668284612980565b60006129fe825190565b808452602084019350612a1581856020860161295c565b601f01601f19169290920192915050565b60208082528101611e2881846129f4565b801515611f7f565b805161052a81612a37565b600060208284031215612a5f57612a5f600080fd5b6000610c668484612a3f565b602a81526000602082017f5361666545524332303a204552433230206f7065726174696f6e20646964206e8152691bdd081cdd58d8d9595960b21b60208201529150612396565b6020808252810161052a81612a6b565b601481526000602082017314185d5cd8589b194e881b9bdd081c185d5cd95960621b81529150612337565b6020808252810161052a81612ac2565b600081612b0c57612b0c612447565b506000190190565b60208082527f537472696e67733a20686578206c656e67746820696e73756666696369656e7491019081526000612337565b6020808252810161052a81612b14565b6000611e288284612980565b601d81526000602082017f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081529150612337565b6020808252810161052a81612b6256fe5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258a26469706673582212200cb57a38ff92fb68fc9003df175b8132e1726cf2e821242a41458e74fad3176f64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000944824290cc12f31ae18ef51216a223ba40630920000000000000000000000000640ac8ead0c5ebf0dc94b08bf2393768e3cb6260000000000000000000000000000000000000000000000000000000000278d0000000000000000000000000000000000000000000000000000000000001baf80
-----Decoded View---------------
Arg [0] : _masaTokenAddress (address): 0x944824290CC12F31ae18Ef51216A223Ba4063092
Arg [1] : _admin (address): 0x0640aC8ead0C5EBf0dc94b08bF2393768E3cb626
Arg [2] : _secondsForPeriod (uint256): 2592000
Arg [3] : _cooldownPeriod (uint256): 1814400
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000944824290cc12f31ae18ef51216a223ba4063092
Arg [1] : 0000000000000000000000000640ac8ead0c5ebf0dc94b08bf2393768e3cb626
Arg [2] : 0000000000000000000000000000000000000000000000000000000000278d00
Arg [3] : 00000000000000000000000000000000000000000000000000000000001baf80
Deployed Bytecode Sourcemap
829:18846:14:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2732:202:0;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2028:29:14;;;;;;;;;;;;;:::i;2281:33::-;;;;;;12113:118;;;;;;:::i;:::-;-1:-1:-1;;;;;12204:13:14;12178:7;12204:13;;;:6;:13;;;;;:20;;12113:118;2618:26;;;;;;;;;4504:129:0;;;;;;:::i;:::-;;:::i;1953:41:14:-;;;;;1852:55;;1898:9;1852:55;;4659:209;;;:::i;:::-;;4929:145:0;;;;;;:::i;:::-;;:::i;6038:214::-;;;;;;:::i;:::-;;:::i;10649:996:14:-;;;;;;:::i;:::-;;:::i;13249:285::-;;;;;;:::i;:::-;;:::i;5689:119::-;;;:::i;11857:94::-;;;:::i;:::-;;;;;;;:::i;2088:41::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;6111:707::-;;;;;;:::i;:::-;;:::i;1615:84:2:-;1685:7;;;;1615:84;;2474:55:14;;;;;;:::i;:::-;;;;;;;;;;;;;;9883:531;;;;;;:::i;:::-;;:::i;16904:395::-;;;;;;:::i;:::-;;:::i;2356:30::-;;;;;;8216:1431;;;;;;:::i;:::-;;:::i;7023:335::-;;;;;;:::i;:::-;;:::i;2442:26::-;;;;;;5434:113;;;:::i;3021:145:0:-;;;;;;:::i;:::-;;:::i;2135:48:14:-;;;;;;:::i;:::-;;;;;;;;;;;;;;2153:49:0;;2198:4;2153:49;;7601:239:14;;;;;;:::i;:::-;;:::i;12522:453::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;18239:186::-;;;;;;:::i;:::-;;:::i;14014:1636::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;5088:206::-;;;:::i;5354:147:0:-;;;;;;:::i;:::-;;:::i;18587:1086:14:-;;;;;;:::i;:::-;;:::i;2250:24::-;;;;;;:::i;:::-;;:::i;1914:33::-;;;;;;;;;;;;:::i;15993:572::-;;;;;;:::i;:::-;;:::i;2732:202:0:-;2817:4;-1:-1:-1;;;;;;2840:47:0;;-1:-1:-1;;;2840:47:0;;:87;;-1:-1:-1;;;;;;;;;;937:40:10;;;2891:36:0;2833:94;2732:202;-1:-1:-1;;2732:202:0:o;4504:129::-;4578:7;4604:12;;;:6;:12;;;;;;;;:22;;;4504:129::o;4659:209:14:-;2198:4:0;2631:16;2198:4;2631:10;:16::i;:::-;4741:14:14::1;::::0;::::1;;4733:54;;;;-1:-1:-1::0;;;4733:54:14::1;;;;;;;:::i;:::-;;;;;;;;;4797:14;:22:::0;;-1:-1:-1;;4797:22:14::1;::::0;;4834:27:::1;::::0;4850:10:::1;::::0;4834:27:::1;::::0;4814:5:::1;::::0;4834:27:::1;4659:209:::0;:::o;4929:145:0:-;5012:18;5025:4;5012:12;:18::i;:::-;2631:16;2642:4;2631:10;:16::i;:::-;5042:25:::1;5053:4;5059:7;5042:10;:25::i;:::-;4929:145:::0;;;:::o;6038:214::-;-1:-1:-1;;;;;6133:23:0;;734:10:8;6133:23:0;6125:83;;;;-1:-1:-1;;;6125:83:0;;;;;;;:::i;:::-;6219:26;6231:4;6237:7;6219:11;:26::i;:::-;6038:214;;:::o;10649:996:14:-;2261:21:3;:19;:21::i;:::-;1239:19:2::1;:17;:19::i;:::-;10750:10:14::2;10743:18;::::0;;;:6:::2;:18;::::0;;;;:25;10734:34;::::2;10726:60;;;;-1:-1:-1::0;;;10726:60:14::2;;;;;;;:::i;:::-;10828:10;10796:22;10821:18:::0;;;:6:::2;:18;::::0;;;;:26;;10840:6;;10821:26;::::2;;;;;:::i;:::-;;;;;;;;;;;10796:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;10949:33;10963:10;10975:6;10949:13;:33::i;:::-;10928:115;;;;-1:-1:-1::0;;;10928:115:14::2;;;;;;;:::i;:::-;11135:14;11211:25;1898:9;11211:3;:25;:::i;:::-;11172:22;::::0;::::2;::::0;11153:16;;:41:::2;::::0;11172:22;11153:41:::2;:::i;:::-;11152:85;;;;:::i;:::-;11135:102;;11305:32;11318:10;11330:6;11305:12;:32::i;:::-;11420:6;11401:15;;:25;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;11543:16:14;;11508:61:::2;::::0;11531:10:::2;::::0;11543:25:::2;::::0;11562:6;;11543:25:::2;:::i;:::-;-1:-1:-1::0;;;;;11508:9:14::2;:22;::::0;:61;:22:::2;:61::i;:::-;11605:16:::0;;11585:53:::2;::::0;11593:10:::2;::::0;11585:53:::2;::::0;::::2;::::0;11605:16;11623:6;;11631;;11585:53:::2;:::i;:::-;;;;;;;;10716:929;;2303:20:3::0;1716:1;2809:7;:22;2629:209;2303:20;10649:996:14;:::o;13249:285::-;13331:7;;;13384:115;-1:-1:-1;;;;;13408:13:14;;;;;;:6;:13;;;;;:20;13404:24;;13384:115;;;-1:-1:-1;;;;;13465:13:14;;;;;;:6;:13;;;;;:16;;13479:1;;13465:16;;;;;;:::i;:::-;;;;;;;;;;;:23;;;13449:39;;;;;:::i;:::-;;-1:-1:-1;13430:3:14;;;;:::i;:::-;;;;13384:115;;;-1:-1:-1;13515:12:14;13249:285;-1:-1:-1;;13249:285:14:o;5689:119::-;2198:4:0;2631:16;2198:4;2631:10;:16::i;:::-;5756:10:14::1;:8;:10::i;:::-;-1:-1:-1::0;;;;;;;;;;;5790:10:14::1;5781:20;;;;;;:::i;:::-;;;;;;;;5689:119:::0;:::o;11857:94::-;11902:16;11937:7;11930:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11857:94;:::o;2088:41::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2088:41:14;;-1:-1:-1;2088:41:14;;;:::o;6111:707::-;2198:4:0;2631:16;2198:4;2631:10;:16::i;:::-;6246:22:14::1;::::0;;;:13:::1;:22;::::0;;;;;:31;;;6238:60:::1;;;;-1:-1:-1::0;;;6238:60:14::1;;;;;;;:::i;:::-;6308:22;::::0;;;:13:::1;:22;::::0;;;;:30;;;6481:7:::1;:14:::0;6308:22;6505:170:::1;6529:13;6525:1;:17;6505:170;;;6581:7;6567;6575:1;6567:10;;;;;;;;:::i;:::-;;;;;;;;;:21:::0;6563:102:::1;;6623:4;6608:19;;6645:5;;6563:102;6544:3:::0;::::1;::::0;::::1;:::i;:::-;;;;6505:170;;;;6689:12;6684:65;;6717:7;:21:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;6717:21:14;;;;;::::1;::::0;;;6684:65:::1;6784:10;-1:-1:-1::0;;;;;6764:47:14::1;;6796:7;6805:5;6764:47;;;;;;;:::i;:::-;;;;;;;;6228:590;;6111:707:::0;;;:::o;9883:531::-;2261:21:3;:19;:21::i;:::-;1239:19:2::1;:17;:19::i;:::-;9985:10:14::2;9978:18;::::0;;;:6:::2;:18;::::0;;;;:25;9969:34;::::2;9961:60;;;;-1:-1:-1::0;;;9961:60:14::2;;;;;;;:::i;:::-;10063:10;10031:22;10056:18:::0;;;:6:::2;:18;::::0;;;;:26;;10075:6;;10056:26;::::2;;;;;:::i;:::-;;;;;;;;;;;10031:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;10185:34;10200:10;10212:6;10185:14;:34::i;:::-;10164:115;;;;-1:-1:-1::0;;;10164:115:14::2;;;;;;;:::i;:::-;10297:10;10290:18;::::0;;;:6:::2;:18;::::0;;;;:26;;10330:15:::2;::::0;10290:18;10309:6;;10290:26;::::2;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;:37:::2;:26;::::0;;::::2;;:37;:55:::0;10382:16;;10361:46:::2;::::0;10370:10:::2;::::0;10361:46:::2;::::0;::::2;::::0;10382:16;10400:6;;10361:46:::2;:::i;:::-;;;;;;;;9951:463;2303:20:3::0;1716:1;2809:7;:22;2629:209;16904:395:14;-1:-1:-1;;;;;17043:13:14;;17001;17043;;;:6;:13;;;;;:20;17034:29;;17026:55;;;;-1:-1:-1;;;17026:55:14;;;;;;;:::i;:::-;-1:-1:-1;;;;;17117:13:14;;17092:22;17117:13;;;:6;:13;;;;;:21;;17131:6;;17117:21;;;;;;:::i;:::-;;;;;;;;;;;17092:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17194:1;17171:9;:20;;;:24;:96;;;;;17253:14;;17230:9;:20;;;:37;;;;:::i;:::-;17211:15;:56;;17171:96;17148:119;16904:395;-1:-1:-1;;;;16904:395:14:o;8216:1431::-;2261:21:3;:19;:21::i;:::-;1239:19:2::1;:17;:19::i;:::-;8341:14:14::2;::::0;::::2;;8333:56;;;;-1:-1:-1::0;;;8333:56:14::2;;;;;;;:::i;:::-;8432:1;8407:22:::0;;;:13:::2;:22;::::0;;;;;8399:61:::2;;;;-1:-1:-1::0;;;8399:61:14::2;;;;;;;:::i;:::-;8488:1;8478:7;:11;8470:38;;;;-1:-1:-1::0;;;8470:38:14::2;;;;;;;:::i;:::-;8600:14;8667:25;1898:9;8667:3;:25;:::i;:::-;8628:22;::::0;;;:13:::2;:22;::::0;;;;;8618:32:::2;::::0;:7;:32:::2;:::i;:::-;8617:76;;;;:::i;:::-;8600:93;;8747:6;8725:18;;:28;;8704:116;;;;-1:-1:-1::0;;;8704:116:14::2;;;;;;;:::i;:::-;8846:7;8831:11;;:22;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;8863:29:14::2;::::0;;;:20:::2;:29;::::0;;;;:40;;8896:7;;8863:29;:40:::2;::::0;8896:7;;8863:40:::2;:::i;:::-;;;;;;;;8993:6;8971:18;;:28;;;;;;;:::i;:::-;;;;;;;;9081:6;9062:15;;:25;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;9105:10:14::2;9098:18;::::0;;;:6:::2;:18;::::0;;;;;;;9135:216;;::::2;::::0;::::2;::::0;;;;;9203:15:::2;9135:216:::0;;::::2;::::0;;;;;;;;;;;;;;;9314:22;;;:13:::2;:22:::0;;;;;;;9135:216;;;;;;9098:263;;::::2;::::0;;::::2;::::0;;;;;;;;;;;;;;::::2;::::0;;::::2;::::0;;;;;;::::2;::::0;;;;;::::2;::::0;::::2;::::0;;::::2;::::0;::::2;::::0;;;;::::2;::::0;9372:62:::2;::::0;:9:::2;-1:-1:-1::0;;;;;9372:26:14::2;::::0;9419:4:::2;9167:7:::0;9372:26:::2;:62::i;:::-;9565:22;::::0;;;:13:::2;:22;::::0;;;;;;;;9470:10:::2;9601:18:::0;;;:6:::2;:18:::0;;;;;:25;9470:10;;9450:190:::2;::::0;9494:7;;9515:15:::2;::::0;9544:7;;9565:22;9601:29:::2;::::0;9629:1:::2;::::0;9601:29:::2;:::i;:::-;9450:190;;;;;;;;;;:::i;:::-;;;;;;;;8323:1324;2303:20:3::0;1716:1;2809:7;:22;2629:209;7023:335:14;2198:4:0;2631:16;2198:4;2631:10;:16::i;:::-;7176:15:14::1;7158:14;;:33:::0;7137:107:::1;;;;-1:-1:-1::0;;;7137:107:14::1;;;;;;;:::i;:::-;7254:14;:32:::0;;;7301:50:::1;::::0;7323:10:::1;::::0;7301:50:::1;::::0;::::1;::::0;7271:15;;7301:50:::1;:::i;:::-;;;;;;;;7023:335:::0;;:::o;5434:113::-;2198:4:0;2631:16;2198:4;2631:10;:16::i;:::-;5499:8:14::1;:6;:8::i;:::-;-1:-1:-1::0;;;;;;;;;;;5529:10:14::1;5522:18;;;;;;:::i;3021:145:0:-:0;3107:4;3130:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;3130:29:0;;;;;;;;;;;;;;;3021:145::o;7601:239:14:-;2261:21:3;:19;:21::i;:::-;1239:19:2::1;:17;:19::i;:::-;7702:1:14::2;7692:7;:11;7684:38;;;;-1:-1:-1::0;;;7684:38:14::2;;;;;;;:::i;:::-;7754:7;7732:18;;:29;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;7771:62:14::2;::::0;-1:-1:-1;;;;;;7771:9:14::2;:26;7798:10;7818:4;7825:7:::0;7771:26:::2;:62::i;:::-;2303:20:3::0;1716:1;2809:7;:22;2629:209;12522:453:14;12620:19;;:::i;:::-;-1:-1:-1;;;;;12668:13:14;;;;;;:6;:13;;;;;:20;12659:29;;12651:55;;;;-1:-1:-1;;;12651:55:14;;;;;;;:::i;:::-;-1:-1:-1;;;;;12741:13:14;;12716:22;12741:13;;;:6;:13;;;;;:21;;12755:6;;12741:21;;;;;;:::i;:::-;;;;;;;;;;;12716:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12792:176;;;;;;;;12830:9;12792:176;;;;12868:29;12883:5;12890:6;12868:14;:29::i;:::-;12792:176;;;;;;12925:28;12939:5;12946:6;12925:13;:28::i;:::-;12792:176;;;;12773:195;12522:453;-1:-1:-1;;;;12522:453:14:o;18239:186::-;2198:4:0;2631:16;2198:4;2631:10;:16::i;:::-;18372:46:14::1;18398:9;18410:7;18372:17;:46::i;14014:1636::-:0;-1:-1:-1;;;;;14262:13:14;;14241:18;14262:13;;;:6;:13;;;;;:20;14138:33;;;;14262:20;-1:-1:-1;;;;;14311:25:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14311:25:14;;14292:44;;14377:10;-1:-1:-1;;;;;14363:25:14;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14363:25:14;;14346:42;;14404:9;14399:1193;14423:10;14419:1;:14;14399:1193;;;-1:-1:-1;;;;;14479:13:14;;14454:22;14479:13;;;:6;:13;;;;;:16;;14493:1;;14479:16;;;;;;:::i;:::-;;;;;;;;;;;14454:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14531:9;:16;;;14509;14526:1;14509:19;;;;;;;;:::i;:::-;;;;;;:38;;;;;14627:22;14670:9;:19;;;14652:15;:37;;;;:::i;:::-;14627:62;;14781:23;14826:16;14807:9;:16;;;:35;;;;:::i;:::-;14781:61;;14878:15;14861:14;:32;14857:103;;;14930:15;14913:32;;14857:103;15020:23;15064:1;15046:15;:19;:99;;15144:1;15046:99;;;15110:15;15085:21;:14;15102:4;15085:21;:::i;:::-;15084:41;;;;:::i;:::-;15020:125;;15247:24;15310:9;:22;;;15275:9;:16;;;:57;;;;:::i;:::-;15247:86;-1:-1:-1;15548:25:14;1898:9;15548:3;:25;:::i;:::-;:32;;15576:4;15548:32;:::i;:::-;15493:34;15512:15;15493:16;:34;:::i;:::-;15492:89;;;;:::i;:::-;15456:14;15471:1;15456:17;;;;;;;;:::i;:::-;;;;;;:125;;;;;14440:1152;;;;;14435:3;;;;;:::i;:::-;;;;14399:1193;;;;15602:41;14014:1636;;;:::o;5088:206::-;2198:4:0;2631:16;2198:4;2631:10;:16::i;:::-;5170:14:14::1;::::0;::::1;;5169:15;5161:54;;;;-1:-1:-1::0;;;5161:54:14::1;;;;;;;:::i;:::-;5225:14;:21:::0;;-1:-1:-1;;5225:21:14::1;5242:4;5225:21;::::0;;5261:26:::1;::::0;5276:10:::1;::::0;5261:26:::1;::::0;5225:14:::1;::::0;5261:26:::1;5088:206:::0;:::o;5354:147:0:-;5438:18;5451:4;5438:12;:18::i;:::-;2631:16;2642:4;2631:10;:16::i;:::-;5468:26:::1;5480:4;5486:7;5468:11;:26::i;18587:1086:14:-:0;2198:4:0;2631:16;2198:4;2631:10;:16::i;:::-;18888:9:14::1;-1:-1:-1::0;;;;;18870:28:14::1;:6;-1:-1:-1::0;;;;;18870:28:14::1;::::0;18866:711:::1;;18936:34;::::0;-1:-1:-1;;;18936:34:14;;18914:19:::1;::::0;-1:-1:-1;;;;;18936:9:14::1;:19;::::0;::::1;::::0;:34:::1;::::0;18964:4:::1;::::0;18936:34:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;18914:56;;18984:22;19027:11;;19009:15;;:29;;;;:::i;:::-;18984:54;;19107:20;19193:18;;19160:14;19130:11;:44;;;;:::i;:::-;:81;;;;:::i;:::-;19107:104:::0;-1:-1:-1;19276:14:14;19251:21:::1;19265:7:::0;19251:11;:21:::1;:::i;:::-;:39;;19226:145;;;;-1:-1:-1::0;;;19226:145:14::1;;;;;;;:::i;:::-;19474:12;19464:7;:22;19460:107;;;19529:22;19539:12:::0;19529:7;:22:::1;:::i;:::-;19506:18;;:46;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;19460:107:14::1;18900:677;;;18866:711;19619:47;-1:-1:-1::0;;;;;19619:27:14;::::1;19647:9:::0;19658:7;19619:27:::1;:47::i;:::-;18587:1086:::0;;;;:::o;2250:24::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2250:24:14;:::o;15993:572::-;-1:-1:-1;;;;;16134:13:14;;16091:14;16134:13;;;:6;:13;;;;;:20;16125:29;;16117:55;;;;-1:-1:-1;;;16117:55:14;;;;;;;:::i;:::-;-1:-1:-1;;;;;16208:13:14;;16183:22;16208:13;;;:6;:13;;;;;:21;;16222:6;;16208:21;;;;;;:::i;:::-;;;;;;;;;;;16183:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16267:1;16244:9;:20;;;:24;16240:292;;;16296:5;16284:17;;16240:292;;;16332:23;16377:16;16358:9;:16;;;:35;;;;:::i;:::-;16332:61;;16407:18;16450:15;16428:9;:19;;;:37;;;;:::i;:::-;16492:15;:29;;;15993:572;-1:-1:-1;;;;;;15993:572:14:o;3460:103:0:-;3526:30;3537:4;734:10:8;3526::0;:30::i;7587:233::-;7670:22;7678:4;7684:7;7670;:22::i;:::-;7665:149;;7708:12;;;;7740:4;7708:12;;;;;;;;-1:-1:-1;;;;;7708:29:0;;;;;;;;;;:36;;-1:-1:-1;;7708:36:0;;;;;;;7763:40;;734:10:8;;7708:12:0;;7763:40;;7708:12;7763:40;7587:233;;:::o;7991:234::-;8074:22;8082:4;8088:7;8074;:22::i;:::-;8070:149;;;8144:5;8112:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;8112:29:0;;;;;;;;;;:37;;-1:-1:-1;;8112:37:0;;;8168:40;734:10:8;;8112:12:0;;8168:40;;8144:5;8168:40;7991:234;;:::o;2336:287:3:-;1759:1;2468:7;;:19;2460:63;;;;-1:-1:-1;;;2460:63:3;;;;;;;:::i;:::-;1759:1;2598:7;:18;2336:287::o;1767:106:2:-;1685:7;;;;1836:9;1828:38;;;;-1:-1:-1;;;1828:38:2;;;;;;;:::i;:::-;1767:106::o;17711:404:14:-;-1:-1:-1;;;;;17799:13:14;;;;;;:6;:13;;;;;:20;17790:29;;17782:55;;;;-1:-1:-1;;;17782:55:14;;;;;;;:::i;:::-;-1:-1:-1;;;;;17863:13:14;;;;;;:6;:13;;;;;:21;;17877:6;;17863:21;;;;;;:::i;:::-;;;;;;;;;;;:28;;;17848:11;;:43;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;17955:13:14;;;;;;:6;:13;;;;;:43;;17982:6;;17955:43;;;;;;:::i;:::-;;;;;;;;;;;:50;;;17901:20;:50;17922:6;:13;17929:5;-1:-1:-1;;;;;17922:13:14;-1:-1:-1;;;;;17922:13:14;;;;;;;;;;;;17936:6;17922:21;;;;;;;;:::i;:::-;;;;;;;;;;;:28;;;17901:50;;;;;;;;;;;;:104;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;18040:13:14;;;;;;:6;:13;;;;;18054:20;;:24;;18077:1;;18054:24;:::i;:::-;18040:39;;;;;;;;:::i;:::-;;;;;;;;;;;18016:6;:13;18023:5;-1:-1:-1;;;;;18016:13:14;-1:-1:-1;;;;;18016:13:14;;;;;;;;;;;;18030:6;18016:21;;;;;;;;:::i;:::-;;;;;;;;;:63;;:21;;;;;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18089:13:14;;;;;;;;;;;:19;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;18089:19:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;17711:404:14:o;941:175:6:-;1023:86;1043:5;1073:23;;;1098:2;1102:5;1050:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;1050:58:6;;;;;;;;;;;;;;-1:-1:-1;;;;;1050:58:6;-1:-1:-1;;;;;;1050:58:6;;;;;;;;;;1023:19;:86::i;2433:117:2:-;1486:16;:14;:16::i;:::-;2491:7:::1;:15:::0;;-1:-1:-1;;2491:15:2::1;::::0;;-1:-1:-1;;;;;;;;;;;734:10:8;2530:12:2::1;2521:22;;;;;;:::i;:::-;;;;;;;;2433:117::o:0;1355:203:6:-;1455:96;1475:5;1505:27;;;1534:4;1540:2;1544:5;1482:68;;;;;;;;;;:::i;2186:115:2:-;1239:19;:17;:19::i;:::-;2245:7:::1;:14:::0;;-1:-1:-1;;2245:14:2::1;2255:4;2245:14;::::0;;-1:-1:-1;;;;;;;;;;;2281:12:2::1;734:10:8::0;;655:96;2647:312:7;2761:6;2736:21;:31;;2728:73;;;;-1:-1:-1;;;2728:73:7;;;;;;;:::i;:::-;2813:12;2831:9;-1:-1:-1;;;;;2831:14:7;2853:6;2831:33;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2812:52;;;2882:7;2874:78;;;;-1:-1:-1;;;2874:78:7;;;;;;;:::i;3844:479:0:-;3932:22;3940:4;3946:7;3932;:22::i;:::-;3927:390;;4115:28;4135:7;4115:19;:28::i;:::-;4214:38;4242:4;4249:2;4214:19;:38::i;:::-;4022:252;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;4022:252:0;;;;;;;;;;-1:-1:-1;;;3970:336:0;;;;;;;:::i;5196:642:6:-;5615:23;5641:69;5669:4;5641:69;;;;;;;;;;;;;;;;;5649:5;-1:-1:-1;;;;;5641:27:6;;;:69;;;;;:::i;:::-;5615:95;;5728:10;:17;5749:1;5728:22;:56;;;;5765:10;5754:30;;;;;;;;;;;;:::i;:::-;5720:111;;;;-1:-1:-1;;;5720:111:6;;;;;;;:::i;1945:106:2:-;1685:7;;;;2003:41;;;;-1:-1:-1;;;2003:41:2;;;;;;;:::i;2407:149:9:-;2465:13;2497:52;-1:-1:-1;;;;;2509:22:9;;343:2;1818:437;1893:13;1918:19;1950:10;1954:6;1950:1;:10;:::i;:::-;:14;;1963:1;1950:14;:::i;:::-;-1:-1:-1;;;;;1940:25:9;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1940:25:9;;1918:47;;-1:-1:-1;;;1975:6:9;1982:1;1975:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;1975:15:9;;;;;;;;;-1:-1:-1;;;2000:6:9;2007:1;2000:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;2000:15:9;;;;;;;;-1:-1:-1;2030:9:9;2042:10;2046:6;2042:1;:10;:::i;:::-;:14;;2055:1;2042:14;:::i;:::-;2030:26;;2025:128;2062:1;2058;:5;2025:128;;;-1:-1:-1;;;2105:5:9;2113:3;2105:11;2096:21;;;;;;;:::i;:::-;;;;2084:6;2091:1;2084:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;2084:33:9;;;;;;;;-1:-1:-1;2141:1:9;2131:11;;;;;2065:3;;;:::i;:::-;;;2025:128;;;-1:-1:-1;2170:10:9;;2162:55;;;;-1:-1:-1;;;2162:55:9;;;;;;;:::i;:::-;2241:6;1818:437;-1:-1:-1;;;1818:437:9:o;4108:223:7:-;4241:12;4272:52;4294:6;4302:4;4308:1;4311:12;4241;5446;5460:23;5487:6;-1:-1:-1;;;;;5487:11:7;5506:5;5513:4;5487:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:73;;;;5535:69;5562:6;5570:7;5579:10;5591:12;5535:26;:69::i;:::-;5528:76;5165:446;-1:-1:-1;;;;;;;5165:446:7:o;7671:628::-;7851:12;7879:7;7875:418;;;7906:10;:17;7927:1;7906:22;7902:286;;-1:-1:-1;;;;;1702:19:7;;;8113:60;;;;-1:-1:-1;;;8113:60:7;;;;;;;:::i;:::-;-1:-1:-1;8208:10:7;8201:17;;7875:418;8249:33;8257:10;8269:12;8980:17;;:21;8976:379;;9208:10;9202:17;9264:15;9251:10;9247:2;9243:19;9236:44;8976:379;9331:12;9324:20;;-1:-1:-1;;;9324:20:7;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;489:120:15:-;-1:-1:-1;;;;;;399:78:15;;561:23;554:5;551:34;541:62;;599:1;596;589:12;615:137;685:20;;714:32;685:20;714:32;:::i;758:327::-;816:6;865:2;853:9;844:7;840:23;836:32;833:119;;;871:79;829:18846:14;;;871:79:15;991:1;1016:52;1060:7;1040:9;1016:52;:::i;1187:109::-;1161:13;;1154:21;1268;1263:3;1256:34;1187:109;;:::o;1302:210::-;1427:2;1412:18;;1440:65;1416:9;1478:6;1440:65;:::i;1601:118::-;1706:5;1688:24;1518:77;1725:222;1856:2;1841:18;;1869:71;1845:9;1913:6;1869:71;:::i;1953:126::-;-1:-1:-1;;;;;2019:54:15;;1953:126::o;2085:96::-;2122:7;2151:24;2169:5;2151:24;:::i;2187:122::-;2260:24;2278:5;2260:24;:::i;2315:139::-;2386:20;;2415:33;2386:20;2415:33;:::i;2460:329::-;2519:6;2568:2;2556:9;2547:7;2543:23;2539:32;2536:119;;;2574:79;829:18846:14;;;2574:79:15;2694:1;2719:53;2764:7;2744:9;2719:53;:::i;2878:122::-;2969:5;2951:24;1518:77;3006:139;3077:20;;3106:33;3077:20;3106:33;:::i;3151:329::-;3210:6;3259:2;3247:9;3238:7;3234:23;3230:32;3227:119;;;3265:79;829:18846:14;;;3265:79:15;3385:1;3410:53;3455:7;3435:9;3410:53;:::i;3838:474::-;3906:6;3914;3963:2;3951:9;3942:7;3938:23;3934:32;3931:119;;;3969:79;829:18846:14;;;3969:79:15;4089:1;4114:53;4159:7;4139:9;4114:53;:::i;:::-;4104:63;;4060:117;4216:2;4242:53;4287:7;4278:6;4267:9;4263:22;4242:53;:::i;:::-;4232:63;;4187:118;3838:474;;;;;:::o;5488:179::-;5557:10;5578:46;5620:3;5612:6;5578:46;:::i;:::-;-1:-1:-1;;5656:4:15;5647:14;;5488:179::o;5822:732::-;5941:3;5970:54;6018:5;5021:12;;4926:114;5970:54;5167:19;;;5219:4;5210:14;;;;5347;;;6260:1;6245:284;6270:6;6267:1;6264:13;6245:284;;;6346:6;6340:13;6373:63;6432:3;6417:13;6373:63;:::i;:::-;6366:70;-1:-1:-1;5775:4:15;5766:14;;6449:70;-1:-1:-1;;6292:1:15;6285:9;6245:284;;;-1:-1:-1;6545:3:15;;5822:732;-1:-1:-1;;;;;5822:732:15:o;6560:373::-;6741:2;6754:47;;;6726:18;;6818:108;6726:18;6912:6;6818:108;:::i;6939:474::-;7007:6;7015;7064:2;7052:9;7043:7;7039:23;7035:32;7032:119;;;7070:79;829:18846:14;;;7070:79:15;7190:1;7215:53;7260:7;7240:9;7215:53;:::i;:::-;7205:63;;7161:117;7317:2;7343:53;7388:7;7379:6;7368:9;7364:22;7343:53;:::i;7419:664::-;7662:3;7647:19;;7676:71;7651:9;7720:6;7676:71;:::i;:::-;7757:72;7825:2;7814:9;7810:18;7801:6;7757:72;:::i;:::-;7839;7907:2;7896:9;7892:18;7883:6;7839:72;:::i;:::-;7921;7989:2;7978:9;7974:18;7965:6;7921:72;:::i;:::-;8003:73;8071:3;8060:9;8056:19;8047:6;8003:73;:::i;:::-;7419:664;;;;;;;;:::o;8089:474::-;8157:6;8165;8214:2;8202:9;8193:7;8189:23;8185:32;8182:119;;;8220:79;829:18846:14;;;8220:79:15;8340:1;8365:53;8410:7;8390:9;8365:53;:::i;8629:1038::-;8834:23;;8762:4;8753:14;;;8870:63;8757:3;8834:23;8870:63;:::i;:::-;8777:166;9030:4;9023:5;9019:16;9013:23;9049:63;9106:4;9101:3;9097:14;9083:12;9049:63;:::i;:::-;8953:169;9210:4;9203:5;9199:16;9193:23;9229:63;9286:4;9281:3;9277:14;9263:12;9229:63;:::i;:::-;9132:170;9386:4;9379:5;9375:16;9369:23;9405:63;9462:4;9457:3;9453:14;9439:12;9405:63;:::i;:::-;9312:166;9568:4;9561:5;9557:16;9551:23;9587:63;9644:4;9639:3;9635:14;9621:12;9587:63;:::i;9852:735::-;10080:23;;10009:4;10000:14;;;10116:109;10004:3;10080:23;10116:109;:::i;:::-;10024:211;10322:4;10315:5;10311:16;10305:23;10341:57;10392:4;10387:3;10383:14;10369:12;10341:57;:::i;:::-;10245:163;10494:4;10487:5;10483:16;10477:23;10513:57;10564:4;10559:3;10555:14;10541:12;10513:57;:::i;10593:343::-;10784:3;10769:19;;10798:131;10773:9;10902:6;10798:131;:::i;11422:634::-;11681:2;11694:47;;;11666:18;;11758:108;11666:18;11852:6;11758:108;:::i;:::-;11750:116;;11913:9;11907:4;11903:20;11898:2;11887:9;11883:18;11876:48;11941:108;12044:4;12035:6;11941:108;:::i;12062:619::-;12139:6;12147;12155;12204:2;12192:9;12183:7;12179:23;12175:32;12172:119;;;12210:79;829:18846:14;;;12210:79:15;12330:1;12355:53;12400:7;12380:9;12355:53;:::i;:::-;12345:63;;12301:117;12457:2;12483:53;12528:7;12519:6;12508:9;12504:22;12483:53;:::i;:::-;12473:63;;12428:118;12585:2;12611:53;12656:7;12647:6;12636:9;12632:22;12611:53;:::i;:::-;12601:63;;12556:118;12062:619;;;;;:::o;12753:142::-;12803:9;12836:53;12854:34;12863:24;12881:5;12863:24;:::i;:::-;1584:5;1518:77;12854:34;12836:53;:::i;12901:126::-;12951:9;12984:37;13015:5;12984:37;:::i;13033:140::-;13097:9;13130:37;13161:5;13130:37;:::i;13179:159::-;13280:51;13325:5;13280:51;:::i;13344:250::-;13489:2;13474:18;;13502:85;13478:9;13560:6;13502:85;:::i;13958:366::-;14185:2;5167:19;;14100:3;5219:4;5210:14;;-1:-1:-1;;;13892:53:15;;14114:74;-1:-1:-1;14197:93:15;-1:-1:-1;14315:2:15;14306:12;;13958:366::o;14330:419::-;14534:2;14547:47;;;14519:18;;14611:131;14519:18;14611:131;:::i;14995:366::-;15222:2;5167:19;;15137:3;5219:4;5210:14;;14895:34;14872:58;;-1:-1:-1;;;14959:2:15;14947:15;;14940:42;15151:74;-1:-1:-1;15234:93:15;-1:-1:-1;15352:2:15;15343:12;;14995:366::o;15367:419::-;15571:2;15584:47;;;15556:18;;15648:131;15556:18;15648:131;:::i;15961:366::-;16188:2;5167:19;;16103:3;5219:4;5210:14;;-1:-1:-1;;;15909:39:15;;16117:74;-1:-1:-1;16200:93:15;15792:163;16333:419;16537:2;16550:47;;;16522:18;;16614:131;16522:18;16614:131;:::i;16758:180::-;-1:-1:-1;;;16803:1:15;16796:88;16903:4;16900:1;16893:15;16927:4;16924:1;16917:15;17172:366;17399:2;5167:19;;17314:3;5219:4;5210:14;;17084:34;17061:58;;-1:-1:-1;;;17148:2:15;17136:15;;17129:30;17328:74;-1:-1:-1;17411:93:15;16944:222;17544:419;17748:2;17761:47;;;17733:18;;17825:131;17733:18;17825:131;:::i;17969:180::-;-1:-1:-1;;;18014:1:15;18007:88;18114:4;18111:1;18104:15;18138:4;18135:1;18128:15;18155:410;18300:9;;;;18462;;18495:15;;;18489:22;;18442:83;18419:139;;18538:18;;:::i;18571:180::-;-1:-1:-1;;;18616:1:15;18609:88;18716:4;18713:1;18706:15;18740:4;18737:1;18730:15;18757:185;18797:1;18887;18877:35;;18892:18;;:::i;:::-;-1:-1:-1;18927:9:15;;18757:185::o;18948:194::-;19079:9;;;19101:11;;;19098:37;;;19115:18;;:::i;19148:191::-;19277:9;;;19299:10;;;19296:36;;;19312:18;;:::i;19345:442::-;19532:2;19517:18;;19545:71;19521:9;19589:6;19545:71;:::i;:::-;19626:72;19694:2;19683:9;19679:18;19670:6;19626:72;:::i;:::-;19708;19776:2;19765:9;19761:18;19752:6;19708:72;:::i;19793:233::-;19832:3;-1:-1:-1;;19894:5:15;19891:77;19888:103;;19971:18;;:::i;:::-;-1:-1:-1;20018:1:15;20007:13;;19793:233::o;20032:118::-;20119:24;20137:5;20119:24;:::i;20156:222::-;20287:2;20272:18;;20300:71;20276:9;20344:6;20300:71;:::i;20556:366::-;20783:2;5167:19;;20698:3;5219:4;5210:14;;-1:-1:-1;;;20501:42:15;;20712:74;-1:-1:-1;20795:93:15;20384:166;20928:419;21132:2;21145:47;;;21117:18;;21209:131;21117:18;21209:131;:::i;21353:332::-;21512:2;21497:18;;21525:71;21501:9;21569:6;21525:71;:::i;:::-;21606:72;21674:2;21663:9;21659:18;21650:6;21606:72;:::i;21918:366::-;22145:2;5167:19;;22060:3;5219:4;5210:14;;21831:34;21808:58;;-1:-1:-1;;;21895:2:15;21883:15;;21876:29;22074:74;-1:-1:-1;22157:93:15;21691:221;22290:419;22494:2;22507:47;;;22479:18;;22571:131;22479:18;22571:131;:::i;22900:366::-;23127:2;5167:19;;23042:3;5219:4;5210:14;;22855:31;22832:55;;23056:74;-1:-1:-1;23139:93:15;22715:179;23272:419;23476:2;23489:47;;;23461:18;;23553:131;23461:18;23553:131;:::i;23875:366::-;24102:2;5167:19;;24017:3;5219:4;5210:14;;-1:-1:-1;;;23814:48:15;;24031:74;-1:-1:-1;24114:93:15;23697:172;24247:419;24451:2;24464:47;;;24436:18;;24528:131;24436:18;24528:131;:::i;24842:366::-;25069:2;5167:19;;24984:3;5219:4;5210:14;;-1:-1:-1;;;24789:40:15;;24998:74;-1:-1:-1;25081:93:15;24672:164;25214:419;25418:2;25431:47;;;25403:18;;25495:131;25403:18;25495:131;:::i;25873:366::-;26100:2;5167:19;;26015:3;5219:4;5210:14;;25779:34;25756:58;;-1:-1:-1;;;25843:2:15;25831:15;;25824:36;26029:74;-1:-1:-1;26112:93:15;25639:228;26245:419;26449:2;26462:47;;;26434:18;;26526:131;26434:18;26526:131;:::i;26853:366::-;27080:2;5167:19;;26995:3;5219:4;5210:14;;-1:-1:-1;;;26787:53:15;;27009:74;-1:-1:-1;27092:93:15;26670:177;27225:419;27429:2;27442:47;;;27414:18;;27506:131;27414:18;27506:131;:::i;27650:180::-;-1:-1:-1;;;27695:1:15;27688:88;27795:4;27792:1;27785:15;27819:4;27816:1;27809:15;28018:366;28245:2;5167:19;;28160:3;5219:4;5210:14;;-1:-1:-1;;;27953:52:15;;28174:74;-1:-1:-1;28257:93:15;27836:176;28390:419;28594:2;28607:47;;;28579:18;;28671:131;28579:18;28671:131;:::i;28815:143::-;28897:13;;28919:33;28897:13;28919:33;:::i;28964:351::-;29034:6;29083:2;29071:9;29062:7;29058:23;29054:32;29051:119;;;29089:79;829:18846:14;;;29089:79:15;29209:1;29234:64;29290:7;29270:9;29234:64;:::i;29561:366::-;29788:2;5167:19;;29703:3;5219:4;5210:14;;29461:34;29438:58;;-1:-1:-1;;;29525:2:15;29513:15;;29506:42;29717:74;-1:-1:-1;29800:93:15;29321:234;29933:419;30137:2;30150:47;;;30122:18;;30214:131;30122:18;30214:131;:::i;30545:366::-;30772:2;5167:19;;30687:3;5219:4;5210:14;;30498:33;30475:57;;30701:74;-1:-1:-1;30784:93:15;30358:181;30917:419;31121:2;31134:47;;;31106:18;;31198:131;31106:18;31198:131;:::i;31514:366::-;31741:2;5167:19;;31656:3;5219:4;5210:14;;-1:-1:-1;;;31459:42:15;;31670:74;-1:-1:-1;31753:93:15;31342:166;31886:419;32090:2;32103:47;;;32075:18;;32167:131;32075:18;32167:131;:::i;32311:180::-;-1:-1:-1;;;32356:1:15;32349:88;32456:4;32453:1;32446:15;32480:4;32477:1;32470:15;32497:332;32656:2;32641:18;;32669:71;32645:9;32713:6;32669:71;:::i;32835:442::-;33022:2;33007:18;;33035:71;33011:9;33079:6;33035:71;:::i;:::-;33116:72;33184:2;33173:9;33169:18;33160:6;33116:72;:::i;33468:366::-;33695:2;5167:19;;33610:3;5219:4;5210:14;;33423:31;33400:55;;33624:74;-1:-1:-1;33707:93:15;33283:179;33840:419;34044:2;34057:47;;;34029:18;;34121:131;34029:18;34121:131;:::i;34942:379::-;35126:3;35148:147;35291:3;35148:147;:::i;35578:366::-;35805:2;5167:19;;35720:3;5219:4;5210:14;;35467:34;35444:58;;-1:-1:-1;;;35531:2:15;35519:15;;35512:53;35734:74;-1:-1:-1;35817:93:15;35327:245;35950:419;36154:2;36167:47;;;36139:18;;36231:131;36139:18;36231:131;:::i;37221:246::-;37302:1;37312:113;37326:6;37323:1;37320:13;37312:113;;;37402:11;;;37396:18;37383:11;;;37376:39;37348:2;37341:10;37312:113;;;-1:-1:-1;;37459:1:15;37441:16;;37434:27;37221:246::o;37473:390::-;37579:3;37607:39;37640:5;5021:12;;4926:114;37607:39;37760:65;37818:6;37813:3;37806:4;37799:5;37795:16;37760:65;:::i;:::-;37841:16;;;;;37473:390;-1:-1:-1;;37473:390:15:o;38450:967::-;-1:-1:-1;;;36646:49:15;;37101:2;37092:12;38832:3;39019:95;37092:12;39101:6;39019:95;:::i;:::-;-1:-1:-1;;;37986:43:15;;38435:2;38426:12;;-1:-1:-1;39296:95:15;38426:12;39378:6;39296:95;:::i;39531:377::-;39619:3;39647:39;39680:5;5021:12;;4926:114;39647:39;5167:19;;;5219:4;5210:14;;39695:78;;39782:65;39840:6;39835:3;39828:4;39821:5;39817:16;39782:65;:::i;:::-;39515:2;39495:14;-1:-1:-1;;39491:28:15;39863:39;;;;;;-1:-1:-1;;39531:377:15:o;39914:313::-;40065:2;40078:47;;;40050:18;;40142:78;40050:18;40206:6;40142:78;:::i;40233:116::-;1161:13;;1154:21;40303;1091:90;40355:137;40434:13;;40456:30;40434:13;40456:30;:::i;40498:345::-;40565:6;40614:2;40602:9;40593:7;40589:23;40585:32;40582:119;;;40620:79;829:18846:14;;;40620:79:15;40740:1;40765:61;40818:7;40798:9;40765:61;:::i;41084:366::-;41311:2;5167:19;;41226:3;5219:4;5210:14;;40989:34;40966:58;;-1:-1:-1;;;41053:2:15;41041:15;;41034:37;41240:74;-1:-1:-1;41323:93:15;40849:229;41456:419;41660:2;41673:47;;;41645:18;;41737:131;41645:18;41737:131;:::i;42057:366::-;42284:2;5167:19;;42199:3;5219:4;5210:14;;-1:-1:-1;;;41998:46:15;;42213:74;-1:-1:-1;42296:93:15;41881:170;42429:419;42633:2;42646:47;;;42618:18;;42710:131;42618:18;42710:131;:::i;42854:171::-;42893:3;42907:33;42949:41;;42970:18;;:::i;:::-;-1:-1:-1;;;43006:13:15;;42854:171::o;43219:366::-;43446:2;5167:19;;;43171:34;5210:14;;43148:58;;;43361:3;43458:93;43031:182;43591:419;43795:2;43808:47;;;43780:18;;43872:131;43780:18;43872:131;:::i;45540:271::-;45670:3;45692:93;45781:3;45772:6;45692:93;:::i;46002:366::-;46229:2;5167:19;;46144:3;5219:4;5210:14;;45957:31;45934:55;;46158:74;-1:-1:-1;46241:93:15;45817:179;46374:419;46578:2;46591:47;;;46563:18;;46655:131;46563:18;46655:131;:::i
Swarm Source
ipfs://0cb57a38ff92fb68fc9003df175b8132e1726cf2e821242a41458e74fad3176f
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.