GLMR Price: $0.021473 (-3.34%)

Contract

0x29E66C7C28Dcd6b78Bb74E6A63bD41Dc0Dab93E4

Overview

GLMR Balance

Moonbeam Chain LogoMoonbeam Chain LogoMoonbeam Chain Logo0 GLMR

GLMR Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Stake Tokens141901582026-01-23 0:52:2440 hrs ago1769129544IN
0x29E66C7C...c0Dab93E4
0 GLMR0.013194562.5
Unstake Tokens140313202026-01-10 10:15:0614 days ago1768040106IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0071732334.17
Claim140312412026-01-10 10:05:4214 days ago1768039542IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0111595234.23
Unstake Tokens140099552026-01-08 16:52:0616 days ago1767891126IN
0x29E66C7C...c0Dab93E4
0 GLMR0.013120562.5
Claim139963872026-01-07 14:12:3017 days ago1767795150IN
0x29E66C7C...c0Dab93E4
0 GLMR0.02037662.5
Claim139840242026-01-06 14:03:0618 days ago1767708186IN
0x29E66C7C...c0Dab93E4
0 GLMR0.02037662.5
Stake Tokens139645612026-01-04 23:48:2519 days ago1767570505IN
0x29E66C7C...c0Dab93E4
0 GLMR0.013194562.5
Unstake Tokens133993832025-11-19 5:04:0066 days ago1763528640IN
0x29E66C7C...c0Dab93E4
0 GLMR0.013136562.5
Claim133539612025-11-15 12:25:0670 days ago1763209506IN
0x29E66C7C...c0Dab93E4
0 GLMR0.02039262.5
Stake Tokens121820982025-08-15 21:58:48161 days ago1755295128IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0132162.5
Stake Tokens116978782025-07-12 17:45:06196 days ago1752342306IN
0x29E66C7C...c0Dab93E4
0 GLMR0.01319462.5
Claim116978712025-07-12 17:44:24196 days ago1752342264IN
0x29E66C7C...c0Dab93E4
0 GLMR0.020375562.5
Stake Tokens115869972025-07-04 21:09:36203 days ago1751663376IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0132162.5
Stake Tokens115869912025-07-04 21:09:00203 days ago1751663340IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0132162.5
Stake Tokens115673702025-07-03 11:48:42205 days ago1751543322IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0132162.5
Claim115318752025-06-30 23:32:18207 days ago1751326338IN
0x29E66C7C...c0Dab93E4
0 GLMR0.020391562.5
Unstake Tokens115318702025-06-30 23:31:48207 days ago1751326308IN
0x29E66C7C...c0Dab93E4
0 GLMR0.01313662.5
Claim112599392025-06-11 16:44:48227 days ago1749660288IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0407162.5
Stake Tokens111644602025-06-04 21:07:06233 days ago1749071226IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0263987162.62267222
Claim108061342025-05-10 3:34:30259 days ago1746848070IN
0x29E66C7C...c0Dab93E4
0 GLMR0.02035531.25
Stake Tokens106749772025-04-30 7:06:48269 days ago1745996808IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0138943233
Claim106749582025-04-30 7:04:54269 days ago1745996694IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0214779833
Claim105696512025-04-22 19:59:24276 days ago1745351964IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0407162.5
Stake Tokens103023022025-04-03 21:50:42295 days ago1743717042IN
0x29E66C7C...c0Dab93E4
0 GLMR0.02631562.5
Claim103022912025-04-03 21:49:36295 days ago1743716976IN
0x29E66C7C...c0Dab93E4
0 GLMR0.0385362.5
View all transactions

View more zero value Internal Transactions in Advanced View mode

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FarmingPool

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./FarmingTreasury.sol";

/**
 * @title FarmingPool
 * @dev A smart contract for staking and claiming multiple dynamic rewards.
 */
