Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 20,032 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Unstake | 21224889 | 4 days ago | IN | 0 ETH | 0.00057865 | ||||
Withdraw Reward | 21224885 | 4 days ago | IN | 0 ETH | 0.00084685 | ||||
Unstake | 21201566 | 7 days ago | IN | 0 ETH | 0.00071383 | ||||
Withdraw Reward | 21201557 | 7 days ago | IN | 0 ETH | 0.00129349 | ||||
Withdraw Unstake... | 21161678 | 12 days ago | IN | 0 ETH | 0.0010963 | ||||
Withdraw Unstake... | 21061227 | 26 days ago | IN | 0 ETH | 0.00041142 | ||||
Withdraw Reward | 20888658 | 51 days ago | IN | 0 ETH | 0.00035561 | ||||
Unstake | 20856052 | 55 days ago | IN | 0 ETH | 0.00023692 | ||||
Unstake | 20737043 | 72 days ago | IN | 0 ETH | 0.00020689 | ||||
Withdraw Unstake... | 19918668 | 186 days ago | IN | 0 ETH | 0.00093804 | ||||
Withdraw Reward | 19766275 | 207 days ago | IN | 0 ETH | 0.00025688 | ||||
Unstake | 19766270 | 207 days ago | IN | 0 ETH | 0.00054169 | ||||
Unstake | 19739843 | 211 days ago | IN | 0 ETH | 0.00049904 | ||||
Withdraw Unstake... | 19588818 | 232 days ago | IN | 0 ETH | 0.00096224 | ||||
Withdraw Reward | 19574878 | 234 days ago | IN | 0 ETH | 0.00194196 | ||||
Unstake | 19531713 | 240 days ago | IN | 0 ETH | 0.00139787 | ||||
Withdraw Unstake... | 19502623 | 244 days ago | IN | 0 ETH | 0.00125777 | ||||
Withdraw Reward | 19411477 | 257 days ago | IN | 0 ETH | 0.00480096 | ||||
Withdraw Reward | 19374451 | 262 days ago | IN | 0 ETH | 0.00461076 | ||||
Exit | 19154193 | 293 days ago | IN | 0 ETH | 0.00070492 | ||||
Stake Reward | 19154164 | 293 days ago | IN | 0 ETH | 0.00066254 | ||||
Unstake | 19154155 | 293 days ago | IN | 0 ETH | 0.00107944 | ||||
Exit | 18887936 | 331 days ago | IN | 0 ETH | 0.00076105 | ||||
Withdraw Unstake... | 18750565 | 350 days ago | IN | 0 ETH | 0.00272807 | ||||
Unstake | 18715709 | 355 days ago | IN | 0 ETH | 0.00221741 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakingRewards
Compiler Version
v0.5.16+commit.9c3226ce
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-10-09 */ pragma solidity ^0.5.16; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @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, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when 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 SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // 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-solidity/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, "SafeMath: division by zero"); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b != 0, "SafeMath: modulo by zero"); return a % b; } } /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see `ERC20Detailed`. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a `Transfer` event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through `transferFrom`. This is * zero by default. * * This value changes when `approve` or `transferFrom` are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * > Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an `Approval` event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a `Transfer` event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to `approve`. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @dev Optional functions from the ERC20 standard. */ contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. * * > Note that this information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * `IERC20.balanceOf` and `IERC20.transfer`. */ function decimals() public view returns (uint8) { return _decimals; } } /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing a contract. * * > It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } } /** * @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 ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @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. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier * available, which can be aplied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. */ contract ReentrancyGuard { /// @dev counter to allow mutex lock with only one SSTORE operation uint256 private _guardCounter; constructor () internal { // The counter starts at one to prevent changing it from zero to a non-zero // value, which is a more expensive operation. _guardCounter = 1; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call"); } } // https://docs.synthetix.io/contracts/Owned contract Owned { address public owner; address public nominatedOwner; constructor(address _owner) public { require(_owner != address(0), "Owner address cannot be 0"); owner = _owner; emit OwnerChanged(address(0), _owner); } function nominateNewOwner(address _owner) external onlyOwner { nominatedOwner = _owner; emit OwnerNominated(_owner); } function acceptOwnership() external { require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership"); emit OwnerChanged(owner, nominatedOwner); owner = nominatedOwner; nominatedOwner = address(0); } modifier onlyOwner { require(msg.sender == owner, "Only the contract owner may perform this action"); _; } event OwnerNominated(address newOwner); event OwnerChanged(address oldOwner, address newOwner); } // Inheritance // https://docs.synthetix.io/contracts/Pausable contract Pausable is Owned { uint public lastPauseTime; bool public paused; constructor() internal { // This contract is abstract, and thus cannot be instantiated directly require(owner != address(0), "Owner must be set"); // Paused will be false, and lastPauseTime will be 0 upon initialisation } /** * @notice Change the paused state of the contract * @dev Only the contract owner may call this. */ function setPaused(bool _paused) external onlyOwner { // Ensure we're actually changing the state before we do anything if (_paused == paused) { return; } // Set our paused state. paused = _paused; // If applicable, set the last pause time. if (paused) { lastPauseTime = now; } // Let everyone know that our pause state has changed. emit PauseChanged(paused); } event PauseChanged(bool isPaused); modifier notPaused { require(!paused, "This action cannot be performed while the contract is paused"); _; } } // Inheritance contract StakingRewards is Owned, ReentrancyGuard, Pausable { using SafeMath for uint256; using SafeERC20 for IERC20; /* ========== UTIL FUNCTIONS ========== */ function getTime() internal view returns (uint256) { // current block timestamp as seconds since unix epoch // Used to mock time changes in tests return block.timestamp; } /* ========== STATE VARIABLES ========== */ // IERC20 public rewardsToken; IERC20 public stakingToken; uint256 private _totalSupply; mapping(address => uint256) private _stakedBalance; mapping(address => uint256) private _stakedTime; mapping(address => uint256) private _unstakingBalance; mapping(address => uint256) private _unstakingTime; mapping(address => uint256) private _rewardBalance; // Added for looping over addresses in event of APR change mapping(address => uint256) private _addressToIndex; address[] public allAddress; uint256 private rewardDistributorBalance = 0; uint256 internal rewardInterval = 86400 * 1; // 1 day uint256 internal unstakingInterval = 86400 * 8; // 8 day uint256 public rewardPerIntervalDivider = 411; uint256 private _convertDecimalTokenBalance = 10**18; uint256 public minStakeBalance = 1 * _convertDecimalTokenBalance; /* ========== CONSTRUCTOR ========== */ constructor( address _owner, address _stakingToken ) public Owned(_owner) { stakingToken = IERC20(_stakingToken); } /* ========== VIEWS ========== */ // How much OM is in the contract total? function totalSupply() external view returns (uint256) { return _totalSupply; } // How much OM has address staked? function balanceOf(address account) external view returns (uint256) { return _stakedBalance[account]; } // When did user stake? function stakeTime(address account) external view returns (uint256) { return _stakedTime[account]; } // How much OM is unstaking in the address's current unstaking procedure? function unstakingBalanceOf(address account) external view returns (uint256) { return _unstakingBalance[account]; } // How much time is left in the address's current unstaking procedure? function unstakingTimeOf(address account) external view returns (uint256) { return _unstakingTime[account]; } // How much have the address earned? function rewardBalanceOf(address account) external view returns (uint256) { return _rewardBalance[account]; } // How much OM is available to distribute from reward disributor address? (Controlled by Mantra council) function rewardDistributorBalanceOf() external view returns (uint256) { return rewardDistributorBalance; } // When is the address's next reward going to become unstakable? function nextRewardApplicableTime(address account) external view returns (uint256) { require(_stakedTime[account] != 0, "You dont have a stake in progress"); require(_stakedTime[account] <= getTime(), "Your stake takes 24 hours to become available to interact with"); uint256 secondsRemaining = (getTime() - _stakedTime[account]).mod(rewardInterval); return secondsRemaining; } // How much has account earned? Account's potential rewards ready to begin unstaking. function earned(address account) public view returns (uint256) { uint256 perIntervalReward = perIntervalRewardOf(account); uint256 intervalsStaked = stakedIntervalsCountOf(account); return perIntervalReward.mul(intervalsStaked); } function perIntervalRewardOf(address account) public view returns (uint256) { return _stakedBalance[account].div(rewardPerIntervalDivider); } function stakedIntervalsCountOf(address account) public view returns (uint256) { if (_stakedTime[account] == 0) return 0; uint256 diffTime = getTime().sub(_stakedTime[account]); return diffTime.div(rewardInterval); } // Address loop function getAddresses(uint256 i) public view returns (address) { return allAddress[i]; } function getAddressesLength() public view returns (uint256) { return allAddress.length; } // /* ========== END OF VIEWS ========== */ /* ========== MUTATIVE FUNCTIONS ========== */ // ------ FUNCTION ------- // // STAKE () // // #require() amount is greater than ZERO // #require() address that is staking is not the contract address // // Insert : token balance to user stakedBalances[address] // Insert : current block timestamp timestamp to stakeTime[address] // Add : token balance to total supply // Transfer : token balance from user to this contract // // EXIT // function stake(uint256 amount) external nonReentrant notPaused updateReward(msg.sender) { require(amount > 0, "Cannot stake 0"); uint256 newStakedBalance = _stakedBalance[msg.sender].add(amount); require(newStakedBalance >= minStakeBalance, "Staked balance is less than minimum stake balance"); uint256 currentTimestamp = getTime(); _stakedBalance[msg.sender] = newStakedBalance; _stakedTime[msg.sender] = currentTimestamp; _totalSupply = _totalSupply.add(amount); // if (_addressToIndex[msg.sender] > 0) { } else { allAddress.push(msg.sender); uint256 index = allAddress.length; _addressToIndex[msg.sender] = index; } // stakingToken.safeTransferFrom(msg.sender, address(this), amount); emit Staked(msg.sender, amount); } // ------ FUNCTION ------- // // UNSTAKE () // // initiate by running updateReward() to push the system forward // // #require() that the amount of tokens specified to unstake is above ZERO // #require() that the user has a current stakedBalance[address] above ZERO // #require() that the amount of tokens specified to unstake is equal or less than thier current stakedBalance[] // #require() that the address staking is not the contract address // // MODIFY : subtract token balance from stakedBalance[address] // // if (stakedBalance == 0) // Update : stake timestamp to ZERO stakeTime[address] // exit the system // Else () // #require() that the updates stake balance is above minimum stake value // Update : stake timestamp to now stakeTime[address] // Om for that address still remains in the system // MODIFY : token balance to user _unstakingBalance[address] // MODIFY : (time + unstakingInterval) timestamp to stakeTime[address] // // EXIT // function unstake(uint256 amount) public updateReward(msg.sender) { _unstake(msg.sender, amount); } // Allows user to unstake tokens without (or with partial) rewards in case of empty reward distribution pool function exit() public { uint256 reward = Math.min(earned(msg.sender), rewardDistributorBalance); require(reward > 0 || _rewardBalance[msg.sender] > 0 || _stakedBalance[msg.sender] > 0, "No tokens to exit"); _addReward(msg.sender, reward); _stakedTime[msg.sender] = 0; if (_rewardBalance[msg.sender] > 0) withdrawReward(); if (_stakedBalance[msg.sender] > 0) _unstake(msg.sender, _stakedBalance[msg.sender]); } // ------ FUNCTION ------- // // WITHDRAW UNSTAKED BALANCE (uint256 amount) // // updateReward() // // #require() that the amount of tokens specified to unstake is above ZERO // #require() that the user has a current unstakingBalance[address] above amount specified to withdraw // #require() that the current block time is greater than their unstaking end date (their unstaking or vesting period has finished) // // MODIFY : _unstakingBalance[address] to _unstakingBalance[address] minus amount // MODIFY : _totalSupply to _totalSupply[address] minus amount // // TRANSFER : amount to address that called the function // // // EXIT // function withdrawUnstakedBalance(uint256 amount) public nonReentrant updateReward(msg.sender) { require(amount > 0, "Account does not have an unstaking balance"); require(_unstakingBalance[msg.sender] >= amount, "Account does not have that much balance unstaked"); require(_unstakingTime[msg.sender] <= getTime(), "Unstaking period has not finished yet"); _unstakingBalance[msg.sender] = _unstakingBalance[msg.sender].sub(amount); _totalSupply = _totalSupply.sub(amount); stakingToken.safeTransfer(msg.sender, amount); emit Withdrawn(msg.sender, amount); } // ------ FUNCTION ------- // // LOCK IN REWARD () // // updateReward() // // EXIT // function lockInReward() public updateReward(msg.sender) {} function lockInRewardOnBehalf(address _address) private updateReward(_address) {} // ------ FUNCTION ------- // // WITHDRAW REWARD () // // updateReward() // // #require() that the reward balance of the user is above ZERO // // TRANSFER : transfer reward balance to address that called the function // // MODIFY : update rewardBalance to ZERO // // EXIT // function withdrawReward() public updateReward(msg.sender) { uint256 reward = _rewardBalance[msg.sender]; require(reward > 0, "You have not earned any rewards yet"); _rewardBalance[msg.sender] = 0; _unstakingBalance[msg.sender] = _unstakingBalance[msg.sender].add(reward); _unstakingTime[msg.sender] = getTime() + unstakingInterval; emit RewardWithdrawn(msg.sender, reward); } // ------ FUNCTION ------- // // STAKE REWARD () // // updateReward() // // #require() that the reward balance of the user is above ZERO // // MODIFY : update stakedBalances[address] = (stakedBalances[address] + _rewardBalance[msg.sender]) // // MODIFY : update rewardBalance to ZERO // // EXIT // function stakeReward() public updateReward(msg.sender) { require(_rewardBalance[msg.sender] > 0, "You have not earned any rewards yet"); _stakedBalance[msg.sender] = _stakedBalance[msg.sender].add(_rewardBalance[msg.sender]); _rewardBalance[msg.sender] = 0; } // ------ FUNCTION ------- // // ADD REWARD SUPPLY () // // #require() that the amount of tokens being added is above ZERO // #require() that the user // // MODIFY : update rewardDistributorBalance = rewardDistributorBalance + amount // MODIFY : update _totalSupply = _totalSupply + amount // // EXIT // function addRewardSupply(uint256 amount) external onlyOwner { require(amount > 0, "Cannot add 0 tokens"); stakingToken.safeTransferFrom(msg.sender, address(this), amount); rewardDistributorBalance = rewardDistributorBalance.add(amount); _totalSupply = _totalSupply.add(amount); } // ------ FUNCTION ------- // // REMOVE REWARD SUPPLY | ONLY OWNER // // #require() that the amount of tokens being removed is above ZERO // #require() that the amount is equal to or below the rewardDistributorBalance // #require() that the amount is equal to or below the totalSupply of tokens in the contract // // TRANSFER: amount of tokens from contract // // MODIFY : update rewardDistributorBalance = rewardDistributorBalance - amount // MODIFY : update _totalSupply = _totalSupply - amount // // EXIT // function removeRewardSupply(uint256 amount) external onlyOwner nonReentrant { require(amount > 0, "Cannot withdraw 0"); require(amount <= rewardDistributorBalance, "rewardDistributorBalance has less tokens than requested"); require(amount <= _totalSupply, "Amount is greater that total supply"); stakingToken.safeTransfer(owner, amount); rewardDistributorBalance = rewardDistributorBalance.sub(amount); _totalSupply = _totalSupply.sub(amount); } // ------ FUNCTION ------- // // SET REWARDS INTERVAL () ONLY OWNER // // #require() that reward interval sullpied as argument is greater than 1 and less than 365 inclusive // // MODIFY : rewardInterval to supplied _rewardInterval // // EMIT : update reward interval // // EXIT // function setRewardsInterval(uint256 _rewardInterval) external onlyOwner { require( _rewardInterval >= 1 && _rewardInterval <= 365, "Staking reward interval must be between 1 and 365 inclusive" ); rewardInterval = _rewardInterval * 1 days; emit RewardsDurationUpdated(rewardInterval); } // ------ FUNCTION -------# // // SET REWARDS DIVIDER () ONLY OWNER // // #require() that reward divider sullpied as argument is greater than original divider // // MODIFY : rewardIntervalDivider to supplied _rewardInterval // // EXIT // function updateChunkUsersRewards(uint256 startIndex, uint256 endIndex) external onlyOwner { uint256 length = allAddress.length; require(endIndex <= length, "Cant end on index greater than length of addresses"); require(endIndex > startIndex, "Nothing to iterate over"); for (uint i = startIndex; i < endIndex; i++) { lockInRewardOnBehalf(allAddress[i]); } } function setRewardsDivider(uint256 _rewardPerIntervalDivider) external onlyOwner { require( _rewardPerIntervalDivider >= 411, "Reward can only be lowered, divider must be greater than 410" ); rewardPerIntervalDivider = _rewardPerIntervalDivider; } // Keep in mind, that this method receives value in wei. // It means, that if owner wants to set min staking balance to 2 om // he needs to pass 2000000000000000000 as argument (if ERC20's decimals is 18). function setMinStakeBalance(uint256 _minStakeBalance) external onlyOwner { minStakeBalance = _minStakeBalance; } /* ========== MODIFIERS ========== */ // ------ FUNCTION ------- // // UPDATE REWARD (address) INTERNAL // // IF (stakeTime[address] > 0) // // VAR reward = 0; // VAR diffTime : Take current block timestamp and subtract the users stakedTime entry (timestamp) // VAR perIntervalReward : current staked balance divided by APR variable divider. Calculate the reward they should earn per interval that have occured since inital stake or last call of updateReward() // VAR intervalsStaked : diffTime calculation divided by the rewardInterval (24 hours) // reward : reward earned per interval based on current stake multiplied by how many intervals you have not calimed a reward for. // // // #require() that reward user is about to receive is not greater than the rewardDistributorBalance // // IF (the reward is greater than ZERO) // // MODIFY : rewardDistributorBalance to rewardDistributorBalance minus the reward paid // MODIFY : _totalSupply to _totalSupply minus the reward paid // MODIFY : _stakedTime[address] to now(timestamp) // MODIFY : _rewardBalance[address] to _rewardBalance[address] plus reward // // EMIT : rewardPaid to the address calling the function (reward) // // ELSE // NOTHING : user has nothing to claim. ignore and EXIT. // ELSE // NOTHING : user has nothing to claim. ignore and EXIT. // // EXIT // function _addReward(address account, uint256 amount) private { if (amount == 0) return; // Update stake balance to unstaking balance rewardDistributorBalance = rewardDistributorBalance.sub(amount); _rewardBalance[account] = _rewardBalance[account].add(amount); emit RewardPaid(account, amount); } function _unstake(address account, uint256 amount) private { require(_stakedBalance[account] > 0, "Account does not have a balance staked"); require(amount > 0, "Cannot unstake Zero OM"); require(amount <= _stakedBalance[account], "Attempted to withdraw more than balance staked"); _stakedBalance[account] = _stakedBalance[account].sub(amount); if (_stakedBalance[account] == 0) _stakedTime[account] = 0; else { require( _stakedBalance[account] >= minStakeBalance, "Your remaining staked balance would be under the minimum stake. Either leave at least 10 OM in the staking pool or withdraw all your OM" ); } _unstakingBalance[account] = _unstakingBalance[account].add(amount); _unstakingTime[account] = getTime() + unstakingInterval; emit Unstaked(account, amount); } modifier updateReward(address account) { // If their _stakeTime is 0, this means they arent active in the system if (_stakedTime[account] > 0) { uint256 stakedIntervals = stakedIntervalsCountOf(account); uint256 perIntervalReward = perIntervalRewardOf(account); uint256 reward = stakedIntervals.mul(perIntervalReward); require(reward <= rewardDistributorBalance, "Rewards pool is extinguished"); _addReward(account, reward); _stakedTime[account] = _stakedTime[account].add(rewardInterval.mul(stakedIntervals)); } _; } /* ========== END OF MODIFIERS ========== */ /* ========== EVENTS ========== */ event RewardAdded(uint256 reward); event Staked(address indexed user, uint256 amount); event Unstaked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); event RewardWithdrawn(address indexed user, uint256 reward); event RewardPaid(address indexed user, uint256 reward); event RewardsDurationUpdated(uint256 newDuration); event Recovered(address token, uint256 amount); /* ========== END EVENTS ========== */ }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addRewardSupply","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"i","type":"uint256"}],"name":"getAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getAddressesLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"lockInReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minStakeBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"nextRewardApplicableTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"perIntervalRewardOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"removeRewardSupply","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"rewardBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardDistributorBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerIntervalDivider","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_minStakeBalance","type":"uint256"}],"name":"setMinStakeBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_rewardPerIntervalDivider","type":"uint256"}],"name":"setRewardsDivider","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_rewardInterval","type":"uint256"}],"name":"setRewardsInterval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"stakeReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"stakeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"stakedIntervalsCountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unstakingBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unstakingTimeOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"startIndex","type":"uint256"},{"internalType":"uint256","name":"endIndex","type":"uint256"}],"name":"updateChunkUsersRewards","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawUnstakedBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600d5562015180600e55620a8c00600f5561019b601055670de0b6b3a76400006011556011546001026012553480156200003f57600080fd5b5060405162004bd438038062004bd4833981810160405260408110156200006557600080fd5b81019080805190602001909291908051906020019092919050505081600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000125576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4f776e657220616464726573732063616e6e6f7420626520300000000000000081525060200191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c600082604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1506001600281905550600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415620002cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f4f776e6572206d7573742062652073657400000000000000000000000000000081525060200191505060405180910390fd5b80600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506148b6806200031e6000396000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c80637b1508f811610130578063a7cbeac0116100b8578063cbf78f471161007c578063cbf78f4714610915578063dcf25bf414610933578063e964b64414610951578063e9fad8ee146109a9578063ec4788cd146109b357610226565b8063a7cbeac0146107bf578063a8cef27a146107ed578063c71399541461085b578063c8268604146108b3578063c885bc581461090b57610226565b80638da5cb5b116100ff5780638da5cb5b146106dd5780639039ddcc1461072757806391b4ded9146107455780639a53d71f14610763578063a694fc3a1461079157610226565b80637b1508f8146105a75780638158baef146105d5578063854af5091461062d57806387a4c4011461068557610226565b806353a47bb7116101b35780636a8914d1116101825780636a8914d1146104af5780636ce9e4fe146104cd57806370a08231146104fb57806372f702f31461055357806379ba50971461059d57610226565b806353a47bb71461040157806353ae802e1461044b57806355db4acf146104835780635c975abb1461048d57610226565b806316c38b3c116101fa57806316c38b3c146102ff57806318160ddd1461032f5780632170e4721461034d5780632e17de78146103a557806353710f49146103d357610226565b80628cc2621461022b5780630c8645621461028357806314f47dcc146102b15780631627540c146102bb575b600080fd5b61026d6004803603602081101561024157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a21565b6040518082815260200191505060405180910390f35b6102af6004803603602081101561029957600080fd5b8101908080359060200190929190505050610a58565b005b6102b9610d60565b005b6102fd600480360360208110156102d157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110bd565b005b61032d6004803603602081101561031557600080fd5b81019080803515159060200190929190505050611209565b005b610337611353565b6040518082815260200191505060405180910390f35b61038f6004803603602081101561036357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061135d565b6040518082815260200191505060405180910390f35b6103d1600480360360208110156103bb57600080fd5b81019080803590602001909291905050506113a6565b005b6103ff600480360360208110156103e957600080fd5b810190808035906020019092919050505061155d565b005b6104096116b2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104816004803603604081101561046157600080fd5b8101908080359060200190929190803590602001909291905050506116d8565b005b61048b6118b6565b005b610495611a62565b604051808215151515815260200191505060405180910390f35b6104b7611a75565b6040518082815260200191505060405180910390f35b6104f9600480360360208110156104e357600080fd5b8101908080359060200190929190505050611a7b565b005b61053d6004803603602081101561051157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f93565b6040518082815260200191505060405180910390f35b61055b611fdc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105a5612002565b005b6105d3600480360360208110156105bd57600080fd5b8101908080359060200190929190505050612228565b005b610617600480360360208110156105eb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506123cb565b6040518082815260200191505060405180910390f35b61066f6004803603602081101561064357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061256e565b6040518082815260200191505060405180910390f35b6106c76004803603602081101561069b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061263b565b6040518082815260200191505060405180910390f35b6106e5612684565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61072f6126a9565b6040518082815260200191505060405180910390f35b61074d6126b3565b6040518082815260200191505060405180910390f35b61078f6004803603602081101561077957600080fd5b81019080803590602001909291905050506126b9565b005b6107bd600480360360208110156107a757600080fd5b8101908080359060200190929190505050612768565b005b6107eb600480360360208110156107d557600080fd5b8101908080359060200190929190505050612d83565b005b6108196004803603602081101561080357600080fd5b8101908080359060200190929190505050612e8d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61089d6004803603602081101561087157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612ec9565b6040518082815260200191505060405180910390f35b6108f5600480360360208110156108c957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612f26565b6040518082815260200191505060405180910390f35b610913612f6f565b005b61091d613330565b6040518082815260200191505060405180910390f35b61093b61333d565b6040518082815260200191505060405180910390f35b6109936004803603602081101561096757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613343565b6040518082815260200191505060405180910390f35b6109b161338c565b005b6109df600480360360208110156109c957600080fd5b81019080803590602001909291905050506135e3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080610a2d83612ec9565b90506000610a3a8461256e565b9050610a4f818361362490919063ffffffff16565b92505050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610afd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b60016002600082825401925050819055506000600254905060008211610b8b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b600d54821115610be6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806147166037913960400191505060405180910390fd5b600554821115610c41576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806148216023913960400191505060405180910390fd5b610caf6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166136aa9092919063ffffffff16565b610cc482600d5461377b90919063ffffffff16565b600d81905550610cdf8260055461377b90919063ffffffff16565b6005819055506002548114610d5c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115610f09576000610db48261256e565b90506000610dc183612ec9565b90506000610dd8828461362490919063ffffffff16565b9050600d54811115610e52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b610e5c8482613804565b610ec2610e7484600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610fa1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806146246023913960400191505060405180910390fd5b611032600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611162576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2281604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b600460009054906101000a900460ff16151581151514156112ce57611350565b80600460006101000a81548160ff021916908315150217905550600460009054906101000a900460ff161561130557426003819055505b7f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5600460009054906101000a900460ff16604051808215151515815260200191505060405180910390a15b50565b6000600554905090565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561154f5760006113fa8261256e565b9050600061140783612ec9565b9050600061141e828461362490919063ffffffff16565b9050600d54811115611498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b6114a28482613804565b6115086114ba84600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b611559338361399d565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611602576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b60018110158015611615575061016d8111155b61166a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b8152602001806145e9603b913960400191505060405180910390fd5b620151808102600e819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3600e546040518082815260200191505060405180910390a150565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461177d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b6000600c805490509050808211156117e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806147896032913960400191505060405180910390fd5b828211611855576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4e6f7468696e6720746f2069746572617465206f76657200000000000000000081525060200191505060405180910390fd5b60008390505b828110156118b0576118a3600c828154811061187357fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613e3b565b808060010191505061185b565b50505050565b336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611a5f57600061190a8261256e565b9050600061191783612ec9565b9050600061192e828461362490919063ffffffff16565b9050600d548111156119a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b6119b28482613804565b611a186119ca84600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b50565b600460009054906101000a900460ff1681565b60125481565b600160026000828254019250508190555060006002549050336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611c3c576000611ae78261256e565b90506000611af483612ec9565b90506000611b0b828461362490919063ffffffff16565b9050600d54811115611b85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b611b8f8482613804565b611bf5611ba784600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b60008311611c95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806144bc602a913960400191505060405180910390fd5b82600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611d2d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806146686030913960400191505060405180910390fd5b611d35613fe8565b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611dcc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806145936025913960400191505060405180910390fd5b611e1e83600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461377b90919063ffffffff16565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611e768360055461377b90919063ffffffff16565b600581905550611ec93384600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166136aa9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040518082815260200191505060405180910390a2506002548114611f8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146120a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001806144876035913960400191505060405180910390fd5b7fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146122cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b60008111612343576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f43616e6e6f7420616464203020746f6b656e730000000000000000000000000081525060200191505060405180910390fd5b612392333083600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613ff0909392919063ffffffff16565b6123a781600d5461391590919063ffffffff16565b600d819055506123c28160055461391590919063ffffffff16565b60058190555050565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415612465576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806146476021913960400191505060405180910390fd5b61246d613fe8565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612504576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603e815260200180614844603e913960400191505060405180910390fd5b6000612563600e54600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612554613fe8565b036140f690919063ffffffff16565b905080915050919050565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156125c05760009050612636565b600061261b600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461260d613fe8565b61377b90919063ffffffff16565b9050612632600e548261418090919063ffffffff16565b9150505b919050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600d54905090565b60035481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461275e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b8060128190555050565b600160026000828254019250508190555060006002549050600460009054906101000a900460ff16156127e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c81526020018061474d603c913960400191505060405180910390fd5b336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561298f57600061283a8261256e565b9050600061284783612ec9565b9050600061285e828461362490919063ffffffff16565b9050600d548111156128d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b6128e28482613804565b6129486128fa84600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b60008311612a05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b6000612a5984600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b9050601254811015612ab6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806145b86031913960400191505060405180910390fd5b6000612ac0613fe8565b905081600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612b5f8560055461391590919063ffffffff16565b6005819055506000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612bb257612c68565b600c3390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000600c80549050905080600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b612cb7333087600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613ff0909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d866040518082815260200191505060405180910390a25050506002548114612d7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612e28576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b61019b811015612e83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c8152602001806147bb603c913960400191505060405180910390fd5b8060108190555050565b600c8181548110612e9a57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000612f1f601054600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461418090919063ffffffff16565b9050919050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115613118576000612fc38261256e565b90506000612fd083612ec9565b90506000612fe7828461362490919063ffffffff16565b9050600d54811115613061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b61306b8482613804565b6130d161308384600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081116131b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806146246023913960400191505060405180910390fd5b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061324c81600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600f5461329a613fe8565b01600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167f1d3eee4ca001cff39eec6ec7615aacf2f2bd61791273830728ba00ccbd6e1337826040518082815260200191505060405180910390a25050565b6000600c80549050905090565b60105481565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006133a261339a33610a21565b600d5461420f565b905060008111806133f257506000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b8061343c57506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b6134ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f4e6f20746f6b656e7320746f206578697400000000000000000000000000000081525060200191505060405180910390fd5b6134b83382613804565b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561354e5761354d612f6f565b5b6000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156135e0576135df33600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461399d565b5b50565b6000600c82815481106135f257fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60008083141561363757600090506136a4565b600082840290508284828161364857fe5b041461369f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806146c76021913960400191505060405180910390fd5b809150505b92915050565b613776838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614228565b505050565b6000828211156137f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b600082840390508091505092915050565b600081141561381257613911565b61382781600d5461377b90919063ffffffff16565b600d8190555061387f81600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b5050565b600080828401905083811015613993576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411613a35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061456d6026913960400191505060405180910390fd5b60008111613aab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f43616e6e6f7420756e7374616b65205a65726f204f4d0000000000000000000081525060200191505060405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054811115613b43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806146e8602e913960400191505060405180910390fd5b613b9581600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461377b90919063ffffffff16565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415613c6a576000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613d05565b601254600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015613d04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260878152602001806144e66087913960a00191505060405180910390fd5b5b613d5781600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600f54613da5613fe8565b01600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff167f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75826040518082815260200191505060405180910390a25050565b806000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115613fe4576000613e8f8261256e565b90506000613e9c83612ec9565b90506000613eb3828461362490919063ffffffff16565b9050600d54811115613f2d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b613f378482613804565b613f9d613f4f84600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b5050565b600042905090565b6140f0848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614228565b50505050565b60008082141561416e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f536166654d6174683a206d6f64756c6f206279207a65726f000000000000000081525060200191505060405180910390fd5b81838161417757fe5b06905092915050565b60008082116141f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b600082848161420257fe5b0490508091505092915050565b600081831061421e5781614220565b825b905092915050565b6142478273ffffffffffffffffffffffffffffffffffffffff16614473565b6142b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b6020831061430857805182526020820191506020810190506020830392506142e5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461436a576040519150601f19603f3d011682016040523d82523d6000602084013e61436f565b606091505b5091509150816143e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b60008151111561446d5780806020019051602081101561440657600080fd5b810190808051906020019092919050505061446c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806147f7602a913960400191505060405180910390fd5b5b50505050565b600080823b90506000811191505091905056fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704163636f756e7420646f6573206e6f74206861766520616e20756e7374616b696e672062616c616e6365596f75722072656d61696e696e67207374616b65642062616c616e636520776f756c6420626520756e64657220746865206d696e696d756d207374616b652e20456974686572206c65617665206174206c65617374203130204f4d20696e20746865207374616b696e6720706f6f6c206f7220776974686472617720616c6c20796f7572204f4d4163636f756e7420646f6573206e6f74206861766520612062616c616e6365207374616b6564556e7374616b696e6720706572696f6420686173206e6f742066696e6973686564207965745374616b65642062616c616e6365206973206c657373207468616e206d696e696d756d207374616b652062616c616e63655374616b696e672072657761726420696e74657276616c206d757374206265206265747765656e203120616e642033363520696e636c7573697665596f752068617665206e6f74206561726e656420616e79207265776172647320796574596f7520646f6e7420686176652061207374616b6520696e2070726f67726573734163636f756e7420646f6573206e6f7420686176652074686174206d7563682062616c616e636520756e7374616b65644f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77417474656d7074656420746f207769746864726177206d6f7265207468616e2062616c616e6365207374616b65647265776172644469737472696275746f7242616c616e636520686173206c65737320746f6b656e73207468616e207265717565737465645468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e74726163742069732070617573656443616e7420656e64206f6e20696e6465782067726561746572207468616e206c656e677468206f66206164647265737365735265776172642063616e206f6e6c79206265206c6f77657265642c2064697669646572206d7573742062652067726561746572207468616e203431305361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564416d6f756e742069732067726561746572207468617420746f74616c20737570706c79596f7572207374616b652074616b657320323420686f75727320746f206265636f6d6520617661696c61626c6520746f20696e7465726163742077697468a265627a7a72315820e61150ce5b23f6caf787708c2b764d31cf3638bc0c8572295581b74925830c0b64736f6c6343000510003200000000000000000000000012e79894e7d9edc6f1ea7db7bb9ac8f911be716b000000000000000000000000af9f549774ecedbd0966c52f250acc548d3f36e5
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102265760003560e01c80637b1508f811610130578063a7cbeac0116100b8578063cbf78f471161007c578063cbf78f4714610915578063dcf25bf414610933578063e964b64414610951578063e9fad8ee146109a9578063ec4788cd146109b357610226565b8063a7cbeac0146107bf578063a8cef27a146107ed578063c71399541461085b578063c8268604146108b3578063c885bc581461090b57610226565b80638da5cb5b116100ff5780638da5cb5b146106dd5780639039ddcc1461072757806391b4ded9146107455780639a53d71f14610763578063a694fc3a1461079157610226565b80637b1508f8146105a75780638158baef146105d5578063854af5091461062d57806387a4c4011461068557610226565b806353a47bb7116101b35780636a8914d1116101825780636a8914d1146104af5780636ce9e4fe146104cd57806370a08231146104fb57806372f702f31461055357806379ba50971461059d57610226565b806353a47bb71461040157806353ae802e1461044b57806355db4acf146104835780635c975abb1461048d57610226565b806316c38b3c116101fa57806316c38b3c146102ff57806318160ddd1461032f5780632170e4721461034d5780632e17de78146103a557806353710f49146103d357610226565b80628cc2621461022b5780630c8645621461028357806314f47dcc146102b15780631627540c146102bb575b600080fd5b61026d6004803603602081101561024157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a21565b6040518082815260200191505060405180910390f35b6102af6004803603602081101561029957600080fd5b8101908080359060200190929190505050610a58565b005b6102b9610d60565b005b6102fd600480360360208110156102d157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110bd565b005b61032d6004803603602081101561031557600080fd5b81019080803515159060200190929190505050611209565b005b610337611353565b6040518082815260200191505060405180910390f35b61038f6004803603602081101561036357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061135d565b6040518082815260200191505060405180910390f35b6103d1600480360360208110156103bb57600080fd5b81019080803590602001909291905050506113a6565b005b6103ff600480360360208110156103e957600080fd5b810190808035906020019092919050505061155d565b005b6104096116b2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104816004803603604081101561046157600080fd5b8101908080359060200190929190803590602001909291905050506116d8565b005b61048b6118b6565b005b610495611a62565b604051808215151515815260200191505060405180910390f35b6104b7611a75565b6040518082815260200191505060405180910390f35b6104f9600480360360208110156104e357600080fd5b8101908080359060200190929190505050611a7b565b005b61053d6004803603602081101561051157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f93565b6040518082815260200191505060405180910390f35b61055b611fdc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105a5612002565b005b6105d3600480360360208110156105bd57600080fd5b8101908080359060200190929190505050612228565b005b610617600480360360208110156105eb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506123cb565b6040518082815260200191505060405180910390f35b61066f6004803603602081101561064357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061256e565b6040518082815260200191505060405180910390f35b6106c76004803603602081101561069b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061263b565b6040518082815260200191505060405180910390f35b6106e5612684565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61072f6126a9565b6040518082815260200191505060405180910390f35b61074d6126b3565b6040518082815260200191505060405180910390f35b61078f6004803603602081101561077957600080fd5b81019080803590602001909291905050506126b9565b005b6107bd600480360360208110156107a757600080fd5b8101908080359060200190929190505050612768565b005b6107eb600480360360208110156107d557600080fd5b8101908080359060200190929190505050612d83565b005b6108196004803603602081101561080357600080fd5b8101908080359060200190929190505050612e8d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61089d6004803603602081101561087157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612ec9565b6040518082815260200191505060405180910390f35b6108f5600480360360208110156108c957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612f26565b6040518082815260200191505060405180910390f35b610913612f6f565b005b61091d613330565b6040518082815260200191505060405180910390f35b61093b61333d565b6040518082815260200191505060405180910390f35b6109936004803603602081101561096757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613343565b6040518082815260200191505060405180910390f35b6109b161338c565b005b6109df600480360360208110156109c957600080fd5b81019080803590602001909291905050506135e3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080610a2d83612ec9565b90506000610a3a8461256e565b9050610a4f818361362490919063ffffffff16565b92505050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610afd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b60016002600082825401925050819055506000600254905060008211610b8b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b600d54821115610be6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806147166037913960400191505060405180910390fd5b600554821115610c41576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806148216023913960400191505060405180910390fd5b610caf6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166136aa9092919063ffffffff16565b610cc482600d5461377b90919063ffffffff16565b600d81905550610cdf8260055461377b90919063ffffffff16565b6005819055506002548114610d5c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115610f09576000610db48261256e565b90506000610dc183612ec9565b90506000610dd8828461362490919063ffffffff16565b9050600d54811115610e52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b610e5c8482613804565b610ec2610e7484600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610fa1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806146246023913960400191505060405180910390fd5b611032600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611162576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2281604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b600460009054906101000a900460ff16151581151514156112ce57611350565b80600460006101000a81548160ff021916908315150217905550600460009054906101000a900460ff161561130557426003819055505b7f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5600460009054906101000a900460ff16604051808215151515815260200191505060405180910390a15b50565b6000600554905090565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561154f5760006113fa8261256e565b9050600061140783612ec9565b9050600061141e828461362490919063ffffffff16565b9050600d54811115611498576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b6114a28482613804565b6115086114ba84600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b611559338361399d565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611602576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b60018110158015611615575061016d8111155b61166a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b8152602001806145e9603b913960400191505060405180910390fd5b620151808102600e819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3600e546040518082815260200191505060405180910390a150565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461177d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b6000600c805490509050808211156117e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260328152602001806147896032913960400191505060405180910390fd5b828211611855576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f4e6f7468696e6720746f2069746572617465206f76657200000000000000000081525060200191505060405180910390fd5b60008390505b828110156118b0576118a3600c828154811061187357fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613e3b565b808060010191505061185b565b50505050565b336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611a5f57600061190a8261256e565b9050600061191783612ec9565b9050600061192e828461362490919063ffffffff16565b9050600d548111156119a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b6119b28482613804565b611a186119ca84600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b50565b600460009054906101000a900460ff1681565b60125481565b600160026000828254019250508190555060006002549050336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611c3c576000611ae78261256e565b90506000611af483612ec9565b90506000611b0b828461362490919063ffffffff16565b9050600d54811115611b85576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b611b8f8482613804565b611bf5611ba784600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b60008311611c95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806144bc602a913960400191505060405180910390fd5b82600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611d2d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806146686030913960400191505060405180910390fd5b611d35613fe8565b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611dcc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806145936025913960400191505060405180910390fd5b611e1e83600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461377b90919063ffffffff16565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611e768360055461377b90919063ffffffff16565b600581905550611ec93384600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166136aa9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040518082815260200191505060405180910390a2506002548114611f8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146120a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001806144876035913960400191505060405180910390fd5b7fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146122cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b60008111612343576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f43616e6e6f7420616464203020746f6b656e730000000000000000000000000081525060200191505060405180910390fd5b612392333083600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613ff0909392919063ffffffff16565b6123a781600d5461391590919063ffffffff16565b600d819055506123c28160055461391590919063ffffffff16565b60058190555050565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415612465576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806146476021913960400191505060405180910390fd5b61246d613fe8565b600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612504576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603e815260200180614844603e913960400191505060405180910390fd5b6000612563600e54600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612554613fe8565b036140f690919063ffffffff16565b905080915050919050565b600080600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156125c05760009050612636565b600061261b600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461260d613fe8565b61377b90919063ffffffff16565b9050612632600e548261418090919063ffffffff16565b9150505b919050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600d54905090565b60035481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461275e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b8060128190555050565b600160026000828254019250508190555060006002549050600460009054906101000a900460ff16156127e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c81526020018061474d603c913960400191505060405180910390fd5b336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561298f57600061283a8261256e565b9050600061284783612ec9565b9050600061285e828461362490919063ffffffff16565b9050600d548111156128d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b6128e28482613804565b6129486128fa84600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b60008311612a05576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b6000612a5984600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b9050601254811015612ab6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806145b86031913960400191505060405180910390fd5b6000612ac0613fe8565b905081600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612b5f8560055461391590919063ffffffff16565b6005819055506000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612bb257612c68565b600c3390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000600c80549050905080600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b612cb7333087600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613ff0909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d866040518082815260200191505060405180910390a25050506002548114612d7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612e28576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614698602f913960400191505060405180910390fd5b61019b811015612e83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c8152602001806147bb603c913960400191505060405180910390fd5b8060108190555050565b600c8181548110612e9a57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000612f1f601054600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461418090919063ffffffff16565b9050919050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b336000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115613118576000612fc38261256e565b90506000612fd083612ec9565b90506000612fe7828461362490919063ffffffff16565b9050600d54811115613061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b61306b8482613804565b6130d161308384600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081116131b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806146246023913960400191505060405180910390fd5b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061324c81600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600f5461329a613fe8565b01600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff167f1d3eee4ca001cff39eec6ec7615aacf2f2bd61791273830728ba00ccbd6e1337826040518082815260200191505060405180910390a25050565b6000600c80549050905090565b60105481565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006133a261339a33610a21565b600d5461420f565b905060008111806133f257506000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b8061343c57506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054115b6134ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f4e6f20746f6b656e7320746f206578697400000000000000000000000000000081525060200191505060405180910390fd5b6134b83382613804565b6000600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561354e5761354d612f6f565b5b6000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156135e0576135df33600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461399d565b5b50565b6000600c82815481106135f257fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60008083141561363757600090506136a4565b600082840290508284828161364857fe5b041461369f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806146c76021913960400191505060405180910390fd5b809150505b92915050565b613776838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614228565b505050565b6000828211156137f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b600082840390508091505092915050565b600081141561381257613911565b61382781600d5461377b90919063ffffffff16565b600d8190555061387f81600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b5050565b600080828401905083811015613993576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411613a35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602681526020018061456d6026913960400191505060405180910390fd5b60008111613aab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f43616e6e6f7420756e7374616b65205a65726f204f4d0000000000000000000081525060200191505060405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054811115613b43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806146e8602e913960400191505060405180910390fd5b613b9581600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461377b90919063ffffffff16565b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541415613c6a576000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613d05565b601254600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015613d04576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260878152602001806144e66087913960a00191505060405180910390fd5b5b613d5781600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600f54613da5613fe8565b01600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff167f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f75826040518082815260200191505060405180910390a25050565b806000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115613fe4576000613e8f8261256e565b90506000613e9c83612ec9565b90506000613eb3828461362490919063ffffffff16565b9050600d54811115613f2d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f5265776172647320706f6f6c20697320657874696e677569736865640000000081525060200191505060405180910390fd5b613f378482613804565b613f9d613f4f84600e5461362490919063ffffffff16565b600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461391590919063ffffffff16565b600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505b5050565b600042905090565b6140f0848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614228565b50505050565b60008082141561416e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f536166654d6174683a206d6f64756c6f206279207a65726f000000000000000081525060200191505060405180910390fd5b81838161417757fe5b06905092915050565b60008082116141f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b600082848161420257fe5b0490508091505092915050565b600081831061421e5781614220565b825b905092915050565b6142478273ffffffffffffffffffffffffffffffffffffffff16614473565b6142b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b6020831061430857805182526020820191506020810190506020830392506142e5565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461436a576040519150601f19603f3d011682016040523d82523d6000602084013e61436f565b606091505b5091509150816143e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b60008151111561446d5780806020019051602081101561440657600080fd5b810190808051906020019092919050505061446c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806147f7602a913960400191505060405180910390fd5b5b50505050565b600080823b90506000811191505091905056fe596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704163636f756e7420646f6573206e6f74206861766520616e20756e7374616b696e672062616c616e6365596f75722072656d61696e696e67207374616b65642062616c616e636520776f756c6420626520756e64657220746865206d696e696d756d207374616b652e20456974686572206c65617665206174206c65617374203130204f4d20696e20746865207374616b696e6720706f6f6c206f7220776974686472617720616c6c20796f7572204f4d4163636f756e7420646f6573206e6f74206861766520612062616c616e6365207374616b6564556e7374616b696e6720706572696f6420686173206e6f742066696e6973686564207965745374616b65642062616c616e6365206973206c657373207468616e206d696e696d756d207374616b652062616c616e63655374616b696e672072657761726420696e74657276616c206d757374206265206265747765656e203120616e642033363520696e636c7573697665596f752068617665206e6f74206561726e656420616e79207265776172647320796574596f7520646f6e7420686176652061207374616b6520696e2070726f67726573734163636f756e7420646f6573206e6f7420686176652074686174206d7563682062616c616e636520756e7374616b65644f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77417474656d7074656420746f207769746864726177206d6f7265207468616e2062616c616e6365207374616b65647265776172644469737472696275746f7242616c616e636520686173206c65737320746f6b656e73207468616e207265717565737465645468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e74726163742069732070617573656443616e7420656e64206f6e20696e6465782067726561746572207468616e206c656e677468206f66206164647265737365735265776172642063616e206f6e6c79206265206c6f77657265642c2064697669646572206d7573742062652067726561746572207468616e203431305361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564416d6f756e742069732067726561746572207468617420746f74616c20737570706c79596f7572207374616b652074616b657320323420686f75727320746f206265636f6d6520617661696c61626c6520746f20696e7465726163742077697468a265627a7a72315820e61150ce5b23f6caf787708c2b764d31cf3638bc0c8572295581b74925830c0b64736f6c63430005100032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000012e79894e7d9edc6f1ea7db7bb9ac8f911be716b000000000000000000000000af9f549774ecedbd0966c52f250acc548d3f36e5
-----Decoded View---------------
Arg [0] : _owner (address): 0x12e79894e7d9EdC6f1Ea7dB7bB9AC8F911BE716b
Arg [1] : _stakingToken (address): 0xaf9f549774ecEDbD0966C52f250aCc548D3F36E5
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000012e79894e7d9edc6f1ea7db7bb9ac8f911be716b
Arg [1] : 000000000000000000000000af9f549774ecedbd0966c52f250acc548d3f36e5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.001372 | 18,852,502.329 | $25,867.14 |
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.