Contract Address Details

0x9c027936796a8Cd11D5dd68Be219fe2802890c6e

Contract Name
CosmicPools
Creator
0x141d48–dcbe44 at 0x7d0767–9879ed
Balance
0 METIS
Tokens
Fetching tokens...
Transactions
1,452 Transactions
Transfers
2,260 Transfers
Gas Used
201,455,086
Last Balance Update
4511238
Contract name:
CosmicPools




Optimization enabled
false
Compiler version
v0.8.7+commit.e28d00a7




EVM Version
default




Verified at
2022-05-14T23:23:21.137390Z

Constructor Arguments

0000000000000000000000000c5dad5a58501135df4798a298f78ab8d1a5d97e

Arg [0] (address) : 0x0c5dad5a58501135df4798a298f78ab8d1a5d97e

              

Contract source code

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface 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.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.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 IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    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));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - 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. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/masterchef.sol


pragma solidity ^0.8.4;




interface IERC20Ext is IERC20 {
    function decimals() external returns (uint);
}

// The goal of this farm is to allow a stake xTOKEN earn anything model
// In a flip of a traditional farm, this contract only accepts xTOKEN as the staking token
// Each new pool added is a new reward token, each with its own start times
// end times, and rewards per second.
contract CosmicPools is Ownable {
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 RewardToken;       // Address of reward token contract.
        uint256 RewardPerSecond;   // reward token per second for this pool
        uint256 TokenPrecision; // The precision factor used for calculations, dependent on a tokens decimals
        uint256 xTokenStakedAmount; // # of xtoken allocated to this pool
        uint256 lastRewardTime;  // Last block time that reward distribution occurs.
        uint256 accRewardPerShare; // Accumulated reward per share, times the pools token precision. See below.
        uint256 endTime; // end time of pool
        uint256 startTime; // start time of pool
        address protocolOwnerAddress; // this address is the owner of the protocol corresponding to the reward token, used for emergency withdraw to them only
    }

    IERC20 public immutable xtoken;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes tokens.
    mapping (uint256 => mapping (address => UserInfo)) public userInfo;

    event AdminTokenRecovery(address tokenRecovered, uint256 amount);
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event SetRewardPerSecond(uint _pid, uint256 _gemsPerSecond);

    constructor(IERC20 _xtoken) {
        xtoken = _xtoken;
    }


    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to, PoolInfo memory pool) internal pure returns (uint256) {
        _from = _from > pool.startTime ? _from : pool.startTime;
        if (_from > pool.endTime || _to < pool.startTime) {
            return 0;
        }
        if (_to > pool.endTime) {
            return pool.endTime - _from;
        }
        return _to - _from;
    }

    // View function to see pending Token on frontend.
    function pendingReward(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo memory pool = poolInfo[_pid];
        UserInfo memory user = userInfo[_pid][_user];
        uint256 accRewardPerShare = pool.accRewardPerShare;
        
        if (block.timestamp > pool.lastRewardTime && pool.xTokenStakedAmount != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp, pool);
            uint256 reward = multiplier * pool.RewardPerSecond;
            accRewardPerShare += (reward * pool.TokenPrecision) / pool.xTokenStakedAmount;
        }
        return (user.amount * accRewardPerShare / pool.TokenPrecision) - user.rewardDebt;
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) internal {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp <= pool.lastRewardTime) {
            return;
        }

        if (pool.xTokenStakedAmount == 0) {
            pool.lastRewardTime = block.timestamp;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp, pool);
        uint256 reward = multiplier * pool.RewardPerSecond;

        pool.accRewardPerShare += reward * pool.TokenPrecision / pool.xTokenStakedAmount;
        pool.lastRewardTime = block.timestamp;
    }

    // Deposit tokens.
    function deposit(uint256 _pid, uint256 _amount) external {

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        updatePool(_pid);

        uint256 pending = (user.amount * pool.accRewardPerShare / pool.TokenPrecision) - user.rewardDebt;

        user.amount += _amount;
        pool.xTokenStakedAmount += _amount;
        user.rewardDebt = user.amount * pool.accRewardPerShare / pool.TokenPrecision;

        if(pending > 0) {
            safeTransfer(pool.RewardToken, msg.sender, pending);
        }
        xtoken.safeTransferFrom(address(msg.sender), address(this), _amount);

        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw tokens.
    function withdraw(uint256 _pid, uint256 _amount) external {  
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        require(user.amount >= _amount, "withdraw: not good");

        updatePool(_pid);

        uint256 pending = (user.amount * pool.accRewardPerShare / pool.TokenPrecision) - user.rewardDebt;

        user.amount -= _amount;
        pool.xTokenStakedAmount -= _amount;
        user.rewardDebt = user.amount * pool.accRewardPerShare / pool.TokenPrecision;

        if(pending > 0) {
            safeTransfer(pool.RewardToken, msg.sender, pending);
        }

        safeTransfer(xtoken, address(msg.sender), _amount);
        
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) external {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        uint oldUserAmount = user.amount;
        pool.xTokenStakedAmount -= user.amount;
        user.amount = 0;
        user.rewardDebt = 0;

        xtoken.safeTransfer(address(msg.sender), oldUserAmount);
        emit EmergencyWithdraw(msg.sender, _pid, oldUserAmount);

    }

    // Safe erc20 transfer function, just in case if rounding error causes pool to not have enough reward tokens.
    function safeTransfer(IERC20 token, address _to, uint256 _amount) internal {
        uint256 bal = token.balanceOf(address(this));
        if (_amount > bal) {
            token.safeTransfer(_to, bal);
        } else {
            token.safeTransfer(_to, _amount);
        }
    }

    // Admin functions

    function changeEndTime(uint _pid, uint32 addSeconds) external onlyOwner {
        poolInfo[_pid].endTime += addSeconds;
    }

    function stopReward(uint _pid) external onlyOwner {
        poolInfo[_pid].endTime = block.number;
    }

    function checkForToken(IERC20 _Token) private view {
        uint256 length = poolInfo.length;
        for (uint256 _pid = 0; _pid < length; _pid++) {
            require(poolInfo[_pid].RewardToken != _Token, "checkForToken: reward token provided");
        }
    }

    function recoverWrongTokens(address _tokenAddress) external onlyOwner {
        require(_tokenAddress != address(xtoken), "recoverWrongTokens: Cannot be xtoken");
        checkForToken(IERC20(_tokenAddress));
        
        uint bal = IERC20(_tokenAddress).balanceOf(address(this));
        IERC20(_tokenAddress).safeTransfer(address(msg.sender), bal);

        emit AdminTokenRecovery(_tokenAddress, bal);
    }

    function emergencyRewardWithdraw(uint _pid, uint256 _amount) external onlyOwner {
        poolInfo[_pid].RewardToken.safeTransfer(poolInfo[_pid].protocolOwnerAddress, _amount);
    }

    // Add a new token to the pool. Can only be called by the owner.
    function add(uint _rewardPerSecond, IERC20Ext _Token, uint _startTime, uint _endTime, address _protocolOwner) external onlyOwner {

        checkForToken(_Token); // ensure you cant add duplicate pools

        uint lastRewardTime = block.timestamp > _startTime ? block.timestamp : _startTime;
        uint decimalsRewardToken = _Token.decimals();
        require(decimalsRewardToken < 30, "Token has way too many decimals");
        uint precision = 10**(30 - decimalsRewardToken);

        poolInfo.push(PoolInfo({
            RewardToken: _Token,
            RewardPerSecond: _rewardPerSecond,
            TokenPrecision: precision,
            xTokenStakedAmount: 0,
            startTime: _startTime,
            endTime: _endTime,
            lastRewardTime: lastRewardTime,
            accRewardPerShare: 0,
            protocolOwnerAddress: _protocolOwner
        }));
    }

    // Update the given pool's reward per second. Can only be called by the owner.
    function setRewardPerSecond(uint256 _pid, uint256 _rewardPerSecond) external onlyOwner {
        
        updatePool(_pid);

        poolInfo[_pid].RewardPerSecond = _rewardPerSecond;

        emit SetRewardPerSecond(_pid, _rewardPerSecond);
    }

}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_xtoken","internalType":"contract IERC20"}]},{"type":"event","name":"AdminTokenRecovery","inputs":[{"type":"address","name":"tokenRecovered","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EmergencyWithdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"SetRewardPerSecond","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256","indexed":false},{"type":"uint256","name":"_gemsPerSecond","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"add","inputs":[{"type":"uint256","name":"_rewardPerSecond","internalType":"uint256"},{"type":"address","name":"_Token","internalType":"contract IERC20Ext"},{"type":"uint256","name":"_startTime","internalType":"uint256"},{"type":"uint256","name":"_endTime","internalType":"uint256"},{"type":"address","name":"_protocolOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeEndTime","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint32","name":"addSeconds","internalType":"uint32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyRewardWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingReward","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"RewardToken","internalType":"contract IERC20"},{"type":"uint256","name":"RewardPerSecond","internalType":"uint256"},{"type":"uint256","name":"TokenPrecision","internalType":"uint256"},{"type":"uint256","name":"xTokenStakedAmount","internalType":"uint256"},{"type":"uint256","name":"lastRewardTime","internalType":"uint256"},{"type":"uint256","name":"accRewardPerShare","internalType":"uint256"},{"type":"uint256","name":"endTime","internalType":"uint256"},{"type":"uint256","name":"startTime","internalType":"uint256"},{"type":"address","name":"protocolOwnerAddress","internalType":"address"}],"name":"poolInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"poolLength","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"recoverWrongTokens","inputs":[{"type":"address","name":"_tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRewardPerSecond","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_rewardPerSecond","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"stopReward","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"rewardDebt","internalType":"uint256"}],"name":"userInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"xtoken","inputs":[]}]
              