contract FarmingPool is Ownable, Pausable {
    using SafeERC20 for IERC20;

    struct Reward {
        uint256 virtualRewards;
        uint256 claimed;
        uint256 tokensPerDay;
        uint256 startTime;
        uint256 lockedPeriod;
        uint256 oldRate;
    }

    struct Stake {
        uint256 rate;
        uint256 unclaimed;
    }

    FarmingTreasury public treasury;
    address[] public assets;

    mapping(address => uint256) public userTotalStaked;
    mapping(address => uint256) public lastClaim;
    mapping(address => Reward) public assetToReward;

    uint256 public totalLp;
    uint256 public immutable protocolStartTime;
    uint256 public immutable claimPeriod;
    IERC20 public immutable stakingAsset;

    mapping(address => mapping(address => Stake)) private userStakes;
    uint256 private constant MULTIPLICATOR = 10 ** 30;

    event Staked(address indexed user, uint256 amount);
    event Unstaked(address indexed user, uint256 amount);
    event Claimed(address indexed user, address indexed asset, uint256 amount);

    constructor(
        IERC20 _stakingAsset,
        FarmingTreasury _treasury,
        uint256 _startTime,
        uint256 _claimPeriod,
        uint256 _lockedPeriod,
        address[] memory _assets,
        uint256[] memory _tokensPerDay
    ) {
        uint256 length = _assets.length;
        require(length == _tokensPerDay.length, "Wrong arguments");

        for (uint i; i < length; ) {
            assetToReward[_assets[i]] = Reward({
                virtualRewards: 0,
                claimed: 0,
                tokensPerDay: _tokensPerDay[i],
                startTime: _startTime,
                lockedPeriod: _lockedPeriod,
                oldRate: 0
            });
            unchecked {
                ++i;
            }
        }

        assets = _assets;
        claimPeriod = _claimPeriod;
        protocolStartTime = _startTime;
        stakingAsset = _stakingAsset;
        treasury = _treasury;
    }

    modifier updateState(uint256 amount, bool staking) {
        uint256 length = assets.length;

        for (uint i; i < length; ) {
            address asset = assets[i];
            Reward storage rewardAsset = assetToReward[asset];

            uint256 rate = getCurrentRate(asset);

            if (staking) {
                rewardAsset.virtualRewards += (rate * amount) / MULTIPLICATOR;
            } else {
                uint256 claimed = rewardAsset.claimed +
                    (rate * amount) /
                    MULTIPLICATOR;

                //if virtual rewards are greater than claimed, then we can just subtract claimed from virtual rewards
                //to prevent infinite increasing of claimed variable
                if (rewardAsset.virtualRewards >= claimed) {
                    rewardAsset.virtualRewards -= claimed;
                    rewardAsset.claimed = 0;
                } else {
                    rewardAsset.claimed = claimed;
                }
            }

            unchecked {
                ++i;
            }
        }

        if (staking) {
            totalLp += amount;
        } else {
            totalLp -= amount;
        }

        _;
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function changeTreasury(FarmingTreasury _treasury) external onlyOwner {
        treasury = _treasury;
    }

    function changeReward(
        address _asset,
        uint256 _tokensPerDay
    ) external onlyOwner {
        Reward memory rewardAsset = assetToReward[_asset];

        uint256 totalTime = block.timestamp -
            rewardAsset.startTime -
            rewardAsset.lockedPeriod;

        assetToReward[_asset] = Reward({
            virtualRewards: rewardAsset.virtualRewards +
                totalTime *
                (rewardAsset.tokensPerDay / 1 days) -
                rewardAsset.claimed,
            claimed: 0,
            tokensPerDay: _tokensPerDay,
            startTime: block.timestamp,
            lockedPeriod: 0,
            oldRate: 0
        });
    }

    function addRewardAsset(
        address _asset,
        uint256 _tokensPerDay
    ) external onlyOwner {
        uint256 length = assets.length;

        for (uint i = 0; i < length; ) {
            require(assets[i] != _asset, "Asset already exists");

            unchecked {
                ++i;
            }
        }

        assets.push(_asset);

        assetToReward[_asset] = Reward({
            virtualRewards: (assetToReward[_asset].oldRate * totalLp) /
                MULTIPLICATOR,
            claimed: 0,
            tokensPerDay: _tokensPerDay,
            startTime: block.timestamp,
            lockedPeriod: 0,
            oldRate: 0
        });
    }

    function removeAsset(address _asset) external onlyOwner {
        uint256 length = assets.length;

        for (uint i = 0; i < length; ) {
            if (_asset == assets[i]) {
                uint256 currentRate = getCurrentRate(_asset);
                assetToReward[_asset].oldRate = currentRate;

                assets[i] = assets[length - 1];
                assets.pop();
                break;
            }

            unchecked {
                ++i;
            }
        }
    }

    /**
     * @dev Stake tokens in the farming pool.
     * @param amount The amount of tokens to stake.
     */
    function stakeTokens(
        uint256 amount
    ) external whenNotPaused updateState(amount, true) {
        require(amount > 0, "Amount must be greater than 0");

        uint256 length = assets.length;

        for (uint i; i < length; ) {
            address asset = assets[i];
            uint256 rate = getCurrentRate(asset);

            uint256 stakedAmount = userTotalStaked[msg.sender];
            Stake storage stake = userStakes[asset][msg.sender];

            stake.rate =
                rate -
                (((rate - stake.rate) * stakedAmount) /
                    (stakedAmount + amount));

            unchecked {
                ++i;
            }
        }

        userTotalStaked[msg.sender] += amount;
        lastClaim[msg.sender] = block.timestamp;
        stakingAsset.safeTransferFrom(msg.sender, address(this), amount);

        emit Staked(msg.sender, amount);
    }

    /**
     * @dev Unstake tokens from the farming pool.
     * @param amount The amount of tokens to unstake.
     */
    function unstakeTokens(uint256 amount) external updateState(amount, false) {
        require(amount > 0, "Amount must be greater than 0");

        uint256 totalStaked = userTotalStaked[msg.sender];
        require(amount <= totalStaked, "Invalid balance");

        uint256 length = assets.length;

        for (uint i; i < length; ) {
            address asset = assets[i];
            uint256 rate = getCurrentRate(asset);

            Stake storage stake = userStakes[asset][msg.sender];

            stake.unclaimed += (amount * (rate - stake.rate)) / MULTIPLICATOR;

            unchecked {
                ++i;
            }
        }

        userTotalStaked[msg.sender] -= amount;
        stakingAsset.safeTransfer(msg.sender, amount);

        emit Unstaked(msg.sender, amount);
    }

    /**
     * @dev Claim rewards for the user from all reward assets.
     */
    function claim() external whenNotPaused {
        uint256 claimCycleTime = getClaimCycleTime();

        require(
            lastClaim[msg.sender] < claimCycleTime,
            "Claim isn't available yet"
        );
        lastClaim[msg.sender] = block.timestamp;

        uint256 totalStaked = userTotalStaked[msg.sender];
        uint256 length = assets.length;

        for (uint i; i < length; ) {
            address asset = assets[i];
            Stake storage stake = userStakes[asset][msg.sender];

            uint256 rate = getCurrentRate(asset);

            uint256 reward = stake.unclaimed +
                (totalStaked * (rate - stake.rate)) /
                MULTIPLICATOR;

            stake.unclaimed = 0;
            stake.rate = rate;

            treasury.sendFromPool(asset, reward, msg.sender);

            emit Claimed(msg.sender, asset, reward);

            unchecked {
                ++i;
            }
        }
    }

    /**
     * @dev Get the amount of rewards available to claim for a specific user and asset.
     * @param asset The asset for which to check rewards.
     * @param user The user's address.
     * @return The amount of rewards available to claim.
     */
    function availableToClaim(
        address asset,
        address user
    ) external view returns (uint256) {
        uint256 rate = getCurrentRate(asset);
        Stake memory stake = userStakes[asset][user];

        return
            stake.unclaimed +
            (userTotalStaked[user] * (rate - stake.rate)) /
            MULTIPLICATOR;
    }

    /**
     * @dev Get the list of reward assets supported by the farming pool.
     * @return An array of reward asset addresses.
     */
    function getRewardAssets() external view returns (address[] memory) {
        return assets;
    }

    /**
     * @dev Get the timestamp of the previous claim cycle.
     * @return The timestamp of the previous claim cycle.
     */
    function getClaimCycleTime() public view returns (uint256) {
        uint256 currentCycle = (block.timestamp - protocolStartTime) /
            claimPeriod;

        return protocolStartTime + claimPeriod * currentCycle;
    }

    /**
     * @dev Get the current reward rate for a specific asset.
     * @param asset The asset for which to get the reward rate.
     * @return The current reward rate.
     */
    function getCurrentRate(address asset) private view returns (uint256) {
        Reward memory rewardAsset = assetToReward[asset];
        uint256 totalTime = block.timestamp - rewardAsset.startTime;

        if (totalTime < rewardAsset.lockedPeriod) {
            return 0;
        } else {
            totalTime -= rewardAsset.lockedPeriod;
        }

        return
            (MULTIPLICATOR *
                (rewardAsset.virtualRewards +
                    totalTime *
                    (rewardAsset.tokensPerDay / 1 days) -
                    rewardAsset.claimed)) / totalLp;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract 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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract FarmingTreasury is Ownable {
    using SafeERC20 for IERC20;

    mapping(address => bool) public poolToWhitelist;
    address[] private pools;

    receive() external payable {}

    fallback() external {}

    function sendFromPool(address token, uint256 amount, address to) external {
        require(poolToWhitelist[msg.sender], "Address is not whitelisted");

        IERC20(token).safeTransfer(to, amount);
    }

    function withdraw(address token, uint256 amount) external onlyOwner {
        IERC20(token).safeTransfer(msg.sender, amount);
    }

    function withdrawNative() external onlyOwner {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");

        require(success, "Transfer failed");
    }

    function addToWhitelist(address pool) external onlyOwner {
        require(!poolToWhitelist[pool], "Pool is already whitelisted");

        pools.push(pool);
        poolToWhitelist[pool] = true;
    }

    function removeFromWhitelist(address pool) external onlyOwner {
        require(poolToWhitelist[pool], "Pool is not whitelisted");

        uint256 length = pools.length;

        for (uint i; i < length; ) {
            if (pools[i] == pool) {
                pools[i] = pools[length - 1];
                pools.pop();
                poolToWhitelist[pool] = false;

                break;
            }

            unchecked {
                ++i;
            }
        }
    }

    function getPools() external view returns (address[] memory) {
        return pools;
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_stakingAsset","type":"address"},{"internalType":"contract FarmingTreasury","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_claimPeriod","type":"uint256"},{"internalType":"uint256","name":"_lockedPeriod","type":"uint256"},{"internalType":"address[]","name":"_assets","type":"address[]"},{"internalType":"uint256[]","name":"_tokensPerDay","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","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"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_tokensPerDay","type":"uint256"}],"name":"addRewardAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"assetToReward","outputs":[{"internalType":"uint256","name":"virtualRewards","type":"uint256"},{"internalType":"uint256","name":"claimed","type":"uint256"},{"internalType":"uint256","name":"tokensPerDay","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"lockedPeriod","type":"uint256"},{"internalType":"uint256","name":"oldRate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"assets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"user","type":"address"}],"name":"availableToClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"uint256","name":"_tokensPerDay","type":"uint256"}],"name":"changeReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract FarmingTreasury","name":"_treasury","type":"address"}],"name":"changeTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimCycleTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardAssets","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"}],"name":"removeAsset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingAsset","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"contract FarmingTreasury","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstakeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userTotalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60e06040523480156200001157600080fd5b5060405162003a8538038062003a85833981810160405281019062000037919062000781565b620000576200004b6200026a60201b60201c565b6200027260201b60201c565b60008060146101000a81548160ff02191690831515021790555060008251905081518114620000bd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000b490620008d3565b60405180910390fd5b60005b81811015620001bd576040518060c001604052806000815260200160008152602001848381518110620000f857620000f7620008f5565b5b6020026020010151815260200188815260200186815260200160008152506005600086848151811062000130576200012f620008f5565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050155905050806001019050620000c0565b508260029080519060200190620001d692919062000336565b508460a0818152505085608081815250508773ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff168152505086600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505062000924565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054828255906000526020600020908101928215620003b2579160200282015b82811115620003b15782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019062000357565b5b509050620003c19190620003c5565b5090565b5b80821115620003e0576000816000905550600101620003c6565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200042582620003f8565b9050919050565b6000620004398262000418565b9050919050565b6200044b816200042c565b81146200045757600080fd5b50565b6000815190506200046b8162000440565b92915050565b60006200047e82620003f8565b9050919050565b6000620004928262000471565b9050919050565b620004a48162000485565b8114620004b057600080fd5b50565b600081519050620004c48162000499565b92915050565b6000819050919050565b620004df81620004ca565b8114620004eb57600080fd5b50565b600081519050620004ff81620004d4565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000555826200050a565b810181811067ffffffffffffffff821117156200057757620005766200051b565b5b80604052505050565b60006200058c620003e4565b90506200059a82826200054a565b919050565b600067ffffffffffffffff821115620005bd57620005bc6200051b565b5b602082029050602081019050919050565b600080fd5b620005de8162000418565b8114620005ea57600080fd5b50565b600081519050620005fe81620005d3565b92915050565b60006200061b62000615846200059f565b62000580565b90508083825260208201905060208402830185811115620006415762000640620005ce565b5b835b818110156200066e5780620006598882620005ed565b84526020840193505060208101905062000643565b5050509392505050565b600082601f83011262000690576200068f62000505565b5b8151620006a284826020860162000604565b91505092915050565b600067ffffffffffffffff821115620006c957620006c86200051b565b5b602082029050602081019050919050565b6000620006f1620006eb84620006ab565b62000580565b90508083825260208201905060208402830185811115620007175762000716620005ce565b5b835b818110156200074457806200072f8882620004ee565b84526020840193505060208101905062000719565b5050509392505050565b600082601f83011262000766576200076562000505565b5b815162000778848260208601620006da565b91505092915050565b600080600080600080600060e0888a031215620007a357620007a2620003ee565b5b6000620007b38a828b016200045a565b9750506020620007c68a828b01620004b3565b9650506040620007d98a828b01620004ee565b9550506060620007ec8a828b01620004ee565b9450506080620007ff8a828b01620004ee565b93505060a088015167ffffffffffffffff811115620008235762000822620003f3565b5b620008318a828b0162000678565b92505060c088015167ffffffffffffffff811115620008555762000854620003f3565b5b620008638a828b016200074e565b91505092959891949750929550565b600082825260208201905092915050565b7f57726f6e6720617267756d656e74730000000000000000000000000000000000600082015250565b6000620008bb600f8362000872565b9150620008c88262000883565b602082019050919050565b60006020820190508181036000830152620008ee81620008ac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60805160a05160c0516131076200097e6000396000818161120f0152818161171e015261184801526000818161189001528181611af10152611b4b01526000818161186c01528181611b120152611b7601526131076000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80637547c7a3116100de5780638da5cb5b11610097578063cf35bdd011610071578063cf35bdd0146103c8578063d3714fc9146103f8578063e5cb7f0a1461042d578063f2fde38b1461044b57610173565b80638da5cb5b1461035e578063b14f2a391461037c578063cb3a6b2c1461039857610173565b80637547c7a3146102c057806376219b14146102dc5780637776768f146102fa578063790f3207146103185780637dc2cd98146103365780638456cb591461035457610173565b80635c16e15e116101305780635c16e15e146101fe5780635c975abb1461022e578063608e4dd01461024c57806361d027b314610268578063715018a614610286578063719de1ef1461029057610173565b8063242c135d14610178578063248dac92146101965780633f4ba83a146101b25780634a5e42b1146101bc5780634e71d92d146101d8578063555196cc146101e2575b600080fd5b610180610467565b60405161018d91906123ba565b60405180910390f35b6101b060048036038101906101ab9190612464565b61046d565b005b6101ba6106bf565b005b6101d660048036038101906101d191906124a4565b6106d1565b005b6101e06108b7565b005b6101fc60048036038101906101f79190612464565b610c1d565b005b610218600480360381019061021391906124a4565b610dc1565b60405161022591906123ba565b60405180910390f35b610236610dd9565b60405161024391906124ec565b60405180910390f35b61026660048036038101906102619190612507565b610def565b005b6102706112a9565b60405161027d9190612593565b60405180910390f35b61028e6112cf565b005b6102aa60048036038101906102a591906124a4565b6112e3565b6040516102b791906123ba565b60405180910390f35b6102da60048036038101906102d59190612507565b6112fb565b005b6102e46117b8565b6040516102f1919061266c565b60405180910390f35b610302611846565b60405161030f91906126c1565b60405180910390f35b61032061186a565b60405161032d91906123ba565b60405180910390f35b61033e61188e565b60405161034b91906123ba565b60405180910390f35b61035c6118b2565b005b6103666118c4565b60405161037391906126eb565b60405180910390f35b61039660048036038101906103919190612756565b6118ed565b005b6103b260048036038101906103ad9190612783565b611939565b6040516103bf91906123ba565b60405180910390f35b6103e260048036038101906103dd9190612507565b611a71565b6040516103ef91906126eb565b60405180910390f35b610412600480360381019061040d91906124a4565b611ab0565b604051610424969594939291906127c3565b60405180910390f35b610435611aec565b60405161044291906123ba565b60405180910390f35b610465600480360381019061046091906124a4565b611ba5565b005b60065481565b610475611c28565b6000600280549050905060005b81811015610541578373ffffffffffffffffffffffffffffffffffffffff16600282815481106104b5576104b4612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052d906128b0565b60405180910390fd5b806001019050610482565b506002839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060c001604052806c0c9f2c9cd04674edea40000000600654600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005015461060e91906128ff565b6106189190612970565b815260200160008152602001838152602001428152602001600081526020016000815250600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050155905050505050565b6106c7611c28565b6106cf611ca6565b565b6106d9611c28565b6000600280549050905060005b818110156108b2576002818154811061070257610701612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036108a757600061076a84611d08565b905080600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005018190555060026001846107c291906129a1565b815481106107d3576107d2612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002838154811061081257610811612824565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600280548061086c5761086b6129d5565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055506108b2565b8060010190506106e6565b505050565b6108bf611e3b565b60006108c9611aec565b905080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541061094c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094390612a50565b60405180910390fd5b42600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600280549050905060005b81811015610c17576000600282815481106109ff576109fe612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000610ab783611d08565b905060006c0c9f2c9cd04674edea40000000836000015483610ad991906129a1565b88610ae491906128ff565b610aee9190612970565b8360010154610afd9190612a70565b905060008360010181905550818360000181905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166301a112988583336040518463ffffffff1660e01b8152600401610b7193929190612aa4565b600060405180830381600087803b158015610b8b57600080fd5b505af1158015610b9f573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff7a40077ff7a04c7e61f6f26fb13774259ddf1b6bce9ecf26a8276cdd399268383604051610c0091906123ba565b60405180910390a3846001019450505050506109e1565b50505050565b610c25611c28565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481525050905060008160800151826060015142610cc691906129a1565b610cd091906129a1565b90506040518060c001604052808360200151620151808560400151610cf59190612970565b84610d0091906128ff565b8560000151610d0f9190612a70565b610d1991906129a1565b815260200160008152602001848152602001428152602001600081526020016000815250600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015590505050505050565b60046020528060005260406000206000915090505481565b60008060149054906101000a900460ff16905090565b80600080600280549050905060005b81811015610f6857600060028281548110610e1c57610e1b612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000610e9783611d08565b90508515610ee2576c0c9f2c9cd04674edea400000008782610eb991906128ff565b610ec39190612970565b826000016000828254610ed69190612a70565b92505081905550610f5a565b60006c0c9f2c9cd04674edea400000008883610efe91906128ff565b610f089190612970565b8360010154610f179190612a70565b905080836000015410610f4e5780836000016000828254610f3891906129a1565b9250508190555060008360010181905550610f58565b8083600101819055505b505b836001019350505050610dfe565b508115610f8d578260066000828254610f819190612a70565b92505081905550610fa7565b8260066000828254610f9f91906129a1565b925050819055505b60008411610fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe190612b27565b60405180910390fd5b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905080851115611071576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106890612b93565b60405180910390fd5b6000600280549050905060005b818110156111b15760006002828154811061109c5761109b612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060006110d482611d08565b90506000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506c0c9f2c9cd04674edea4000000081600001548361117491906129a1565b8b61117f91906128ff565b6111899190612970565b81600101600082825461119c9190612a70565b9250508190555083600101935050505061107e565b5085600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461120191906129a1565b9250508190555061125333877f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611e859092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f758760405161129991906123ba565b60405180910390a2505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6112d7611c28565b6112e16000611f0b565b565b60036020528060005260406000206000915090505481565b611303611e3b565b8060016000600280549050905060005b8181101561147d5760006002828154811061133157611330612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006113ac83611d08565b905085156113f7576c0c9f2c9cd04674edea4000000087826113ce91906128ff565b6113d89190612970565b8260000160008282546113eb9190612a70565b9250508190555061146f565b60006c0c9f2c9cd04674edea40000000888361141391906128ff565b61141d9190612970565b836001015461142c9190612a70565b905080836000015410611463578083600001600082825461144d91906129a1565b925050819055506000836001018190555061146d565b8083600101819055505b505b836001019350505050611313565b5081156114a25782600660008282546114969190612a70565b925050819055506114bc565b82600660008282546114b491906129a1565b925050819055505b600084116114ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f690612b27565b60405180910390fd5b6000600280549050905060005b8181101561167b5760006002828154811061152a57611529612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061156282611d08565b90506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905089826116349190612a70565b8282600001548561164591906129a1565b61164f91906128ff565b6116599190612970565b8361166491906129a1565b81600001819055508460010194505050505061150c565b5084600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116cb9190612a70565b9250508190555042600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506117633330877f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611fcf909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d866040516117a991906123ba565b60405180910390a25050505050565b6060600280548060200260200160405190810160405280929190818152602001828054801561183c57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116117f2575b5050505050905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6118ba611c28565b6118c2612058565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118f5611c28565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008061194584611d08565b90506000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820154815260200160018201548152505090506c0c9f2c9cd04674edea40000000816000015183611a0491906129a1565b600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a4e91906128ff565b611a589190612970565b8160200151611a679190612a70565b9250505092915050565b60028181548110611a8157600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60056020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154905086565b6000807f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000042611b3c91906129a1565b611b469190612970565b9050807f0000000000000000000000000000000000000000000000000000000000000000611b7491906128ff565b7f0000000000000000000000000000000000000000000000000000000000000000611b9f9190612a70565b91505090565b611bad611c28565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1390612c25565b60405180910390fd5b611c2581611f0b565b50565b611c306120bb565b73ffffffffffffffffffffffffffffffffffffffff16611c4e6118c4565b73ffffffffffffffffffffffffffffffffffffffff1614611ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9b90612c91565b60405180910390fd5b565b611cae6120c3565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611cf16120bb565b604051611cfe91906126eb565b60405180910390a1565b600080600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505090506000816060015142611da591906129a1565b90508160800151811015611dbe57600092505050611e36565b816080015181611dce91906129a1565b90506006548260200151620151808460400151611deb9190612970565b83611df691906128ff565b8460000151611e059190612a70565b611e0f91906129a1565b6c0c9f2c9cd04674edea40000000611e2791906128ff565b611e319190612970565b925050505b919050565b611e43610dd9565b15611e83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7a90612cfd565b60405180910390fd5b565b611f068363a9059cbb60e01b8484604051602401611ea4929190612d1d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061210c565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612052846323b872dd60e01b858585604051602401611ff093929190612d46565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061210c565b50505050565b612060611e3b565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120a46120bb565b6040516120b191906126eb565b60405180910390a1565b600033905090565b6120cb610dd9565b61210a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210190612dc9565b60405180910390fd5b565b600061216e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166121d49092919063ffffffff16565b905060008151148061219057508080602001905181019061218f9190612e15565b5b6121cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c690612eb4565b60405180910390fd5b505050565b60606121e384846000856121ec565b90509392505050565b606082471015612231576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222890612f46565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161225a9190612fd7565b60006040518083038185875af1925050503d8060008114612297576040519150601f19603f3d011682016040523d82523d6000602084013e61229c565b606091505b50915091506122ad878383876122b9565b92505050949350505050565b6060831561231b576000835103612313576122d38561232e565b612312576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123099061303a565b60405180910390fd5b5b829050612326565b6123258383612351565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156123645781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239891906130af565b60405180910390fd5b6000819050919050565b6123b4816123a1565b82525050565b60006020820190506123cf60008301846123ab565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612405826123da565b9050919050565b612415816123fa565b811461242057600080fd5b50565b6000813590506124328161240c565b92915050565b612441816123a1565b811461244c57600080fd5b50565b60008135905061245e81612438565b92915050565b6000806040838503121561247b5761247a6123d5565b5b600061248985828601612423565b925050602061249a8582860161244f565b9150509250929050565b6000602082840312156124ba576124b96123d5565b5b60006124c884828501612423565b91505092915050565b60008115159050919050565b6124e6816124d1565b82525050565b600060208201905061250160008301846124dd565b92915050565b60006020828403121561251d5761251c6123d5565b5b600061252b8482850161244f565b91505092915050565b6000819050919050565b600061255961255461254f846123da565b612534565b6123da565b9050919050565b600061256b8261253e565b9050919050565b600061257d82612560565b9050919050565b61258d81612572565b82525050565b60006020820190506125a86000830184612584565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6125e3816123fa565b82525050565b60006125f583836125da565b60208301905092915050565b6000602082019050919050565b6000612619826125ae565b61262381856125b9565b935061262e836125ca565b8060005b8381101561265f57815161264688826125e9565b975061265183612601565b925050600181019050612632565b5085935050505092915050565b60006020820190508181036000830152612686818461260e565b905092915050565b60006126998261253e565b9050919050565b60006126ab8261268e565b9050919050565b6126bb816126a0565b82525050565b60006020820190506126d660008301846126b2565b92915050565b6126e5816123fa565b82525050565b600060208201905061270060008301846126dc565b92915050565b6000612711826123da565b9050919050565b600061272382612706565b9050919050565b61273381612718565b811461273e57600080fd5b50565b6000813590506127508161272a565b92915050565b60006020828403121561276c5761276b6123d5565b5b600061277a84828501612741565b91505092915050565b6000806040838503121561279a576127996123d5565b5b60006127a885828601612423565b92505060206127b985828601612423565b9150509250929050565b600060c0820190506127d860008301896123ab565b6127e560208301886123ab565b6127f260408301876123ab565b6127ff60608301866123ab565b61280c60808301856123ab565b61281960a08301846123ab565b979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082825260208201905092915050565b7f417373657420616c726561647920657869737473000000000000000000000000600082015250565b600061289a601483612853565b91506128a582612864565b602082019050919050565b600060208201905081810360008301526128c98161288d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061290a826123a1565b9150612915836123a1565b9250828202612923816123a1565b9150828204841483151761293a576129396128d0565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061297b826123a1565b9150612986836123a1565b92508261299657612995612941565b5b828204905092915050565b60006129ac826123a1565b91506129b7836123a1565b92508282039050818111156129cf576129ce6128d0565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f436c61696d2069736e277420617661696c61626c652079657400000000000000600082015250565b6000612a3a601983612853565b9150612a4582612a04565b602082019050919050565b60006020820190508181036000830152612a6981612a2d565b9050919050565b6000612a7b826123a1565b9150612a86836123a1565b9250828201905080821115612a9e57612a9d6128d0565b5b92915050565b6000606082019050612ab960008301866126dc565b612ac660208301856123ab565b612ad360408301846126dc565b949350505050565b7f416d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b6000612b11601d83612853565b9150612b1c82612adb565b602082019050919050565b60006020820190508181036000830152612b4081612b04565b9050919050565b7f496e76616c69642062616c616e63650000000000000000000000000000000000600082015250565b6000612b7d600f83612853565b9150612b8882612b47565b602082019050919050565b60006020820190508181036000830152612bac81612b70565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612c0f602683612853565b9150612c1a82612bb3565b604082019050919050565b60006020820190508181036000830152612c3e81612c02565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612c7b602083612853565b9150612c8682612c45565b602082019050919050565b60006020820190508181036000830152612caa81612c6e565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612ce7601083612853565b9150612cf282612cb1565b602082019050919050565b60006020820190508181036000830152612d1681612cda565b9050919050565b6000604082019050612d3260008301856126dc565b612d3f60208301846123ab565b9392505050565b6000606082019050612d5b60008301866126dc565b612d6860208301856126dc565b612d7560408301846123ab565b949350505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000612db3601483612853565b9150612dbe82612d7d565b602082019050919050565b60006020820190508181036000830152612de281612da6565b9050919050565b612df2816124d1565b8114612dfd57600080fd5b50565b600081519050612e0f81612de9565b92915050565b600060208284031215612e2b57612e2a6123d5565b5b6000612e3984828501612e00565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612e9e602a83612853565b9150612ea982612e42565b604082019050919050565b60006020820190508181036000830152612ecd81612e91565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612f30602683612853565b9150612f3b82612ed4565b604082019050919050565b60006020820190508181036000830152612f5f81612f23565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015612f9a578082015181840152602081019050612f7f565b60008484015250505050565b6000612fb182612f66565b612fbb8185612f71565b9350612fcb818560208601612f7c565b80840191505092915050565b6000612fe38284612fa6565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613024601d83612853565b915061302f82612fee565b602082019050919050565b6000602082019050818103600083015261305381613017565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006130818261305a565b61308b8185612853565b935061309b818560208601612f7c565b6130a481613065565b840191505092915050565b600060208201905081810360008301526130c98184613076565b90509291505056fea264697066735822122048dbadea0657c45f63f186fca60d73c3b6c407d36c4505388cd25fec4731e05864736f6c634300081200330000000000000000000000009bfeb5cd9a81011fde1ba193a1ca0cb893af0e50000000000000000000000000457b27257a3f7440c978df8185d8d007cb59502100000000000000000000000000000000000000000000000000000000655201b0000000000000000000000000000000000000000000000000000000000000a8c0000000000000000000000000000000000000000000000000000000000003f48000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000020000000000000000000000004eeaa1fd27c50c64e77272bcdde68c28f0a3c3d70000000000000000000000009bfeb5cd9a81011fde1ba193a1ca0cb893af0e500000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000004563918244f400000000000000000000000000000000000000000000000000009c2007651b2500000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101735760003560e01c80637547c7a3116100de5780638da5cb5b11610097578063cf35bdd011610071578063cf35bdd0146103c8578063d3714fc9146103f8578063e5cb7f0a1461042d578063f2fde38b1461044b57610173565b80638da5cb5b1461035e578063b14f2a391461037c578063cb3a6b2c1461039857610173565b80637547c7a3146102c057806376219b14146102dc5780637776768f146102fa578063790f3207146103185780637dc2cd98146103365780638456cb591461035457610173565b80635c16e15e116101305780635c16e15e146101fe5780635c975abb1461022e578063608e4dd01461024c57806361d027b314610268578063715018a614610286578063719de1ef1461029057610173565b8063242c135d14610178578063248dac92146101965780633f4ba83a146101b25780634a5e42b1146101bc5780634e71d92d146101d8578063555196cc146101e2575b600080fd5b610180610467565b60405161018d91906123ba565b60405180910390f35b6101b060048036038101906101ab9190612464565b61046d565b005b6101ba6106bf565b005b6101d660048036038101906101d191906124a4565b6106d1565b005b6101e06108b7565b005b6101fc60048036038101906101f79190612464565b610c1d565b005b610218600480360381019061021391906124a4565b610dc1565b60405161022591906123ba565b60405180910390f35b610236610dd9565b60405161024391906124ec565b60405180910390f35b61026660048036038101906102619190612507565b610def565b005b6102706112a9565b60405161027d9190612593565b60405180910390f35b61028e6112cf565b005b6102aa60048036038101906102a591906124a4565b6112e3565b6040516102b791906123ba565b60405180910390f35b6102da60048036038101906102d59190612507565b6112fb565b005b6102e46117b8565b6040516102f1919061266c565b60405180910390f35b610302611846565b60405161030f91906126c1565b60405180910390f35b61032061186a565b60405161032d91906123ba565b60405180910390f35b61033e61188e565b60405161034b91906123ba565b60405180910390f35b61035c6118b2565b005b6103666118c4565b60405161037391906126eb565b60405180910390f35b61039660048036038101906103919190612756565b6118ed565b005b6103b260048036038101906103ad9190612783565b611939565b6040516103bf91906123ba565b60405180910390f35b6103e260048036038101906103dd9190612507565b611a71565b6040516103ef91906126eb565b60405180910390f35b610412600480360381019061040d91906124a4565b611ab0565b604051610424969594939291906127c3565b60405180910390f35b610435611aec565b60405161044291906123ba565b60405180910390f35b610465600480360381019061046091906124a4565b611ba5565b005b60065481565b610475611c28565b6000600280549050905060005b81811015610541578373ffffffffffffffffffffffffffffffffffffffff16600282815481106104b5576104b4612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610536576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052d906128b0565b60405180910390fd5b806001019050610482565b506002839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040518060c001604052806c0c9f2c9cd04674edea40000000600654600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005015461060e91906128ff565b6106189190612970565b815260200160008152602001838152602001428152602001600081526020016000815250600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050155905050505050565b6106c7611c28565b6106cf611ca6565b565b6106d9611c28565b6000600280549050905060005b818110156108b2576002818154811061070257610701612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036108a757600061076a84611d08565b905080600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206005018190555060026001846107c291906129a1565b815481106107d3576107d2612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002838154811061081257610811612824565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600280548061086c5761086b6129d5565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690559055506108b2565b8060010190506106e6565b505050565b6108bf611e3b565b60006108c9611aec565b905080600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541061094c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094390612a50565b60405180910390fd5b42600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600280549050905060005b81811015610c17576000600282815481106109ff576109fe612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000610ab783611d08565b905060006c0c9f2c9cd04674edea40000000836000015483610ad991906129a1565b88610ae491906128ff565b610aee9190612970565b8360010154610afd9190612a70565b905060008360010181905550818360000181905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166301a112988583336040518463ffffffff1660e01b8152600401610b7193929190612aa4565b600060405180830381600087803b158015610b8b57600080fd5b505af1158015610b9f573d6000803e3d6000fd5b505050508373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ff7a40077ff7a04c7e61f6f26fb13774259ddf1b6bce9ecf26a8276cdd399268383604051610c0091906123ba565b60405180910390a3846001019450505050506109e1565b50505050565b610c25611c28565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060c00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152602001600582015481525050905060008160800151826060015142610cc691906129a1565b610cd091906129a1565b90506040518060c001604052808360200151620151808560400151610cf59190612970565b84610d0091906128ff565b8560000151610d0f9190612a70565b610d1991906129a1565b815260200160008152602001848152602001428152602001600081526020016000815250600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015590505050505050565b60046020528060005260406000206000915090505481565b60008060149054906101000a900460ff16905090565b80600080600280549050905060005b81811015610f6857600060028281548110610e1c57610e1b612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000610e9783611d08565b90508515610ee2576c0c9f2c9cd04674edea400000008782610eb991906128ff565b610ec39190612970565b826000016000828254610ed69190612a70565b92505081905550610f5a565b60006c0c9f2c9cd04674edea400000008883610efe91906128ff565b610f089190612970565b8360010154610f179190612a70565b905080836000015410610f4e5780836000016000828254610f3891906129a1565b9250508190555060008360010181905550610f58565b8083600101819055505b505b836001019350505050610dfe565b508115610f8d578260066000828254610f819190612a70565b92505081905550610fa7565b8260066000828254610f9f91906129a1565b925050819055505b60008411610fea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe190612b27565b60405180910390fd5b6000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905080851115611071576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106890612b93565b60405180910390fd5b6000600280549050905060005b818110156111b15760006002828154811061109c5761109b612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060006110d482611d08565b90506000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506c0c9f2c9cd04674edea4000000081600001548361117491906129a1565b8b61117f91906128ff565b6111899190612970565b81600101600082825461119c9190612a70565b9250508190555083600101935050505061107e565b5085600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461120191906129a1565b9250508190555061125333877f0000000000000000000000009bfeb5cd9a81011fde1ba193a1ca0cb893af0e5073ffffffffffffffffffffffffffffffffffffffff16611e859092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f0f5bb82176feb1b5e747e28471aa92156a04d9f3ab9f45f28e2d704232b93f758760405161129991906123ba565b60405180910390a2505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6112d7611c28565b6112e16000611f0b565b565b60036020528060005260406000206000915090505481565b611303611e3b565b8060016000600280549050905060005b8181101561147d5760006002828154811061133157611330612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006113ac83611d08565b905085156113f7576c0c9f2c9cd04674edea4000000087826113ce91906128ff565b6113d89190612970565b8260000160008282546113eb9190612a70565b9250508190555061146f565b60006c0c9f2c9cd04674edea40000000888361141391906128ff565b61141d9190612970565b836001015461142c9190612a70565b905080836000015410611463578083600001600082825461144d91906129a1565b925050819055506000836001018190555061146d565b8083600101819055505b505b836001019350505050611313565b5081156114a25782600660008282546114969190612a70565b925050819055506114bc565b82600660008282546114b491906129a1565b925050819055505b600084116114ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f690612b27565b60405180910390fd5b6000600280549050905060005b8181101561167b5760006002828154811061152a57611529612824565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061156282611d08565b90506000600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905089826116349190612a70565b8282600001548561164591906129a1565b61164f91906128ff565b6116599190612970565b8361166491906129a1565b81600001819055508460010194505050505061150c565b5084600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116cb9190612a70565b9250508190555042600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506117633330877f0000000000000000000000009bfeb5cd9a81011fde1ba193a1ca0cb893af0e5073ffffffffffffffffffffffffffffffffffffffff16611fcf909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d866040516117a991906123ba565b60405180910390a25050505050565b6060600280548060200260200160405190810160405280929190818152602001828054801561183c57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116117f2575b5050505050905090565b7f0000000000000000000000009bfeb5cd9a81011fde1ba193a1ca0cb893af0e5081565b7f00000000000000000000000000000000000000000000000000000000655201b081565b7f000000000000000000000000000000000000000000000000000000000000a8c081565b6118ba611c28565b6118c2612058565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118f5611c28565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008061194584611d08565b90506000600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820154815260200160018201548152505090506c0c9f2c9cd04674edea40000000816000015183611a0491906129a1565b600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a4e91906128ff565b611a589190612970565b8160200151611a679190612a70565b9250505092915050565b60028181548110611a8157600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60056020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154905086565b6000807f000000000000000000000000000000000000000000000000000000000000a8c07f00000000000000000000000000000000000000000000000000000000655201b042611b3c91906129a1565b611b469190612970565b9050807f000000000000000000000000000000000000000000000000000000000000a8c0611b7491906128ff565b7f00000000000000000000000000000000000000000000000000000000655201b0611b9f9190612a70565b91505090565b611bad611c28565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1390612c25565b60405180910390fd5b611c2581611f0b565b50565b611c306120bb565b73ffffffffffffffffffffffffffffffffffffffff16611c4e6118c4565b73ffffffffffffffffffffffffffffffffffffffff1614611ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9b90612c91565b60405180910390fd5b565b611cae6120c3565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611cf16120bb565b604051611cfe91906126eb565b60405180910390a1565b600080600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505090506000816060015142611da591906129a1565b90508160800151811015611dbe57600092505050611e36565b816080015181611dce91906129a1565b90506006548260200151620151808460400151611deb9190612970565b83611df691906128ff565b8460000151611e059190612a70565b611e0f91906129a1565b6c0c9f2c9cd04674edea40000000611e2791906128ff565b611e319190612970565b925050505b919050565b611e43610dd9565b15611e83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7a90612cfd565b60405180910390fd5b565b611f068363a9059cbb60e01b8484604051602401611ea4929190612d1d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061210c565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612052846323b872dd60e01b858585604051602401611ff093929190612d46565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061210c565b50505050565b612060611e3b565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120a46120bb565b6040516120b191906126eb565b60405180910390a1565b600033905090565b6120cb610dd9565b61210a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210190612dc9565b60405180910390fd5b565b600061216e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166121d49092919063ffffffff16565b905060008151148061219057508080602001905181019061218f9190612e15565b5b6121cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c690612eb4565b60405180910390fd5b505050565b60606121e384846000856121ec565b90509392505050565b606082471015612231576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222890612f46565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161225a9190612fd7565b60006040518083038185875af1925050503d8060008114612297576040519150601f19603f3d011682016040523d82523d6000602084013e61229c565b606091505b50915091506122ad878383876122b9565b92505050949350505050565b6060831561231b576000835103612313576122d38561232e565b612312576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123099061303a565b60405180910390fd5b5b829050612326565b6123258383612351565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156123645781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239891906130af565b60405180910390fd5b6000819050919050565b6123b4816123a1565b82525050565b60006020820190506123cf60008301846123ab565b92915050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612405826123da565b9050919050565b612415816123fa565b811461242057600080fd5b50565b6000813590506124328161240c565b92915050565b612441816123a1565b811461244c57600080fd5b50565b60008135905061245e81612438565b92915050565b6000806040838503121561247b5761247a6123d5565b5b600061248985828601612423565b925050602061249a8582860161244f565b9150509250929050565b6000602082840312156124ba576124b96123d5565b5b60006124c884828501612423565b91505092915050565b60008115159050919050565b6124e6816124d1565b82525050565b600060208201905061250160008301846124dd565b92915050565b60006020828403121561251d5761251c6123d5565b5b600061252b8482850161244f565b91505092915050565b6000819050919050565b600061255961255461254f846123da565b612534565b6123da565b9050919050565b600061256b8261253e565b9050919050565b600061257d82612560565b9050919050565b61258d81612572565b82525050565b60006020820190506125a86000830184612584565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6125e3816123fa565b82525050565b60006125f583836125da565b60208301905092915050565b6000602082019050919050565b6000612619826125ae565b61262381856125b9565b935061262e836125ca565b8060005b8381101561265f57815161264688826125e9565b975061265183612601565b925050600181019050612632565b5085935050505092915050565b60006020820190508181036000830152612686818461260e565b905092915050565b60006126998261253e565b9050919050565b60006126ab8261268e565b9050919050565b6126bb816126a0565b82525050565b60006020820190506126d660008301846126b2565b92915050565b6126e5816123fa565b82525050565b600060208201905061270060008301846126dc565b92915050565b6000612711826123da565b9050919050565b600061272382612706565b9050919050565b61273381612718565b811461273e57600080fd5b50565b6000813590506127508161272a565b92915050565b60006020828403121561276c5761276b6123d5565b5b600061277a84828501612741565b91505092915050565b6000806040838503121561279a576127996123d5565b5b60006127a885828601612423565b92505060206127b985828601612423565b9150509250929050565b600060c0820190506127d860008301896123ab565b6127e560208301886123ab565b6127f260408301876123ab565b6127ff60608301866123ab565b61280c60808301856123ab565b61281960a08301846123ab565b979650505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082825260208201905092915050565b7f417373657420616c726561647920657869737473000000000000000000000000600082015250565b600061289a601483612853565b91506128a582612864565b602082019050919050565b600060208201905081810360008301526128c98161288d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061290a826123a1565b9150612915836123a1565b9250828202612923816123a1565b9150828204841483151761293a576129396128d0565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061297b826123a1565b9150612986836123a1565b92508261299657612995612941565b5b828204905092915050565b60006129ac826123a1565b91506129b7836123a1565b92508282039050818111156129cf576129ce6128d0565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f436c61696d2069736e277420617661696c61626c652079657400000000000000600082015250565b6000612a3a601983612853565b9150612a4582612a04565b602082019050919050565b60006020820190508181036000830152612a6981612a2d565b9050919050565b6000612a7b826123a1565b9150612a86836123a1565b9250828201905080821115612a9e57612a9d6128d0565b5b92915050565b6000606082019050612ab960008301866126dc565b612ac660208301856123ab565b612ad360408301846126dc565b949350505050565b7f416d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b6000612b11601d83612853565b9150612b1c82612adb565b602082019050919050565b60006020820190508181036000830152612b4081612b04565b9050919050565b7f496e76616c69642062616c616e63650000000000000000000000000000000000600082015250565b6000612b7d600f83612853565b9150612b8882612b47565b602082019050919050565b60006020820190508181036000830152612bac81612b70565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612c0f602683612853565b9150612c1a82612bb3565b604082019050919050565b60006020820190508181036000830152612c3e81612c02565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612c7b602083612853565b9150612c8682612c45565b602082019050919050565b60006020820190508181036000830152612caa81612c6e565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612ce7601083612853565b9150612cf282612cb1565b602082019050919050565b60006020820190508181036000830152612d1681612cda565b9050919050565b6000604082019050612d3260008301856126dc565b612d3f60208301846123ab565b9392505050565b6000606082019050612d5b60008301866126dc565b612d6860208301856126dc565b612d7560408301846123ab565b949350505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000612db3601483612853565b9150612dbe82612d7d565b602082019050919050565b60006020820190508181036000830152612de281612da6565b9050919050565b612df2816124d1565b8114612dfd57600080fd5b50565b600081519050612e0f81612de9565b92915050565b600060208284031215612e2b57612e2a6123d5565b5b6000612e3984828501612e00565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612e9e602a83612853565b9150612ea982612e42565b604082019050919050565b60006020820190508181036000830152612ecd81612e91565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612f30602683612853565b9150612f3b82612ed4565b604082019050919050565b60006020820190508181036000830152612f5f81612f23565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015612f9a578082015181840152602081019050612f7f565b60008484015250505050565b6000612fb182612f66565b612fbb8185612f71565b9350612fcb818560208601612f7c565b80840191505092915050565b6000612fe38284612fa6565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613024601d83612853565b915061302f82612fee565b602082019050919050565b6000602082019050818103600083015261305381613017565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006130818261305a565b61308b8185612853565b935061309b818560208601612f7c565b6130a481613065565b840191505092915050565b600060208201905081810360008301526130c98184613076565b90509291505056fea264697066735822122048dbadea0657c45f63f186fca60d73c3b6c407d36c4505388cd25fec4731e05864736f6c63430008120033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000009bfeb5cd9a81011fde1ba193a1ca0cb893af0e50000000000000000000000000457b27257a3f7440c978df8185d8d007cb59502100000000000000000000000000000000000000000000000000000000655201b0000000000000000000000000000000000000000000000000000000000000a8c0000000000000000000000000000000000000000000000000000000000003f48000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000020000000000000000000000004eeaa1fd27c50c64e77272bcdde68c28f0a3c3d70000000000000000000000009bfeb5cd9a81011fde1ba193a1ca0cb893af0e500000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000004563918244f400000000000000000000000000000000000000000000000000009c2007651b2500000

-----Decoded View---------------
Arg [0] : _stakingAsset (address): 0x9BFEB5cd9A81011FdE1BA193a1CA0CB893Af0e50
Arg [1] : _treasury (address): 0x457b27257a3f7440C978df8185d8D007cB595021
Arg [2] : _startTime (uint256): 1699873200
Arg [3] : _claimPeriod (uint256): 43200
Arg [4] : _lockedPeriod (uint256): 259200
Arg [5] : _assets (address[]): 0x4EEaa1fd27c50C64E77272BCdDe68c28F0A3c3D7,0x9BFEB5cd9A81011FdE1BA193a1CA0CB893Af0e50
Arg [6] : _tokensPerDay (uint256[]): 80000000000000000000,180000000000000000000

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000009bfeb5cd9a81011fde1ba193a1ca0cb893af0e50
Arg [1] : 000000000000000000000000457b27257a3f7440c978df8185d8d007cb595021
Arg [2] : 00000000000000000000000000000000000000000000000000000000655201b0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000a8c0
Arg [4] : 000000000000000000000000000000000000000000000000000000000003f480
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [8] : 0000000000000000000000004eeaa1fd27c50c64e77272bcdde68c28f0a3c3d7
Arg [9] : 0000000000000000000000009bfeb5cd9a81011fde1ba193a1ca0cb893af0e50
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [11] : 000000000000000000000000000000000000000000000004563918244f400000
Arg [12] : 000000000000000000000000000000000000000000000009c2007651b2500000


Block Transaction Gas Used Reward
view all blocks collator

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.