Source Code
Overview
SOPH Balance
More Info
ContractCreator
Multichain Info
N/A
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
SophonStaking
Compiler Version
v0.8.28+commit.7893614a
ZkSolc Version
v1.5.7
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.28; import "contracts/token/ERC20/utils/SafeERC20.sol"; import "contracts/proxies/UpgradeableAccessControl.sol"; import "contracts/tokens/staking/SophonStakingSignals.sol"; import "contracts/tokens/staking/SophonStakingState.sol"; /** * @title SophonStaking * @notice Contract for staking Sophon tokens with validators and earning rewards * @dev Inherits from UpgradeableAccessControl, SophonStakingSignals and SophonStakingState */ contract SophonStaking is UpgradeableAccessControl, SophonStakingSignals, SophonStakingState { using SafeERC20 for IERC20; /// @notice Role identifier for contract administrators bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); /// @notice Maximum validator fee percentage (8000 = 80.00%) uint256 public constant MAX_FEE_PERCENT = 8000; /// @notice Maximum cooloff period (30 days) uint256 public constant MAX_COOLOFF_PERIOD = 30 days; /// @notice Default validator address address public constant DEFAULT_VALIDATOR = 0x0000000000000000000000000000000000008001; /// @notice Maximum percentage (10000 = 100.00%) uint256 internal constant MAX_PERCENT = 10000; /** * @notice Constructor to initialize the contract * @dev Sets the contract as initialized and grants admin role to deployer */ constructor() UpgradeableAccessControl(msg.sender) { _setInitialized(); } /** * @notice Initializes the contract with initial parameters * @param adminAddress_ The address to grant admin role to * @param cooloffPeriod_ The duration in seconds that must pass after requesting unstake * @param globalFeePercent_ Initial global fee percentage (5000 = 50.00%) * @dev Can only be called once via notInitialized modifier */ function initialize(address adminAddress_, uint256 cooloffPeriod_, uint256 globalFeePercent_) external notInitialized { if (adminAddress_ == address(0)) revert ZeroAddress(); if (globalFeePercent_ > MAX_PERCENT) revert GlobalFeeTooHigh(); if (cooloffPeriod_ > MAX_COOLOFF_PERIOD) revert CooloffPeriodTooLong(); _grantRole(ADMIN_ROLE, adminAddress_); cooloffPeriod = cooloffPeriod_; globalFeePercent = globalFeePercent_; registerValidator(DEFAULT_VALIDATOR, adminAddress_, 3000); } /** * @notice Stakes native Sophon with the default validator */ function stake() external payable { _stake(DEFAULT_VALIDATOR, msg.sender, msg.value); } /** * @notice Stakes native Sophon with the default validator on behalf of another address * @param receiver The address to receive the staked tokens */ function stakeOnBehalf(address receiver) external payable { _stake(DEFAULT_VALIDATOR, receiver, msg.value); } /** * @notice Initiates the unstaking process for all staked tokens with the default validator * @dev Settles any pending earnings before unstaking */ function initiateFullUnstake() external { initiateFullUnstake(DEFAULT_VALIDATOR); } /** * @notice Initiates the unstaking process for a specific amount of tokens from the default validator * @param amount The desired amount of tokens to unstake (if amount == type(uint256).max, unstakes all staked tokens) * @dev Creates a new unstake request with its own cooloff period */ function initiateUnstake(uint256 amount) external { initiateUnstake(DEFAULT_VALIDATOR, amount); } /** * @notice Completes the unstaking process from the default validator after cooloff period * @param requestIndex The index of the unstake request to complete * @dev Transfers the unstaked tokens back to the user if the cooloff period has ended */ function completeUnstake(uint256 requestIndex) external { completeUnstake(DEFAULT_VALIDATOR, requestIndex); } /** * @notice Stakes native Sophon with a specified validator * @param validator The address of the validator to stake with */ function stake(address validator) external payable { _stake(validator, msg.sender, msg.value); } /** * @notice Stakes native Sophon on behalf of another address with a specified validator * @param validator The address of the validator to stake with * @param receiver The address that will receive the staked tokens */ function stakeOnBehalf(address validator, address receiver) external payable { _stake(validator, receiver, msg.value); } /** * @notice Switches stake from one validator to another * @param fromValidator The address of the validator to switch from * @param toValidator The address of the validator to switch to * @param amount The amount of tokens to switch (if amount == type(uint256).max, switches all staked tokens) * @dev Settles earnings for both validators and transfers the stake directly without unstaking * @dev Pending unstake requests remain with the original validator */ function switchValidator(address fromValidator, address toValidator, uint256 amount) external { if (amount == 0) revert StakeIsZero(); if (fromValidator == address(0) || toValidator == address(0)) revert ZeroAddress(); if (!validators[fromValidator].isRegistered) revert ValidatorNotRegistered(fromValidator); if (!validators[toValidator].isRegistered) revert ValidatorNotRegistered(toValidator); if (validators[toValidator].isPaused) revert ValidatorIsPaused(toValidator); // settle earnings for both validators settleEarnings(fromValidator, msg.sender); settleEarnings(toValidator, msg.sender); mapping(address => uint256) storage userBalanceStaked = _userBalanceStaked[msg.sender]; uint256 userBalanceStakedFrom = userBalanceStaked[fromValidator]; uint256 userBalanceStakedTo = userBalanceStaked[toValidator]; if (userBalanceStakedFrom == 0) revert InsufficientBalance(msg.sender, fromValidator, amount, 0); if (amount != type(uint256).max) { if (amount > userBalanceStakedFrom) { revert InsufficientBalance(msg.sender, fromValidator, amount, userBalanceStakedFrom); } } else { // full unstake amount = userBalanceStakedFrom; } // update balances userBalanceStaked[fromValidator] = userBalanceStakedFrom - amount; _validatorTotalStaked[fromValidator] -= amount; _updateValidatorProfitsRatioWithSub(fromValidator, amount); userBalanceStaked[toValidator] = userBalanceStakedTo + amount; _validatorTotalStaked[toValidator] += amount; _updateValidatorProfitsRatioWithAdd(toValidator, amount); // add toValidator to user's validators if not already present if (userBalanceStakedTo == 0 && _userBalanceUnstaking[msg.sender][toValidator] == 0) { _addValidatorToUser(msg.sender, toValidator); } // check if user has fully unstaked from fromValidator if (userBalanceStakedFrom == amount && _userBalanceUnstaking[msg.sender][fromValidator] == 0) { _removeValidatorFromUser(msg.sender, fromValidator); } emit Stake(msg.sender, toValidator, amount); emit Unstake(msg.sender, fromValidator, amount); } /** * @notice Initiates the unstaking process for all staked tokens with a specified validator * @param validator The address of the validator to unstake from * @dev Settles any pending earnings before unstaking */ function initiateFullUnstake(address validator) public { initiateUnstake(validator, type(uint256).max); } /** * @notice Initiates the unstaking process for a specific amount of tokens * @param validator The address of the validator to unstake from * @param amount The desired amount of tokens to unstake (if amount == type(uint256).max, unstakes all staked tokens) * @dev Creates a new unstake request with its own cooloff period */ function initiateUnstake(address validator, uint256 amount) public { if (amount == 0) revert UnstakeIsZero(); if (validator == address(0)) revert ZeroAddress(); if (!validators[validator].isRegistered) revert ValidatorNotRegistered(validator); settleEarnings(validator, msg.sender); uint256 userBalanceStaked = _userBalanceStaked[msg.sender][validator]; if (userBalanceStaked == 0) revert InsufficientBalance(msg.sender, validator, amount, 0); if (amount != type(uint256).max) { if (amount > userBalanceStaked) { revert InsufficientBalance(msg.sender, validator, amount, userBalanceStaked); } } else { // full unstake amount = userBalanceStaked; } UnstakeRequest memory newRequest = UnstakeRequest({ amount: amount, cooloffEndTime: block.timestamp + cooloffPeriod, withdrawalWindowEndTime: 0 }); unstakeRequests[msg.sender][validator].push(newRequest); if (validators[validator].isPaused) { _validatorTotalStakedPaused[validator] -= amount; } else { _validatorTotalStaked[validator] -= amount; _updateValidatorProfitsRatioWithSub(validator, amount); } // reduce staking balances _userBalanceStaked[msg.sender][validator] = userBalanceStaked - amount; // increase unstaking balance _userBalanceUnstaking[msg.sender][validator] += amount; emit UnstakeInitiated(msg.sender, validator, amount, newRequest.cooloffEndTime); } /** * @notice Completes the unstaking process after the cooloff period has ended * @param validator The address of the validator to unstake from * @param requestIndex The index of the unstake request to complete * @dev Transfers the unstaked tokens back to the user if the cooloff period has ended */ function completeUnstake(address validator, uint256 requestIndex) public { UnstakeRequest[] storage requests = unstakeRequests[msg.sender][validator]; if (requestIndex >= requests.length) revert InvalidRequestIndex(); UnstakeRequest storage request = requests[requestIndex]; if (block.timestamp < request.cooloffEndTime) { revert CooloffPeriodNotComplete(block.timestamp, request.cooloffEndTime); } settleEarnings(validator, msg.sender); uint256 amount = request.amount; // remove the request by replacing it with the last one and popping uint256 lastIndex = requests.length - 1; if (requestIndex != lastIndex) { requests[requestIndex] = requests[lastIndex]; } requests.pop(); // reduce unstaking balance _userBalanceUnstaking[msg.sender][validator] -= amount; // check if user has fully unstaked from validator if (_userBalanceStaked[msg.sender][validator] == 0 && requests.length == 0) { _removeValidatorFromUser(msg.sender, validator); } (bool success,) = msg.sender.call{value: amount}(""); if (!success) revert TransferFailed(); emit Unstake(msg.sender, validator, amount); } /** * @notice Cancels all pending unstake requests for a user with a specific validator * @param validator The address of the validator * @dev Moves tokens from unstaking back to staked status * @dev Reverts if the validator is paused or if there are no unstake requests */ function cancelAllUnstakeRequests(address validator) external { UnstakeRequest[] storage requests = unstakeRequests[msg.sender][validator]; if (requests.length == 0) revert UnstakeIsZero(); settleEarnings(validator, msg.sender); uint256 numRequests = requests.length; // reset the requests array to 0 length // this is more gas efficient than deleting all elements // future requests will overwrite stale data assembly { sstore(requests.slot, 0) // set the length to 0 } uint256 unstakingAmounts = _userBalanceUnstaking[msg.sender][validator]; if (validators[validator].isPaused) { _validatorTotalStakedPaused[validator] += unstakingAmounts; } else { _validatorTotalStaked[validator] += unstakingAmounts; _updateValidatorProfitsRatioWithAdd(validator, unstakingAmounts); } _userBalanceStaked[msg.sender][validator] += unstakingAmounts; // reset unstaking balance _userBalanceUnstaking[msg.sender][validator] = 0; emit UnstakeRequestsCancelled(msg.sender, validator, numRequests, unstakingAmounts); } /** * @notice Allows a validator to update their profits manager * @param validator Address of the validator * @param newProfitsManager New address permitted to withdraw validator profits */ function updateProfitsManager(address validator, address newProfitsManager) external { ValidatorInfo storage validatorInfo = validators[validator]; if (!validatorInfo.isRegistered) revert ValidatorNotRegistered(validator); if (msg.sender != validatorInfo.profitsManager) { revert NotProfitsManager(msg.sender, validator, validatorInfo.profitsManager); } if (newProfitsManager == address(0)) revert ZeroAddress(); address oldManager = validatorInfo.profitsManager; validatorInfo.profitsManager = newProfitsManager; emit ValidatorManagerUpdated(validator, oldManager, newProfitsManager); } /** * @notice Allows validator's profits manager to withdraw validator profits * @param validator The validator address to withdraw profits for * @param recipient The address to receive the withdrawn profits */ function withdrawProfits(address validator, address recipient) external { ValidatorInfo storage validatorInfo = validators[validator]; if (!validatorInfo.isRegistered) revert ValidatorNotRegistered(validator); if (msg.sender != validatorInfo.profitsManager) { revert NotProfitsManager(msg.sender, validator, validatorInfo.profitsManager); } if (recipient == address(0)) revert ZeroAddress(); settleEarnings(validator, address(0)); uint256 validatorProfits = _validatorProfits[validator]; uint256 globalFeePerValidator = _globalFeePerValidator; if (!validatorInfo.isPaused) { validatorProfits += globalFeePerValidator - _globalFeePerValidatorPaid[validator]; } if (validatorProfits == 0) revert NoProfitsToWithdraw(); _validatorProfits[validator] = 0; _globalFeePerValidatorPaid[validator] = globalFeePerValidator; (bool success,) = recipient.call{value: validatorProfits}(""); if (!success) revert ProfitsTransferFailed(); emit ValidatorProfitsWithdrawn(validator, recipient, validatorProfits); } /** * @notice Settles earnings for validators and users based on balance changes and new rewards * @param validator The address of the validator to settle earnings for * @param account The address of the user account to settle earnings for (use address(0) for validator-only settlement) * @dev Updates validator profits, validator-level user rewards, and user-specific rewards */ function settleEarnings(address validator, address account) public { if (validator == address(0)) { return; } // settle validator profits uint256 validatorProfits = _getValidatorProfits(validator); _validatorProfits[validator] = validatorProfits; _utilizedRewardsPerTokenPaid[validator] = _utilizedRewardsPerToken; // get validator user rewards (uint256 validatorUserRewardsUnsettled, uint256 userRewardsPerToken) = _getValidatorUserRewards(validator); // settle user rewards for an account if non-zero if (account != address(0)) { uint256 userRewards = _getUserRewards(account, validator, userRewardsPerToken); _userRewardsPerTokenPaid[account][validator] = userRewardsPerToken; if (userRewards != 0) { if (validatorUserRewardsUnsettled > userRewards) { validatorUserRewardsUnsettled -= userRewards; } else { validatorUserRewardsUnsettled = 0; } uint256 globalUserRewardsUnsettled = _globalUserRewardsUnsettled; if (globalUserRewardsUnsettled > userRewards) { _globalUserRewardsUnsettled = globalUserRewardsUnsettled - userRewards; } else { _globalUserRewardsUnsettled = 0; } // update staking balances _userBalanceStaked[account][validator] += userRewards; _validatorTotalStaked[validator] += userRewards; _updateValidatorProfitsRatioWithAdd(validator, userRewards); } } // update validator user rewards _validatorUserSharePerTokenPaid[validator] = _globalUserSharePerToken; _validatorUserRewardsUnsettled[validator] = validatorUserRewardsUnsettled; _validatorUserRewardsPerTokenPaid[validator] = userRewardsPerToken; } /** * @notice Allows admin to update the global fee percentage * @param newGlobalFeePercent New global fee percentage (5000 = 50.00%) */ function setGlobalFeePercent(uint256 newGlobalFeePercent) external onlyRole(ADMIN_ROLE) { if (newGlobalFeePercent > MAX_PERCENT) revert GlobalFeeTooHigh(); emit GlobalFeeUpdated(globalFeePercent, newGlobalFeePercent); globalFeePercent = newGlobalFeePercent; } /** * @notice Allows admins to register validators and set their fee percentage and fee manager * @param validator Address of the validator to register * @param profitsManager Address permitted to withdraw validator profits * @param feePercent Fee percentage with 2 decimals (500 = 5.00%) */ function registerValidator(address validator, address profitsManager, uint256 feePercent) public onlyRole(ADMIN_ROLE) { if (validators[validator].isRegistered) revert AlreadyRegistered(); if (profitsManager == address(0)) revert ZeroAddress(); if (validator == address(0)) revert ZeroAddress(); if (feePercent > MAX_FEE_PERCENT) revert FeeTooHigh(feePercent, MAX_FEE_PERCENT); settleEarnings(validator, address(0)); // settle global fees _globalFeePerValidatorPaid[validator] = _globalFeePerValidator; validators[validator] = ValidatorInfo({isRegistered: true, feePercent: feePercent, profitsManager: profitsManager, isPaused: false}); _validatorAddresses.push(validator); _validatorIndex[validator] = _validatorAddresses.length - 1; emit ValidatorRegistered(validator, profitsManager, feePercent); } /** * @notice Admin function to modify a validator's fee percentage * @param validator Address of the validator * @param newFeePercent New fee percentage with 2 decimals (500 = 5.00%) */ function setValidatorFee(address validator, uint256 newFeePercent) external onlyRole(ADMIN_ROLE) { ValidatorInfo storage validatorInfo = validators[validator]; if (!validatorInfo.isRegistered) revert ValidatorNotRegistered(validator); if (newFeePercent > MAX_FEE_PERCENT) revert FeeTooHigh(newFeePercent, MAX_FEE_PERCENT); settleEarnings(validator, address(0)); uint256 oldFeePercent = validatorInfo.feePercent; validatorInfo.feePercent = newFeePercent; _updateValidatorProfitsRatioAfterFeeChange(validator, oldFeePercent, newFeePercent); emit ValidatorFeeUpdated(validator, oldFeePercent, newFeePercent); } /** * @notice Admin function to pause a validator from receiving new earnings * @param validator Address of the validator to pause */ function pauseValidator(address validator) external onlyRole(ADMIN_ROLE) { ValidatorInfo storage validatorInfo = validators[validator]; if (!validatorInfo.isRegistered) revert ValidatorNotRegistered(validator); if (validatorInfo.isPaused) revert ValidatorIsPaused(validator); settleEarnings(validator, address(0)); // settle global fees (paused validators don't earn global fees) uint256 globalFeePerValidator = _globalFeePerValidator; _validatorProfits[validator] += globalFeePerValidator - _globalFeePerValidatorPaid[validator]; _globalFeePerValidatorPaid[validator] = globalFeePerValidator; validatorInfo.isPaused = true; // store total staked for paused validators uint256 validatorTotalStaked = _validatorTotalStaked[validator]; _validatorTotalStakedPaused[validator] = validatorTotalStaked; _validatorTotalStaked[validator] = 0; // remove validatorTotalStaked from global values _updateValidatorProfitsRatioWithSub(validator, validatorTotalStaked); // remove validator from array and update order uint256 index = _validatorIndex[validator]; uint256 lastIndex = _validatorAddresses.length - 1; if (index != lastIndex) { address lastValidator = _validatorAddresses[lastIndex]; _validatorAddresses[index] = lastValidator; _validatorIndex[lastValidator] = index; } _validatorAddresses.pop(); delete _validatorIndex[validator]; emit ValidatorPaused(validator); } /** * @notice Admin function to unpause a validator and allow receiving new earnings * @param validator Address of the validator to unpause */ function unpauseValidator(address validator) external onlyRole(ADMIN_ROLE) { ValidatorInfo storage validatorInfo = validators[validator]; if (!validatorInfo.isRegistered) revert ValidatorNotRegistered(validator); if (!validatorInfo.isPaused) revert ValidatorNotPaused(validator); settleEarnings(validator, address(0)); // settle global fees (unpaused validators earn global fees) _globalFeePerValidatorPaid[validator] = _globalFeePerValidator; validatorInfo.isPaused = false; // restore total staked for unpaused validators uint256 validatorTotalStaked = _validatorTotalStakedPaused[validator]; _validatorTotalStakedPaused[validator] = 0; _validatorTotalStaked[validator] = validatorTotalStaked; // add validatorTotalStaked back to global values _updateValidatorProfitsRatioWithAdd(validator, validatorTotalStaked); // add validator back to array and update order _validatorAddresses.push(validator); _validatorIndex[validator] = _validatorAddresses.length - 1; emit ValidatorUnpaused(validator); } /** * @notice Allows admin to update the cooloff period * @param newPeriod New cooloff period in seconds * @dev Only affects new unstake requests, does not modify existing ones. */ function setCooloffPeriod(uint256 newPeriod) external onlyRole(ADMIN_ROLE) { if (newPeriod > MAX_COOLOFF_PERIOD) revert CooloffPeriodTooLong(); emit CooloffPeriodUpdated(cooloffPeriod, newPeriod); cooloffPeriod = newPeriod; } /** * @notice Allows admin to update the circulating supply * @param newCirculatingSupply New value for the circulating supply */ function setCirculatingSupply(uint256 newCirculatingSupply) external onlyRole(ADMIN_ROLE) { emit CirculatingSupplyUpdated(circulatingSupply, newCirculatingSupply); // we store the square root to save gas on calculations later _circulatingSupplySqrt = sqrt(newCirculatingSupply); circulatingSupply = newCirculatingSupply; } /** * @notice Allows admin to withdraw unutilized rewards * @param recipient The address to receive the unutilized rewards * @param amount The amount of unutilized rewards to withdraw (if amount == type(uint256).max, withdraws all unutilized rewards) * @return withdrawnAmount The amount of unutilized rewards withdrawn */ function withdrawUnutilizedRewards(address recipient, uint256 amount) external onlyRole(ADMIN_ROLE) returns (uint256 withdrawnAmount) { if (recipient == address(0)) revert ZeroAddress(); uint256 available = unutilizedRewards; if (available == 0) revert NoUnutilizedRewards(); withdrawnAmount = (amount == type(uint256).max) ? available : amount; if (withdrawnAmount > available) revert InsufficientUnutilizedRewards(withdrawnAmount, available); unutilizedRewards -= withdrawnAmount; (bool success,) = recipient.call{value: withdrawnAmount}(""); if (!success) revert TransferFailed(); emit UnutilizedRewardsWithdrawn(recipient, withdrawnAmount); } /** * @notice Allows the rescue of ERC20 tokens held by this contract * @param token The ERC20 token to rescue * @dev Only callable by DEFAULT_ADMIN_ROLE. Rescue of Wrapped Sophon not allowed. */ function rescue(IERC20 token) external onlyRole(DEFAULT_ADMIN_ROLE) { token.safeTransfer(msg.sender, token.balanceOf(address(this))); } /** * @notice Returns the total amount staked to the default validator including earned rewards * @return uint256 The total amount staked to the default validator * @dev Does not include tokens in unstake requests */ function validatorStakedAmount() external view returns (uint256) { return validatorStakedAmount(DEFAULT_VALIDATOR); } /** * @notice Returns the total amount staked by an account including earned rewards * @param account The address of the staker * @return uint256 The total staked amount * @dev Does not include tokens in unstake requests */ function userStakedAmount(address account) external view returns (uint256) { return userStakedAmount(account, DEFAULT_VALIDATOR); } /** * @notice Returns the total amount staked including earned rewards * @return uint256 The total staked amount * @dev Does not include tokens in unstake requests */ function totalStakedAmount() external view returns (uint256) { return _totalStaked + _globalUserRewardsUnsettled; } /** * @notice Returns the total amount staked to a specific validator including earned rewards * @param validator The address of the validator * @return uint256 The total amount staked to the validator * @dev Does not include tokens in unstake requests */ function validatorStakedAmount(address validator) public view returns (uint256) { (uint256 validatorUserRewardsUnsettled,) = _getValidatorUserRewards(validator); return _validatorTotalStaked[validator] + validatorUserRewardsUnsettled; } /** * @notice Returns the total claimable profits for a validator * @param validator The address of the validator * @return uint256 The profits for the validator */ function validatorProfits(address validator) external view returns (uint256) { uint256 validatorProfits = _getValidatorProfits(validator); if (!validators[validator].isPaused) { validatorProfits += _globalFeePerValidator - _globalFeePerValidatorPaid[validator]; } return validatorProfits; } /** * @notice Returns the total amount staked by an account including earned rewards * @param account The address of the staker * @param validator The address of the validator * @return uint256 The total staked amount * @dev Does not include tokens in unstake requests */ function userStakedAmount(address account, address validator) public view returns (uint256) { (, uint256 userRewardsPerToken) = _getValidatorUserRewards(validator); return _userBalanceStaked[account][validator] + _getUserRewards(account, validator, userRewardsPerToken); } /** * @notice Returns all unstake requests for a user and validator * @param account The address of the user * @param validator The address of the validator * @return requestIndexes Array of indexes of unstake requests * @return amounts Array of amounts for each unstake request * @return cooloffEndTimes Array of cooloff end times for each unstake request */ function getUnstakeRequests(address account, address validator) external view returns (uint256[] memory requestIndexes, uint256[] memory amounts, uint256[] memory cooloffEndTimes) { UnstakeRequest[] storage requests = unstakeRequests[account][validator]; uint256 len = requests.length; requestIndexes = new uint256[](len); amounts = new uint256[](len); cooloffEndTimes = new uint256[](len); for (uint256 i = 0; i < len; i++) { requestIndexes[i] = i; amounts[i] = requests[i].amount; cooloffEndTimes[i] = requests[i].cooloffEndTime; } return (requestIndexes, amounts, cooloffEndTimes); } /** * @notice Returns all registered validators * @return validators Array of all registered validator addresses */ function getValidators() external view returns (address[] memory) { return _validatorAddresses; } /** * @notice Returns all validators a user is staking with * @param account The address of the user * @return validators Array of validator addresses the user is staking with */ function getUserValidators(address account) external view returns (address[] memory) { return _userValidators[account]; } /** * @notice Internal function to stake native Sophon with a specified validator * @param validator The address of the validator to stake with * @param receiver The address that will receive the staked tokens * @param amount The amount of tokens to stake */ function _stake(address validator, address receiver, uint256 amount) internal { if (amount == 0) revert StakeIsZero(); if (validator == address(0) || receiver == address(0)) revert ZeroAddress(); ValidatorInfo storage validatorInfo = validators[validator]; if (!validatorInfo.isRegistered) revert ValidatorNotRegistered(validator); if (validatorInfo.isPaused) revert ValidatorIsPaused(validator); settleEarnings(validator, receiver); uint256 userBalanceStaked = _userBalanceStaked[receiver][validator]; // add validator to user's validators if this is their first stake with this validator if (userBalanceStaked == 0 && _userBalanceUnstaking[receiver][validator] == 0) { _addValidatorToUser(receiver, validator); } // update staking balances _userBalanceStaked[receiver][validator] = userBalanceStaked + amount; _validatorTotalStaked[validator] += amount; _updateValidatorProfitsRatioWithAdd(validator, amount); emit Stake(receiver, validator, amount); } /** * @notice Internal function to add a validator to a user's list of validators * @param account The address of the user * @param validator The address of the validator to add */ function _addValidatorToUser(address account, address validator) internal { _userValidators[account].push(validator); uint256 lastIndexAfterAddition = _userValidators[account].length - 1; _userValidatorIndex[account][validator] = lastIndexAfterAddition; validatorTotalStakers[validator]++; if (lastIndexAfterAddition == 0) { totalStakers++; } } /** * @notice Internal function to remove a validator from a user's list of validators * @param account The address of the user * @param validator The address of the validator to remove */ function _removeValidatorFromUser(address account, address validator) internal { uint256 index = _userValidatorIndex[account][validator]; uint256 lastIndexBeforeRemoval = _userValidators[account].length - 1; if (index != lastIndexBeforeRemoval) { address lastValidator = _userValidators[account][lastIndexBeforeRemoval]; _userValidators[account][index] = lastValidator; _userValidatorIndex[account][lastValidator] = index; } _userValidators[account].pop(); delete _userValidatorIndex[account][validator]; validatorTotalStakers[validator]--; if (lastIndexBeforeRemoval == 0) { totalStakers--; } } /** * @notice Internal function to calculate validator profits * @param validator The address of the validator * @return validatorProfits The profits for the validator */ function _getValidatorProfits(address validator) internal view returns (uint256 validatorProfits) { validatorProfits = _validatorProfits[validator]; uint256 validatorStaked = _validatorTotalStaked[validator]; if (validatorStaked != 0) { // calculate validator profits if validator has a staked amount (also means it's not paused) validatorProfits += validatorStaked * (_utilizedRewardsPerToken - _utilizedRewardsPerTokenPaid[validator]) * validators[validator].feePercent / 10000 / 1e36; } } /** * @notice Internal function to calculate unsettled user rewards for a validator * @param validator The address of the validator * @return validatorUserRewardsUnsettled The unsettled user rewards for the validator's stakers * @return userRewardsPerToken The rewards per token for the validator's stakers */ function _getValidatorUserRewards(address validator) internal view returns (uint256 validatorUserRewardsUnsettled, uint256 userRewardsPerToken) { validatorUserRewardsUnsettled = _validatorUserRewardsUnsettled[validator]; userRewardsPerToken = _validatorUserRewardsPerTokenPaid[validator]; uint256 validatorTotalStaked = _validatorTotalStaked[validator]; if (validatorTotalStaked != 0) { // calculate new user rewards if validator has a staked amount (also means it's not paused) uint256 newValidatorUserRewards = validatorTotalStaked * (_globalUserSharePerToken - _validatorUserSharePerTokenPaid[validator]) / 1e36; if (newValidatorUserRewards != 0) { validatorUserRewardsUnsettled += newValidatorUserRewards; // calculate rewards per token for stakers to this validator userRewardsPerToken += newValidatorUserRewards * 1e36 / validatorTotalStaked; } } return (validatorUserRewardsUnsettled, userRewardsPerToken); } /** * @notice Internal function to calculate user staking values including earned rewards * @param account The address of the user account * @param validator The address of the validator * @param userRewardsPerToken The rewards per token for the validator's stakers * @return userRewards The new rewards for the user */ function _getUserRewards(address account, address validator, uint256 userRewardsPerToken) internal view returns (uint256 userRewards) { uint256 userBalanceStaked = _userBalanceStaked[account][validator]; if (userBalanceStaked != 0) { userRewards = userBalanceStaked * (userRewardsPerToken - _userRewardsPerTokenPaid[account][validator]) / 1e36; } } /** * @notice Internal function to update validator profits ratio when adding stake * @param validator The address of the validator * @param addAmount The amount being added to the stake */ function _updateValidatorProfitsRatioWithAdd(address validator, uint256 addAmount) internal { if (addAmount == 0) { return; } uint256 totalStaked = _totalStaked; uint256 validatorProfitsNumerator = _validatorProfitsNumerator; totalStaked = totalStaked + addAmount; validatorProfitsNumerator = validatorProfitsNumerator + addAmount * validators[validator].feePercent / MAX_PERCENT; _validatorProfitsRatio = validatorProfitsNumerator * 1e36 / totalStaked; _totalStaked = totalStaked; _validatorProfitsNumerator = validatorProfitsNumerator; } /** * @notice Internal function to update validator profits ratio when removing stake * @param validator The address of the validator * @param subAmount The amount being subtracted from the stake */ function _updateValidatorProfitsRatioWithSub(address validator, uint256 subAmount) internal { if (subAmount == 0) { return; } uint256 totalStaked = _totalStaked; uint256 validatorProfitsNumerator = _validatorProfitsNumerator; if (totalStaked > subAmount) { totalStaked -= subAmount; } else { totalStaked = 0; } if (totalStaked != 0) { validatorProfitsNumerator -= subAmount * validators[validator].feePercent / MAX_PERCENT; _validatorProfitsRatio = validatorProfitsNumerator * 1e36 / totalStaked; } else { validatorProfitsNumerator = 0; _validatorProfitsRatio = 0; } _totalStaked = totalStaked; _validatorProfitsNumerator = validatorProfitsNumerator; } /** * @notice Internal function to update validator profits ratio after fee change * @param validator The address of the validator * @param oldFeePercent The previous fee percentage * @param newFeePercent The new fee percentage */ function _updateValidatorProfitsRatioAfterFeeChange(address validator, uint256 oldFeePercent, uint256 newFeePercent) internal { uint256 totalStaked = _totalStaked; if (totalStaked != 0) { uint256 validatorTotalStaked = _validatorTotalStaked[validator]; uint256 validatorProfitsNumerator = _validatorProfitsNumerator; validatorProfitsNumerator += validatorTotalStaked * newFeePercent / MAX_PERCENT; validatorProfitsNumerator -= validatorTotalStaked * oldFeePercent / MAX_PERCENT; _validatorProfitsRatio = validatorProfitsNumerator * 1e36 / totalStaked; _validatorProfitsNumerator = validatorProfitsNumerator; } } /** * @notice Calculates the square root of a number * @param x The number to calculate the square root of * @return y The square root of the input * @dev Uses the Babylonian method for square root approximation */ function sqrt(uint256 x) public pure returns (uint256 y) { if (x == 0) return 0; // initial estimate y = x; uint256 z = (y + (x / y)) >> 1; // iterate until we reach the result while (z < y) { y = z; z = (y + (x / y)) >> 1; } } /** * @notice Fallback function that receives native Sophon * @dev Accumulates received value for later distribution */ receive() external payable { if (msg.value == 0) return; uint256 balanceForCalc = address(this).balance - msg.value; if (balanceForCalc == 0) { // no one has staked anything yet revert NoStakedSophon(); } uint256 globalFeeAmount = msg.value * globalFeePercent / MAX_PERCENT; _globalFeePerValidator += globalFeeAmount / _validatorAddresses.length; uint256 rewardsNotAllocated = msg.value - globalFeeAmount; uint256 totalStaked = _totalStaked; if (totalStaked != 0) { uint256 utilizedRewards; uint256 a = sqrt(balanceForCalc); uint256 b = _circulatingSupplySqrt; if (a > b) { utilizedRewards = rewardsNotAllocated; } else { utilizedRewards = rewardsNotAllocated * a / b; } rewardsNotAllocated -= utilizedRewards; // track utilized rewards per token for validator fee collection _utilizedRewardsPerToken += utilizedRewards * 1e36 / totalStaked; // track user rewards after removing validator fees uint256 userRewards = utilizedRewards - (utilizedRewards * _validatorProfitsRatio / 1e36); _globalUserRewardsUnsettled += userRewards; _globalUserSharePerToken += userRewards * 1e36 / totalStaked; } // unutilized rewards unutilizedRewards += rewardsNotAllocated; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "contracts/token/ERC20/IERC20.sol"; import {IERC20Permit} from "contracts/token/ERC20/extensions/IERC20Permit.sol"; import {Address} from "contracts/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 An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @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.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @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); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @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(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @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 v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) 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 FailedInnerCall(); } } }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.28; import "contracts/access/extensions/AccessControlDefaultAdminRules.sol"; import "contracts/common/Initializable.sol"; /** * @title UpgradeableAccessControl * @notice This contract extends AccessControlDefaultAdminRules to provide role-based access control with an upgradeable implementation. * @dev Allows the default admin to replace the implementation address with a new one and optionally initialize it. The admin role changes are subject to a delay defined in the constructor. */ contract UpgradeableAccessControl is AccessControlDefaultAdminRules, Initializable { /// @notice The slot containing the address of the current implementation contract. bytes32 public constant IMPLEMENTATION_SLOT = keccak256("IMPLEMENTATION_SLOT"); /** * @notice Constructs the UpgradeableAccessControl contract. * @dev Initializes the AccessControlDefaultAdminRules with a delay of 3 days and sets the initial default admin. */ constructor(address initialOwner) AccessControlDefaultAdminRules(3 days, initialOwner) {} /** * @notice Replaces the current implementation with a new one and optionally initializes it. * @dev Can only be called by an account with the DEFAULT_ADMIN_ROLE. If `initData_` is provided, a delegatecall is made to the new implementation with that data. * @param impl_ The address of the new implementation contract. * @param initData_ Optional initialization data to delegatecall to the new implementation. */ function replaceImplementation(address impl_, bytes memory initData_) public onlyRole(DEFAULT_ADMIN_ROLE) { _replaceImplementation(impl_, initData_); } /** * @notice Internal function that replaces the current implementation with a new one and optionally initializes it. * @dev Can only be called by an account with the DEFAULT_ADMIN_ROLE. If `initData_` is provided, a delegatecall is made to the new implementation with that data. * @param impl_ The address of the new implementation contract. * @param initData_ Optional initialization data to delegatecall to the new implementation. */ function _replaceImplementation(address impl_, bytes memory initData_) internal { require(impl_ != address(0), "impl_ is zero address"); bytes32 slot = IMPLEMENTATION_SLOT; assembly { sstore(slot, impl_) } if (initData_.length != 0) { (bool success,) = impl_.delegatecall(initData_); require(success, "init failed"); } } /** * @notice Checks if the contract implements an interface. * @dev Overrides supportsInterface from AccessControlDefaultAdminRules. * @param interfaceId The interface identifier, as specified in ERC-165. * @return True if the contract implements `interfaceId`, false otherwise. */ function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlDefaultAdminRules) returns (bool) { return super.supportsInterface(interfaceId); } /** * @notice Returns the current implementation address * @return The current implementation address */ function implementation() public view returns (address) { address implementation_; bytes32 slot = IMPLEMENTATION_SLOT; assembly { implementation_ := sload(slot) } return implementation_; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/AccessControlDefaultAdminRules.sol) pragma solidity ^0.8.20; import {IAccessControlDefaultAdminRules} from "contracts/access/extensions/IAccessControlDefaultAdminRules.sol"; import {AccessControl, IAccessControl} from "contracts/access/AccessControl.sol"; import {SafeCast} from "contracts/utils/math/SafeCast.sol"; import {Math} from "contracts/utils/math/Math.sol"; import {IERC5313} from "contracts/interfaces/IERC5313.sol"; /** * @dev Extension of {AccessControl} that allows specifying special rules to manage * the `DEFAULT_ADMIN_ROLE` holder, which is a sensitive role with special permissions * over other roles that may potentially have privileged rights in the system. * * If a specific role doesn't have an admin role assigned, the holder of the * `DEFAULT_ADMIN_ROLE` will have the ability to grant it and revoke it. * * This contract implements the following risk mitigations on top of {AccessControl}: * * * Only one account holds the `DEFAULT_ADMIN_ROLE` since deployment until it's potentially renounced. * * Enforces a 2-step process to transfer the `DEFAULT_ADMIN_ROLE` to another account. * * Enforces a configurable delay between the two steps, with the ability to cancel before the transfer is accepted. * * The delay can be changed by scheduling, see {changeDefaultAdminDelay}. * * It is not possible to use another role to manage the `DEFAULT_ADMIN_ROLE`. * * Example usage: * * ```solidity * contract MyToken is AccessControlDefaultAdminRules { * constructor() AccessControlDefaultAdminRules( * 3 days, * msg.sender // Explicit initial `DEFAULT_ADMIN_ROLE` holder * ) {} * } * ``` */ abstract contract AccessControlDefaultAdminRules is IAccessControlDefaultAdminRules, IERC5313, AccessControl { // pending admin pair read/written together frequently address private _pendingDefaultAdmin; uint48 private _pendingDefaultAdminSchedule; // 0 == unset uint48 private _currentDelay; address private _currentDefaultAdmin; // pending delay pair read/written together frequently uint48 private _pendingDelay; uint48 private _pendingDelaySchedule; // 0 == unset /** * @dev Sets the initial values for {defaultAdminDelay} and {defaultAdmin} address. */ constructor(uint48 initialDelay, address initialDefaultAdmin) { if (initialDefaultAdmin == address(0)) { revert AccessControlInvalidDefaultAdmin(address(0)); } _currentDelay = initialDelay; _grantRole(DEFAULT_ADMIN_ROLE, initialDefaultAdmin); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlDefaultAdminRules).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC5313-owner}. */ function owner() public view virtual returns (address) { return defaultAdmin(); } /// /// Override AccessControl role management /// /** * @dev See {AccessControl-grantRole}. Reverts for `DEFAULT_ADMIN_ROLE`. */ function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { if (role == DEFAULT_ADMIN_ROLE) { revert AccessControlEnforcedDefaultAdminRules(); } super.grantRole(role, account); } /** * @dev See {AccessControl-revokeRole}. Reverts for `DEFAULT_ADMIN_ROLE`. */ function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { if (role == DEFAULT_ADMIN_ROLE) { revert AccessControlEnforcedDefaultAdminRules(); } super.revokeRole(role, account); } /** * @dev See {AccessControl-renounceRole}. * * For the `DEFAULT_ADMIN_ROLE`, it only allows renouncing in two steps by first calling * {beginDefaultAdminTransfer} to the `address(0)`, so it's required that the {pendingDefaultAdmin} schedule * has also passed when calling this function. * * After its execution, it will not be possible to call `onlyRole(DEFAULT_ADMIN_ROLE)` functions. * * NOTE: Renouncing `DEFAULT_ADMIN_ROLE` will leave the contract without a {defaultAdmin}, * thereby disabling any functionality that is only available for it, and the possibility of reassigning a * non-administrated role. */ function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { if (role == DEFAULT_ADMIN_ROLE && account == defaultAdmin()) { (address newDefaultAdmin, uint48 schedule) = pendingDefaultAdmin(); if (newDefaultAdmin != address(0) || !_isScheduleSet(schedule) || !_hasSchedulePassed(schedule)) { revert AccessControlEnforcedDefaultAdminDelay(schedule); } delete _pendingDefaultAdminSchedule; } super.renounceRole(role, account); } /** * @dev See {AccessControl-_grantRole}. * * For `DEFAULT_ADMIN_ROLE`, it only allows granting if there isn't already a {defaultAdmin} or if the * role has been previously renounced. * * NOTE: Exposing this function through another mechanism may make the `DEFAULT_ADMIN_ROLE` * assignable again. Make sure to guarantee this is the expected behavior in your implementation. */ function _grantRole(bytes32 role, address account) internal virtual override returns (bool) { if (role == DEFAULT_ADMIN_ROLE) { if (defaultAdmin() != address(0)) { revert AccessControlEnforcedDefaultAdminRules(); } _currentDefaultAdmin = account; } return super._grantRole(role, account); } /** * @dev See {AccessControl-_revokeRole}. */ function _revokeRole(bytes32 role, address account) internal virtual override returns (bool) { if (role == DEFAULT_ADMIN_ROLE && account == defaultAdmin()) { delete _currentDefaultAdmin; } return super._revokeRole(role, account); } /** * @dev See {AccessControl-_setRoleAdmin}. Reverts for `DEFAULT_ADMIN_ROLE`. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual override { if (role == DEFAULT_ADMIN_ROLE) { revert AccessControlEnforcedDefaultAdminRules(); } super._setRoleAdmin(role, adminRole); } /// /// AccessControlDefaultAdminRules accessors /// /** * @inheritdoc IAccessControlDefaultAdminRules */ function defaultAdmin() public view virtual returns (address) { return _currentDefaultAdmin; } /** * @inheritdoc IAccessControlDefaultAdminRules */ function pendingDefaultAdmin() public view virtual returns (address newAdmin, uint48 schedule) { return (_pendingDefaultAdmin, _pendingDefaultAdminSchedule); } /** * @inheritdoc IAccessControlDefaultAdminRules */ function defaultAdminDelay() public view virtual returns (uint48) { uint48 schedule = _pendingDelaySchedule; return (_isScheduleSet(schedule) && _hasSchedulePassed(schedule)) ? _pendingDelay : _currentDelay; } /** * @inheritdoc IAccessControlDefaultAdminRules */ function pendingDefaultAdminDelay() public view virtual returns (uint48 newDelay, uint48 schedule) { schedule = _pendingDelaySchedule; return (_isScheduleSet(schedule) && !_hasSchedulePassed(schedule)) ? (_pendingDelay, schedule) : (0, 0); } /** * @inheritdoc IAccessControlDefaultAdminRules */ function defaultAdminDelayIncreaseWait() public view virtual returns (uint48) { return 5 days; } /// /// AccessControlDefaultAdminRules public and internal setters for defaultAdmin/pendingDefaultAdmin /// /** * @inheritdoc IAccessControlDefaultAdminRules */ function beginDefaultAdminTransfer(address newAdmin) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { _beginDefaultAdminTransfer(newAdmin); } /** * @dev See {beginDefaultAdminTransfer}. * * Internal function without access restriction. */ function _beginDefaultAdminTransfer(address newAdmin) internal virtual { uint48 newSchedule = SafeCast.toUint48(block.timestamp) + defaultAdminDelay(); _setPendingDefaultAdmin(newAdmin, newSchedule); emit DefaultAdminTransferScheduled(newAdmin, newSchedule); } /** * @inheritdoc IAccessControlDefaultAdminRules */ function cancelDefaultAdminTransfer() public virtual onlyRole(DEFAULT_ADMIN_ROLE) { _cancelDefaultAdminTransfer(); } /** * @dev See {cancelDefaultAdminTransfer}. * * Internal function without access restriction. */ function _cancelDefaultAdminTransfer() internal virtual { _setPendingDefaultAdmin(address(0), 0); } /** * @inheritdoc IAccessControlDefaultAdminRules */ function acceptDefaultAdminTransfer() public virtual { (address newDefaultAdmin, ) = pendingDefaultAdmin(); if (_msgSender() != newDefaultAdmin) { // Enforce newDefaultAdmin explicit acceptance. revert AccessControlInvalidDefaultAdmin(_msgSender()); } _acceptDefaultAdminTransfer(); } /** * @dev See {acceptDefaultAdminTransfer}. * * Internal function without access restriction. */ function _acceptDefaultAdminTransfer() internal virtual { (address newAdmin, uint48 schedule) = pendingDefaultAdmin(); if (!_isScheduleSet(schedule) || !_hasSchedulePassed(schedule)) { revert AccessControlEnforcedDefaultAdminDelay(schedule); } _revokeRole(DEFAULT_ADMIN_ROLE, defaultAdmin()); _grantRole(DEFAULT_ADMIN_ROLE, newAdmin); delete _pendingDefaultAdmin; delete _pendingDefaultAdminSchedule; } /// /// AccessControlDefaultAdminRules public and internal setters for defaultAdminDelay/pendingDefaultAdminDelay /// /** * @inheritdoc IAccessControlDefaultAdminRules */ function changeDefaultAdminDelay(uint48 newDelay) public virtual onlyRole(DEFAULT_ADMIN_ROLE) { _changeDefaultAdminDelay(newDelay); } /** * @dev See {changeDefaultAdminDelay}. * * Internal function without access restriction. */ function _changeDefaultAdminDelay(uint48 newDelay) internal virtual { uint48 newSchedule = SafeCast.toUint48(block.timestamp) + _delayChangeWait(newDelay); _setPendingDelay(newDelay, newSchedule); emit DefaultAdminDelayChangeScheduled(newDelay, newSchedule); } /** * @inheritdoc IAccessControlDefaultAdminRules */ function rollbackDefaultAdminDelay() public virtual onlyRole(DEFAULT_ADMIN_ROLE) { _rollbackDefaultAdminDelay(); } /** * @dev See {rollbackDefaultAdminDelay}. * * Internal function without access restriction. */ function _rollbackDefaultAdminDelay() internal virtual { _setPendingDelay(0, 0); } /** * @dev Returns the amount of seconds to wait after the `newDelay` will * become the new {defaultAdminDelay}. * * The value returned guarantees that if the delay is reduced, it will go into effect * after a wait that honors the previously set delay. * * See {defaultAdminDelayIncreaseWait}. */ function _delayChangeWait(uint48 newDelay) internal view virtual returns (uint48) { uint48 currentDelay = defaultAdminDelay(); // When increasing the delay, we schedule the delay change to occur after a period of "new delay" has passed, up // to a maximum given by defaultAdminDelayIncreaseWait, by default 5 days. For example, if increasing from 1 day // to 3 days, the new delay will come into effect after 3 days. If increasing from 1 day to 10 days, the new // delay will come into effect after 5 days. The 5 day wait period is intended to be able to fix an error like // using milliseconds instead of seconds. // // When decreasing the delay, we wait the difference between "current delay" and "new delay". This guarantees // that an admin transfer cannot be made faster than "current delay" at the time the delay change is scheduled. // For example, if decreasing from 10 days to 3 days, the new delay will come into effect after 7 days. return newDelay > currentDelay ? uint48(Math.min(newDelay, defaultAdminDelayIncreaseWait())) // no need to safecast, both inputs are uint48 : currentDelay - newDelay; } /// /// Private setters /// /** * @dev Setter of the tuple for pending admin and its schedule. * * May emit a DefaultAdminTransferCanceled event. */ function _setPendingDefaultAdmin(address newAdmin, uint48 newSchedule) private { (, uint48 oldSchedule) = pendingDefaultAdmin(); _pendingDefaultAdmin = newAdmin; _pendingDefaultAdminSchedule = newSchedule; // An `oldSchedule` from `pendingDefaultAdmin()` is only set if it hasn't been accepted. if (_isScheduleSet(oldSchedule)) { // Emit for implicit cancellations when another default admin was scheduled. emit DefaultAdminTransferCanceled(); } } /** * @dev Setter of the tuple for pending delay and its schedule. * * May emit a DefaultAdminDelayChangeCanceled event. */ function _setPendingDelay(uint48 newDelay, uint48 newSchedule) private { uint48 oldSchedule = _pendingDelaySchedule; if (_isScheduleSet(oldSchedule)) { if (_hasSchedulePassed(oldSchedule)) { // Materialize a virtual delay _currentDelay = _pendingDelay; } else { // Emit for implicit cancellations when another delay was scheduled. emit DefaultAdminDelayChangeCanceled(); } } _pendingDelay = newDelay; _pendingDelaySchedule = newSchedule; } /// /// Private helpers /// /** * @dev Defines if an `schedule` is considered set. For consistency purposes. */ function _isScheduleSet(uint48 schedule) private pure returns (bool) { return schedule != 0; } /** * @dev Defines if an `schedule` is considered passed. For consistency purposes. */ function _hasSchedulePassed(uint48 schedule) private view returns (bool) { return schedule < block.timestamp; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/extensions/IAccessControlDefaultAdminRules.sol) pragma solidity ^0.8.20; import {IAccessControl} from "contracts/access/IAccessControl.sol"; /** * @dev External interface of AccessControlDefaultAdminRules declared to support ERC165 detection. */ interface IAccessControlDefaultAdminRules is IAccessControl { /** * @dev The new default admin is not a valid default admin. */ error AccessControlInvalidDefaultAdmin(address defaultAdmin); /** * @dev At least one of the following rules was violated: * * - The `DEFAULT_ADMIN_ROLE` must only be managed by itself. * - The `DEFAULT_ADMIN_ROLE` must only be held by one account at the time. * - Any `DEFAULT_ADMIN_ROLE` transfer must be in two delayed steps. */ error AccessControlEnforcedDefaultAdminRules(); /** * @dev The delay for transferring the default admin delay is enforced and * the operation must wait until `schedule`. * * NOTE: `schedule` can be 0 indicating there's no transfer scheduled. */ error AccessControlEnforcedDefaultAdminDelay(uint48 schedule); /** * @dev Emitted when a {defaultAdmin} transfer is started, setting `newAdmin` as the next * address to become the {defaultAdmin} by calling {acceptDefaultAdminTransfer} only after `acceptSchedule` * passes. */ event DefaultAdminTransferScheduled(address indexed newAdmin, uint48 acceptSchedule); /** * @dev Emitted when a {pendingDefaultAdmin} is reset if it was never accepted, regardless of its schedule. */ event DefaultAdminTransferCanceled(); /** * @dev Emitted when a {defaultAdminDelay} change is started, setting `newDelay` as the next * delay to be applied between default admin transfer after `effectSchedule` has passed. */ event DefaultAdminDelayChangeScheduled(uint48 newDelay, uint48 effectSchedule); /** * @dev Emitted when a {pendingDefaultAdminDelay} is reset if its schedule didn't pass. */ event DefaultAdminDelayChangeCanceled(); /** * @dev Returns the address of the current `DEFAULT_ADMIN_ROLE` holder. */ function defaultAdmin() external view returns (address); /** * @dev Returns a tuple of a `newAdmin` and an accept schedule. * * After the `schedule` passes, the `newAdmin` will be able to accept the {defaultAdmin} role * by calling {acceptDefaultAdminTransfer}, completing the role transfer. * * A zero value only in `acceptSchedule` indicates no pending admin transfer. * * NOTE: A zero address `newAdmin` means that {defaultAdmin} is being renounced. */ function pendingDefaultAdmin() external view returns (address newAdmin, uint48 acceptSchedule); /** * @dev Returns the delay required to schedule the acceptance of a {defaultAdmin} transfer started. * * This delay will be added to the current timestamp when calling {beginDefaultAdminTransfer} to set * the acceptance schedule. * * NOTE: If a delay change has been scheduled, it will take effect as soon as the schedule passes, making this * function returns the new delay. See {changeDefaultAdminDelay}. */ function defaultAdminDelay() external view returns (uint48); /** * @dev Returns a tuple of `newDelay` and an effect schedule. * * After the `schedule` passes, the `newDelay` will get into effect immediately for every * new {defaultAdmin} transfer started with {beginDefaultAdminTransfer}. * * A zero value only in `effectSchedule` indicates no pending delay change. * * NOTE: A zero value only for `newDelay` means that the next {defaultAdminDelay} * will be zero after the effect schedule. */ function pendingDefaultAdminDelay() external view returns (uint48 newDelay, uint48 effectSchedule); /** * @dev Starts a {defaultAdmin} transfer by setting a {pendingDefaultAdmin} scheduled for acceptance * after the current timestamp plus a {defaultAdminDelay}. * * Requirements: * * - Only can be called by the current {defaultAdmin}. * * Emits a DefaultAdminRoleChangeStarted event. */ function beginDefaultAdminTransfer(address newAdmin) external; /** * @dev Cancels a {defaultAdmin} transfer previously started with {beginDefaultAdminTransfer}. * * A {pendingDefaultAdmin} not yet accepted can also be cancelled with this function. * * Requirements: * * - Only can be called by the current {defaultAdmin}. * * May emit a DefaultAdminTransferCanceled event. */ function cancelDefaultAdminTransfer() external; /** * @dev Completes a {defaultAdmin} transfer previously started with {beginDefaultAdminTransfer}. * * After calling the function: * * - `DEFAULT_ADMIN_ROLE` should be granted to the caller. * - `DEFAULT_ADMIN_ROLE` should be revoked from the previous holder. * - {pendingDefaultAdmin} should be reset to zero values. * * Requirements: * * - Only can be called by the {pendingDefaultAdmin}'s `newAdmin`. * - The {pendingDefaultAdmin}'s `acceptSchedule` should've passed. */ function acceptDefaultAdminTransfer() external; /** * @dev Initiates a {defaultAdminDelay} update by setting a {pendingDefaultAdminDelay} scheduled for getting * into effect after the current timestamp plus a {defaultAdminDelay}. * * This function guarantees that any call to {beginDefaultAdminTransfer} done between the timestamp this * method is called and the {pendingDefaultAdminDelay} effect schedule will use the current {defaultAdminDelay} * set before calling. * * The {pendingDefaultAdminDelay}'s effect schedule is defined in a way that waiting until the schedule and then * calling {beginDefaultAdminTransfer} with the new delay will take at least the same as another {defaultAdmin} * complete transfer (including acceptance). * * The schedule is designed for two scenarios: * * - When the delay is changed for a larger one the schedule is `block.timestamp + newDelay` capped by * {defaultAdminDelayIncreaseWait}. * - When the delay is changed for a shorter one, the schedule is `block.timestamp + (current delay - new delay)`. * * A {pendingDefaultAdminDelay} that never got into effect will be canceled in favor of a new scheduled change. * * Requirements: * * - Only can be called by the current {defaultAdmin}. * * Emits a DefaultAdminDelayChangeScheduled event and may emit a DefaultAdminDelayChangeCanceled event. */ function changeDefaultAdminDelay(uint48 newDelay) external; /** * @dev Cancels a scheduled {defaultAdminDelay} change. * * Requirements: * * - Only can be called by the current {defaultAdmin}. * * May emit a DefaultAdminDelayChangeCanceled event. */ function rollbackDefaultAdminDelay() external; /** * @dev Maximum time in seconds for an increase to {defaultAdminDelay} (that is scheduled using {changeDefaultAdminDelay}) * to take effect. Default to 5 days. * * When the {defaultAdminDelay} is scheduled to be increased, it goes into effect after the new delay has passed with * the purpose of giving enough time for reverting any accidental change (i.e. using milliseconds instead of seconds) * that may lock the contract. However, to avoid excessive schedules, the wait is capped by this function and it can * be overrode for a custom {defaultAdminDelay} increase scheduling. * * IMPORTANT: Make sure to add a reasonable amount of time while overriding this value, otherwise, * there's a risk of setting a high new delay that goes into effect almost immediately without the * possibility of human intervention in the case of an input error (eg. set milliseconds instead of seconds). */ function defaultAdminDelayIncreaseWait() external view returns (uint48); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol) pragma solidity ^0.8.20; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @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. */ 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 `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) pragma solidity ^0.8.20; import {IAccessControl} from "contracts/access/IAccessControl.sol"; import {Context} from "contracts/utils/Context.sol"; import {ERC165} from "contracts/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 account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ 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 returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @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 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 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 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 `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @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 Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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 (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "contracts/utils/introspection/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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @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 v5.0.0) (utils/math/SafeCast.sol) // This file was procedurally generated from scripts/generate/templates/SafeCast.js. pragma solidity ^0.8.20; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such an operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeCast { /** * @dev Value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value); /** * @dev An int value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedIntToUint(int256 value); /** * @dev Value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedIntDowncast(uint8 bits, int256 value); /** * @dev An uint value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedUintToInt(uint256 value); /** * @dev Returns the downcasted uint248 from uint256, reverting on * overflow (when the input is greater than largest uint248). * * Counterpart to Solidity's `uint248` operator. * * Requirements: * * - input must fit into 248 bits */ function toUint248(uint256 value) internal pure returns (uint248) { if (value > type(uint248).max) { revert SafeCastOverflowedUintDowncast(248, value); } return uint248(value); } /** * @dev Returns the downcasted uint240 from uint256, reverting on * overflow (when the input is greater than largest uint240). * * Counterpart to Solidity's `uint240` operator. * * Requirements: * * - input must fit into 240 bits */ function toUint240(uint256 value) internal pure returns (uint240) { if (value > type(uint240).max) { revert SafeCastOverflowedUintDowncast(240, value); } return uint240(value); } /** * @dev Returns the downcasted uint232 from uint256, reverting on * overflow (when the input is greater than largest uint232). * * Counterpart to Solidity's `uint232` operator. * * Requirements: * * - input must fit into 232 bits */ function toUint232(uint256 value) internal pure returns (uint232) { if (value > type(uint232).max) { revert SafeCastOverflowedUintDowncast(232, value); } return uint232(value); } /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { if (value > type(uint224).max) { revert SafeCastOverflowedUintDowncast(224, value); } return uint224(value); } /** * @dev Returns the downcasted uint216 from uint256, reverting on * overflow (when the input is greater than largest uint216). * * Counterpart to Solidity's `uint216` operator. * * Requirements: * * - input must fit into 216 bits */ function toUint216(uint256 value) internal pure returns (uint216) { if (value > type(uint216).max) { revert SafeCastOverflowedUintDowncast(216, value); } return uint216(value); } /** * @dev Returns the downcasted uint208 from uint256, reverting on * overflow (when the input is greater than largest uint208). * * Counterpart to Solidity's `uint208` operator. * * Requirements: * * - input must fit into 208 bits */ function toUint208(uint256 value) internal pure returns (uint208) { if (value > type(uint208).max) { revert SafeCastOverflowedUintDowncast(208, value); } return uint208(value); } /** * @dev Returns the downcasted uint200 from uint256, reverting on * overflow (when the input is greater than largest uint200). * * Counterpart to Solidity's `uint200` operator. * * Requirements: * * - input must fit into 200 bits */ function toUint200(uint256 value) internal pure returns (uint200) { if (value > type(uint200).max) { revert SafeCastOverflowedUintDowncast(200, value); } return uint200(value); } /** * @dev Returns the downcasted uint192 from uint256, reverting on * overflow (when the input is greater than largest uint192). * * Counterpart to Solidity's `uint192` operator. * * Requirements: * * - input must fit into 192 bits */ function toUint192(uint256 value) internal pure returns (uint192) { if (value > type(uint192).max) { revert SafeCastOverflowedUintDowncast(192, value); } return uint192(value); } /** * @dev Returns the downcasted uint184 from uint256, reverting on * overflow (when the input is greater than largest uint184). * * Counterpart to Solidity's `uint184` operator. * * Requirements: * * - input must fit into 184 bits */ function toUint184(uint256 value) internal pure returns (uint184) { if (value > type(uint184).max) { revert SafeCastOverflowedUintDowncast(184, value); } return uint184(value); } /** * @dev Returns the downcasted uint176 from uint256, reverting on * overflow (when the input is greater than largest uint176). * * Counterpart to Solidity's `uint176` operator. * * Requirements: * * - input must fit into 176 bits */ function toUint176(uint256 value) internal pure returns (uint176) { if (value > type(uint176).max) { revert SafeCastOverflowedUintDowncast(176, value); } return uint176(value); } /** * @dev Returns the downcasted uint168 from uint256, reverting on * overflow (when the input is greater than largest uint168). * * Counterpart to Solidity's `uint168` operator. * * Requirements: * * - input must fit into 168 bits */ function toUint168(uint256 value) internal pure returns (uint168) { if (value > type(uint168).max) { revert SafeCastOverflowedUintDowncast(168, value); } return uint168(value); } /** * @dev Returns the downcasted uint160 from uint256, reverting on * overflow (when the input is greater than largest uint160). * * Counterpart to Solidity's `uint160` operator. * * Requirements: * * - input must fit into 160 bits */ function toUint160(uint256 value) internal pure returns (uint160) { if (value > type(uint160).max) { revert SafeCastOverflowedUintDowncast(160, value); } return uint160(value); } /** * @dev Returns the downcasted uint152 from uint256, reverting on * overflow (when the input is greater than largest uint152). * * Counterpart to Solidity's `uint152` operator. * * Requirements: * * - input must fit into 152 bits */ function toUint152(uint256 value) internal pure returns (uint152) { if (value > type(uint152).max) { revert SafeCastOverflowedUintDowncast(152, value); } return uint152(value); } /** * @dev Returns the downcasted uint144 from uint256, reverting on * overflow (when the input is greater than largest uint144). * * Counterpart to Solidity's `uint144` operator. * * Requirements: * * - input must fit into 144 bits */ function toUint144(uint256 value) internal pure returns (uint144) { if (value > type(uint144).max) { revert SafeCastOverflowedUintDowncast(144, value); } return uint144(value); } /** * @dev Returns the downcasted uint136 from uint256, reverting on * overflow (when the input is greater than largest uint136). * * Counterpart to Solidity's `uint136` operator. * * Requirements: * * - input must fit into 136 bits */ function toUint136(uint256 value) internal pure returns (uint136) { if (value > type(uint136).max) { revert SafeCastOverflowedUintDowncast(136, value); } return uint136(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { if (value > type(uint128).max) { revert SafeCastOverflowedUintDowncast(128, value); } return uint128(value); } /** * @dev Returns the downcasted uint120 from uint256, reverting on * overflow (when the input is greater than largest uint120). * * Counterpart to Solidity's `uint120` operator. * * Requirements: * * - input must fit into 120 bits */ function toUint120(uint256 value) internal pure returns (uint120) { if (value > type(uint120).max) { revert SafeCastOverflowedUintDowncast(120, value); } return uint120(value); } /** * @dev Returns the downcasted uint112 from uint256, reverting on * overflow (when the input is greater than largest uint112). * * Counterpart to Solidity's `uint112` operator. * * Requirements: * * - input must fit into 112 bits */ function toUint112(uint256 value) internal pure returns (uint112) { if (value > type(uint112).max) { revert SafeCastOverflowedUintDowncast(112, value); } return uint112(value); } /** * @dev Returns the downcasted uint104 from uint256, reverting on * overflow (when the input is greater than largest uint104). * * Counterpart to Solidity's `uint104` operator. * * Requirements: * * - input must fit into 104 bits */ function toUint104(uint256 value) internal pure returns (uint104) { if (value > type(uint104).max) { revert SafeCastOverflowedUintDowncast(104, value); } return uint104(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { if (value > type(uint96).max) { revert SafeCastOverflowedUintDowncast(96, value); } return uint96(value); } /** * @dev Returns the downcasted uint88 from uint256, reverting on * overflow (when the input is greater than largest uint88). * * Counterpart to Solidity's `uint88` operator. * * Requirements: * * - input must fit into 88 bits */ function toUint88(uint256 value) internal pure returns (uint88) { if (value > type(uint88).max) { revert SafeCastOverflowedUintDowncast(88, value); } return uint88(value); } /** * @dev Returns the downcasted uint80 from uint256, reverting on * overflow (when the input is greater than largest uint80). * * Counterpart to Solidity's `uint80` operator. * * Requirements: * * - input must fit into 80 bits */ function toUint80(uint256 value) internal pure returns (uint80) { if (value > type(uint80).max) { revert SafeCastOverflowedUintDowncast(80, value); } return uint80(value); } /** * @dev Returns the downcasted uint72 from uint256, reverting on * overflow (when the input is greater than largest uint72). * * Counterpart to Solidity's `uint72` operator. * * Requirements: * * - input must fit into 72 bits */ function toUint72(uint256 value) internal pure returns (uint72) { if (value > type(uint72).max) { revert SafeCastOverflowedUintDowncast(72, value); } return uint72(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { if (value > type(uint64).max) { revert SafeCastOverflowedUintDowncast(64, value); } return uint64(value); } /** * @dev Returns the downcasted uint56 from uint256, reverting on * overflow (when the input is greater than largest uint56). * * Counterpart to Solidity's `uint56` operator. * * Requirements: * * - input must fit into 56 bits */ function toUint56(uint256 value) internal pure returns (uint56) { if (value > type(uint56).max) { revert SafeCastOverflowedUintDowncast(56, value); } return uint56(value); } /** * @dev Returns the downcasted uint48 from uint256, reverting on * overflow (when the input is greater than largest uint48). * * Counterpart to Solidity's `uint48` operator. * * Requirements: * * - input must fit into 48 bits */ function toUint48(uint256 value) internal pure returns (uint48) { if (value > type(uint48).max) { revert SafeCastOverflowedUintDowncast(48, value); } return uint48(value); } /** * @dev Returns the downcasted uint40 from uint256, reverting on * overflow (when the input is greater than largest uint40). * * Counterpart to Solidity's `uint40` operator. * * Requirements: * * - input must fit into 40 bits */ function toUint40(uint256 value) internal pure returns (uint40) { if (value > type(uint40).max) { revert SafeCastOverflowedUintDowncast(40, value); } return uint40(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { if (value > type(uint32).max) { revert SafeCastOverflowedUintDowncast(32, value); } return uint32(value); } /** * @dev Returns the downcasted uint24 from uint256, reverting on * overflow (when the input is greater than largest uint24). * * Counterpart to Solidity's `uint24` operator. * * Requirements: * * - input must fit into 24 bits */ function toUint24(uint256 value) internal pure returns (uint24) { if (value > type(uint24).max) { revert SafeCastOverflowedUintDowncast(24, value); } return uint24(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { if (value > type(uint16).max) { revert SafeCastOverflowedUintDowncast(16, value); } return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits */ function toUint8(uint256 value) internal pure returns (uint8) { if (value > type(uint8).max) { revert SafeCastOverflowedUintDowncast(8, value); } return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { if (value < 0) { revert SafeCastOverflowedIntToUint(value); } return uint256(value); } /** * @dev Returns the downcasted int248 from int256, reverting on * overflow (when the input is less than smallest int248 or * greater than largest int248). * * Counterpart to Solidity's `int248` operator. * * Requirements: * * - input must fit into 248 bits */ function toInt248(int256 value) internal pure returns (int248 downcasted) { downcasted = int248(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(248, value); } } /** * @dev Returns the downcasted int240 from int256, reverting on * overflow (when the input is less than smallest int240 or * greater than largest int240). * * Counterpart to Solidity's `int240` operator. * * Requirements: * * - input must fit into 240 bits */ function toInt240(int256 value) internal pure returns (int240 downcasted) { downcasted = int240(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(240, value); } } /** * @dev Returns the downcasted int232 from int256, reverting on * overflow (when the input is less than smallest int232 or * greater than largest int232). * * Counterpart to Solidity's `int232` operator. * * Requirements: * * - input must fit into 232 bits */ function toInt232(int256 value) internal pure returns (int232 downcasted) { downcasted = int232(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(232, value); } } /** * @dev Returns the downcasted int224 from int256, reverting on * overflow (when the input is less than smallest int224 or * greater than largest int224). * * Counterpart to Solidity's `int224` operator. * * Requirements: * * - input must fit into 224 bits */ function toInt224(int256 value) internal pure returns (int224 downcasted) { downcasted = int224(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(224, value); } } /** * @dev Returns the downcasted int216 from int256, reverting on * overflow (when the input is less than smallest int216 or * greater than largest int216). * * Counterpart to Solidity's `int216` operator. * * Requirements: * * - input must fit into 216 bits */ function toInt216(int256 value) internal pure returns (int216 downcasted) { downcasted = int216(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(216, value); } } /** * @dev Returns the downcasted int208 from int256, reverting on * overflow (when the input is less than smallest int208 or * greater than largest int208). * * Counterpart to Solidity's `int208` operator. * * Requirements: * * - input must fit into 208 bits */ function toInt208(int256 value) internal pure returns (int208 downcasted) { downcasted = int208(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(208, value); } } /** * @dev Returns the downcasted int200 from int256, reverting on * overflow (when the input is less than smallest int200 or * greater than largest int200). * * Counterpart to Solidity's `int200` operator. * * Requirements: * * - input must fit into 200 bits */ function toInt200(int256 value) internal pure returns (int200 downcasted) { downcasted = int200(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(200, value); } } /** * @dev Returns the downcasted int192 from int256, reverting on * overflow (when the input is less than smallest int192 or * greater than largest int192). * * Counterpart to Solidity's `int192` operator. * * Requirements: * * - input must fit into 192 bits */ function toInt192(int256 value) internal pure returns (int192 downcasted) { downcasted = int192(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(192, value); } } /** * @dev Returns the downcasted int184 from int256, reverting on * overflow (when the input is less than smallest int184 or * greater than largest int184). * * Counterpart to Solidity's `int184` operator. * * Requirements: * * - input must fit into 184 bits */ function toInt184(int256 value) internal pure returns (int184 downcasted) { downcasted = int184(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(184, value); } } /** * @dev Returns the downcasted int176 from int256, reverting on * overflow (when the input is less than smallest int176 or * greater than largest int176). * * Counterpart to Solidity's `int176` operator. * * Requirements: * * - input must fit into 176 bits */ function toInt176(int256 value) internal pure returns (int176 downcasted) { downcasted = int176(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(176, value); } } /** * @dev Returns the downcasted int168 from int256, reverting on * overflow (when the input is less than smallest int168 or * greater than largest int168). * * Counterpart to Solidity's `int168` operator. * * Requirements: * * - input must fit into 168 bits */ function toInt168(int256 value) internal pure returns (int168 downcasted) { downcasted = int168(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(168, value); } } /** * @dev Returns the downcasted int160 from int256, reverting on * overflow (when the input is less than smallest int160 or * greater than largest int160). * * Counterpart to Solidity's `int160` operator. * * Requirements: * * - input must fit into 160 bits */ function toInt160(int256 value) internal pure returns (int160 downcasted) { downcasted = int160(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(160, value); } } /** * @dev Returns the downcasted int152 from int256, reverting on * overflow (when the input is less than smallest int152 or * greater than largest int152). * * Counterpart to Solidity's `int152` operator. * * Requirements: * * - input must fit into 152 bits */ function toInt152(int256 value) internal pure returns (int152 downcasted) { downcasted = int152(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(152, value); } } /** * @dev Returns the downcasted int144 from int256, reverting on * overflow (when the input is less than smallest int144 or * greater than largest int144). * * Counterpart to Solidity's `int144` operator. * * Requirements: * * - input must fit into 144 bits */ function toInt144(int256 value) internal pure returns (int144 downcasted) { downcasted = int144(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(144, value); } } /** * @dev Returns the downcasted int136 from int256, reverting on * overflow (when the input is less than smallest int136 or * greater than largest int136). * * Counterpart to Solidity's `int136` operator. * * Requirements: * * - input must fit into 136 bits */ function toInt136(int256 value) internal pure returns (int136 downcasted) { downcasted = int136(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(136, value); } } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits */ function toInt128(int256 value) internal pure returns (int128 downcasted) { downcasted = int128(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(128, value); } } /** * @dev Returns the downcasted int120 from int256, reverting on * overflow (when the input is less than smallest int120 or * greater than largest int120). * * Counterpart to Solidity's `int120` operator. * * Requirements: * * - input must fit into 120 bits */ function toInt120(int256 value) internal pure returns (int120 downcasted) { downcasted = int120(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(120, value); } } /** * @dev Returns the downcasted int112 from int256, reverting on * overflow (when the input is less than smallest int112 or * greater than largest int112). * * Counterpart to Solidity's `int112` operator. * * Requirements: * * - input must fit into 112 bits */ function toInt112(int256 value) internal pure returns (int112 downcasted) { downcasted = int112(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(112, value); } } /** * @dev Returns the downcasted int104 from int256, reverting on * overflow (when the input is less than smallest int104 or * greater than largest int104). * * Counterpart to Solidity's `int104` operator. * * Requirements: * * - input must fit into 104 bits */ function toInt104(int256 value) internal pure returns (int104 downcasted) { downcasted = int104(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(104, value); } } /** * @dev Returns the downcasted int96 from int256, reverting on * overflow (when the input is less than smallest int96 or * greater than largest int96). * * Counterpart to Solidity's `int96` operator. * * Requirements: * * - input must fit into 96 bits */ function toInt96(int256 value) internal pure returns (int96 downcasted) { downcasted = int96(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(96, value); } } /** * @dev Returns the downcasted int88 from int256, reverting on * overflow (when the input is less than smallest int88 or * greater than largest int88). * * Counterpart to Solidity's `int88` operator. * * Requirements: * * - input must fit into 88 bits */ function toInt88(int256 value) internal pure returns (int88 downcasted) { downcasted = int88(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(88, value); } } /** * @dev Returns the downcasted int80 from int256, reverting on * overflow (when the input is less than smallest int80 or * greater than largest int80). * * Counterpart to Solidity's `int80` operator. * * Requirements: * * - input must fit into 80 bits */ function toInt80(int256 value) internal pure returns (int80 downcasted) { downcasted = int80(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(80, value); } } /** * @dev Returns the downcasted int72 from int256, reverting on * overflow (when the input is less than smallest int72 or * greater than largest int72). * * Counterpart to Solidity's `int72` operator. * * Requirements: * * - input must fit into 72 bits */ function toInt72(int256 value) internal pure returns (int72 downcasted) { downcasted = int72(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(72, value); } } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits */ function toInt64(int256 value) internal pure returns (int64 downcasted) { downcasted = int64(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(64, value); } } /** * @dev Returns the downcasted int56 from int256, reverting on * overflow (when the input is less than smallest int56 or * greater than largest int56). * * Counterpart to Solidity's `int56` operator. * * Requirements: * * - input must fit into 56 bits */ function toInt56(int256 value) internal pure returns (int56 downcasted) { downcasted = int56(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(56, value); } } /** * @dev Returns the downcasted int48 from int256, reverting on * overflow (when the input is less than smallest int48 or * greater than largest int48). * * Counterpart to Solidity's `int48` operator. * * Requirements: * * - input must fit into 48 bits */ function toInt48(int256 value) internal pure returns (int48 downcasted) { downcasted = int48(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(48, value); } } /** * @dev Returns the downcasted int40 from int256, reverting on * overflow (when the input is less than smallest int40 or * greater than largest int40). * * Counterpart to Solidity's `int40` operator. * * Requirements: * * - input must fit into 40 bits */ function toInt40(int256 value) internal pure returns (int40 downcasted) { downcasted = int40(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(40, value); } } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits */ function toInt32(int256 value) internal pure returns (int32 downcasted) { downcasted = int32(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(32, value); } } /** * @dev Returns the downcasted int24 from int256, reverting on * overflow (when the input is less than smallest int24 or * greater than largest int24). * * Counterpart to Solidity's `int24` operator. * * Requirements: * * - input must fit into 24 bits */ function toInt24(int256 value) internal pure returns (int24 downcasted) { downcasted = int24(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(24, value); } } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits */ function toInt16(int256 value) internal pure returns (int16 downcasted) { downcasted = int16(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(16, value); } } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits */ function toInt8(int256 value) internal pure returns (int8 downcasted) { downcasted = int8(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(8, value); } } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive if (value > uint256(type(int256).max)) { revert SafeCastOverflowedUintToInt(value); } return int256(value); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the 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 towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (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 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) 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. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 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. uint256 twos = denominator & (0 - denominator); 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 (unsignedRoundsUp(rounding) && 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 * towards zero. * * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5313.sol) pragma solidity ^0.8.20; /** * @dev Interface for the Light Contract Ownership Standard. * * A standardized minimal interface required to identify an account that controls a contract */ interface IERC5313 { /** * @dev Gets the address of the owner. */ function owner() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.28; contract Initializable { error AlreadyInitialized(); uint256 private constant NOT_INITIALIZED = 1; uint256 private constant INITIALIZED = 2; uint256 private _status; modifier notInitialized() { if (_status == INITIALIZED) { revert AlreadyInitialized(); } _status = INITIALIZED; _; } constructor() { _status = NOT_INITIALIZED; } function _setInitialized() internal notInitialized {} }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.28; /** * @title SophonStakingSignals * @notice Contains all events and custom errors used by the SophonStaking contract * @dev This contract is not meant to be deployed on its own, but to be inherited by SophonStaking */ contract SophonStakingSignals { // Events /** * @notice Emitted when a user stakes tokens * @param user Address of the user who staked * @param validator Address of the validator staked with * @param amount Amount of tokens staked */ event Stake(address indexed user, address indexed validator, uint256 amount); /** * @notice Emitted when a user initiates an unstake request * @param user Address of the user who initiated the unstake * @param validator Address of the validator being unstaked from * @param amount Amount of tokens requested to unstake * @param cooloffEndTime Timestamp when the cooloff period ends */ event UnstakeInitiated(address indexed user, address indexed validator, uint256 amount, uint256 cooloffEndTime); /** * @notice Emitted when a user completes the unstaking process * @param user Address of the user who unstaked * @param validator Address of the validator unstaked from * @param amount Amount of tokens unstaked */ event Unstake(address indexed user, address indexed validator, uint256 amount); /** * @notice Emitted when a user cancels all unstake requests for a validator * @param user Address of the user who cancelled the requests * @param validator Address of the validator for which requests were cancelled * @param numRequests Number of requests that were cancelled * @param totalAmount Amount of tokens that were unstaked and now returned to the earning pool */ event UnstakeRequestsCancelled( address indexed user, address indexed validator, uint256 numRequests, uint256 totalAmount ); /** * @notice Emitted when the cooloff period is updated * @param oldPeriod Previous cooloff period in seconds * @param newPeriod New cooloff period in seconds */ event CooloffPeriodUpdated(uint256 oldPeriod, uint256 newPeriod); /** * @notice Emitted when a new validator is registered * @param validator Address of the registered validator * @param feeManager Address of the fee manager for the validator * @param feePercent Fee percentage set for the validator */ event ValidatorRegistered(address indexed validator, address indexed feeManager, uint256 feePercent); /** * @notice Emitted when a validator's fee is updated * @param validator Address of the validator * @param oldFee Previous fee percentage * @param newFee New fee percentage */ event ValidatorFeeUpdated(address indexed validator, uint256 oldFee, uint256 newFee); /** * @notice Emitted when a validator's fee manager is updated * @param validator Address of the validator * @param oldManager Previous fee manager address * @param newManager New fee manager address */ event ValidatorManagerUpdated(address indexed validator, address oldManager, address newManager); /** * @notice Emitted when a validator is paused * @param validator Address of the paused validator */ event ValidatorPaused(address indexed validator); /** * @notice Emitted when a validator is unpaused * @param validator Address of the unpaused validator */ event ValidatorUnpaused(address indexed validator); /** * @notice Emitted when the global fee percentage is updated * @param oldFee Previous global fee percentage * @param newFee New global fee percentage */ event GlobalFeeUpdated(uint256 oldFee, uint256 newFee); /** * @notice Emitted when a validator withdraws accumulated profits * @param validator Address of the validator * @param recipient Address receiving the profits * @param amount Amount of profits withdrawn */ event ValidatorProfitsWithdrawn(address indexed validator, address indexed recipient, uint256 amount); /** * @notice Emitted when the circulating supply is updated * @param oldCirculatingSupply Previous circulating supply * @param newCirculatingSupply New circulating supply */ event CirculatingSupplyUpdated(uint256 oldCirculatingSupply, uint256 newCirculatingSupply); /** * @notice Emitted when unutilized rewards are withdrawn * @param recipient Address receiving the unutilized rewards * @param amount Amount of unutilized rewards withdrawn */ event UnutilizedRewardsWithdrawn(address indexed recipient, uint256 amount); // Custom Errors /// @notice Thrown when a zero address is provided where a non-zero address is required error ZeroAddress(); /// @notice Thrown when attempting to stake zero tokens error StakeIsZero(); /// @notice Thrown when attempting to unstake zero tokens error UnstakeIsZero(); /// @notice Thrown when a user has insufficient balance for an operation error InsufficientBalance(address user, address validator, uint256 desired, uint256 available); /// @notice Thrown when a transfer of tokens fails error TransferFailed(); /// @notice Thrown when trying to withdraw before the cooloff period is complete error CooloffPeriodNotComplete(uint256 currentTime, uint256 cooloffEndTime); /// @notice Thrown when trying to interact with a validator that is not registered error ValidatorNotRegistered(address validator); /// @notice Thrown when trying to register a validator that is already registered error AlreadyRegistered(); /// @notice Thrown when trying to set a global fee that exceeds the maximum allowed error GlobalFeeTooHigh(); /// @notice Thrown when trying to set a validator fee that exceeds the maximum allowed error FeeTooHigh(uint256 requested, uint256 maximum); /// @notice Thrown when a non-profits manager tries to perform a profits manager operation error NotProfitsManager(address caller, address validator, address profitsManager); /// @notice Thrown when trying to withdraw profits when there are none error NoProfitsToWithdraw(); /// @notice Thrown when a profits transfer fails error ProfitsTransferFailed(); /// @notice Thrown when trying to interact with a paused validator error ValidatorIsPaused(address validator); /// @notice Thrown when trying to unpause a validator that is not paused error ValidatorNotPaused(address validator); /// @notice Thrown when trying to set a cooloff period longer than the maximum error CooloffPeriodTooLong(); /// @notice Thrown when an invalid unstake request index is provided error InvalidRequestIndex(); /// @notice Thrown when trying to withdraw unutilized rewards when there are none error NoUnutilizedRewards(); /// @notice Thrown when trying to withdraw more unutilized rewards than available error InsufficientUnutilizedRewards(uint256 requested, uint256 available); /// @notice Thrown when receive() is called prior to any staking error NoStakedSophon(); }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.28; /** * @title SophonStakingState * @notice Stores shared state for the SophonStaking contract */ contract SophonStakingState { // Global configuration /// @notice Duration in seconds that must pass after initiating unstake before withdrawal is allowed uint256 public cooloffPeriod; /// @notice Duration in seconds during which withdrawal can be completed after cooloff period ends uint256 internal withdrawalWindow; // potential future enhancement to add a withdrawal window to unstake requests /// @notice Global fee percentage with 2 decimals (e.g., 500 = 5.00%) that gets distributed equally to all validators uint256 public globalFeePercent; /// @notice Total number of unique stakers across all validators uint256 public totalStakers; /// @notice Total rewards that will remain unutilized and not distributed uint256 public unutilizedRewards; /// @notice Circulating supply of the token uint256 public circulatingSupply; /// @notice Square root of the circulating supply, used for calculations uint256 internal _circulatingSupplySqrt; /// @notice Total staking deposits from all validators uint256 internal _totalStaked; // Global reward tracking /// @notice Global fees per validator uint256 internal _globalFeePerValidator; /// @notice Global user share per token for reward calculations uint256 internal _globalUserSharePerToken; /// @notice Global unsettled user rewards uint256 internal _globalUserRewardsUnsettled; // Validator profit tracking /// @notice Accumulated rewards per staked token used for validator fee calculations uint256 internal _utilizedRewardsPerToken; /// @notice Validator profits numerator used in ratio calculations uint256 internal _validatorProfitsNumerator; /// @notice Validator profits ratio for distribution calculations uint256 internal _validatorProfitsRatio; // Validator-related state /** * @notice Struct containing validator details * @param isRegistered Whether the validator is registered in the system * @param feePercent Fee percentage charged by validator with 2 decimals (e.g., 500 = 5.00%) * @param profitsManager Address authorized to withdraw validator fees * @param isPaused Whether validator is paused from receiving new earnings */ struct ValidatorInfo { bool isRegistered; uint256 feePercent; address profitsManager; bool isPaused; } /// @notice Mapping of validator address to their configuration and status information mapping(address => ValidatorInfo) public validators; /// @notice Mapping of validator address to number of unique stakers mapping(address => uint256) public validatorTotalStakers; /// @notice Array to store all registered validator addresses for iteration address[] internal _validatorAddresses; /// @notice Maps validator address to its index in the _validatorAddresses array for efficient lookups mapping(address => uint256) internal _validatorIndex; /// @notice Maps validators to their total staked amount, including distributed earnings mapping(address => uint256) internal _validatorTotalStaked; /// @notice Maps validators to their total staked amount for paused validators mapping(address => uint256) internal _validatorTotalStakedPaused; /// @notice Maps validators to their settled profits mapping(address => uint256) internal _validatorProfits; /// @notice Maps validator addresses to their last paid utilized rewards per token mapping(address => uint256) internal _utilizedRewardsPerTokenPaid; /// @notice Maps validators to their last paid global user share per token mapping(address => uint256) internal _validatorUserSharePerTokenPaid; /// @notice Maps validators to their last paid user rewards per token mapping(address => uint256) internal _validatorUserRewardsPerTokenPaid; /// @notice Maps validators to their unsettled user rewards mapping(address => uint256) internal _validatorUserRewardsUnsettled; /// @notice Maps validators to their last paid global profits per validator mapping(address => uint256) internal _globalFeePerValidatorPaid; // User-related state /** * @notice Struct containing details of an unstake request * @param amount Amount requested to unstake * @param cooloffEndTime Timestamp when cooloff period ends * @param withdrawalWindowEndTime Timestamp when withdrawal window ends (potential future enhancement) */ struct UnstakeRequest { uint256 amount; uint256 cooloffEndTime; uint256 withdrawalWindowEndTime; // potential future enhancement } /// @notice Mapping of user to validator to array of unstake requests mapping(address => mapping(address => UnstakeRequest[])) public unstakeRequests; /// @notice Mapping from user address to array of validators they are staking with mapping(address => address[]) internal _userValidators; /// @notice Mapping to track index of validator in user's validators array mapping(address => mapping(address => uint256)) internal _userValidatorIndex; /// @notice Maps user address to validator address to total active staked amount including earned rewards mapping(address => mapping(address => uint256)) internal _userBalanceStaked; /// @notice Maps user address to validator address to total amount currently unstaking mapping(address => mapping(address => uint256)) internal _userBalanceUnstaking; /// @notice Maps user address to validator address to their last paid user rewards per token mapping(address => mapping(address => uint256)) internal _userRewardsPerTokenPaid; }
{ "evmVersion": "shanghai", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "SophonStaking.sol": {} }, "metadata": { "appendCBOR": false, "bytecodeHash": "none" }, "outputSelection": { "*": { "*": [ "abi", "metadata" ], "": [ "ast" ] } } }
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"uint48","name":"schedule","type":"uint48"}],"name":"AccessControlEnforcedDefaultAdminDelay","type":"error"},{"inputs":[],"name":"AccessControlEnforcedDefaultAdminRules","type":"error"},{"inputs":[{"internalType":"address","name":"defaultAdmin","type":"address"}],"name":"AccessControlInvalidDefaultAdmin","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[],"name":"AlreadyRegistered","type":"error"},{"inputs":[{"internalType":"uint256","name":"currentTime","type":"uint256"},{"internalType":"uint256","name":"cooloffEndTime","type":"uint256"}],"name":"CooloffPeriodNotComplete","type":"error"},{"inputs":[],"name":"CooloffPeriodTooLong","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"uint256","name":"requested","type":"uint256"},{"internalType":"uint256","name":"maximum","type":"uint256"}],"name":"FeeTooHigh","type":"error"},{"inputs":[],"name":"GlobalFeeTooHigh","type":"error"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"validator","type":"address"},{"internalType":"uint256","name":"desired","type":"uint256"},{"internalType":"uint256","name":"available","type":"uint256"}],"name":"InsufficientBalance","type":"error"},{"inputs":[{"internalType":"uint256","name":"requested","type":"uint256"},{"internalType":"uint256","name":"available","type":"uint256"}],"name":"InsufficientUnutilizedRewards","type":"error"},{"inputs":[],"name":"InvalidRequestIndex","type":"error"},{"inputs":[],"name":"NoProfitsToWithdraw","type":"error"},{"inputs":[],"name":"NoStakedSophon","type":"error"},{"inputs":[],"name":"NoUnutilizedRewards","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"address","name":"validator","type":"address"},{"internalType":"address","name":"profitsManager","type":"address"}],"name":"NotProfitsManager","type":"error"},{"inputs":[],"name":"ProfitsTransferFailed","type":"error"},{"inputs":[{"internalType":"uint8","name":"bits","type":"uint8"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"SafeCastOverflowedUintDowncast","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"StakeIsZero","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"UnstakeIsZero","type":"error"},{"inputs":[{"internalType":"address","name":"validator","type":"address"}],"name":"ValidatorIsPaused","type":"error"},{"inputs":[{"internalType":"address","name":"validator","type":"address"}],"name":"ValidatorNotPaused","type":"error"},{"inputs":[{"internalType":"address","name":"validator","type":"address"}],"name":"ValidatorNotRegistered","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldCirculatingSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCirculatingSupply","type":"uint256"}],"name":"CirculatingSupplyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldPeriod","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPeriod","type":"uint256"}],"name":"CooloffPeriodUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"DefaultAdminDelayChangeCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint48","name":"newDelay","type":"uint48"},{"indexed":false,"internalType":"uint48","name":"effectSchedule","type":"uint48"}],"name":"DefaultAdminDelayChangeScheduled","type":"event"},{"anonymous":false,"inputs":[],"name":"DefaultAdminTransferCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"},{"indexed":false,"internalType":"uint48","name":"acceptSchedule","type":"uint48"}],"name":"DefaultAdminTransferScheduled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"GlobalFeeUpdated","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":true,"internalType":"address","name":"validator","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"validator","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"validator","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cooloffEndTime","type":"uint256"}],"name":"UnstakeInitiated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"validator","type":"address"},{"indexed":false,"internalType":"uint256","name":"numRequests","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"UnstakeRequestsCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnutilizedRewardsWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"validator","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"ValidatorFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"validator","type":"address"},{"indexed":false,"internalType":"address","name":"oldManager","type":"address"},{"indexed":false,"internalType":"address","name":"newManager","type":"address"}],"name":"ValidatorManagerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"validator","type":"address"}],"name":"ValidatorPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"validator","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ValidatorProfitsWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"validator","type":"address"},{"indexed":true,"internalType":"address","name":"feeManager","type":"address"},{"indexed":false,"internalType":"uint256","name":"feePercent","type":"uint256"}],"name":"ValidatorRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"validator","type":"address"}],"name":"ValidatorUnpaused","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_VALIDATOR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IMPLEMENTATION_SLOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_COOLOFF_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"beginDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"}],"name":"cancelAllUnstakeRequests","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelDefaultAdminTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint48","name":"newDelay","type":"uint48"}],"name":"changeDefaultAdminDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestIndex","type":"uint256"}],"name":"completeUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"uint256","name":"requestIndex","type":"uint256"}],"name":"completeUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cooloffPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultAdminDelay","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultAdminDelayIncreaseWait","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"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":"account","type":"address"},{"internalType":"address","name":"validator","type":"address"}],"name":"getUnstakeRequests","outputs":[{"internalType":"uint256[]","name":"requestIndexes","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256[]","name":"cooloffEndTimes","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getUserValidators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getValidators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalFeePercent","outputs":[{"internalType":"uint256","name":"","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":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"adminAddress_","type":"address"},{"internalType":"uint256","name":"cooloffPeriod_","type":"uint256"},{"internalType":"uint256","name":"globalFeePercent_","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"}],"name":"initiateFullUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initiateFullUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"initiateUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"initiateUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"}],"name":"pauseValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingDefaultAdmin","outputs":[{"internalType":"address","name":"newAdmin","type":"address"},{"internalType":"uint48","name":"schedule","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingDefaultAdminDelay","outputs":[{"internalType":"uint48","name":"newDelay","type":"uint48"},{"internalType":"uint48","name":"schedule","type":"uint48"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"address","name":"profitsManager","type":"address"},{"internalType":"uint256","name":"feePercent","type":"uint256"}],"name":"registerValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"impl_","type":"address"},{"internalType":"bytes","name":"initData_","type":"bytes"}],"name":"replaceImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"rescue","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":"rollbackDefaultAdminDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCirculatingSupply","type":"uint256"}],"name":"setCirculatingSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPeriod","type":"uint256"}],"name":"setCooloffPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newGlobalFeePercent","type":"uint256"}],"name":"setGlobalFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"uint256","name":"newFeePercent","type":"uint256"}],"name":"setValidatorFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"settleEarnings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"}],"name":"sqrt","outputs":[{"internalType":"uint256","name":"y","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"}],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"stakeOnBehalf","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"address","name":"receiver","type":"address"}],"name":"stakeOnBehalf","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"fromValidator","type":"address"},{"internalType":"address","name":"toValidator","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"switchValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"}],"name":"unpauseValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"unstakeRequests","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"cooloffEndTime","type":"uint256"},{"internalType":"uint256","name":"withdrawalWindowEndTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unutilizedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"address","name":"newProfitsManager","type":"address"}],"name":"updateProfitsManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"validator","type":"address"}],"name":"userStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"userStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"}],"name":"validatorProfits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"validatorStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"}],"name":"validatorStakedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"validatorTotalStakers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"validators","outputs":[{"internalType":"bool","name":"isRegistered","type":"bool"},{"internalType":"uint256","name":"feePercent","type":"uint256"},{"internalType":"address","name":"profitsManager","type":"address"},{"internalType":"bool","name":"isPaused","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"withdrawProfits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawUnutilizedRewards","outputs":[{"internalType":"uint256","name":"withdrawnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
9c4d535b000000000000000000000000000000000000000000000000000000000000000001000a79b6bd252e14e2a1bd1d11a93fcdfb308cb65a4449a89b39f7579e746000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x0004000000000002000d0000000000020000006004100270000009910340019700030000003103550002000000010355000009910040019d0000008004000039000000400040043f00000001002001900000002e0000c13d000000040030008c000000390000413d000000000201043b000000e002200270000009a20020009c000000400000213d000009d40020009c000000cd0000213d000009ed0020009c0000017f0000a13d000009ee0020009c0000022d0000a13d000009ef0020009c000006120000a13d000009f00020009c00000bbb0000613d000009f10020009c000007ab0000613d000009f20020009c0000112c0000c13d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000009940010009c0000112c0000213d000000000010043f0000001301000039000000200010043f0000004001000039264026200000040f00000a870000013d0000000001000416000000000001004b0000112c0000c13d0000000003000411000000000003004b000000870000c13d0000099b01000041000000000010043f000000040000043f0000099c010000410000264200010430000000000003004b0000112c0000c13d0000000001000416000000000001004b0000013c0000c13d0000000001000019000026410001042e000009a30020009c000001530000213d000009bc0020009c0000018e0000a13d000009bd0020009c0000023e0000a13d000009be0020009c000006500000a13d000009bf0020009c00000bc00000613d000009c00020009c000007eb0000613d000009c10020009c0000112c0000c13d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d00000000010004110000099401100197000000000010043f00000a2401000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000bdf0000613d0000000901000039000000000101041a000000400200043d0000002003200039000000090400002900000000004304350000000000120435000009910020009c000009910200804100000040012002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000997011001c70000800d02000039000000010300003900000a2e04000041264026310000040f00000001002001900000112c0000613d000000090100002926401cfd0000040f0000000a02000039000000000012041b00000009010000390000000902000029000000000021041b0000000001000019000026410001042e0000000101000039000000000201041a000009920220019700000993022001c7000000000021041b0000000202000039000000000102041a0000099400100198000003de0000c13d0000099501100197000000000131019f000000000012041b0000099401300197000900000001001d000000000010043f0000099601000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff00100190000000c50000c13d0000000901000029000000000010043f0000099601000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a00000a740220019700000001022001bf000000000021041b0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d0200003900000004030000390000099904000041000000000500001900000009060000290000000007000411264026310000040f00000001002001900000112c0000613d00000003010000390000000202000039000000000021041b0000002001000039000001000010044300000120000004430000099a01000041000026410001042e000009d50020009c000001c40000a13d000009d60020009c000002490000a13d000009d70020009c0000065a0000a13d000009d80020009c00000be70000613d000009d90020009c000008290000613d000009da0020009c0000112c0000c13d000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000002402100370000000000402043b00000a070040009c0000112c0000213d0000002302400039000000000032004b0000112c0000813d0000000405400039000000000251034f000000000202043b00000a070020009c000017850000213d0000001f0620003900000a75066001970000003f0660003900000a750660019700000a3a0060009c000017850000213d0000008006600039000000400060043f000000800020043f00000000042400190000002404400039000000000034004b0000112c0000213d0000002003500039000000000331034f00000a75042001980000001f0520018f000000a001400039000001080000613d000000a006000039000000000703034f000000007807043c0000000006860436000000000016004b000001040000c13d000000000005004b000001150000613d000000000343034f0000000304500210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000000a001200039000000000001043500000000010004110000099401100197000000000010043f0000099601000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000aa70000613d000000090000006b000013540000c13d000000400100043d000000440210003900000a4803000041000000000032043500000024021000390000001503000039000000000032043500000a47020000410000000000210435000000040210003900000020030000390000000000320435000009910010009c0000099101008041000000400110021000000a0c011001c700002642000104300000099d010000410000000000100443000000000100041000000004001004430000000001000414000009910010009c0000099101008041000000c0011002100000099e011001c70000800a02000039264026360000040f00000001002001900000178b0000613d000000000101043b0000000002000416000000000321004b000002270000813d00000a6901000041000000000010043f0000001101000039000000040010043f0000099c010000410000264200010430000009a40020009c000002140000a13d000009a50020009c000002580000a13d000009a60020009c0000069e0000a13d000009a70020009c00000bf80000613d000009a80020009c0000083f0000613d000009a90020009c0000112c0000c13d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000009940010009c0000112c0000213d000000000010043f0000001201000039000000200010043f0000004001000039264026200000040f0000000202100039000000000202041a0000000103100039000000000303041a000000000101041a000000ff001001900000000001000039000000010100c039000000800010043f000000a00030043f0000099401200197000000c00010043f00000a05002001980000000001000039000000010100c039000000e00010043f00000a0601000041000026410001042e000009fa0020009c000002750000213d00000a000020009c000004880000213d00000a030020009c000008da0000613d00000a040020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d00000a5901000041000000800010043f00000a0a01000041000026410001042e000009c90020009c000003730000213d000009cf0020009c000004930000213d000009d20020009c000008e70000613d000900000004001d000009d30020009c0000112c0000c13d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000800000001001d000009940010009c0000112c0000213d00000000010004110000099401100197000000000010043f0000099601000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000aa70000613d00000008010000290000099402100197000000400b00043d00000a370100004100000000001b04350000000401b00039000000000300041000000000003104350000000001000414000000040020008c000800000002001d00000dc40000c13d0000000103000031000000200030008c0000002004000039000000000403401900000df00000013d000009e20020009c0000037e0000213d000009e80020009c0000049c0000213d000009eb0020009c0000091f0000613d000009ec0020009c0000112c0000c13d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d000009940010009c0000112c0000213d0000000901000029000000000001004b00000d5e0000613d000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000d8c0000613d0000000002000411000000090100002926401e2a0000040f0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000800000001001d000000000001004b000011680000c13d000000400200043d000800000002001d00000a180100004100000000001204350000000401200039000000010400008a00000000020004110000000903000029000008260000013d000009b10020009c000003ad0000213d000009b70020009c000004ad0000213d000009ba0020009c0000094a0000613d000009bb0020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d0000001402000039000000000102041a000000800010043f000000000020043f000000000001004b00000c580000c13d000000200200003900000c640000013d000000000003004b000003b90000c13d000009a001000041000000000010043f000009a1010000410000264200010430000009f50020009c000003ca0000213d000009f80020009c000006ae0000613d000009f90020009c0000112c0000c13d000000240030008c0000112c0000413d0000000401100370000000000101043b000009940010009c0000112c0000213d00000000020004110000000003000416264021ca0000040f0000000001000019000026410001042e000009c40020009c000003e20000213d000009c70020009c000006b70000613d000009c80020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d000000090100003900000a870000013d000009dd0020009c000003ed0000213d000009e00020009c000006d30000613d000009e10020009c0000112c0000c13d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b26401cfd0000040f000009c70000013d000009ac0020009c000004280000213d000009af0020009c000007110000613d000009b00020009c0000112c0000c13d000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b0000002401100370000000000101043b000900000001001d000009940010009c0000112c0000213d000000000002004b000003de0000613d0000000001020019000800000002001d26401cec0000040f264020500000040f00000008010000290000000902000029264025c70000040f0000000001000019000026410001042e000009fb0020009c000005550000213d000009fe0020009c0000095b0000613d000009ff0020009c0000112c0000c13d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d000009940010009c0000112c0000213d00000000010004110000099401100197000000000010043f00000a2401000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000bdf0000613d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000ff0020019000000d8c0000613d0000000201100039000800000001001d000000000101041a00000a050010019800000fc40000c13d000000090100002926401d1d0000040f0000000c01000039000000000101041a000700000001001d0000000901000029000000000010043f0000001d01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a00060007001000730000014d0000413d0000000901000029000000000010043f0000001801000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000060020002a0000014d0000413d0000000602200029000000000021041b0000000901000029000000000010043f0000001d01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000702000029000000000021041b0000000802000029000000000102041a00000a680110019700000a4f011001c7000000000012041b0000000901000029000000000010043f0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000800000001001d0000000901000029000000000010043f0000001701000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000802000029000000000021041b0000000901000029000000000010043f0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000001041b000000080000006b0000032e0000613d0000000b01000039000000000101041a0007000800100074000000000100001900000000020000190000000003000019000003280000a13d000000070000006b00000000010000190000000002000019000000000300001900001a5a0000c13d0000001104000039000000000034041b0000000b03000039000000000023041b0000001002000039000000000012041b0000000901000029000000000010043f0000001501000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000001402000039000000000202041a000800000002001d000000000002004b0000014d0000613d000000000201041a0000000801000029000000010110008a000700000002001d000000000012004b00001b6b0000c13d0000001401000039000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d0000000802000029000000010220008a000000000101043b0000000001210019000000000301041a0000099503300197000000000031041b0000001401000039000000000021041b0000000901000029000000000010043f0000001501000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000001041b0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d02000039000000020300003900000a6c04000041000011280000013d000009ca0020009c000005680000213d000009cd0020009c0000098c0000613d000009ce0020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d000000040100003900000a870000013d000009e30020009c000005be0000213d000009e60020009c0000099e0000613d000009e70020009c0000112c0000c13d000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000002401100370000000000101043b000800000001001d00000000010004110000099401100197000000000010043f00000a2401000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000bdf0000613d000000090000006b00000d5e0000613d0000000802000039000000000102041a000000000001004b00000eb90000c13d00000a6001000041000000000010043f000009a1010000410000264200010430000009b20020009c000006040000213d000009b50020009c000009a70000613d000009b60020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d2640202c0000040f00000a1c01100197000009c70000013d0000000601000039000000000201041a000000000400041600000000014200a900000000044100d9000000000024004b0000014d0000c13d0000001402000039000000000202041a000000000002004b00000c070000c13d00000a6901000041000000000010043f0000001201000039000000040010043f0000099c010000410000264200010430000009f60020009c000007280000613d000009f70020009c0000112c0000c13d000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d0000002401100370000000000101043b000800000001001d000009940010009c0000112c0000213d0000000901000029000000000001004b00000c870000c13d00000a6701000041000000000010043f000009a1010000410000264200010430000009c50020009c0000072d0000613d000009c60020009c0000112c0000c13d000000240030008c0000112c0000413d0000000401100370000000000101043b000009940010009c00000bbc0000a13d0000112c0000013d000009de0020009c000007800000613d000009df0020009c0000112c0000c13d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d00000000010004110000099401100197000000000010043f00000a2401000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000bdf0000613d000000090400002900000a550040009c00000ea90000813d0000000401000039000000000101041a000000400200043d000000200320003900000000004304350000000000120435000009910020009c000009910200804100000040012002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000997011001c70000800d02000039000000010300003900000a5604000041264026310000040f00000001002001900000112c0000613d00000009010000290000000402000039000000000012041b0000000001000019000026410001042e000009ad0020009c000007870000613d000009ae0020009c0000112c0000c13d000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000002401100370000000000101043b000800000001001d000009940010009c0000112c0000213d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000ff0020019000000d8c0000613d0000000201100039000700000001001d000000000101041a00000994011001970000000002000411000000000012004b00000ec70000c13d000000080000006b00000d5e0000613d000000090100002926401d1d0000040f0000000901000029000000000010043f0000001801000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d0000000c02000039000000000202041a000500000002001d000000000101043b000000000101041a000600000001001d0000000701000029000000000101041a00000a0500100198000004820000c13d0000000901000029000000000010043f0000001d01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000050110006b0000014d0000413d000000060010002a0000014d0000413d000600060010002d000000060000006b000015c50000c13d00000a1101000041000000000010043f000009a101000041000026420001043000000a010020009c000009ce0000613d00000a020020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d00000a4201000041000000800010043f00000a0a01000041000026410001042e000009d00020009c000006a90000613d000009d10020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d000000070100003900000a870000013d000009e90020009c00000a020000613d000009ea0020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d0000000b01000039000000000101041a0000000e02000039000000000202041a000000000012001a0000014d0000413d0000000001120019000000800010043f00000a0a01000041000026410001042e000009b80020009c00000a4c0000613d000009b90020009c0000112c0000c13d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d000009940010009c0000112c0000213d0000000001000411000000000010043f0000001e01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000800000001001d000000000101041a000000000001004b0000099a0000613d0000000901000029000000000200041126401e2a0000040f0000000802000029000000000102041a000700000001001d000000000002041b0000000001000411000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000800000001001d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000201100039000000000101041a0000000902000029000000000020043f00000a05001001980000138a0000c13d0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000080020002a0000014d0000413d0000000802200029000000000021041b000000080000006b0000139b0000613d0000000b01000039000000000201041a000500000002001d000000080020002a0000014d0000413d0000001001000039000000000101041a000600000001001d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000101100039000000000201041a00000008012000b900000008031000fa000000000023004b0000014d0000c13d000027100110011a000000060010002a0000014d0000413d000000060110002a0000099f021000d10000054a0000613d00000000031200d90000099f0030009c0000014d0000c13d0000000504000029000000080340002a000003c40000613d00000000023200d90000001104000039000000000024041b0000000b02000039000000000032041b0000001002000039000000000012041b0000139b0000013d000009fc0020009c00000a830000613d000009fd0020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d0000800101000039264023950000040f0000800102000039000000000020043f0000001602000039000000200020043f00000a2c02000041000000000202041a000000000012001a0000014d0000413d0000000001120019000009c70000013d000009cb0020009c000006a90000613d000009cc0020009c0000112c0000c13d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d000009940010009c0000112c0000213d00000a3301000041000000000101041a000800000001001d00000a2c01000041000000000101041a000000000001004b00000cbb0000c13d0000000901000029000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000700000001001d0000000901000029000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000600000001001d000000000001004b0000000001000019000011420000c13d000000070010002a0000014d0000413d0000000702000029000009c60000013d000009e40020009c00000a8b0000613d000009e50020009c0000112c0000c13d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d00000a1c0010009c0000112c0000213d00000000010004110000099401100197000000000010043f0000099601000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000aa70000613d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000201043b00000a580020009c00000d700000813d000800000002001d0000000201000039000000000101041a000600000001001d000700d00010027a00000f8c0000613d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000101043b000000070010006b00000f8c0000813d0000000601000029000000a00110027000000a1c0110019700000f8f0000013d000009b30020009c00000aae0000613d000009b40020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d2640204a0000040f0000099401100197000000800010043f00000a1c01200197000000a00010043f00000a1d01000041000026410001042e000009f30020009c00000b440000613d000009f40020009c0000112c0000c13d000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d0000002401100370000000000101043b000800000001001d000009940010009c0000112c0000213d0000000901000029000000000001004b00000008030000290000064a0000c13d0000000202000039000000000202041a000000000232013f00000994002001980000064a0000c13d0000000101000039000000000101041a000000a00210027000000a1c02200197000009940010019800000c740000c13d000000000002004b00000c740000613d000700000002001d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000101043b0000000702000029000000000012004b00000009010000290000000803000029000000010400003900000c740000813d000000000204041a00000a6502200197000000000024041b0000000002000411000000000023004b00000d290000c13d264025c70000040f0000000001000019000026410001042e000009c20020009c00000b4b0000613d000009c30020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d000000800000043f00000a0a01000041000026410001042e000009db0020009c00000b770000613d000009dc0020009c0000112c0000c13d000000640030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000002402100370000000000202043b000800000002001d000009940020009c0000112c0000213d0000004401100370000000000101043b000700000001001d00000000010004110000099401100197000000000010043f00000a2401000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000bdf0000613d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff001001900000172e0000c13d000000090000006b00000d5e0000613d000000080000006b00000d5e0000613d000000070100002900001f410010008c000013ec0000413d00000a3001000041000000000010043f000000070100002900000f1e0000013d000009aa0020009c00000b7e0000613d000009ab0020009c0000112c0000c13d0000000001000416000000000001004b0000112c0000c13d0000800101000039000000800010043f00000a0a01000041000026410001042e0000000001000416000000000001004b0000112c0000c13d0000000201000039000009a20000013d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b26401cec0000040f000009c70000013d000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000002402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000000401100370000000000101043b000000000010043f000000200000043f0000004001000039264026200000040f0000000902000029000000000020043f000000200010043f0000004001000039264026200000040f000000000101041a000000ff001001900000000001000039000000010100c039000000800010043f00000a0a01000041000026410001042e000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d000009940010009c0000112c0000213d0000000901000029264023340000040f0000000902000029000000000020043f0000001202000039000000200020043f000800000001001d0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000201100039000000000101041a00000a0500100198000007090000c13d0000000c01000039000000000101041a000700000001001d0000000901000029000000000010043f0000001d01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000070110006b0000014d0000413d000000080010002a0000014d0000413d000800080010002d000000400100043d00000008020000290000000000210435000009910010009c0000099101008041000000400110021000000a22011001c7000026410001042e000000640030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000002402100370000000000202043b000800000002001d000009940020009c0000112c0000213d0000004401100370000000000101043b000000000001004b00000d310000c13d00000a1b01000041000000000010043f000009a10100004100002642000104300000000001000416000000000001004b0000112c0000c13d000000080100003900000a870000013d000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000002401100370000000000101043b000800000001001d0000000001000411000000000010043f0000001e01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000201043b000000000102041a000000080010006b00000d2d0000813d000700000002001d000000000020043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000080200002900040003002000cd000000000101043b0000000401100029000500000001001d0000000101100039000000000101041a000600000001001d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000101043b000000060010006c000011fb0000813d00000a3202000041000000000020043f000000040010043f0000000601000029000000240010043f00000a160100004100002642000104300000000001000416000000000001004b0000112c0000c13d00001f4001000039000000800010043f00000a0a01000041000026410001042e0000000001000416000000000001004b0000112c0000c13d00000000010004110000099401100197000000000010043f0000099601000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000aa70000613d0000000101000039000000000201041a00000a1203200197000000000031041b00000a13002001980000003e0000613d0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d02000039000000010300003900000a1404000041000011290000013d000000640030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000009940020009c0000112c0000213d0000002403100370000000000303043b000900000003001d000009940030009c0000112c0000213d0000004401100370000000000101043b000800000001001d000000000020043f0000001e01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000080020006b0000112c0000813d000000080200002926401ca10000040f0000000102100039000000000202041a000000000301041a0000000201100039000000000101041a000000400400043d00000040054000390000000000150435000000200140003900000000002104350000000000340435000009910040009c0000099104008041000000400140021000000a64011001c7000026410001042e000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000201043b000000000002004b0000099a0000613d0000800101000039000000000010043f0000001201000039000000200010043f00000a2801000041000000000101041a000000ff00100190000009550000613d000900000002001d0000800101000039000000000200041126401e2a0000040f0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000000002004b00000ecf0000c13d000000400200043d000800000002001d00000a180100004100000000001204350000000401200039000080010300003900000000020004110000000904000029264020160000040f000000080200002900000c4a0000013d000000640030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000004402100370000000000302043b0000002401100370000000000401043b0000000301000039000000000201041a000000020020008c00000cd50000c13d00000a5301000041000000000010043f000009a1010000410000264200010430000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000009940020009c0000112c0000213d0000002401100370000000000101043b000900000001001d000009940010009c0000112c0000213d000000000020043f0000001e01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000900000001001d000000000101041a000300000001001d00000a070010009c000017850000213d000000030100002900000005011002100000003f0210003900000a0804200197000000400300043d0000000002430019000700000003001d000000000032004b0000000003000039000000010300403900000a070020009c000017850000213d0000000100300190000017850000c13d000000400020043f0000000302000029000000070300002900000000052304360000001f0210018f00000000030000310000000203300367000000000001004b000008890000613d0000000006150019000000000703034f000000007807043c0000000005850436000000000065004b000008850000c13d000000000002004b000000400600043d0000000005460019000600000006001d000000000065004b0000000006000039000000010600403900000a070050009c000017850000213d0000000100600190000017850000c13d000000400050043f000000030500002900000006060000290000000005560436000000000001004b000008a00000613d0000000006150019000000000703034f000000007807043c0000000005850436000000000065004b0000089c0000c13d000000000002004b000000400500043d0000000004450019000200000005001d000000000054004b0000000005000039000000010500403900000a070040009c000017850000213d0000000100500190000017850000c13d000000400040043f000000030400002900000002050000290000000004450436000100000004001d000000000001004b000008b80000613d00000001040000290000000001140019000000003503043c0000000004540436000000000014004b000008b40000c13d000000000002004b000000030000006b000016140000c13d000000400200043d000900000002001d00000060010000390000000001120436000800000001001d0000006002200039000000070100002926401cdf0000040f0000000002010019000000090120006a00000008030000290000000000130435000000060100002926401cdf0000040f00000000020100190000000903000029000000400130003900000000033200490000000000310435000000020100002926401cdf0000040f00000009020000290000000001210049000009910020009c00000991020080410000004002200210000009910010009c00000991010080410000006001100210000000000121019f000026410001042e000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b00000a70001001980000112c0000c13d00000a710010009c00000cdf0000c13d000000010200003900000ce40000013d000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000002401100370000000000101043b000800000001001d000009940010009c0000112c0000213d0000000801000029264023950000040f0000000901000029000000000010043f0000002101000039000000200010043f000700000002001d0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000802000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000600000001001d000000090100002900000008020000290000000703000029264023f90000040f0000000603000029000000000031001a0000014d0000413d0000000001310019000009c70000013d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000009940010009c0000112c0000213d000000000010043f0000001f01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000301041a000000400200043d000900000002001d000700000003001d0000000002320436000800000002001d000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d0000000705000029000000000005004b00000e160000c13d000000080400002900000e200000013d0000000001000416000000000001004b0000112c0000c13d0000800101000039000000000010043f0000001201000039000000200010043f00000a2801000041000000000101041a000000ff0010019000000c1e0000c13d00000a0e01000041000000000010043f0000800101000039000000040010043f0000099c0100004100002642000104300000000001000416000000000001004b0000112c0000c13d00000000010004110000099401100197000000000010043f0000099601000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000aa70000613d0000000201000039000000000101041a000800000001001d000900d00010027a00000ef20000613d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000101043b000000090010006b00000ee70000813d0000000801000029000000300110021000000a12011001970000000102000039000000000302041a0000099203300197000000000113019f000000000012041b00000ef20000013d000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000002401100370000000000201043b000000000002004b00000ce80000c13d00000a3601000041000000000010043f000009a10100004100002642000104300000000001000416000000000001004b0000112c0000c13d00000a4201000041000000000101041a0000099401100197000000800010043f00000a0a01000041000026410001042e000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000201043b000009940020009c0000112c0000213d0000000001020019000900000002001d264023950000040f0000000902000029000000000020043f0000001602000039000000200020043f000900000001001d0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000090010002a0000014d0000413d00000009020000290000000001210019000000400200043d0000000000120435000009910020009c0000099102008041000000400120021000000a22011001c7000026410001042e000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d000009940010009c0000112c0000213d00000000010004110000099401100197000000000010043f00000a2401000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000bdf0000613d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000ff0020019000000d8c0000613d0000000201100039000800000001001d000000000101041a00000a050010019800000fc60000c13d00000a6f0100004100000d8d0000013d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d0000000001000411000000000010043f0000001e01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000201043b000000000102041a000000090010006b00000d2d0000813d000800000002001d000000000020043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000090200002900050003002000cd000000000101043b0000000501100029000600000001001d0000000101100039000000000101041a000700000001001d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000101043b000000070010006c000010480000813d00000a3202000041000000000020043f00000cb60000013d000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d00000000010004110000099401100197000000000010043f00000a2401000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000bdf0000613d0000000904000029000027100040008c00000cdb0000213d0000000601000039000000000101041a000000400200043d000000200320003900000000004304350000000000120435000009910020009c000009910200804100000040012002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000997011001c70000800d02000039000000010300003900000a2504000041264026310000040f00000001002001900000112c0000613d00000009010000290000000602000039000000000012041b0000000001000019000026410001042e0000000001000416000000000001004b0000112c0000c13d0000000601000039000000000101041a000000800010043f00000a0a01000041000026410001042e000000240030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000401100370000000000101043b000900000001001d000009940010009c0000112c0000213d00000000010004110000099401100197000000000010043f0000099601000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000d620000c13d00000a1501000041000000000010043f0000000001000411000000040010043f000000240000043f00000a160100004100002642000104300000000001000416000000000001004b0000112c0000c13d0000000101000039000000000101041a00000994021001970000000003000411000000000023004b00000c530000c13d000000a00110027000000a1c0210019800000c740000613d000900000002001d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000101043b0000000902000029000000000012004b00000c740000813d0000000202000039000000000102041a000900000001001d0000099501100197000000000012041b000000000000043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d00000009020000290000099402200197000000000101043b000900000002001d000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff001001900000126d0000c13d0000000201000039000000000101041a0000099400100198000003de0000c13d0000000002000411000909940020019b000009950110019700000009011001af0000000202000039000000000012041b000000000000043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000b3e0000c13d000000000000043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a00000a740220019700000001022001bf000000000021041b0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d0200003900000004030000390000099904000041000000000500001900000009060000290000000007000411264026310000040f00000001002001900000112c0000613d0000000102000039000000000102041a00000a1201100197000000000012041b0000000001000019000026410001042e0000000001000416000000000001004b0000112c0000c13d00000a4901000041000000800010043f00000a0a01000041000026410001042e0000000001000416000000000001004b0000112c0000c13d00000000020004150000000d0220008a00000005022002100000000201000039000000000301041a000000d00130027200000b6a0000613d000800000003001d000900000001001d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d00000000020004150000000c0220008a0000000502200210000000000101043b0000000904000029000000000014004b000000080100002900000d770000813d0000000501200270000000000100003f00000000010000190000000004000019000000400200043d000000200320003900000000004304350000000000120435000009910020009c0000099102008041000000400120021000000a31011001c7000026410001042e0000000001000416000000000001004b0000112c0000c13d00000a2601000041000000800010043f00000a0a01000041000026410001042e000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000002401100370000000000101043b000800000001001d000009940010009c0000112c0000213d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000ff0020019000000d8c0000613d0000000202100039000000000302041a00000994043001970000000001000411000000000041004b00000ef80000c13d000000080000006b00000d5e0000613d00000995033001970000000804000029000000000343019f000000000032041b000000400200043d000000200320003900000000004304350000000000120435000009910020009c000009910200804100000040012002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000997011001c70000800d02000039000000020300003900000a0d04000041000011280000013d000000000100041100000000020004162640207a0000040f0000000001000019000026410001042e000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000202043b000900000002001d000009940020009c0000112c0000213d0000002401100370000000000101043b000800000001001d00000000010004110000099401100197000000000010043f00000a2401000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000d7a0000c13d00000a1501000041000000000010043f0000000001000411000000040010043f00000a2601000041000000240010043f00000a16010000410000264200010430000000440030008c0000112c0000413d0000000002000416000000000002004b0000112c0000c13d0000000402100370000000000302043b000009940030009c0000112c0000213d0000002401100370000000000201043b000009940020009c0000112c0000213d000000000103001926401e2a0000040f0000000001000019000026410001042e000000440030008c0000112c0000413d0000000402100370000000000402043b000009940040009c0000112c0000213d0000002401100370000000000201043b000009940020009c0000112c0000213d00000000030004160000000001040019264021ca0000040f0000000001000019000026410001042e000027100110011a00000000022100d90000000c04000039000000000504041a000000000025001a0000014d0000413d0000000002250019000000000024041b0000000002000416000000000112004b0000014d0000413d0000000b02000039000000000202041a000000000002004b00000c790000c13d0000000802000039000000000302041a000000000013001a0000014d0000413d0000000001130019000000000012041b0000000001000019000026410001042e0000800101000039000000000200041126401e2a0000040f0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000900000001001d000000000001004b00000e290000c13d000000400200043d000900000002001d00000a1801000041000000000012043500000004012000390000800103000039000000010400008a0000000002000411264020160000040f00000009020000290000000001210049000009910010009c00000991010080410000006001100210000009910020009c00000991020080410000004002200210000000000121019f00002642000104300000099b01000041000000000010043f000000040030043f0000099c010000410000264200010430000000a00400003900000a270200004100000000030000190000000005040019000000000402041a0000099404400197000000000445043600000001022000390000000103300039000000000013004b00000c5b0000413d000000600250008a000000800100003926401ccd0000040f000000400100043d000900000001001d000000800200003926401cbd0000040f00000009020000290000000001210049000009910010009c00000991010080410000006001100210000009910020009c00000991020080410000004002200210000000000121019f000026410001042e00000a2101000041000000000010043f000000040020043f0000099c010000410000264200010430000000010530003a0000014d0000613d00000000040300190000000106500270000000000046004b00000d920000813d000000020050008c000003c40000413d00000000046300d90000000005640019000000000064001a00000000040600190000014d0000413d00000c7c0000013d000000000010043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000101100039000000000101041a000700000001001d000000000010043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b00000000020004110000099402200197000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff00100190000010ba0000c13d00000a1501000041000000000010043f0000000001000411000000040010043f0000000701000029000000240010043f00000a1601000041000026420001043000000a3402000041000000000202041a0000000d03000039000000000303041a0000001a04000039000000200040043f00000a3504000041000000000404041a000000000443004b0000014d0000413d00000000031400a900000000051300d9000000000045004b0000014d0000c13d0000099f0030009c0000057d0000413d0000099f0330012a00000a7602200167000000000023004b0000014d0000213d0000099f023000d100000000011200d9000000080010002a0000014d0000413d000800080010002d0000057d0000013d0000000202000039000000000021041b000000090000006b00000d5e0000613d000027110030008c00000ea50000413d00000a5201000041000000000010043f000009a101000041000026420001043000000a720010009c0000000002000039000000010200603900000a730010009c00000001022061bf000000010120018f000000800010043f00000a0a01000041000026410001042e0000000901000029000000000001004b00000d5e0000613d000800000002001d000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000d8c0000613d0000000002000411000000090100002926401e2a0000040f0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000700000001001d000000000001004b0000147b0000c13d000000400200043d000700000002001d00000a180100004100000000001204350000000401200039000000000200041100000009030000290000000804000029264020160000040f000000070200002900000c4a0000013d00000a6601000041000000000010043f000009a101000041000026420001043000000a6101000041000000000010043f000009a1010000410000264200010430000700000001001d000000090000006b00000d5e0000613d000000080000006b00000d5e0000613d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff0010019000000d8c0000613d0000000801000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff00100190000014920000c13d00000a0e01000041000000000010043f0000000801000029000000040010043f0000099c01000041000026420001043000000a6301000041000000000010043f000009a101000041000026420001043000000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000201043b00000a580020009c00000f000000413d00000a5c01000041000000000010043f0000003001000039000000040010043f000000240020043f00000a16010000410000264200010430000000a00110027000000a1c0110019700000b6e0000013d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000700000001001d000000000101041a000000ff0010019000000f180000c13d00000a0e01000041000000000010043f0000000901000029000000040010043f0000099c0100004100002642000104300000000a03000039000000000503041a000000000054004b000000000301001900000ead0000a13d0000099f043000d1000000000003004b00000d9d0000613d00000000053400d90000099f0050009c0000014d0000c13d00000000042400d90000000f05000039000000000605041a000000000046001a0000014d0000413d0000000004460019000000000045041b0000001104000039000000000504041a00000000043500a9000000000003004b00000dac0000613d00000000063400d9000000000056004b0000014d0000c13d0000099f0540012a000000000453004b0000014d0000413d0000000e06000039000000000706041a000000000047001a0000014d0000413d0000000007470019000000000076041b0000099f064000d1000000000053004b00000dbb0000613d00000000044600d90000099f0040009c0000014d0000c13d00000000022600d90000000d04000039000000000504041a000000000025001a0000014d0000413d00000000013100490000000002250019000000000024041b00000c160000013d0000099100b0009c000009910300004100000000030b40190000004003300210000009910010009c0000099101008041000000c001100210000000000131019f0000099c011001c700070000000b001d264026360000040f00000060031002700000099103300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000070b000029000000070570002900000ddf0000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b00000ddb0000c13d000000000006004b00000dec0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000100000003001f0003000000010355000000010020019000000f230000613d0000001f01400039000000600210018f0000000001b20019000000000021004b0000000002000039000000010200403900000a070010009c000017850000213d0000000100200190000017850000c13d000000400010043f000000200030008c0000112c0000413d00000000020b043300000044041000390000000000240435000000200210003900000a390400004100000000004204350000002404100039000000000500041100000000005404350000004404000039000000000041043500000a3a0010009c000017850000213d0000008004100039000700000004001d000000400040043f000000000401043300000000010004140000000805000029000000040050008c0000133f0000c13d00000a070030009c000017850000213d00000001020000390000157f0000013d000000000101043b00000000020000190000000804000029000000000301041a0000099403300197000000000434043600000001011000390000000102200039000000000052004b00000e190000413d0000000901000029000000000214004926401ccd0000040f000000400100043d000800000001001d000000090200002926401cbd0000040f000000080200002900000c6b0000013d0000000401000039000000000101041a000800000001001d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000101043b0000000802000029000000000021001a0000014d0000413d0000000003020019000000400200043d000700000002001d00000a290020009c000017850000213d000000000131001900000007030000290000006002300039000000400020043f0000002002300039000800000002001d0000000000120435000000090100002900000000001304350000004001300039000600000001001d00000000000104350000000001000411000000000010043f0000001e01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000500000002001d00000a070020009c000017850000213d00000005020000290000000102200039000000000021041b000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000050200002900000003022000c9000000000101043b000000000121001900000007020000290000000002020433000000000021041b000000080200002900000000020204330000000103100039000000000023041b000000020110003900000006020000290000000002020433000000000021041b00000a2a01000041000000000101041a00000a05001001980000180c0000c13d0000001601000039000000200010043f00000a2c01000041000000000201041a000000090220006c0000014d0000413d000000000021041b0000000b01000039000000000101041a000700090010007400000000010000190000000002000019000000000300001900000e9e0000a13d000000070000006b0000000001000019000000000200001900000000030000190000194b0000c13d0000001104000039000000000034041b0000000b03000039000000000023041b0000001002000039000000000012041b000018130000013d000800000003001d000700000004001d00000a490040009c00000f410000a13d00000a5701000041000000000010043f000009a101000041000026420001043000000000031400a9000000000001004b00000eb30000613d00000000061300d9000000000046004b0000014d0000c13d000000000005004b000003c40000613d00000000035300d9000000000013004b0000014d0000213d00000d970000013d000000010300008a000000080030006b00000008040000290000000004016019000800000004001d000000000341004b000011010000813d00000a5f02000041000000000020043f0000000802000029000000040020043f000000240010043f00000a1601000041000026420001043000000a0b03000041000000000030043f000000040020043f0000000902000029000000240020043f000000440010043f00000a0c010000410000264200010430000000010100008a000000090010006b000700000000001d000800000002001d000600000002001d000012990000613d0000000902000029000000080020006c00000000010000390000000101002039000700000001001d000012980000a13d000000400200043d000700000002001d00000a1801000041000000000012043500000004012000390000800103000039000000000200041100000009040000290000000805000029264020210000040f000000070200002900000c4a0000013d0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d02000039000000010300003900000a5a04000041264026310000040f00000001002001900000112c0000613d0000000202000039000000000102041a0000099401100197000000000012041b0000000001000019000026410001042e00000a0b02000041000000000020043f000000040010043f0000000901000029000000240010043f000000440040043f00000a0c010000410000264200010430000800000002001d0000000201000039000000000101041a000600000001001d000700d00010027a00000f970000613d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000101043b000000070010006b00000f970000813d0000000601000029000000a00110027000000a1c0110019700000f9a0000013d000000080100002900001f410010008c000011090000413d00000a3001000041000000000010043f0000000801000029000000040010043f00001f4001000039000000240010043f00000a160100004100002642000104300000001f0530018f00000a3806300198000000400200043d000000000462001900000f2e0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000f2a0000c13d000000000005004b00000f3b0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000009910020009c00000991020080410000004002200210000000000112019f000026420001043000000a2601000041000000000010043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff00100190000014e10000c13d00000a2601000041000000000010043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a00000a740220019700000001022001bf000000000021041b0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d0200003900000004030000390000000007000411000009990400004100000a26050000410000000906000029000600000007001d264026310000040f0000000100200190000014e30000c13d0000112c0000013d0000000101000039000000000101041a000000d001100270000000090200002900070a1c0020019b000000070110006c0000112e0000813d000000070100002900000a590010009c00000a5901008041000011300000013d0000000101000039000000000101041a000000d0011002700000000801100029000800000001001d00000a1c0010009c0000014d0000213d0000000801000029000000a00110021000000a13011001970000000102000039000000000302041a00000a1204300197000000000141019f00000009011001af000000000012041b00000a130030019800000fb40000613d0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d02000039000000010300003900000a1404000041264026310000040f00000001002001900000112c0000613d000000400100043d00000008020000290000000000210435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000a09011001c70000800d02000039000000020300003900000a5d04000041000011280000013d00000a170100004100000d8d0000013d000000090100002926401d1d0000040f0000000c01000039000000000101041a000700000001001d0000000901000029000000000010043f0000001d01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000702000029000000000021041b0000000802000029000000000102041a00000a6801100197000000000012041b0000000901000029000000000010043f0000001701000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000800000001001d0000000901000029000000000010043f0000001701000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000001041b0000000901000029000000000010043f0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000802000029000000000021041b000000000002004b000018640000c13d0000001401000039000000000101041a000800000001001d00000a6d0010009c000017850000813d000000080100002900000001011000390000001402000039000000000012041b000000000020043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000801100029000000000201041a000009950220019700000009022001af000000000021041b0000001401000039000000000101041a000800000001001d000000000001004b0000014d0000613d0000000901000029000000000010043f0000001501000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d0000000802000029000000010220008a000000000101043b000000000021041b0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d02000039000000020300003900000a6e04000041000011280000013d0000800101000039000000000200041126401e2a0000040f0000000801000029000000000101041a000700000001001d000000000001004b0000014d0000613d0000000601000029000000000101041a000600000001001d0000000701000029000000010210008a000400000002001d000000090020006b000014ff0000c13d0000000801000029000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000702000029000000010220008a00000003032000c90000000001310019000000000001041b0000000103100039000000000003041b0000000201100039000000000001041b0000000801000029000000000021041b0000000001000411000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000060220006c0000014d0000413d000000000021041b0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000000001004b000010b30000c13d0000000801000029000000000101041a000000000001004b000010b30000c13d000080010200003900000000010004112640244c0000040f00000000010004140000000002000411000000040020008c000019810000c13d0000000102000039000000010100003100001a1b0000013d0000000901000029000000000010043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000802000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff001001900000003e0000c13d0000000901000029000000000010043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000802000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a00000a740220019700000001022001bf000000000021041b0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d0200003900000004030000390000099904000041000000090500002900000008060000290000000007000411000011290000013d000000000032041b00000000010004140000000902000029000000040020008c000013130000c13d000000010200003900000001010000310000153c0000013d000000090100002926401d1d0000040f00000007010000290000000101100039000000000201041a000700000002001d0000000802000029000000000021041b0000000b01000039000000000101041a000600000001001d000000000001004b0000131a0000c13d000000400100043d00000020021000390000000803000029000000000032043500000007020000290000000000210435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000997011001c70000800d02000039000000020300003900000a2f040000410000000905000029264026310000040f00000001002001900000003e0000c13d0000000001000019000026420001043000000a1c0010009c0000014d0000213d0000000801100029000600000001001d00000a1c0010009c0000014d0000213d0000000201000039000000000101041a000000d002100272000015f80000613d000000080020006c000015eb0000813d000000300210021000000a12022001970000000103000039000000000403041a0000099204400197000000000224019f000000000023041b000015f80000013d0000000901000029000000000010043f0000002301000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000080210006b0000014d0000413d00000006012000b900000006031000fa000000000023004b0000014d0000c13d0000099f0110012a000000070010002a0000014d0000413d000005bc0000013d0000000401000039000000000101041a000700000001001d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000101043b000000070010002a0000014d0000413d000000400200043d000600000002001d00000a290020009c000017850000213d000000070110002900000006030000290000006002300039000000400020043f0000002002300039000700000002001d0000000000120435000000080100002900000000001304350000004001300039000500000001001d00000000000104350000000001000411000000000010043f0000001e01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000400000002001d00000a070020009c000017850000213d00000004020000290000000102200039000000000021041b000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000040200002900000003022000c9000000000101043b000000000121001900000006020000290000000002020433000000000021041b000000070200002900000000020204330000000103100039000000000023041b000000020110003900000005020000290000000002020433000000000021041b0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000201100039000000000101041a0000000902000029000000000020043f00000a0500100198000019880000c13d0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000080220006c0000014d0000413d000000000021041b0000000b01000039000000000101041a0006000800100074000000000100001900000000020000190000000003000019000011f40000a13d000000060000006b00000000010000190000000002000019000000000300001900001c3b0000c13d0000001104000039000000000034041b0000000b03000039000000000023041b0000001002000039000000000012041b000019980000013d0000000901000029000000000200041126401e2a0000040f0000000701000029000000000101041a000600000001001d000000000001004b0000014d0000613d0000000501000029000000000101041a000500000001001d0000000601000029000000010210008a000300000002001d000000080020006b0000165a0000c13d0000000701000029000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000602000029000000010220008a00000003032000c90000000001310019000000000001041b0000000103100039000000000003041b0000000201100039000000000001041b0000000701000029000000000021041b0000000001000411000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000050220006c0000014d0000413d000000000021041b0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000000001004b000012660000c13d0000000701000029000000000101041a000000000001004b000012660000c13d000000000100041100000009020000292640244c0000040f00000000010004140000000002000411000000040020008c00001a0a0000c13d0000000102000039000000010100003100001bfa0000013d000000000000043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a00000a7402200197000000000021041b0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d02000039000000040300003900000a2004000041000000000500001900000009060000290000000007000411264026310000040f000000010020019000000aed0000c13d0000112c0000013d000600090000002d0000000401000039000000000101041a000900000001001d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000101043b000000090010002a0000014d0000413d000000400200043d000500000002001d00000a290020009c000017850000213d000000090110002900000005030000290000006002300039000000400020043f0000002002300039000900000002001d0000000000120435000000060100002900000000001304350000004001300039000400000001001d00000000000104350000000001000411000000000010043f0000001e01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000300000002001d00000a070020009c000017850000213d00000003020000290000000102200039000000000021041b000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000030200002900000003022000c9000000000101043b000000000121001900000005020000290000000002020433000000000021041b000000090200002900000000020204330000000103100039000000000023041b000000020110003900000004020000290000000002020433000000000021041b00000a2a01000041000000000101041a00000a0500100198000018f70000c13d0000001601000039000000200010043f00000a2c01000041000000000201041a000000060220006c0000014d0000413d000000000021041b0000000b01000039000000000101041a00050006001000740000000001000019000000000200001900000000030000190000130c0000a13d000000050000006b000000000100001900000000020000190000000003000019000019e80000c13d0000001104000039000000000034041b0000000b03000039000000000023041b0000001002000039000000000012041b000018fe0000013d000009910010009c0000099101008041000000c001100210000000080000006b000015320000c13d0000000902000029000015370000013d0000000901000029000000000010043f0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d00000000040004150000000b0440008a00000005044002100000001002000039000000000302041a000000000101043b000000000101041a000000000001004b000016920000c13d000027100500011a000000000153004b0000014d0000413d000000050440027000000000045300550000099f031000d10000133a0000613d00000000041300d90000099f0040009c0000014d0000c13d00000006033000fa0000001104000039000000000034041b000000000012041b000011160000013d000009910020009c00000991020080410000004002200210000009910040009c00000991040080410000006003400210000000000223019f000009910010009c0000099101008041000000c001100210000000000112019f0000000802000029264026310000040f000000010220018f00030000000103550000006001100270000109910010019d00000991031001980000157d0000c13d000700600000003d000015a70000013d00000a42010000410000000902000029000000000021041b000000800100043d000000000001004b0000003e0000613d00000000020004140000000903000029000000040030008c000017320000c13d00000001010000320000003e0000613d00000a070010009c000017850000213d0000001f0210003900000a75022001970000003f0220003900000a7503200197000000400200043d0000000003320019000000000023004b0000000004000039000000010400403900000a070030009c000017850000213d0000000100400190000017850000c13d000000400030043f000000000512043600000a75021001980000001f0310018f000000000125001900000003040003670000137b0000613d000000000604034f000000006706043c0000000005750436000000000015004b000013770000c13d000000000003004b0000003e0000613d000000000224034f0000000303300210000000000401043300000000043401cf000000000434022f000000000202043b0000010003300089000000000232022f00000000023201cf000000000242019f00000000002104350000000001000019000026410001042e0000001701000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000080020002a0000014d0000413d0000000802200029000000000021041b0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000080020002a0000014d0000413d0000000802200029000000000021041b0000000001000411000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000001041b000000400100043d00000020021000390000000803000029000000000032043500000007020000290000000000210435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000997011001c70000800d02000039000000030300003900000a230400004100000000050004110000000906000029000011290000013d000000090100002926401d1d0000040f0000000c01000039000000000101041a000600000001001d0000000901000029000000000010043f0000001d01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000602000029000000000021041b000000400100043d000600000001001d00000a3a0010009c000017850000213d00000006030000290000008001300039000000400010043f00000040023000390000000801000029000500000002001d000000000012043500000020023000390000000701000029000300000002001d0000000000120435000000010100003900000000001304350000006001300039000400000001001d00000000000104350000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a00000a740220019700000006030000290000000003030433000000000003004b000000010220c1bf000000000021041b000000030200002900000000020204330000000103100039000000000023041b0000000201100039000000050200002900000000020204330000099402200197000000000301041a00000a4e03300197000000000223019f00000004030000290000000003030433000000000003004b00000a4f030000410000000003006019000000000232019f000000000021041b0000001401000039000000000101041a000600000001001d00000a070010009c000017850000213d000000060100002900000001011000390000001402000039000000000012041b000000000020043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000601100029000000000201041a000009950220019700000009022001af000000000021041b0000001401000039000000000101041a000600000001001d000000000001004b0000014d0000613d0000000901000029000000000010043f0000001501000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d0000000602000029000000010220008a000000000101043b000000000021041b000000400100043d00000007020000290000000000210435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000a09011001c70000800d02000039000000030300003900000a5104000041000018c70000013d000000010100008a000000080010006b000600000000001d000500070000002d000017700000613d0000000802000029000000070020006c00000000010000390000000101002039000600000001001d0000176f0000a13d000000400200043d000600000002001d00000a1801000041000000000012043500000004012000390000000002000411000000090300002900000008040000290000000705000029264020210000040f000000060200002900000c4a0000013d0000000801000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000201100039000000000101041a00000a05001001980000178c0000c13d0000000002000411000000090100002926401e2a0000040f0000000801000029000000000200041126401e2a0000040f0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000201043b0000000901000029000000000010043f000600000002001d000000200020043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000500000001001d0000000801000029000000000010043f0000000601000029000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000050000006b0000196d0000c13d000000400200043d000800000002001d00000a180100004100000000001204350000000401200039000000000200041100000009030000290000000704000029000008260000013d0000000001000411000600000001001d00000004010000390000000702000029000000000021041b00000006010000390000000802000029000000000021041b00000006010000290000099401100197000000000010043f00000a2401000041000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000ff00100190000016ae0000c13d00000a1501000041000000000010043f000000060100002900000be20000013d0000000801000029000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000700000001001d0000000801000029000000000101041a000000090010006c00001b8d0000a13d0000000801000029000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000040200002900000003022000c90000000702200029000000000101043b0000000501100029000000000021004b0000152c0000613d000000000302041a000000000031041b0000000103200039000000000303041a0000000104100039000000000034041b00000002011000390000000202200039000000000202041a000000000021041b0000000801000029000000000101041a000700000001001d000000000001004b000010580000c13d0000168c0000013d00000998011001c70000800902000039000000080300002900000009040000290000000005000019264026310000040f00030000000103550000006001100270000109910010019d0000099101100197000000000001004b000015540000c13d000000010020019000001c0e0000613d000000400100043d00000008020000290000000000210435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000a09011001c70000800d02000039000000020300003900000a5e040000410000000905000029264026310000040f0000000100200190000007090000c13d0000112c0000013d00000a070010009c000017850000213d0000001f0410003900000a75044001970000003f0440003900000a7505400197000000400400043d0000000005540019000000000045004b0000000006000039000000010600403900000a070050009c000017850000213d0000000100600190000017850000c13d000000400050043f000000000614043600000a75031001980000001f0410018f000000000136001900000003050003670000156f0000613d000000000705034f000000007807043c0000000006860436000000000016004b0000156b0000c13d000000000004004b0000153e0000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f00000000003104350000153e0000013d000000400100043d000700000001001d0000001f0130003900000a3b011001970000003f0110003900000a3c041001970000000701400029000000000041004b0000000004000039000000010400403900000a070010009c000017850000213d0000000100400190000017850000c13d000000400010043f0000000701000029000000000531043600000a75043001980000001f0330018f000900000005001d000000000145001900000003050003670000159a0000613d000000000605034f0000000907000029000000006806043c0000000007870436000000000017004b000015960000c13d000000000003004b000015a70000613d000000000445034f0000000303300210000000000501043300000000053501cf000000000535022f000000000404043b0000010003300089000000000434022f00000000033401cf000000000353019f000000000031043500000007010000290000000001010433000000000002004b000015b10000c13d000000000001004b000016a50000c13d00000a4101000041000000000010043f000009a1010000410000264200010430000000000001004b000018980000c13d00000a3d010000410000000000100443000000080100002900000004001004430000000001000414000009910010009c0000099101008041000000c0011002100000099e011001c70000800202000039264026360000040f00000001002001900000178b0000613d000000000101043b000000000001004b000018940000c13d00000a400100004100000d590000013d0000000901000029000000000010043f0000001801000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000001041b0000000901000029000000000010043f0000001d01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000502000029000000000021041b00000000010004140000000802000029000000040020008c000018a70000c13d00000001020000390000000101000031000018b40000013d0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d02000039000000010300003900000a5a04000041264026310000040f00000001002001900000112c0000613d0000000201000039000000000101041a00000994011001970000000902000029000000a00220021000000a1302200197000000000112019f0000000603000029000000d002300210000000000121019f0000000202000039000000000012041b000000400100043d0000002002100039000000000032043500000007020000290000000000210435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000997011001c70000800d02000039000000010300003900000a5b04000041000007aa0000013d000000000300001900000007010000290000000001010433000000000031004b00001b8d0000a13d0000000501300210000400000001001d0000002002100039000500000002001d000000070120002900000000003104350000000901000029000000000101041a000000000031004b00001b8d0000a13d000800000003001d0000000901000029000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000060200002900000000020204330000000803000029000000000032004b00001b8d0000a13d00000005040000290000000602400029000000000101043b00050003003000cd0000000501100029000000000101041a00000000001204350000000901000029000000000101041a000000000031004b00001b8d0000a13d0000000901000029000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000020200002900000000020204330000000803000029000000000032004b00001b8d0000a13d00000004040000290000000102400029000000000101043b00000005011000290000000101100039000000000101041a00000000001204350000000103300039000000030030006c000016150000413d000008bb0000013d0000000701000029000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000600000001001d0000000701000029000000000101041a000000080010006c00001b8d0000a13d0000000701000029000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000030200002900000003022000c90000000602200029000000000101043b0000000401100029000000000021004b000016870000613d000000000302041a000000000031041b0000000103200039000000000303041a0000000104100039000000000034041b00000002011000390000000202200039000000000202041a000000000021041b0000000701000029000000000101041a000600000001001d000000000001004b0000120b0000c13d00000a6901000041000000000010043f0000003101000039000000040010043f0000099c01000041000026420001043000000008041000b900000000051400d9000000080050006c0000014d0000c13d000027100640011a000000000036001a0000014d0000413d00000000040004150000000a0440008a000000050440021000000007051000b900000000011500d9000000070010006c0000014d0000c13d0000000003360019000027100550011a000000000153004b0000014d0000413d000013330000013d0000000902000029000009910020009c00000991020080410000004002200210000009910010009c00000991010080410000006001100210000000000121019f00002642000104300000800101000039000000000010043f0000001201000039000000200010043f00000a2801000041000000000101041a000000ff001001900000172e0000c13d0000800101000039264023340000040f00000a4a02000041000000000012041b0000000f01000039000000000301041a0000800101000039000000000010043f0000001902000039000000200020043f00000a4b02000041000000000032041b264023950000040f0000000d03000039000000000303041a00000a3504000041000000000034041b00000a3403000041000000000013041b00000a3301000041000000000021041b0000000c01000039000000000101041a0000001d02000039000000200020043f00000a4c02000041000000000012041b000000400100043d00000a3a0010009c000017850000213d0000008002100039000000400020043f000000400210003900000009030000290000000000320435000000200310003900000bb804000039000000000043043500000001040000390000000000410435000000600410003900000000000404350000800105000039000000000050043f0000001205000039000000200050043f00000a2805000041000000000605041a00000a74066001970000000001010433000000000001004b000000010660c1bf000000000065041b000000000103043300000a4d03000041000000000013041b0000000001020433000009940110019700000a2a02000041000000000302041a00000a4e03300197000000000113019f0000000003040433000000000003004b00000a4f030000410000000003006019000000000131019f000000000012041b0000001401000039000000000101041a000800000001001d00000a070010009c000017850000213d000000080100002900000001011000390000001402000039000000000012041b000000000020043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000801100029000000000201041a000009950220019700008001022001bf000000000021041b0000001401000039000000000101041a000000000001004b0000014d0000613d0000800105000039000000000050043f0000001502000039000000200020043f000000010110008a00000a5002000041000000000012041b000000400100043d00000bb8020000390000000000210435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000a09011001c70000800d02000039000000030300003900000a5104000041000013ea0000013d00000a5401000041000000000010043f000009a1010000410000264200010430000009910010009c00000991010080410000006001100210000009910020009c0000099102008041000000c002200210000000000112019f00000a43011001c700000009020000292640263b0000040f00030000000103550000006003100270000109910030019d0000099103300198000017660000613d0000001f0430003900000a44044001970000003f0440003900000a4504400197000000400500043d0000000004450019000000000054004b0000000006000039000000010600403900000a070040009c000017850000213d0000000100600190000017850000c13d000000400040043f0000001f0430018f000000000635043600000a38053001980000000003560019000017590000613d000000000701034f000000007807043c0000000006860436000000000036004b000017550000c13d000000000004004b000017660000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f000000000013043500000001002001900000003e0000c13d000000400100043d000000440210003900000a4603000041000000000032043500000024021000390000000b03000039000001310000013d000500080000002d0000000401000039000000000101041a000800000001001d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f00000001002001900000178b0000613d000000000101043b000000080010002a0000014d0000413d000000400200043d000400000002001d00000a290020009c0000178e0000a13d00000a6901000041000000000010043f0000004101000039000000040010043f0000099c010000410000264200010430000000000001042f00000a170100004100000d590000013d000000080110002900000004030000290000006002300039000000400020043f0000002002300039000800000002001d0000000000120435000000050100002900000000001304350000004001300039000300000001001d00000000000104350000000001000411000000000010043f0000001e01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000200000002001d00000a070020009c000017850000213d00000002020000290000000102200039000000000021041b000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000020200002900000003022000c9000000000101043b000000000121001900000004020000290000000002020433000000000021041b000000080200002900000000020204330000000103100039000000000023041b000000020110003900000003020000290000000002020433000000000021041b0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000201100039000000000101041a0000000902000029000000000020043f00000a050010019800001b930000c13d0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000050220006c0000014d0000413d000000000021041b0000000b01000039000000000101041a0004000500100074000000000100001900000000020000190000000003000019000018050000a13d000000040000006b00000000010000190000000002000019000000000300001900001c7f0000c13d0000001104000039000000000034041b0000000b03000039000000000023041b0000001002000039000000000012041b00001ba30000013d0000001701000039000000200010043f00000a2b01000041000000000201041a000000090220006c0000014d0000413d000000000021041b0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000001041b0000000001000411000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000090020002a0000014d0000413d00000009040000290000000002420019000000000021041b00000008010000290000000001010433000000400200043d000000200320003900000000001304350000000000420435000009910020009c000009910200804100000040012002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000997011001c70000800d020000390000000303000039000080010600003900000a2d0400004100001a2f0000013d0000000b01000039000000000201041a000600000002001d000000080020002a0000014d0000413d0000001001000039000000000101041a000700000001001d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000101100039000000000201041a00000008012000b900000008031000fa000000000023004b0000014d0000c13d000027100110011a000000070010002a0000014d0000413d000000070110002a0000099f021000d1000018890000613d00000000031200d90000099f0030009c0000014d0000c13d0000000604000029000000080340002a000003c40000613d00000000023200d90000001104000039000000000024041b0000000b02000039000000000032041b0000001002000039000000000012041b000010100000013d00000007010000290000000001010433000000000001004b0000003e0000613d00000a3e0010009c0000112c0000213d000000200010008c0000112c0000413d00000009010000290000000001010433000000000001004b0000000002000039000000010200c039000000000021004b0000112c0000c13d000000000001004b0000003e0000c13d00000a3f0100004100000d590000013d000009910010009c0000099101008041000000c00110021000000998011001c70000800902000039000000060300002900000008040000290000000005000019264026310000040f00030000000103550000006001100270000109910010019d0000099101100197000000000001004b000018ca0000c13d0000000100200190000018f30000613d000000400100043d00000006020000290000000000210435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000a09011001c70000800d02000039000000030300003900000a100400004100000009050000290000000806000029000011290000013d00000a070010009c000017850000213d0000001f0410003900000a75044001970000003f0440003900000a7505400197000000400400043d0000000005540019000000000045004b0000000006000039000000010600403900000a070050009c000017850000213d0000000100600190000017850000c13d000000400050043f000000000614043600000a75031001980000001f0410018f00000000013600190000000305000367000018e50000613d000000000705034f000000007807043c0000000006860436000000000016004b000018e10000c13d000000000004004b000018b60000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f0000000000310435000018b60000013d00000a0f01000041000000000010043f000009a10100004100002642000104300000001701000039000000200010043f00000a2b01000041000000000201041a000000060220006c0000014d0000413d000000000021041b000000070100002900000001001001900000014d0000c13d0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d0000000803000029000000060230006a000000000101043b000000000021041b0000000001000411000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000060020002a0000014d0000413d00000006040000290000000002420019000000000021041b00000009010000290000000001010433000000400200043d000000200320003900000000001304350000000000420435000009910020009c0000099102008041000000400120021000000000020004140000185a0000013d0000001001000039000000000101041a000600000001001d0000800101000039000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000101100039000000000201041a00000009012000b900000009031000fa000000000023004b0000014d0000c13d000027100110011a000000060110006b0000014d0000413d0000099f021000d10000196a0000613d00000000031200d90000099f0030009c0000014d0000c13d00000007032000fa000000070200002900000e9e0000013d000000000101041a000300000001001d000000010100008a000000070010006b000400050000002d00001a7d0000613d0000000702000029000000050020006c00001a7c0000a13d000000400200043d000800000002001d00000a1801000041000000000012043500000004012000390000000002000411000000090300002900000007040000290000000505000029264020210000040f000008270000013d000009910010009c0000099101008041000000c001100210000000060000006b00001a110000c13d000000000200041100001a160000013d0000001701000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000080220006c0000014d0000413d000000000021041b0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000001041b0000000001000411000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000080020002a0000014d0000413d00000008040000290000000002420019000000000021041b00000007010000290000000001010433000000400200043d000000200320003900000000001304350000000000420435000009910020009c000009910200804100000040012002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000997011001c70000800d02000039000000030300003900000a2d04000041000013e90000013d0000001001000039000000000101041a000400000001001d0000800101000039000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000101100039000000000201041a00000006012000b900000006031000fa000000000023004b0000014d0000c13d000027100110011a000000040110006b0000014d0000413d0000099f021000d100001a070000613d00000000031200d90000099f0030009c0000014d0000c13d00000005032000fa00000005020000290000130c0000013d000009910010009c0000099101008041000000c001100210000000050000006b00001bf00000c13d000000000200041100001bf50000013d00000998011001c70000800902000039000000060300002900000000040004110000000005000019264026310000040f00030000000103550000006001100270000109910010019d0000099101100197000000000001004b00001a310000c13d000000010020019000001c0e0000613d000000400100043d00000006020000290000000000210435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000a09011001c70000800d020000390000000303000039000080010600003900000a1a040000410000000005000411000011290000013d00000a070010009c000017850000213d0000001f0410003900000a75044001970000003f0440003900000a7505400197000000400400043d0000000005540019000000000045004b0000000006000039000000010600403900000a070050009c000017850000213d0000000100600190000017850000c13d000000400050043f000000000614043600000a75031001980000001f0410018f0000000001360019000000030500036700001a4c0000613d000000000705034f000000007807043c0000000006860436000000000016004b00001a480000c13d000000000004004b00001a1d0000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f000000000031043500001a1d0000013d0000001001000039000000000101041a000600000001001d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000101100039000000000201041a00000008012000b900000008031000fa000000000023004b0000014d0000c13d000027100110011a000000060110006b0000014d0000413d0000099f021000d100001a790000613d00000000031200d90000099f0030009c0000014d0000c13d00000007032000fa0000000702000029000003280000013d000400070000002d0000000901000029000000000010043f0000000601000029000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d0000000503000029000000040230006a000000000101043b000000000021041b0000000901000029000000000010043f0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000040220006c0000014d0000413d000000000021041b0000000b01000039000000000101041a000700040010007400000000010000190000000002000019000000000300001900001aac0000a13d000000070000006b00000000010000190000000002000019000000000300001900001c5d0000c13d0000001104000039000000000034041b0000000b03000039000000000023041b0000001002000039000000000012041b0000000302000029000000040020002a0000014d0000413d0000000801000029000000000010043f0000000601000029000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d00000003030000290000000402300029000000000101043b000000000021041b0000000801000029000000000010043f0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000040020002a0000014d0000413d0000000402200029000000000021041b0000000b01000039000000000101041a000600000001001d000000040010002a0000014d0000413d0000001001000039000000000101041a000700000001001d0000000801000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000101100039000000000201041a00000004012000b900000004031000fa000000000023004b0000014d0000c13d000027100110011a000000070010002a0000014d0000413d000000070110002a0000099f021000d100001afe0000613d00000000031200d90000099f0030009c0000014d0000c13d0000000604000029000000040340002a000003c40000613d00000000023200d90000001104000039000000000024041b0000000b02000039000000000032041b0000001002000039000000000012041b000000030000006b00001b2b0000c13d0000000001000411000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000802000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000000001004b00001b2b0000c13d00000000010004110000000802000029264025440000040f0000000502000029000000040020006c00001b4f0000c13d0000000001000411000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000101041a000000000001004b00001b4f0000c13d000000000100041100000009020000292640244c0000040f000000400100043d00000004020000290000000000210435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000a09011001c70000800d02000039000000030300003900000a190400004100000000050004110000000806000029264026310000040f00000001002001900000112c0000613d000000400100043d00000004020000290000000000210435000009910010009c00000991010080410000004001100210000000000200041400001c050000013d0000000702000029000000080020006b00001b8d0000a13d000000080100002900000a6a0110009a000000000101041a0000099401100197000000070200002900000a6b0220009a000000000302041a0000099503300197000000000313019f000000000032041b000000000010043f0000001501000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000702000029000000000021041b0000001401000039000000000101041a000800000001001d000000000001004b000003470000c13d0000168c0000013d00000a6901000041000000000010043f0000003201000039000000040010043f0000099c0100004100002642000104300000001701000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000050220006c0000014d0000413d000000000021041b000000060100002900000001001001900000014d0000c13d0000000001000411000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d0000000703000029000000050230006a000000000101043b000000000021041b0000000001000411000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000902000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b000000000201041a000000050020002a0000014d0000413d00000005040000290000000002420019000000000021041b00000008010000290000000001010433000000400200043d000000200320003900000000001304350000000000420435000009910020009c000009910200804100000040012002100000000002000414000019df0000013d00000998011001c70000800902000039000000050300002900000000040004110000000005000019264026310000040f00030000000103550000006001100270000109910010019d0000099101100197000000000001004b00001c120000c13d000000010020019000001c0e0000613d000000400100043d00000005020000290000000000210435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000a09011001c70000800d02000039000000030300003900000a1a04000041000013e90000013d00000a6201000041000000000010043f000009a101000041000026420001043000000a070010009c000017850000213d0000001f0410003900000a75044001970000003f0440003900000a7505400197000000400400043d0000000005540019000000000045004b0000000006000039000000010600403900000a070050009c000017850000213d0000000100600190000017850000c13d000000400050043f000000000614043600000a75031001980000001f0410018f0000000001360019000000030500036700001c2d0000613d000000000705034f000000007807043c0000000006860436000000000016004b00001c290000c13d000000000004004b00001bfc0000613d000000000335034f0000000304400210000000000501043300000000054501cf000000000545022f000000000303043b0000010004400089000000000343022f00000000034301cf000000000353019f000000000031043500001bfc0000013d0000001001000039000000000101041a000500000001001d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000101100039000000000201041a00000008012000b900000008031000fa000000000023004b0000014d0000c13d000027100110011a000000050110006b0000014d0000413d0000099f021000d100001c5a0000613d00000000031200d90000099f0030009c0000014d0000c13d00000006032000fa0000000602000029000011f40000013d0000001001000039000000000101041a000200000001001d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000101100039000000000201041a00000004012000b900000004031000fa000000000023004b0000014d0000c13d000027100110011a000000020110006b0000014d0000413d0000099f021000d100001c7c0000613d00000000031200d90000099f0030009c0000014d0000c13d00000007032000fa000000070200002900001aac0000013d0000001001000039000000000101041a000300000001001d0000000901000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000112c0000613d000000000101043b0000000101100039000000000201041a00000005012000b900000005031000fa000000000023004b0000014d0000c13d000027100110011a000000030110006b0000014d0000413d0000099f021000d100001c9e0000613d00000000031200d90000099f0030009c0000014d0000c13d00000004032000fa0000000402000029000018050000013d0001000000000002000000000301041a000100000002001d000000000023004b00001cb50000a13d000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f000000010020019000001cbb0000613d000000010200002900000003022000c9000000000101043b0000000001210019000000000001042d00000a6901000041000000000010043f0000003201000039000000040010043f0000099c0100004100002642000104300000000001000019000026420001043000000020030000390000000004310436000000000302043300000000003404350000004001100039000000000003004b00001ccc0000613d000000000400001900000020022000390000000005020433000009940550019700000000015104360000000104400039000000000034004b00001cc50000413d000000000001042d0000001f0220003900000a75022001970000000001120019000000000021004b0000000002000039000000010200403900000a070010009c00001cd90000213d000000010020019000001cd90000c13d000000400010043f000000000001042d00000a6901000041000000000010043f0000004101000039000000040010043f0000099c010000410000264200010430000000000301001900000000040104330000000001420436000000000004004b00001ceb0000613d00000000020000190000002003300039000000000503043300000000015104360000000102200039000000000042004b00001ce50000413d000000000001042d000000000010043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001cfb0000613d000000000101043b0000000101100039000000000101041a000000000001042d00000000010000190000264200010430000000000001004b00001d140000613d00000a760010009c00001d0e0000613d000000010310003900000000020100190000000104300270000000000024004b00001d150000813d000000010030008c00001d170000a13d00000000024100d90000000003420019000000000042001a000000000204001900001d0e0000413d00001d030000013d00000a6901000041000000000010043f0000001101000039000000040010043f0000099c01000041000026420001043000000000020100190000000001020019000000000001042d00000a6901000041000000000010043f0000001201000039000000040010043f0000099c0100004100002642000104300005000000000002000009940110019800001e210000613d000500000001001d000000000010043f0000001801000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b000000000101041a000400000001001d0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b000000000301041a000000000003004b0000000f01000039000000190200003900001d750000613d000300000003001d000000000101041a000200000001001d0000000501000029000000000010043f000000200020043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b000000000101041a000000020110006b000000030200002900001e240000413d00000000032100a900000000022300d9000000000012004b00001e240000c13d000300000003001d0000000501000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b0000000101100039000000000201041a000000030300002900000000013200a9000000000003004b00001d710000613d00000000033100d9000000000023004b00001e240000c13d00000a770110012a000000040010002a00001e240000413d000400040010002d0000000501000029000000000010043f0000001801000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b0000000402000029000000000021041b0000000f01000039000000000101041a000400000001001d0000000501000029000000000010043f0000001901000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b0000000402000029000000000021041b0000000501000029000000000010043f0000001c01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b000000000101041a000400000001001d0000001b01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b000000000101041a000300000001001d0000000501000029000000000010043f0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b000000000101041a000000000001004b0000000d030000390000001a0200003900001df00000613d000200000001001d000000000103041a000100000001001d0000000501000029000000000010043f000000200020043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b000000000101041a000000010210006b000000020400002900001e240000413d00000000014200a900000000034100d9000000000023004b00001e240000c13d0000099f0010009c00001dec0000413d0000099f0110012a000000040010002a00001e240000413d0000099f021000d100000000024200d9000000030020002a00001e240000413d000400040010002d000300030020002d00000005010000290000001a020000390000000d0300003900001df10000013d0000000501000029000000000303041a000200000003001d000000000010043f000000200020043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b0000000202000029000000000021041b0000000501000029000000000010043f0000001c01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b0000000402000029000000000021041b0000000501000029000000000010043f0000001b01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f000000010020019000001e220000613d000000000101043b0000000302000029000000000021041b000000000001042d0000000001000019000026420001043000000a6901000041000000000010043f0000001101000039000000040010043f0000099c01000041000026420001043000060000000000020000099401100198000020070000613d000300000002001d000600000001001d000000000010043f0000001801000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b000000000101041a000500000001001d0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b000000000301041a000000000003004b0000000f01000039000000190200003900001e830000613d000400000003001d000000000101041a000200000001001d0000000601000029000000000010043f000000200020043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b000000000101041a000000020110006b00000004020000290000200a0000413d00000000032100a900000000022300d9000000000012004b0000200a0000c13d000400000003001d0000000601000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b0000000101100039000000000201041a000000040300002900000000013200a9000000000003004b00001e7f0000613d00000000033100d9000000000023004b0000200a0000c13d00000a770110012a000000050010002a0000200a0000413d000500050010002d0000000601000029000000000010043f0000001801000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b0000000502000029000000000021041b0000000f01000039000000000101041a000500000001001d0000000601000029000000000010043f0000001901000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b0000000502000029000000000021041b0000000601000029000000000010043f0000001c01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b000000000101041a000400000001001d0000001b01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b000000000101041a000500000001001d0000000601000029000000000010043f0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b000000000301041a000000000003004b0000000d010000390000001a0200003900001efc0000613d000200000003001d000000000101041a000100000001001d0000000601000029000000000010043f000000200020043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b000000000101041a000000010210006b00000002040000290000200a0000413d00000000014200a900000000034100d9000000000023004b0000200a0000c13d0000099f0010009c00001efa0000413d0000099f0110012a000000040010002a0000200a0000413d0000099f021000d100000000024200d9000000050020002a0000200a0000413d000400040010002d000500050020002d0000001a020000390000000d010000390000000303000029000009940330019800001fd60000613d000200000003001d000000000030043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b0000000602000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b000000000101041a000000000001004b000000230200003900001f450000613d000300000001001d0000000201000029000000000010043f000000200020043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b0000000602000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b000000000101041a000000050210006b00000003030000290000200a0000413d00000000013200a900000000033100d9000000000023004b0000200a0000c13d0003099f001001320000000201000029000000230200003900001f470000013d000300000000001d0000000201000029000000000010043f000000200020043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b0000000602000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b0000000502000029000000000021041b0000000303000029000000000003004b00001fd40000613d0000000e01000039000000000201041a000000000232004b0000000002004019000000000021041b0000000201000029000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039000300000003001d264026360000040f0000000304000029000000040340006b0000000003004019000400000003001d0000000100200190000020080000613d000000000101043b0000000602000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b000000000201041a0000000303000029000000000032001a0000200a0000413d0000000002320019000000000021041b0000000601000029000000000010043f0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b000000000201041a0000000303000029000000000032001a0000200a0000413d0000000002320019000000000021041b0000000b01000039000000000101041a000100000001001d000000000031001a0000200a0000413d0000001001000039000000000101041a000200000001001d0000000601000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b0000000101100039000000000201041a000000030400002900000000014200a900000000034100d9000000000023004b00000002020000290000200a0000c13d000027100110011a000000000021001a0000200a0000413d000000000121001a0000099f021000d100001fcb0000613d00000000031200d90000099f0030009c0000200a0000c13d000000010340002a000020100000613d00000000023200d90000001104000039000000000024041b0000000b02000039000000000032041b0000001002000039000000000012041b0000001a020000390000000d01000039000000000101041a000300000001001d0000000601000029000000000010043f000000200020043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b0000000302000029000000000021041b0000000601000029000000000010043f0000001c01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b0000000402000029000000000021041b0000000601000029000000000010043f0000001b01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020080000613d000000000101043b0000000502000029000000000021041b000000000001042d0000000001000019000026420001043000000a6901000041000000000010043f0000001101000039000000040010043f0000099c01000041000026420001043000000a6901000041000000000010043f0000001201000039000000040010043f0000099c0100004100002642000104300000004005100039000000000045043500000994033001970000002004100039000000000034043500000994022001970000000000210435000000600210003900000000000204350000008001100039000000000001042d0000006006100039000000000056043500000040051000390000000000450435000009940330019700000020041000390000000000340435000009940220019700000000002104350000008001100039000000000001042d00020000000000020000000201000039000000000101041a000000d002100272000020450000613d000100000002001d000200000001001d00000a1e0100004100000000001004430000000001000414000009910010009c0000099101008041000000c00110021000000a1f011001c70000800b02000039264026360000040f0000000100200190000020490000613d000000000101043b000000010010006b0000000201000029000020450000813d000000a00110027000000a1c01100197000000000001042d0000000101000039000000000101041a000000d001100270000000000001042d000000000001042f0000000101000039000000000201041a0000099401200197000000a00220027000000a1c02200197000000000001042d0001000000000002000100000001001d000000000010043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020700000613d000000000101043b00000000020004110000099402200197000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000020700000613d000000000101043b000000000101041a000000ff00100190000020720000613d000000000001042d0000000001000019000026420001043000000a1501000041000000000010043f0000000001000411000000040010043f0000000101000029000000240010043f00000a160100004100002642000104300004000000000002000000000002004b000021af0000613d0000000004010019000409940010019c000021b30000613d0000800101000039000000000010043f0000001203000039000000200030043f00000a2803000041000000000303041a000000ff00300190000021b70000613d000300000002001d00000a2a03000041000000000303041a00000a0500300198000021b90000c13d000000000204001926401e2a0000040f0000000401000029000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d000000000101043b000000000101041a000200000001001d000000000001004b0000213a0000c13d0000000401000029000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d000000000101043b000000000101041a000000000001004b0000213a0000c13d0000000401000029000000000010043f0000001f01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d000000000101043b000000000201041a00000a6d0020009c000021c40000813d000100000002001d0000000102200039000000000021041b000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f0000000100200190000021a70000613d000000000101043b0000000101100029000000000201041a000009950220019700008001022001bf000000000021041b0000000401000029000000000010043f0000001f01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d000000000101043b000000000101041a000100000001001d000000000001004b000021a90000613d0000000401000029000000000010043f0000002001000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d0000000102000029000000010220008a000000000101043b000100000002001d000000000021041b0000800101000039000000000010043f0000001301000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d000000000101043b000000000201041a000000010220003a000021a90000613d000000000021041b000000010000006b0000213a0000c13d0000000701000039000000000201041a000000010220003a000021a90000613d000000000021041b0000000202000029000000030020002a000021a90000413d0000000401000029000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d000000000101043b0000800102000039000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d00000003030000290000000202300029000000000101043b000000000021041b0000001601000039000000200010043f00000a2c01000041000000000201041a000000000032001a000021a90000413d0000000002320019000000000021041b0000000b01000039000000000101041a000100000001001d000000000031001a000021a90000413d0000001001000039000000000101041a000200000001001d0000800101000039000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000021a70000613d000000000101043b0000000101100039000000000201041a000000030500002900000000015200a900000000035100d9000000000023004b0000000202000029000021a90000c13d000027100110011a000000000021001a000021a90000413d000000000121001a0000099f021000d10000218a0000613d00000000031200d90000099f0030009c000021a90000c13d000000010350002a000021be0000613d00000000023200d90000001104000039000000000024041b0000000b02000039000000000032041b0000001002000039000000000012041b000000400100043d0000000000510435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000a09011001c70000800d020000390000000303000039000080010600003900000a19040000410000000405000029264026310000040f0000000100200190000021a70000613d000000000001042d0000000001000019000026420001043000000a6901000041000000000010043f0000001101000039000000040010043f0000099c01000041000026420001043000000a1b01000041000000000010043f000009a101000041000026420001043000000a6301000041000000000010043f000009a101000041000026420001043000000a0e02000041000021ba0000013d00000a1702000041000000000020043f000000040010043f0000099c01000041000026420001043000000a6901000041000000000010043f0000001201000039000000040010043f0000099c01000041000026420001043000000a6901000041000000000010043f0000004101000039000000040010043f0000099c0100004100002642000104300005000000000002000000000003004b000023180000613d000400000003001d000100000001001d000509940010019c0000231c0000613d000309940020019c0000231c0000613d000200000002001d0000000501000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b000000000201041a000000ff00200190000023200000613d0000000201100039000000000101041a00000a05001001980000000202000029000023220000c13d000000010100002926401e2a0000040f0000000301000029000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b0000000502000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b000000000101041a000200000001001d000000000001004b000022970000c13d0000000301000029000000000010043f0000002201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b0000000502000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b000000000101041a000000000001004b000022970000c13d0000000301000029000000000010043f0000001f01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b000000000201041a00000a6d0020009c0000232e0000813d000100000002001d0000000102200039000000000021041b000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b0000000101100029000000000201041a000009950220019700000005022001af000000000021041b0000000301000029000000000010043f0000001f01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b000000000101041a000100000001001d000000000001004b000023120000613d0000000301000029000000000010043f0000002001000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b0000000502000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d0000000102000029000000010220008a000000000101043b000100000002001d000000000021041b0000000501000029000000000010043f0000001301000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b000000000201041a000000010220003a000023120000613d000000000021041b000000010000006b000022970000c13d0000000701000039000000000201041a000000010220003a000023120000613d000000000021041b0000000202000029000000040020002a000023120000413d0000000301000029000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b0000000502000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d00000002030000290000000402300029000000000101043b000000000021041b0000000501000029000000000010043f0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b000000000201041a0000000403000029000000000032001a000023120000413d0000000002320019000000000021041b0000000b01000039000000000101041a000100000001001d000000000031001a000023120000413d0000001001000039000000000101041a000200000001001d0000000501000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023100000613d000000000101043b0000000101100039000000000201041a000000040500002900000000015200a900000000035100d9000000000023004b0000000202000029000023120000c13d000027100110011a000000000021001a000023120000413d000000000121001a0000099f021000d1000022f30000613d00000000031200d90000099f0030009c000023120000c13d000000010350002a000023280000613d00000000023200d90000001104000039000000000024041b0000000b02000039000000000032041b0000001002000039000000000012041b000000400100043d0000000000510435000009910010009c000009910100804100000040011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000a09011001c70000800d02000039000000030300003900000a190400004100000003050000290000000506000029264026310000040f0000000100200190000023100000613d000000000001042d0000000001000019000026420001043000000a6901000041000000000010043f0000001101000039000000040010043f0000099c01000041000026420001043000000a1b01000041000000000010043f000009a101000041000026420001043000000a6301000041000000000010043f000009a101000041000026420001043000000a0e01000041000023230000013d00000a1701000041000000000010043f0000000501000029000000040010043f0000099c01000041000026420001043000000a6901000041000000000010043f0000001201000039000000040010043f0000099c01000041000026420001043000000a6901000041000000000010043f0000004101000039000000040010043f0000099c01000041000026420001043000040000000000020000099401100197000300000001001d000000000010043f0000001801000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000238d0000613d000000000101043b000000000101041a000400000001001d0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000238d0000613d000000000101043b000000000101041a000000000001004b0000238b0000613d000100000001001d0000000f01000039000000000101041a000200000001001d0000000301000029000000000010043f0000001901000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000238d0000613d000000000101043b000000000101041a000000020110006b0000238f0000413d00000001031000b900000001023000fa000000000012004b0000238f0000c13d000200000003001d0000000301000029000000000010043f0000001201000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000238d0000613d000000000101043b0000000101100039000000000201041a000000020300002900000000013200a9000000000003004b000023860000613d00000000033100d9000000000023004b0000238f0000c13d00000a770110012a000000040010002a0000238f0000413d0000000401100029000000000001042d0000000401000029000000000001042d0000000001000019000026420001043000000a6901000041000000000010043f0000001101000039000000040010043f0000099c01000041000026420001043000050000000000020000099401100197000500000001001d000000000010043f0000001c01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023f10000613d000000000101043b000000000101041a000400000001001d0000001b01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023f10000613d000000000101043b000000000101041a000300000001001d0000000501000029000000000010043f0000001601000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023f10000613d000000000101043b000000000101041a000000000001004b000023ee0000613d000200000001001d0000000d01000039000000000101041a000100000001001d0000000501000029000000000010043f0000001a01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000023f10000613d000000000101043b000000000101041a000000010510006b000000040100002900000003020000290000000206000029000023f30000413d00000000046500a900000000036400d9000000000053004b000023f30000c13d0000099f0040009c000023ed0000413d0000099f0340012a000000000013001a000023f30000413d0000099f043000d100000000046400d9000000000024001a000023f30000413d00000000011300190000000002240019000000000001042d00000004010000290000000302000029000000000001042d0000000001000019000026420001043000000a6901000041000000000010043f0000001101000039000000040010043f0000099c0100004100002642000104300004000000000002000200000003001d000400000002001d0000099401100197000300000001001d000000000010043f0000002101000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000024440000613d000000000101043b00000004020000290000099402200197000400000002001d000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000024440000613d000000000101043b000000000101041a000000000001004b000024420000613d000100000001001d0000000301000029000000000010043f0000002301000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000024440000613d000000000101043b0000000402000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000024440000613d000000000101043b000000000101041a000000020210006b000024460000413d00000001012000b900000001031000fa000000000023004b000024460000c13d0000099f0110012a000000000001042d0000000001000019000000000001042d0000000001000019000026420001043000000a6901000041000000000010043f0000001101000039000000040010043f0000099c0100004100002642000104300005000000000002000400000002001d0000099401100197000500000001001d000000000010043f0000002001000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025300000613d000000000101043b00000004020000290000099402200197000300000002001d000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025300000613d000000000101043b000000000101041a000400000001001d0000000501000029000000000010043f0000001f01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025300000613d000000000101043b000000000201041a000000000002004b000025320000613d000000010220008a000200000002001d000000040020006b000024d10000613d000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f0000000100200190000025300000613d000000000101043b0000000201100029000000000101041a000100000001001d0000000501000029000000000010043f0000001f01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025300000613d000000000101043b000000000201041a000000040020006c0000253e0000a13d000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f0000000100200190000025300000613d0000000102000029000109940020019b000000000101043b0000000401100029000000000201041a000009950220019700000001022001af000000000021041b0000000501000029000000000010043f0000002001000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025300000613d000000000101043b0000000102000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025300000613d000000000101043b0000000402000029000000000021041b0000000501000029000000000010043f0000001f01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025300000613d000000000101043b000000000201041a000400000002001d000000000002004b000025380000613d000100000001001d000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f0000000100200190000025300000613d0000000402000029000000010220008a000000000101043b0000000001210019000000000301041a0000099503300197000000000031041b0000000101000029000000000021041b0000000501000029000000000010043f0000002001000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025300000613d000000000101043b0000000302000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025300000613d000000000101043b000000000001041b0000000301000029000000000010043f0000001301000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025300000613d000000000101043b000000000201041a000000000002004b000025320000613d000000010220008a000000000021041b000000020000006b000025290000613d000000000001042d0000000701000039000000000201041a000000000002004b000025320000613d000000010220008a000000000021041b000000000001042d0000000001000019000026420001043000000a6901000041000000000010043f0000001101000039000000040010043f0000099c01000041000026420001043000000a6901000041000000000010043f0000003101000039000000040010043f0000099c01000041000026420001043000000a6901000041000000000010043f0000003201000039000000040010043f0000099c0100004100002642000104300003000000000002000200000002001d0000099401100197000300000001001d000000000010043f0000001f01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025b90000613d000000000101043b000000000201041a00000a6d0020009c000025c10000813d000100000002001d0000000102200039000000000021041b000000000010043f0000000001000414000009910010009c0000099101008041000000c00110021000000a09011001c70000801002000039264026360000040f0000000100200190000025b90000613d000000000101043b0000000101100029000000000201041a00000995022001970000000203000029000209940030019b00000002022001af000000000021041b0000000301000029000000000010043f0000001f01000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025b90000613d000000000101043b000000000101041a000100000001001d000000000001004b000025bb0000613d0000000301000029000000000010043f0000002001000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025b90000613d000000000101043b0000000202000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025b90000613d0000000102000029000000010220008a000000000101043b000300000002001d000000000021041b0000000201000029000000000010043f0000001301000039000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f0000000100200190000025b90000613d000000000101043b000000000201041a000000010220003a000025bb0000613d000000000021041b000000030000006b000025b30000613d000000000001042d0000000701000039000000000201041a000000010220003a000025bb0000613d000000000021041b000000000001042d0000000001000019000026420001043000000a6901000041000000000010043f0000001101000039000000040010043f0000099c01000041000026420001043000000a6901000041000000000010043f0000004101000039000000040010043f0000099c0100004100002642000104300002000000000002000000000001004b000025d10000c13d0000000204000039000000000504041a000000000325013f0000099400300198000025d10000c13d0000099503500197000000000034041b000100000002001d000200000001001d000000000010043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000261d0000613d000000000101043b00000001020000290000099402200197000100000002001d000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000261d0000613d000000000101043b000000000101041a000000ff001001900000261c0000613d0000000201000029000000000010043f000000200000043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000261d0000613d000000000101043b0000000102000029000000000020043f000000200010043f0000000001000414000009910010009c0000099101008041000000c00110021000000997011001c70000801002000039264026360000040f00000001002001900000261d0000613d000000000101043b000000000201041a00000a7402200197000000000021041b0000000001000414000009910010009c0000099101008041000000c00110021000000998011001c70000800d020000390000000403000039000000000700041100000a200400004100000002050000290000000106000029264026310000040f00000001002001900000261d0000613d000000000001042d00000000010000190000264200010430000000000001042f000009910010009c000009910100804100000060011002100000000002000414000009910020009c0000099102008041000000c002200210000000000112019f00000998011001c70000801002000039264026360000040f00000001002001900000262f0000613d000000000101043b000000000001042d0000000001000019000026420001043000002634002104210000000102000039000000000001042d0000000002000019000000000001042d00002639002104230000000102000039000000000001042d0000000002000019000000000001042d0000263e002104250000000102000039000000000001042d0000000002000019000000000001042d0000264000000432000026410001042e0000264200010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffff00000003f4800000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000ad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5020000000000000000000000000000000000004000000000000000000000000002000000000000000000000000000000000000000000000000000000000000002f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d0000000200000000000000000000000000000040000001000000000000000000c22c80220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f3902000002000000000000000000000000000000240000000000000000000000000000000000000000000000000000000000c097ce7bc90715b34b9f1000000000b387f426000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000008302fe1000000000000000000000000000000000000000000000000000000000b6b8931d00000000000000000000000000000000000000000000000000000000d074c8e600000000000000000000000000000000000000000000000000000000f40beccd00000000000000000000000000000000000000000000000000000000f6a2f40600000000000000000000000000000000000000000000000000000000f6a2f40700000000000000000000000000000000000000000000000000000000f80ac4d500000000000000000000000000000000000000000000000000000000fa52c7d800000000000000000000000000000000000000000000000000000000f40becce00000000000000000000000000000000000000000000000000000000f43e925900000000000000000000000000000000000000000000000000000000d602b9fc00000000000000000000000000000000000000000000000000000000d602b9fd00000000000000000000000000000000000000000000000000000000d80ef76000000000000000000000000000000000000000000000000000000000d074c8e700000000000000000000000000000000000000000000000000000000d547741f00000000000000000000000000000000000000000000000000000000be4c823e00000000000000000000000000000000000000000000000000000000cefc142800000000000000000000000000000000000000000000000000000000cefc142900000000000000000000000000000000000000000000000000000000cf6eefb700000000000000000000000000000000000000000000000000000000be4c823f00000000000000000000000000000000000000000000000000000000cc8463c800000000000000000000000000000000000000000000000000000000b84f839a00000000000000000000000000000000000000000000000000000000b84f839b00000000000000000000000000000000000000000000000000000000bc50ebba00000000000000000000000000000000000000000000000000000000b6b8931e00000000000000000000000000000000000000000000000000000000b7ab4db50000000000000000000000000000000000000000000000000000000091d1485300000000000000000000000000000000000000000000000000000000a1eda53b00000000000000000000000000000000000000000000000000000000a9a0894f00000000000000000000000000000000000000000000000000000000a9a0895000000000000000000000000000000000000000000000000000000000ae5ac92100000000000000000000000000000000000000000000000000000000b176407100000000000000000000000000000000000000000000000000000000a1eda53c00000000000000000000000000000000000000000000000000000000a217fddf0000000000000000000000000000000000000000000000000000000094427bf90000000000000000000000000000000000000000000000000000000094427bfa000000000000000000000000000000000000000000000000000000009cc776f50000000000000000000000000000000000000000000000000000000091d14854000000000000000000000000000000000000000000000000000000009358928b000000000000000000000000000000000000000000000000000000008abde831000000000000000000000000000000000000000000000000000000008da5cb5a000000000000000000000000000000000000000000000000000000008da5cb5b000000000000000000000000000000000000000000000000000000008e4647ee000000000000000000000000000000000000000000000000000000008abde832000000000000000000000000000000000000000000000000000000008c78ea000000000000000000000000000000000000000000000000000000000084ef8ffb0000000000000000000000000000000000000000000000000000000084ef8ffc0000000000000000000000000000000000000000000000000000000086989038000000000000000000000000000000000000000000000000000000008302fe1100000000000000000000000000000000000000000000000000000000839006f2000000000000000000000000000000000000000000000000000000004e3266e2000000000000000000000000000000000000000000000000000000006722e9fd0000000000000000000000000000000000000000000000000000000075b238fb0000000000000000000000000000000000000000000000000000000076e893490000000000000000000000000000000000000000000000000000000076e8934a000000000000000000000000000000000000000000000000000000007a1ac61e000000000000000000000000000000000000000000000000000000007b743e6b0000000000000000000000000000000000000000000000000000000075b238fc0000000000000000000000000000000000000000000000000000000076980d930000000000000000000000000000000000000000000000000000000067d8173f0000000000000000000000000000000000000000000000000000000067d817400000000000000000000000000000000000000000000000000000000068cb1804000000000000000000000000000000000000000000000000000000006722e9fe00000000000000000000000000000000000000000000000000000000677342ce000000000000000000000000000000000000000000000000000000005c60da1a00000000000000000000000000000000000000000000000000000000634e93d900000000000000000000000000000000000000000000000000000000634e93da00000000000000000000000000000000000000000000000000000000649a5ec7000000000000000000000000000000000000000000000000000000005c60da1b000000000000000000000000000000000000000000000000000000005d94154200000000000000000000000000000000000000000000000000000000552b54eb00000000000000000000000000000000000000000000000000000000552b54ec00000000000000000000000000000000000000000000000000000000567e98f9000000000000000000000000000000000000000000000000000000004e3266e300000000000000000000000000000000000000000000000000000000500dd08000000000000000000000000000000000000000000000000000000000248a9ca2000000000000000000000000000000000000000000000000000000002fff7c4d000000000000000000000000000000000000000000000000000000003a4b66f0000000000000000000000000000000000000000000000000000000003a4b66f100000000000000000000000000000000000000000000000000000000429e37d60000000000000000000000000000000000000000000000000000000047c2bd5c000000000000000000000000000000000000000000000000000000002fff7c4e0000000000000000000000000000000000000000000000000000000036568abe000000000000000000000000000000000000000000000000000000002bc74eb8000000000000000000000000000000000000000000000000000000002bc74eb9000000000000000000000000000000000000000000000000000000002f2ff15d00000000000000000000000000000000000000000000000000000000248a9ca30000000000000000000000000000000000000000000000000000000026476204000000000000000000000000000000000000000000000000000000000aa6220a000000000000000000000000000000000000000000000000000000000e9c7172000000000000000000000000000000000000000000000000000000000e9c71730000000000000000000000000000000000000000000000000000000014dc6de7000000000000000000000000000000000000000000000000000000000aa6220b000000000000000000000000000000000000000000000000000000000ae65e7a000000000000000000000000000000000000000000000000000000000437e4fc000000000000000000000000000000000000000000000000000000000437e4fd00000000000000000000000000000000000000000000000000000000086fc0c70000000000000000000000000000000000000000000000000000000001ffc9a700000000000000000000000000000000000000000000000000000000022d63fb0000000000000000000000ff00000000000000000000000000000000000000000000000000000000000000000000000000000080000000800000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe002000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000800000000000000000b3eb2c5500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000032ce08d6e571c0801545d67f88f51af21ec0a6e3851f1e46eca39f9fe607c0ff4049c7c600000000000000000000000000000000000000000000000000000000ed92ec310000000000000000000000000000000000000000000000000000000030a614daea994363df3d0f8cf9992bdbcb455f9dcc61502670723e7c4657fabae23c055500000000000000000000000000000000000000000000000000000000ffffffffffff0000000000000000000000000000000000000000000000000000000000000000ffffffffffff00000000000000000000000000000000000000008886ebfc4259abdbc16601dd8fb5678e54878f47b3c34836cfc51154a9605109e2517d3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044000000000000000000000000ac5f4a1800000000000000000000000000000000000000000000000000000000861da4bd0000000000000000000000000000000000000000000000000000000099039fcf0a98f484616c5196ee8b2ecfa971babf0b519848289ea4db381f85f7390b1276974b9463e5d66ab10df69b6f3d7b930eb066a0e66df327edd2cc811c106405ae000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffff0000000000000000000000000000000000000040000000800000000000000000796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d955391320200000200000000000000000000000000000004000000000000000000000000f6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b19ca5ebb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000008c8ab2c292ba164834b8f5ca09fe9719757d25908171170244bb9078bd26a7ef7d7ffb7a348e1c6a02869081a26547b49160dd3df72d1d75a570eb9b698292ec01717cbfde89d8bbf96483ecd03e5636c025a5fcd73aab2a90fa4f3228c9c7fda49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775ce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec9ae669c750db5085776410ac1e09b2c2a75ab1b76eadcf98063040ba3d2b6333000000000000000000000000000000000000000000000000ffffffffffffff9f9ae669c750db5085776410ac1e09b2c2a75ab1b76eadcf98063040ba3d2b6335b018d8f566ca3fab63b56c4ab336dcb5f0f1f8df05a980885b81e5127b2666b8d4b66f601854d0525994f8c27967820c514b6ecd5c80671d17ca8020bc0ac279282129d404496635cd18d83022451839006a0623bada56a71d3b1e204231dbe0a795404414334f758ca716af53dcc5929dc8164989a1ea9004aa40d2c9da1ec40948c21c3cd72d109ec1c007d9c52f2c5d6109db0356f11facb0fe9df644bec4e757126a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000995bcff10000000000000000000000000000000000000000000000000000000077aace48b80e5de20ee19d56a704f48d2c3d1cba3a14e170d86b916c31f7cbba27e0d388d0202d0765f3b3e68e15ecbaf4a8a249ada75b0b7d7bb05f0794049ee16ebd50790f6fbcb1ef3fcad6de5e9c33f0d394e417e7e23a710037ede7813f5d34a9100000000000000000000000000000000000000000000000000000000070a082310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffe0a9059cbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff7f000000000000000000000000000000000000000000000001ffffffffffffffe0000000000000000000000000000000000000000000000003ffffffffffffffe01806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5274afe7000000000000000000000000000000000000000000000000000000009996b315000000000000000000000000000000000000000000000000000000001425ea4200000000000000000000000000000000000000000000000000000000f603533e14e17222e047634a2b3457fe346d27e294cedf9d21d74e5feea4a0460000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000003ffffffe0696e6974206661696c656400000000000000000000000000000000000000000008c379a000000000000000000000000000000000000000000000000000000000696d706c5f206973207a65726f206164647265737300000000000000000000000000000000000000000000000000000000000000000000000000000000278d009f0a5b3b1c1af306c8bc497a326188c5639fd1d5c17417c94c6a55f67ce08f7dc5622e2009b33899cfd78cd23d113bf786a85da0a62e72821663b65a22cd0c957b5a2b4f3dc331fe7d904924af1cb394233b6f60a1b942bd16f9e0fe9f7591ff9ae669c750db5085776410ac1e09b2c2a75ab1b76eadcf98063040ba3d2b6334ffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000088db5fef6b53c04af646f1bdb046e6b9d8f15ad60dbe25fa5d5f5dc5dcadb92ac1a1f15666b0235d7e5ed7db678cfc0e9451b046c234011592b887be1434fd30fed60e00000000000000000000000000000000000000000000000000000000000dc149f0000000000000000000000000000000000000000000000000000000003a81d6fc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278d01d3a37e291a624ba6f682d2207703364c628eb129f386076e59c50f5a12d5d91e2ddcff4100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000697802b1fa2edafe6f7b9e97c1a9e0c3660e645beb2dcaa2d45bdbf9beaf5472e1ec5f1038c18cf84a56e432fdbfaf746924b7ea511dfe03a6506a0ceba4888788d9b6dfcc650000000000000000000000000000000000000000000000000000000003377dc44241e779dd06afab5b788a35ca5f3b778836e2990bdb26a2a4b2e5ed6057edee8469970a72e931e9942f659f6282f2c12c6addd1e688e48f13aa066e33b5eecf000000000000000000000000000000000000000000000000000000000301894ce00000000000000000000000000000000000000000000000000000000724950b90000000000000000000000000000000000000000000000000000000090b8ec1800000000000000000000000000000000000000000000000000000000d92e233d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000ffffffffffff000000000000ffffffffffffffffffffffffffffffffffffffff6697b232000000000000000000000000000000000000000000000000000000003fc3c27a00000000000000000000000000000000000000000000000000000000ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff4e487b7100000000000000000000000000000000000000000000000000000000319284ad7d4265c99e51f9e0112e2425b1ad54f8c4e06d7a4191eaa263c72b15319284ad7d4265c99e51f9e0112e2425b1ad54f8c4e06d7a4191eaa263c72b140e531c2c33b323ced10cd856501d74916d71500dcc07e99c4d9aa74c1c1d6462000000000000000000000000000000000000000000000001000000000000000023530dbffbb32ba7990dd9543c1a0134ca59e2d2d60cc2cbf413e573d6a85241bb9211670000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff314987860000000000000000000000000000000000000000000000000000000001ffc9a7000000000000000000000000000000000000000000000000000000007965db0b00000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000001d6329f1c35ca4bfabb9f5610000000000069673523e3116ba58e526fabeba6dd6b26f0293be0a86e671fe1134873e13e6
Loading...
Loading
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.