Contract Creation Code

0x60a06040523480156200001157600080fd5b5060405162002f5438038062002f54833981810160405281019062000037919062000178565b620000576200004b6200009560201b60201c565b6200009d60201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505062000211565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000815190506200017281620001f7565b92915050565b600060208284031215620001915762000190620001f2565b5b6000620001a18482850162000161565b91505092915050565b6000620001b782620001d2565b9050919050565b6000620001cb82620001aa565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200020281620001be565b81146200020e57600080fd5b50565b60805160601c612d086200024c600039600081816104a90152818161079f015281816108d801528181610aaa01526114c20152612d086000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063746268cc116100a257806398969e821161007157806398969e821461029a578063b5f578fc146102ca578063cc43d9c4146102e6578063e2bbb15814610302578063f2fde38b1461031e57610116565b8063746268cc14610213578063773000891461022f5780638da5cb5b1461024b57806393f1a40b1461026957610116565b80632c636645116100e95780632c636645146101ab578063441a3e70146101c75780635312ea8e146101e3578063630b5ba1146101ff578063715018a61461020957610116565b8063081e3eda1461011b578063084f8604146101395780631526fe27146101555780631718a68f1461018d575b600080fd5b61012361033a565b6040516101309190612568565b60405180910390f35b610153600480360381019061014e91906120da565b610347565b005b61016f600480360381019061016a9190611f85565b610409565b60405161018499989796959493929190612399565b60405180910390f35b6101956104a7565b6040516101a2919061237e565b60405180910390f35b6101c560048036038101906101c0919061209a565b6104cb565b005b6101e160048036038101906101dc919061209a565b610600565b005b6101fd60048036038101906101f89190611f85565b61081b565b005b610207610971565b005b6102116109a4565b005b61022d60048036038101906102289190611f2b565b610a2c565b005b61024960048036038101906102449190611f85565b610c35565b005b610253610cde565b6040516102609190612303565b60405180910390f35b610283600480360381019061027e9190611fdf565b610d07565b604051610291929190612583565b60405180910390f35b6102b460048036038101906102af9190611fdf565b610d38565b6040516102c19190612568565b60405180910390f35b6102e460048036038101906102df919061209a565b610f85565b005b61030060048036038101906102fb919061201f565b611071565b005b61031c6004803603810190610317919061209a565b611367565b005b61033860048036038101906103339190611f2b565b61155d565b005b6000600180549050905090565b61034f611655565b73ffffffffffffffffffffffffffffffffffffffff1661036d610cde565b73ffffffffffffffffffffffffffffffffffffffff16146103c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ba906124e8565b60405180910390fd5b8063ffffffff16600183815481106103de576103dd6129de565b5b906000526020600020906009020160060160008282546103fe91906125de565b925050819055505050565b6001818154811061041957600080fd5b90600052602060002090600902016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040154908060050154908060060154908060070154908060080160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905089565b7f000000000000000000000000000000000000000000000000000000000000000081565b6104d3611655565b73ffffffffffffffffffffffffffffffffffffffff166104f1610cde565b73ffffffffffffffffffffffffffffffffffffffff1614610547576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053e906124e8565b60405180910390fd5b6105fc6001838154811061055e5761055d6129de565b5b906000526020600020906009020160080160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600185815481106105a5576105a46129de565b5b906000526020600020906009020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661165d9092919063ffffffff16565b5050565b600060018381548110610616576106156129de565b5b9060005260206000209060090201905060006002600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905082816000015410156106c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b890612528565b60405180910390fd5b6106ca846116e3565b600081600101548360020154846005015484600001546106ea91906127d6565b6106f49190612634565b6106fe9190612830565b9050838260000160008282546107149190612830565b925050819055508383600301600082825461072f9190612830565b9250508190555082600201548360050154836000015461074f91906127d6565b6107599190612634565b8260010181905550600081111561079a576107998360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633836118a4565b5b6107c57f000000000000000000000000000000000000000000000000000000000000000033866118a4565b843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688660405161080c9190612568565b60405180910390a35050505050565b600060018281548110610831576108306129de565b5b9060005260206000209060090201905060006002600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905081600001548360030160008282546108b69190612830565b92505081905550600082600001819055506000826001018190555061091c33827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661165d9092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040516109639190612568565b60405180910390a350505050565b6000600180549050905060005b818110156109a05761098f816116e3565b8061099990612937565b905061097e565b5050565b6109ac611655565b73ffffffffffffffffffffffffffffffffffffffff166109ca610cde565b73ffffffffffffffffffffffffffffffffffffffff1614610a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a17906124e8565b60405180910390fd5b610a2a600061199b565b565b610a34611655565b73ffffffffffffffffffffffffffffffffffffffff16610a52610cde565b73ffffffffffffffffffffffffffffffffffffffff1614610aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9f906124e8565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610b37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2e90612448565b60405180910390fd5b610b4081611a5f565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b7b9190612303565b60206040518083038186803b158015610b9357600080fd5b505afa158015610ba7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcb9190611fb2565b9050610bf833828473ffffffffffffffffffffffffffffffffffffffff1661165d9092919063ffffffff16565b7f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab781298282604051610c29929190612355565b60405180910390a15050565b610c3d611655565b73ffffffffffffffffffffffffffffffffffffffff16610c5b610cde565b73ffffffffffffffffffffffffffffffffffffffff1614610cb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca8906124e8565b60405180910390fd5b4360018281548110610cc657610cc56129de565b5b90600052602060002090600902016006018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6002602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b60008060018481548110610d4f57610d4e6129de565b5b9060005260206000209060090201604051806101200160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905060006002600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905060008260a001519050826080015142118015610ef157506000836060015114155b15610f4c576000610f0784608001514286611b40565b90506000846020015182610f1b91906127d6565b90508460600151856040015182610f3291906127d6565b610f3c9190612634565b83610f4791906125de565b925050505b81602001518360400151828460000151610f6691906127d6565b610f709190612634565b610f7a9190612830565b935050505092915050565b610f8d611655565b73ffffffffffffffffffffffffffffffffffffffff16610fab610cde565b73ffffffffffffffffffffffffffffffffffffffff1614611001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff8906124e8565b60405180910390fd5b61100a826116e3565b806001838154811061101f5761101e6129de565b5b9060005260206000209060090201600101819055507fcf46b21c204617ffb815b827463db479e0f3cdc9586e33690d10ced9541fcda08282604051611065929190612583565b60405180910390a15050565b611079611655565b73ffffffffffffffffffffffffffffffffffffffff16611097610cde565b73ffffffffffffffffffffffffffffffffffffffff16146110ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e4906124e8565b60405180910390fd5b6110f684611a5f565b60008342116111055783611107565b425b905060008573ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561115357600080fd5b505af1158015611167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118b9190611fb2565b9050601e81106111d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c7906124a8565b60405180910390fd5b600081601e6111df9190612830565b600a6111eb91906126b8565b905060016040518061012001604052808973ffffffffffffffffffffffffffffffffffffffff1681526020018a815260200183815260200160008152602001858152602001600081526020018781526020018881526020018673ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906009020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505050505050565b60006001838154811061137d5761137c6129de565b5b9060005260206000209060090201905060006002600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506113ea846116e3565b6000816001015483600201548460050154846000015461140a91906127d6565b6114149190612634565b61141e9190612830565b90508382600001600082825461143491906125de565b925050819055508383600301600082825461144f91906125de565b9250508190555082600201548360050154836000015461146f91906127d6565b6114799190612634565b826001018190555060008111156114ba576114b98360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633836118a4565b5b6115073330867f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611bb7909392919063ffffffff16565b843373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158660405161154e9190612568565b60405180910390a35050505050565b611565611655565b73ffffffffffffffffffffffffffffffffffffffff16611583610cde565b73ffffffffffffffffffffffffffffffffffffffff16146115d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d0906124e8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611649576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164090612468565b60405180910390fd5b6116528161199b565b50565b600033905090565b6116de8363a9059cbb60e01b848460405160240161167c929190612355565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c40565b505050565b6000600182815481106116f9576116f86129de565b5b906000526020600020906009020190508060040154421161171a57506118a1565b60008160030154141561173657428160040181905550506118a1565b600061184582600401544284604051806101200160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050611b40565b9050600082600101548261185991906127d6565b9050826003015483600201548261187091906127d6565b61187a9190612634565b83600501600082825461188d91906125de565b925050819055504283600401819055505050505b50565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118df9190612303565b60206040518083038186803b1580156118f757600080fd5b505afa15801561190b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192f9190611fb2565b9050808211156119695761196483828673ffffffffffffffffffffffffffffffffffffffff1661165d9092919063ffffffff16565b611995565b61199483838673ffffffffffffffffffffffffffffffffffffffff1661165d9092919063ffffffff16565b5b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600180549050905060005b81811015611b3b578273ffffffffffffffffffffffffffffffffffffffff1660018281548110611a9f57611a9e6129de565b5b906000526020600020906009020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611b28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1f906124c8565b60405180910390fd5b8080611b3390612937565b915050611a6c565b505050565b60008160e001518411611b57578160e00151611b59565b835b93508160c00151841180611b7057508160e0015183105b15611b7e5760009050611bb0565b8160c00151831115611ba157838260c00151611b9a9190612830565b9050611bb0565b8383611bad9190612830565b90505b9392505050565b611c3a846323b872dd60e01b858585604051602401611bd89392919061231e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c40565b50505050565b6000611ca2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611d079092919063ffffffff16565b9050600081511115611d025780806020019051810190611cc29190611f58565b611d01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf890612548565b60405180910390fd5b5b505050565b6060611d168484600085611d1f565b90509392505050565b606082471015611d64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5b90612488565b60405180910390fd5b611d6d85611e33565b611dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da390612508565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611dd591906122ec565b60006040518083038185875af1925050503d8060008114611e12576040519150601f19603f3d011682016040523d82523d6000602084013e611e17565b606091505b5091509150611e27828286611e46565b92505050949350505050565b600080823b905060008111915050919050565b60608315611e5657829050611ea6565b600083511115611e695782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9d9190612426565b60405180910390fd5b9392505050565b600081359050611ebc81612c5f565b92915050565b600081519050611ed181612c76565b92915050565b600081359050611ee681612c8d565b92915050565b600081359050611efb81612ca4565b92915050565b600081519050611f1081612ca4565b92915050565b600081359050611f2581612cbb565b92915050565b600060208284031215611f4157611f40612a0d565b5b6000611f4f84828501611ead565b91505092915050565b600060208284031215611f6e57611f6d612a0d565b5b6000611f7c84828501611ec2565b91505092915050565b600060208284031215611f9b57611f9a612a0d565b5b6000611fa984828501611eec565b91505092915050565b600060208284031215611fc857611fc7612a0d565b5b6000611fd684828501611f01565b91505092915050565b60008060408385031215611ff657611ff5612a0d565b5b600061200485828601611eec565b925050602061201585828601611ead565b9150509250929050565b600080600080600060a0868803121561203b5761203a612a0d565b5b600061204988828901611eec565b955050602061205a88828901611ed7565b945050604061206b88828901611eec565b935050606061207c88828901611eec565b925050608061208d88828901611ead565b9150509295509295909350565b600080604083850312156120b1576120b0612a0d565b5b60006120bf85828601611eec565b92505060206120d085828601611eec565b9150509250929050565b600080604083850312156120f1576120f0612a0d565b5b60006120ff85828601611eec565b925050602061211085828601611f16565b9150509250929050565b61212381612864565b82525050565b6000612134826125ac565b61213e81856125c2565b935061214e818560208601612904565b80840191505092915050565b612163816128ce565b82525050565b6000612174826125b7565b61217e81856125cd565b935061218e818560208601612904565b61219781612a12565b840191505092915050565b60006121af6024836125cd565b91506121ba82612a30565b604082019050919050565b60006121d26026836125cd565b91506121dd82612a7f565b604082019050919050565b60006121f56026836125cd565b915061220082612ace565b604082019050919050565b6000612218601f836125cd565b915061222382612b1d565b602082019050919050565b600061223b6024836125cd565b915061224682612b46565b604082019050919050565b600061225e6020836125cd565b915061226982612b95565b602082019050919050565b6000612281601d836125cd565b915061228c82612bbe565b602082019050919050565b60006122a46012836125cd565b91506122af82612be7565b602082019050919050565b60006122c7602a836125cd565b91506122d282612c10565b604082019050919050565b6122e6816128b4565b82525050565b60006122f88284612129565b915081905092915050565b6000602082019050612318600083018461211a565b92915050565b6000606082019050612333600083018661211a565b612340602083018561211a565b61234d60408301846122dd565b949350505050565b600060408201905061236a600083018561211a565b61237760208301846122dd565b9392505050565b6000602082019050612393600083018461215a565b92915050565b6000610120820190506123af600083018c61215a565b6123bc602083018b6122dd565b6123c9604083018a6122dd565b6123d660608301896122dd565b6123e360808301886122dd565b6123f060a08301876122dd565b6123fd60c08301866122dd565b61240a60e08301856122dd565b61241861010083018461211a565b9a9950505050505050505050565b600060208201905081810360008301526124408184612169565b905092915050565b60006020820190508181036000830152612461816121a2565b9050919050565b60006020820190508181036000830152612481816121c5565b9050919050565b600060208201905081810360008301526124a1816121e8565b9050919050565b600060208201905081810360008301526124c18161220b565b9050919050565b600060208201905081810360008301526124e18161222e565b9050919050565b6000602082019050818103600083015261250181612251565b9050919050565b6000602082019050818103600083015261252181612274565b9050919050565b6000602082019050818103600083015261254181612297565b9050919050565b60006020820190508181036000830152612561816122ba565b9050919050565b600060208201905061257d60008301846122dd565b92915050565b600060408201905061259860008301856122dd565b6125a560208301846122dd565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006125e9826128b4565b91506125f4836128b4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561262957612628612980565b5b828201905092915050565b600061263f826128b4565b915061264a836128b4565b92508261265a576126596129af565b5b828204905092915050565b6000808291508390505b60018511156126af5780860481111561268b5761268a612980565b5b600185161561269a5780820291505b80810290506126a885612a23565b945061266f565b94509492505050565b60006126c3826128b4565b91506126ce836128b4565b92506126fb7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612703565b905092915050565b60008261271357600190506127cf565b8161272157600090506127cf565b8160018114612737576002811461274157612770565b60019150506127cf565b60ff84111561275357612752612980565b5b8360020a91508482111561276a57612769612980565b5b506127cf565b5060208310610133831016604e8410600b84101617156127a55782820a9050838111156127a05761279f612980565b5b6127cf565b6127b28484846001612665565b925090508184048111156127c9576127c8612980565b5b81810290505b9392505050565b60006127e1826128b4565b91506127ec836128b4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561282557612824612980565b5b828202905092915050565b600061283b826128b4565b9150612846836128b4565b92508282101561285957612858612980565b5b828203905092915050565b600061286f82612894565b9050919050565b60008115159050919050565b600061288d82612864565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b60006128d9826128e0565b9050919050565b60006128eb826128f2565b9050919050565b60006128fd82612894565b9050919050565b60005b83811015612922578082015181840152602081019050612907565b83811115612931576000848401525b50505050565b6000612942826128b4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561297557612974612980565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f7265636f76657257726f6e67546f6b656e733a2043616e6e6f7420626520787460008201527f6f6b656e00000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f546f6b656e206861732077617920746f6f206d616e7920646563696d616c7300600082015250565b7f636865636b466f72546f6b656e3a2072657761726420746f6b656e2070726f7660008201527f6964656400000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f77697468647261773a206e6f7420676f6f640000000000000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b612c6881612864565b8114612c7357600080fd5b50565b612c7f81612876565b8114612c8a57600080fd5b50565b612c9681612882565b8114612ca157600080fd5b50565b612cad816128b4565b8114612cb857600080fd5b50565b612cc4816128be565b8114612ccf57600080fd5b5056fea26469706673582212208ccc34f9a8402c2238e4c4550e699d3a8fd420b34a01c2065a0970cc065f5cd264736f6c634300080700330000000000000000000000000c5dad5a58501135df4798a298f78ab8d1a5d97e

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063746268cc116100a257806398969e821161007157806398969e821461029a578063b5f578fc146102ca578063cc43d9c4146102e6578063e2bbb15814610302578063f2fde38b1461031e57610116565b8063746268cc14610213578063773000891461022f5780638da5cb5b1461024b57806393f1a40b1461026957610116565b80632c636645116100e95780632c636645146101ab578063441a3e70146101c75780635312ea8e146101e3578063630b5ba1146101ff578063715018a61461020957610116565b8063081e3eda1461011b578063084f8604146101395780631526fe27146101555780631718a68f1461018d575b600080fd5b61012361033a565b6040516101309190612568565b60405180910390f35b610153600480360381019061014e91906120da565b610347565b005b61016f600480360381019061016a9190611f85565b610409565b60405161018499989796959493929190612399565b60405180910390f35b6101956104a7565b6040516101a2919061237e565b60405180910390f35b6101c560048036038101906101c0919061209a565b6104cb565b005b6101e160048036038101906101dc919061209a565b610600565b005b6101fd60048036038101906101f89190611f85565b61081b565b005b610207610971565b005b6102116109a4565b005b61022d60048036038101906102289190611f2b565b610a2c565b005b61024960048036038101906102449190611f85565b610c35565b005b610253610cde565b6040516102609190612303565b60405180910390f35b610283600480360381019061027e9190611fdf565b610d07565b604051610291929190612583565b60405180910390f35b6102b460048036038101906102af9190611fdf565b610d38565b6040516102c19190612568565b60405180910390f35b6102e460048036038101906102df919061209a565b610f85565b005b61030060048036038101906102fb919061201f565b611071565b005b61031c6004803603810190610317919061209a565b611367565b005b61033860048036038101906103339190611f2b565b61155d565b005b6000600180549050905090565b61034f611655565b73ffffffffffffffffffffffffffffffffffffffff1661036d610cde565b73ffffffffffffffffffffffffffffffffffffffff16146103c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103ba906124e8565b60405180910390fd5b8063ffffffff16600183815481106103de576103dd6129de565b5b906000526020600020906009020160060160008282546103fe91906125de565b925050819055505050565b6001818154811061041957600080fd5b90600052602060002090600902016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040154908060050154908060060154908060070154908060080160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905089565b7f0000000000000000000000000c5dad5a58501135df4798a298f78ab8d1a5d97e81565b6104d3611655565b73ffffffffffffffffffffffffffffffffffffffff166104f1610cde565b73ffffffffffffffffffffffffffffffffffffffff1614610547576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053e906124e8565b60405180910390fd5b6105fc6001838154811061055e5761055d6129de565b5b906000526020600020906009020160080160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600185815481106105a5576105a46129de565b5b906000526020600020906009020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661165d9092919063ffffffff16565b5050565b600060018381548110610616576106156129de565b5b9060005260206000209060090201905060006002600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905082816000015410156106c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b890612528565b60405180910390fd5b6106ca846116e3565b600081600101548360020154846005015484600001546106ea91906127d6565b6106f49190612634565b6106fe9190612830565b9050838260000160008282546107149190612830565b925050819055508383600301600082825461072f9190612830565b9250508190555082600201548360050154836000015461074f91906127d6565b6107599190612634565b8260010181905550600081111561079a576107998360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633836118a4565b5b6107c57f0000000000000000000000000c5dad5a58501135df4798a298f78ab8d1a5d97e33866118a4565b843373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688660405161080c9190612568565b60405180910390a35050505050565b600060018281548110610831576108306129de565b5b9060005260206000209060090201905060006002600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905081600001548360030160008282546108b69190612830565b92505081905550600082600001819055506000826001018190555061091c33827f0000000000000000000000000c5dad5a58501135df4798a298f78ab8d1a5d97e73ffffffffffffffffffffffffffffffffffffffff1661165d9092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040516109639190612568565b60405180910390a350505050565b6000600180549050905060005b818110156109a05761098f816116e3565b8061099990612937565b905061097e565b5050565b6109ac611655565b73ffffffffffffffffffffffffffffffffffffffff166109ca610cde565b73ffffffffffffffffffffffffffffffffffffffff1614610a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a17906124e8565b60405180910390fd5b610a2a600061199b565b565b610a34611655565b73ffffffffffffffffffffffffffffffffffffffff16610a52610cde565b73ffffffffffffffffffffffffffffffffffffffff1614610aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9f906124e8565b60405180910390fd5b7f0000000000000000000000000c5dad5a58501135df4798a298f78ab8d1a5d97e73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610b37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2e90612448565b60405180910390fd5b610b4081611a5f565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b7b9190612303565b60206040518083038186803b158015610b9357600080fd5b505afa158015610ba7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcb9190611fb2565b9050610bf833828473ffffffffffffffffffffffffffffffffffffffff1661165d9092919063ffffffff16565b7f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab781298282604051610c29929190612355565b60405180910390a15050565b610c3d611655565b73ffffffffffffffffffffffffffffffffffffffff16610c5b610cde565b73ffffffffffffffffffffffffffffffffffffffff1614610cb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca8906124e8565b60405180910390fd5b4360018281548110610cc657610cc56129de565b5b90600052602060002090600902016006018190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6002602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b60008060018481548110610d4f57610d4e6129de565b5b9060005260206000209060090201604051806101200160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905060006002600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180604001604052908160008201548152602001600182015481525050905060008260a001519050826080015142118015610ef157506000836060015114155b15610f4c576000610f0784608001514286611b40565b90506000846020015182610f1b91906127d6565b90508460600151856040015182610f3291906127d6565b610f3c9190612634565b83610f4791906125de565b925050505b81602001518360400151828460000151610f6691906127d6565b610f709190612634565b610f7a9190612830565b935050505092915050565b610f8d611655565b73ffffffffffffffffffffffffffffffffffffffff16610fab610cde565b73ffffffffffffffffffffffffffffffffffffffff1614611001576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff8906124e8565b60405180910390fd5b61100a826116e3565b806001838154811061101f5761101e6129de565b5b9060005260206000209060090201600101819055507fcf46b21c204617ffb815b827463db479e0f3cdc9586e33690d10ced9541fcda08282604051611065929190612583565b60405180910390a15050565b611079611655565b73ffffffffffffffffffffffffffffffffffffffff16611097610cde565b73ffffffffffffffffffffffffffffffffffffffff16146110ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e4906124e8565b60405180910390fd5b6110f684611a5f565b60008342116111055783611107565b425b905060008573ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561115357600080fd5b505af1158015611167573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118b9190611fb2565b9050601e81106111d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c7906124a8565b60405180910390fd5b600081601e6111df9190612830565b600a6111eb91906126b8565b905060016040518061012001604052808973ffffffffffffffffffffffffffffffffffffffff1681526020018a815260200183815260200160008152602001858152602001600081526020018781526020018881526020018673ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906009020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505050505050565b60006001838154811061137d5761137c6129de565b5b9060005260206000209060090201905060006002600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506113ea846116e3565b6000816001015483600201548460050154846000015461140a91906127d6565b6114149190612634565b61141e9190612830565b90508382600001600082825461143491906125de565b925050819055508383600301600082825461144f91906125de565b9250508190555082600201548360050154836000015461146f91906127d6565b6114799190612634565b826001018190555060008111156114ba576114b98360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1633836118a4565b5b6115073330867f0000000000000000000000000c5dad5a58501135df4798a298f78ab8d1a5d97e73ffffffffffffffffffffffffffffffffffffffff16611bb7909392919063ffffffff16565b843373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a158660405161154e9190612568565b60405180910390a35050505050565b611565611655565b73ffffffffffffffffffffffffffffffffffffffff16611583610cde565b73ffffffffffffffffffffffffffffffffffffffff16146115d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d0906124e8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611649576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164090612468565b60405180910390fd5b6116528161199b565b50565b600033905090565b6116de8363a9059cbb60e01b848460405160240161167c929190612355565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c40565b505050565b6000600182815481106116f9576116f86129de565b5b906000526020600020906009020190508060040154421161171a57506118a1565b60008160030154141561173657428160040181905550506118a1565b600061184582600401544284604051806101200160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050611b40565b9050600082600101548261185991906127d6565b9050826003015483600201548261187091906127d6565b61187a9190612634565b83600501600082825461188d91906125de565b925050819055504283600401819055505050505b50565b60008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016118df9190612303565b60206040518083038186803b1580156118f757600080fd5b505afa15801561190b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061192f9190611fb2565b9050808211156119695761196483828673ffffffffffffffffffffffffffffffffffffffff1661165d9092919063ffffffff16565b611995565b61199483838673ffffffffffffffffffffffffffffffffffffffff1661165d9092919063ffffffff16565b5b50505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000600180549050905060005b81811015611b3b578273ffffffffffffffffffffffffffffffffffffffff1660018281548110611a9f57611a9e6129de565b5b906000526020600020906009020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611b28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1f906124c8565b60405180910390fd5b8080611b3390612937565b915050611a6c565b505050565b60008160e001518411611b57578160e00151611b59565b835b93508160c00151841180611b7057508160e0015183105b15611b7e5760009050611bb0565b8160c00151831115611ba157838260c00151611b9a9190612830565b9050611bb0565b8383611bad9190612830565b90505b9392505050565b611c3a846323b872dd60e01b858585604051602401611bd89392919061231e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c40565b50505050565b6000611ca2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611d079092919063ffffffff16565b9050600081511115611d025780806020019051810190611cc29190611f58565b611d01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf890612548565b60405180910390fd5b5b505050565b6060611d168484600085611d1f565b90509392505050565b606082471015611d64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5b90612488565b60405180910390fd5b611d6d85611e33565b611dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da390612508565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611dd591906122ec565b60006040518083038185875af1925050503d8060008114611e12576040519150601f19603f3d011682016040523d82523d6000602084013e611e17565b606091505b5091509150611e27828286611e46565b92505050949350505050565b600080823b905060008111915050919050565b60608315611e5657829050611ea6565b600083511115611e695782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9d9190612426565b60405180910390fd5b9392505050565b600081359050611ebc81612c5f565b92915050565b600081519050611ed181612c76565b92915050565b600081359050611ee681612c8d565b92915050565b600081359050611efb81612ca4565b92915050565b600081519050611f1081612ca4565b92915050565b600081359050611f2581612cbb565b92915050565b600060208284031215611f4157611f40612a0d565b5b6000611f4f84828501611ead565b91505092915050565b600060208284031215611f6e57611f6d612a0d565b5b6000611f7c84828501611ec2565b91505092915050565b600060208284031215611f9b57611f9a612a0d565b5b6000611fa984828501611eec565b91505092915050565b600060208284031215611fc857611fc7612a0d565b5b6000611fd684828501611f01565b91505092915050565b60008060408385031215611ff657611ff5612a0d565b5b600061200485828601611eec565b925050602061201585828601611ead565b9150509250929050565b600080600080600060a0868803121561203b5761203a612a0d565b5b600061204988828901611eec565b955050602061205a88828901611ed7565b945050604061206b88828901611eec565b935050606061207c88828901611eec565b925050608061208d88828901611ead565b9150509295509295909350565b600080604083850312156120b1576120b0612a0d565b5b60006120bf85828601611eec565b92505060206120d085828601611eec565b9150509250929050565b600080604083850312156120f1576120f0612a0d565b5b60006120ff85828601611eec565b925050602061211085828601611f16565b9150509250929050565b61212381612864565b82525050565b6000612134826125ac565b61213e81856125c2565b935061214e818560208601612904565b80840191505092915050565b612163816128ce565b82525050565b6000612174826125b7565b61217e81856125cd565b935061218e818560208601612904565b61219781612a12565b840191505092915050565b60006121af6024836125cd565b91506121ba82612a30565b604082019050919050565b60006121d26026836125cd565b91506121dd82612a7f565b604082019050919050565b60006121f56026836125cd565b915061220082612ace565b604082019050919050565b6000612218601f836125cd565b915061222382612b1d565b602082019050919050565b600061223b6024836125cd565b915061224682612b46565b604082019050919050565b600061225e6020836125cd565b915061226982612b95565b602082019050919050565b6000612281601d836125cd565b915061228c82612bbe565b602082019050919050565b60006122a46012836125cd565b91506122af82612be7565b602082019050919050565b60006122c7602a836125cd565b91506122d282612c10565b604082019050919050565b6122e6816128b4565b82525050565b60006122f88284612129565b915081905092915050565b6000602082019050612318600083018461211a565b92915050565b6000606082019050612333600083018661211a565b612340602083018561211a565b61234d60408301846122dd565b949350505050565b600060408201905061236a600083018561211a565b61237760208301846122dd565b9392505050565b6000602082019050612393600083018461215a565b92915050565b6000610120820190506123af600083018c61215a565b6123bc602083018b6122dd565b6123c9604083018a6122dd565b6123d660608301896122dd565b6123e360808301886122dd565b6123f060a08301876122dd565b6123fd60c08301866122dd565b61240a60e08301856122dd565b61241861010083018461211a565b9a9950505050505050505050565b600060208201905081810360008301526124408184612169565b905092915050565b60006020820190508181036000830152612461816121a2565b9050919050565b60006020820190508181036000830152612481816121c5565b9050919050565b600060208201905081810360008301526124a1816121e8565b9050919050565b600060208201905081810360008301526124c18161220b565b9050919050565b600060208201905081810360008301526124e18161222e565b9050919050565b6000602082019050818103600083015261250181612251565b9050919050565b6000602082019050818103600083015261252181612274565b9050919050565b6000602082019050818103600083015261254181612297565b9050919050565b60006020820190508181036000830152612561816122ba565b9050919050565b600060208201905061257d60008301846122dd565b92915050565b600060408201905061259860008301856122dd565b6125a560208301846122dd565b9392505050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006125e9826128b4565b91506125f4836128b4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561262957612628612980565b5b828201905092915050565b600061263f826128b4565b915061264a836128b4565b92508261265a576126596129af565b5b828204905092915050565b6000808291508390505b60018511156126af5780860481111561268b5761268a612980565b5b600185161561269a5780820291505b80810290506126a885612a23565b945061266f565b94509492505050565b60006126c3826128b4565b91506126ce836128b4565b92506126fb7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484612703565b905092915050565b60008261271357600190506127cf565b8161272157600090506127cf565b8160018114612737576002811461274157612770565b60019150506127cf565b60ff84111561275357612752612980565b5b8360020a91508482111561276a57612769612980565b5b506127cf565b5060208310610133831016604e8410600b84101617156127a55782820a9050838111156127a05761279f612980565b5b6127cf565b6127b28484846001612665565b925090508184048111156127c9576127c8612980565b5b81810290505b9392505050565b60006127e1826128b4565b91506127ec836128b4565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561282557612824612980565b5b828202905092915050565b600061283b826128b4565b9150612846836128b4565b92508282101561285957612858612980565b5b828203905092915050565b600061286f82612894565b9050919050565b60008115159050919050565b600061288d82612864565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b60006128d9826128e0565b9050919050565b60006128eb826128f2565b9050919050565b60006128fd82612894565b9050919050565b60005b83811015612922578082015181840152602081019050612907565b83811115612931576000848401525b50505050565b6000612942826128b4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561297557612974612980565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b7f7265636f76657257726f6e67546f6b656e733a2043616e6e6f7420626520787460008201527f6f6b656e00000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f546f6b656e206861732077617920746f6f206d616e7920646563696d616c7300600082015250565b7f636865636b466f72546f6b656e3a2072657761726420746f6b656e2070726f7660008201527f6964656400000000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f77697468647261773a206e6f7420676f6f640000000000000000000000000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b612c6881612864565b8114612c7357600080fd5b50565b612c7f81612876565b8114612c8a57600080fd5b50565b612c9681612882565b8114612ca157600080fd5b50565b612cad816128b4565b8114612cb857600080fd5b50565b612cc4816128be565b8114612ccf57600080fd5b5056fea26469706673582212208ccc34f9a8402c2238e4c4550e699d3a8fd420b34a01c2065a0970cc065f5cd264736f6c63430008070033