ETH Price: $3,345.38 (-1.02%)

Contract

0x48309699c488ad207Dd9d228bBb013cF848a6e50
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exit206775232024-09-04 13:29:11114 days ago1725456551IN
0x48309699...F848a6e50
0 ETH0.000384034.08655218
Exit196824272024-04-18 12:45:23253 days ago1713444323IN
0x48309699...F848a6e50
0 ETH0.0015173515.394025
Add Reward195522422024-03-31 6:57:23271 days ago1711868243IN
0x48309699...F848a6e50
0 ETH0.0013449622.68749452
Stake195112982024-03-25 11:48:47277 days ago1711367327IN
0x48309699...F848a6e50
0 ETH0.0018517116.80014544
Stake194900502024-03-22 12:05:23280 days ago1711109123IN
0x48309699...F848a6e50
0 ETH0.0030920626.88771947
Exit194900442024-03-22 12:04:11280 days ago1711109051IN
0x48309699...F848a6e50
0 ETH0.0019996229.00865208
Add Reward194813982024-03-21 6:56:59281 days ago1711004219IN
0x48309699...F848a6e50
0 ETH0.0015553124.9953596
Add Reward194102182024-03-11 6:59:23291 days ago1710140363IN
0x48309699...F848a6e50
0 ETH0.002750244.19843262
Add Reward193386882024-03-01 6:59:23301 days ago1709276363IN
0x48309699...F848a6e50
0 ETH0.0024670841.61602673
Reinvest192988152024-02-24 17:04:35307 days ago1708794275IN
0x48309699...F848a6e50
0 ETH0.0029610543.20691256
Add Reward192743942024-02-21 6:56:23310 days ago1708498583IN
0x48309699...F848a6e50
0 ETH0.0018540831.27568146
Unstake189960802024-01-13 6:07:23349 days ago1705126043IN
0x48309699...F848a6e50
0 ETH0.0021114625.73988936
Reinvest189960752024-01-13 6:06:23349 days ago1705125983IN
0x48309699...F848a6e50
0 ETH0.0012008821.74657622
Stake189960682024-01-13 6:04:59349 days ago1705125899IN
0x48309699...F848a6e50
0 ETH0.001933621.63981808
Unstake189400122024-01-05 8:52:23357 days ago1704444743IN
0x48309699...F848a6e50
0 ETH0.0023183822.14162062
Reinvest184391032023-10-27 4:16:59428 days ago1698380219IN
0x48309699...F848a6e50
0 ETH0.0015148123.69190593
Stake182080402023-09-24 20:28:23460 days ago1695587303IN
0x48309699...F848a6e50
0 ETH0.0010349310.88705363
Reinvest181903472023-09-22 8:58:23462 days ago1695373103IN
0x48309699...F848a6e50
0 ETH0.000593548.6608271
Add Reward180329162023-08-31 6:58:59484 days ago1693465139IN
0x48309699...F848a6e50
0 ETH0.000930414.95246202
Reinvest178129482023-07-31 12:19:47515 days ago1690805987IN
0x48309699...F848a6e50
0 ETH0.0012992219.03207629
Add Reward178113572023-07-31 6:59:59515 days ago1690786799IN
0x48309699...F848a6e50
0 ETH0.0008638714.57232713
Reinvest177768402023-07-26 11:05:11520 days ago1690369511IN
0x48309699...F848a6e50
0 ETH0.0015583624.37312504
Reinvest177768392023-07-26 11:04:59520 days ago1690369499IN
0x48309699...F848a6e50
0 ETH0.0022477635.25139257
Add Reward177398832023-07-21 6:58:59525 days ago1689922739IN
0x48309699...F848a6e50
0 ETH0.0014887925.1137101
Unstake177056592023-07-16 11:49:59530 days ago1689508199IN
0x48309699...F848a6e50
0 ETH0.0012422615.14388048
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MirrorStaking

Compiler Version
v0.5.4+commit.9549d8ff

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-10-24
*/

// File: @openzeppelin/[email protected]/GSN/Context.sol

pragma solidity ^0.5.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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/[email protected]/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * 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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: @openzeppelin/[email protected]/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

// File: @openzeppelin/[email protected]/math/SafeMath.sol

pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: contracts/Staking.sol

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




contract Staking is Ownable {
    using SafeMath for uint256;

    IERC20 public rewardToken;
    IERC20 public stakingToken;

    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 public rewardPerSecond;
    uint256 public distributionFinish;
    uint256 public rewardsDuration;

    mapping(address => uint256) public rewards;
    mapping(address => uint256) public balances;
    mapping(address => uint256) public userRewardPerTokenPaid;

    uint256 public totalBalance;

    event RewardAdded(uint256 amount);
    event RewardsDurationUpdated(uint256 duration);
    event Stake(address indexed user, uint256 amount);
    event Unstake(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 amount);

    constructor(
        address _stakingToken,
        address _rewardToken,
        uint256 _rewardsDuration
    ) public {
        stakingToken = IERC20(_stakingToken);
        rewardToken = IERC20(_rewardToken);
        setRewardsDuration(_rewardsDuration);
    }

    function stake(uint256 amount) external updateReward(msg.sender) {
        address user = msg.sender;

        _stake(user, amount);
        stakingToken.transferFrom(user, address(this), amount);
    }

    function unstake(uint256 amount) external updateReward(msg.sender) {
        address user = msg.sender;

        _unstake(user, amount);
        stakingToken.transfer(user, amount);
    }

    function getReward() external updateReward(msg.sender) {
        address user = msg.sender;

        uint256 reward = _getReward(user);
        rewardToken.transfer(user, reward);
    }

    function reinvest() external updateReward(msg.sender) {
        require(stakingToken == rewardToken, "Reinvest unavailable");
        address user = msg.sender;

        uint256 reward = _getReward(user);
        _stake(user, reward);
    }

    function exit() external updateReward(msg.sender) {
        address user = msg.sender;

        uint256 userBalance = balances[user];
        _unstake(user, userBalance);
        stakingToken.transfer(user, userBalance);

        uint256 reward = _getReward(user);
        rewardToken.transfer(user, reward);
    }

    function addReward(uint256 amount) external onlyOwner updateReward(address(0)) {
        if (block.timestamp >= distributionFinish) {
            rewardPerSecond = amount.div(rewardsDuration);
        } else {
            uint256 remaining = distributionFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardPerSecond);
            rewardPerSecond = leftover.add(amount).div(rewardsDuration);
        }

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint256 balance;
        if (rewardToken == stakingToken) {
            balance = rewardToken.balanceOf(address(this)).sub(totalBalance);
        } else {
            balance = rewardToken.balanceOf(address(this));
        }

        require(rewardPerSecond <= balance.div(rewardsDuration), "Provided reward too high");

        lastUpdateTime = block.timestamp;
        distributionFinish = block.timestamp.add(rewardsDuration);

        emit RewardAdded(amount);
    }

    function setRewardsDuration(uint256 _rewardsDuration) public onlyOwner {
        require(block.timestamp > distributionFinish, "Previous distribution period NOT finished");
        require(_rewardsDuration > 0, "Invalid duration");
        rewardsDuration = _rewardsDuration;

        emit RewardsDurationUpdated(_rewardsDuration);
    }

    function lastTimeDistributionActive() public view returns (uint256) {
        return block.timestamp < distributionFinish ? block.timestamp : distributionFinish;
    }

    /**
     * In case all stakers are gone, reward per token is 0
     * Otherwise we add:
     * last (can be current) period of distribution * reward per second -> reward generated in the last between updates period
     * divided by total staked balance
     * to the current value of reward per token stored
     */
    function rewardPerToken() public view returns (uint256) {
        if (totalBalance == 0) {
            return rewardPerTokenStored;
        }

        return
            rewardPerTokenStored.add(
                lastTimeDistributionActive().sub(lastUpdateTime).mul(rewardPerSecond).mul(1e18).div(totalBalance)
            );
    }

    /**
     * User stake balance is multiplied by
     * reward per token minus the paid reward per token.
     * Total reward is added to the value described above.
     *
     * This way we can calculate the reward earned by the user from his wast interaction until now.
     */
    function earned(address user) public view returns (uint256) {
        return balances[user].mul(rewardPerToken().sub(userRewardPerTokenPaid[user])).div(1e18).add(rewards[user]);
    }

    function _stake(address user, uint256 amount) private {
        require(amount > 0, "Amount smaller than one");

        totalBalance = totalBalance.add(amount);
        balances[user] = balances[user].add(amount);

        emit Stake(user, amount);
    }

    function _unstake(address user, uint256 amount) private {
        require(amount > 0, "Amount smaller than one");

        totalBalance = totalBalance.sub(amount);
        balances[user] = balances[user].sub(amount);

        emit Unstake(user, amount);
    }

    function _getReward(address user) private returns (uint256) {
        uint256 reward = rewards[user];
        require(reward > 0, "No reward");

        rewards[user] = 0;

        emit RewardPaid(user, reward);

        return reward;
    }

    modifier updateReward(address user) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeDistributionActive();
        if (user != address(0)) {
            rewards[user] = earned(user);
            userRewardPerTokenPaid[user] = rewardPerTokenStored;
        }
        _;
    }
}

// File: contracts/MirrorStaking.sol

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


contract MirrorStaking is Staking {
    address public rewardsDistributor;

    constructor(
        address _stakingToken,
        address _rewardToken,
        uint256 _rewardsDuration,
        address _rewardsDistributor
    ) public Staking(_stakingToken, _rewardToken, _rewardsDuration) {
        rewardsDistributor = _rewardsDistributor;
    }

    function addReward(uint256 amount) external onlyDistributor updateReward(address(0)) {
        if (block.timestamp >= distributionFinish) {
            rewardPerSecond = amount.div(rewardsDuration);
        } else {
            uint256 remaining = distributionFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardPerSecond);
            rewardPerSecond = leftover.add(amount).div(rewardsDuration);
        }

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint256 balance;
        if (rewardToken == stakingToken) {
            balance = rewardToken.balanceOf(address(this)).sub(totalBalance);
        } else {
            balance = rewardToken.balanceOf(address(this));
        }

        require(rewardPerSecond <= balance.div(rewardsDuration), "Provided reward too high");

        lastUpdateTime = block.timestamp;
        distributionFinish = block.timestamp.add(rewardsDuration);

        emit RewardAdded(amount);
    }

    function setRewardsDistributor(address _rewardsDistributor) external onlyOwner {
        rewardsDistributor = _rewardsDistributor;
    }

    modifier onlyDistributor() {
        require(msg.sender == rewardsDistributor, "Not distributor");
        _;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"user","type":"address"}],"name":"earned","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"rewards","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"unstake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardsDuration","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardsDistributor","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"distributionFinish","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"addReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerSecond","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_rewardsDistributor","type":"address"}],"name":"setRewardsDistributor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeDistributionActive","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"reinvest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_stakingToken","type":"address"},{"name":"_rewardToken","type":"address"},{"name":"_rewardsDuration","type":"uint256"},{"name":"_rewardsDistributor","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"duration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Unstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

60806040523480156200001157600080fd5b5060405160808062002ce1833981018060405260808110156200003357600080fd5b810190808051906020019092919080519060200190929190805190602001909291908051906020019092919050505083838360006200008062000208640100000000026401000000009004565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35082600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001ba8162000210640100000000026401000000009004565b50505080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505062000425565b600033905090565b62000229620003b6640100000000026401000000009004565b15156200029e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60065442111515620002fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018062002cb86029913960400191505060405180910390fd5b60008111151562000375576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f496e76616c6964206475726174696f6e0000000000000000000000000000000081525060200191505060405180910390fd5b806007819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3816040518082815260200191505060405180910390a150565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166200040962000208640100000000026401000000009004565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b61288380620004356000396000f3fe608060405234801561001057600080fd5b50600436106101c5576000357c0100000000000000000000000000000000000000000000000000000000900480638f10369a11610116578063d1f5c33b116100b4578063eef552cc1161008e578063eef552cc14610616578063f2fde38b14610634578063f7c618c114610678578063fdb5a03e146106c2576101c5565b8063d1f5c33b146105aa578063df136d65146105ee578063e9fad8ee1461060c576101c5565b8063ad7a672f116100f0578063ad7a672f14610522578063c8f33c9114610540578063cc1a378f1461055e578063cd3daf9d1461058c576101c5565b80638f10369a146104b45780638f32d59b146104d2578063a694fc3a146104f4576101c5565b80633f2a55401161018357806372f702f31161015d57806372f702f31461039a57806374de4ec4146103e45780638b876347146104125780638da5cb5b1461046a576101c5565b80633f2a5540146103285780635f92de3f14610372578063715018a614610390576101c5565b80628cc262146101ca5780630700037d1461022257806327e235e31461027a5780632e17de78146102d2578063386a9525146103005780633d18b9121461031e575b600080fd5b61020c600480360360208110156101e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506106cc565b6040518082815260200191505060405180910390f35b6102646004803603602081101561023857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107ea565b6040518082815260200191505060405180910390f35b6102bc6004803603602081101561029057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610802565b6040518082815260200191505060405180910390f35b6102fe600480360360208110156102e857600080fd5b810190808035906020019092919050505061081a565b005b610308610a15565b6040518082815260200191505060405180910390f35b610326610a1b565b005b610330610c19565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61037a610c3f565b6040518082815260200191505060405180910390f35b610398610c45565b005b6103a2610d80565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610410600480360360208110156103fa57600080fd5b8101908080359060200190929190505050610da6565b005b6104546004803603602081101561042857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061134f565b6040518082815260200191505060405180910390f35b610472611367565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104bc611390565b6040518082815260200191505060405180910390f35b6104da611396565b604051808215151515815260200191505060405180910390f35b6105206004803603602081101561050a57600080fd5b81019080803590602001909291905050506113f4565b005b61052a611623565b6040518082815260200191505060405180910390f35b610548611629565b6040518082815260200191505060405180910390f35b61058a6004803603602081101561057457600080fd5b810190808035906020019092919050505061162f565b005b6105946117c0565b6040518082815260200191505060405180910390f35b6105ec600480360360208110156105c057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061184e565b005b6105f661190e565b6040518082815260200191505060405180910390f35b610614611914565b005b61061e611c62565b6040518082815260200191505060405180910390f35b6106766004803603602081101561064a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611c7c565b005b610680611d04565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106ca611d2a565b005b60006107e3600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546107d5670de0b6b3a76400006107c7610779600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461076b6117c0565b611f1890919063ffffffff16565b600960008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f6290919063ffffffff16565b611fec90919063ffffffff16565b61203690919063ffffffff16565b9050919050565b60086020528060005260406000206000915090505481565b60096020528060005260406000206000915090505481565b336108236117c0565b600481905550610831611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151561090057610876816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600033905061090f81846120c0565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82856040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156109d457600080fd5b505af11580156109e8573d6000803e3d6000fd5b505050506040513d60208110156109fe57600080fd5b810190808051906020019092919050505050505050565b60075481565b33610a246117c0565b600481905550610a32611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515610b0157610a77816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60003390506000610b118261223a565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610bd857600080fd5b505af1158015610bec573d6000803e3d6000fd5b505050506040513d6020811015610c0257600080fd5b810190808051906020019092919050505050505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b610c4d611396565b1515610cc1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e6b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f74206469737472696275746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000610e756117c0565b600481905550610e83611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515610f5257610ec8816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60065442101515610f7d57610f7260075483611fec90919063ffffffff16565b600581905550610fdf565b6000610f9442600654611f1890919063ffffffff16565b90506000610fad60055483611f6290919063ffffffff16565b9050610fd6600754610fc8868461203690919063ffffffff16565b611fec90919063ffffffff16565b60058190555050505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561116a57611163600b54600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561111a57600080fd5b505afa15801561112e573d6000803e3d6000fd5b505050506040513d602081101561114457600080fd5b8101908080519060200190929190505050611f1890919063ffffffff16565b9050611263565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561122557600080fd5b505afa158015611239573d6000803e3d6000fd5b505050506040513d602081101561124f57600080fd5b810190808051906020019092919050505090505b61127860075482611fec90919063ffffffff16565b600554111515156112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f50726f76696465642072657761726420746f6f2068696768000000000000000081525060200191505060405180910390fd5b4260038190555061130d6007544261203690919063ffffffff16565b6006819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d836040518082815260200191505060405180910390a1505050565b600a6020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60055481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166113d8612393565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b336113fd6117c0565b60048190555061140b611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415156114da57611450816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60003390506114e9818461239b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8230866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156115e257600080fd5b505af11580156115f6573d6000803e3d6000fd5b505050506040513d602081101561160c57600080fd5b810190808051906020019092919050505050505050565b600b5481565b60035481565b611637611396565b15156116ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60065442111515611707576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061280e6029913960400191505060405180910390fd5b60008111151561177f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f496e76616c6964206475726174696f6e0000000000000000000000000000000081525060200191505060405180910390fd5b806007819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3816040518082815260200191505060405180910390a150565b600080600b5414156117d657600454905061184b565b611848611837600b54611829670de0b6b3a764000061181b60055461180d6003546117ff611c62565b611f1890919063ffffffff16565b611f6290919063ffffffff16565b611f6290919063ffffffff16565b611fec90919063ffffffff16565b60045461203690919063ffffffff16565b90505b90565b611856611396565b15156118ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60045481565b3361191d6117c0565b60048190555061192b611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415156119fa57611970816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60003390506000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050611a4d82826120c0565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611b1257600080fd5b505af1158015611b26573d6000803e3d6000fd5b505050506040513d6020811015611b3c57600080fd5b8101908080519060200190929190505050506000611b598361223a565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611c2057600080fd5b505af1158015611c34573d6000803e3d6000fd5b505050506040513d6020811015611c4a57600080fd5b81019080805190602001909291905050505050505050565b60006006544210611c7557600654611c77565b425b905090565b611c84611396565b1515611cf8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b611d0181612515565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b33611d336117c0565b600481905550611d41611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515611e1057611d86816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611ef7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5265696e7665737420756e617661696c61626c6500000000000000000000000081525060200191505060405180910390fd5b60003390506000611f078261223a565b9050611f13828261239b565b505050565b6000611f5a83836040805190810160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061265b565b905092915050565b600080831415611f755760009050611fe6565b60008284029050828482811515611f8857fe5b04141515611fe1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806128376021913960400191505060405180910390fd5b809150505b92915050565b600061202e83836040805190810160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061271d565b905092915050565b60008082840190508381101515156120b6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600081111515612138576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f416d6f756e7420736d616c6c6572207468616e206f6e6500000000000000000081525060200191505060405180910390fd5b61214d81600b54611f1890919063ffffffff16565b600b819055506121a581600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f1890919063ffffffff16565b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff167f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd826040518082815260200191505060405180910390a25050565b600080600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115156122f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f4e6f20726577617264000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a280915050919050565b600033905090565b600081111515612413576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f416d6f756e7420736d616c6c6572207468616e206f6e6500000000000000000081525060200191505060405180910390fd5b61242881600b5461203690919063ffffffff16565b600b8190555061248081600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461203690919063ffffffff16565b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a826040518082815260200191505060405180910390a25050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561259d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806127e86026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000838311158290151561270a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156126cf5780820151818401526020810190506126b4565b50505050905090810190601f1680156126fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000808311829015156127cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612790578082015181840152602081019050612775565b50505050905090810190601f1680156127bd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858115156127d957fe5b04905080915050939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737350726576696f757320646973747269627574696f6e20706572696f64204e4f542066696e6973686564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a165627a7a7230582072771c773a5d60ef640f60f28dc8ff1b7f51f32d00b1881c7b8e745b8737578b002950726576696f757320646973747269627574696f6e20706572696f64204e4f542066696e69736865640000000000000000000000007051faed0775f664a0286af4f75ef5ed74e027540000000000000000000000007051faed0775f664a0286af4f75ef5ed74e0275400000000000000000000000000000000000000000000000000000000000151800000000000000000000000009273b9dc4f1f03765c28e73a4da70c718c7df2e3

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c5576000357c0100000000000000000000000000000000000000000000000000000000900480638f10369a11610116578063d1f5c33b116100b4578063eef552cc1161008e578063eef552cc14610616578063f2fde38b14610634578063f7c618c114610678578063fdb5a03e146106c2576101c5565b8063d1f5c33b146105aa578063df136d65146105ee578063e9fad8ee1461060c576101c5565b8063ad7a672f116100f0578063ad7a672f14610522578063c8f33c9114610540578063cc1a378f1461055e578063cd3daf9d1461058c576101c5565b80638f10369a146104b45780638f32d59b146104d2578063a694fc3a146104f4576101c5565b80633f2a55401161018357806372f702f31161015d57806372f702f31461039a57806374de4ec4146103e45780638b876347146104125780638da5cb5b1461046a576101c5565b80633f2a5540146103285780635f92de3f14610372578063715018a614610390576101c5565b80628cc262146101ca5780630700037d1461022257806327e235e31461027a5780632e17de78146102d2578063386a9525146103005780633d18b9121461031e575b600080fd5b61020c600480360360208110156101e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506106cc565b6040518082815260200191505060405180910390f35b6102646004803603602081101561023857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107ea565b6040518082815260200191505060405180910390f35b6102bc6004803603602081101561029057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610802565b6040518082815260200191505060405180910390f35b6102fe600480360360208110156102e857600080fd5b810190808035906020019092919050505061081a565b005b610308610a15565b6040518082815260200191505060405180910390f35b610326610a1b565b005b610330610c19565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61037a610c3f565b6040518082815260200191505060405180910390f35b610398610c45565b005b6103a2610d80565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610410600480360360208110156103fa57600080fd5b8101908080359060200190929190505050610da6565b005b6104546004803603602081101561042857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061134f565b6040518082815260200191505060405180910390f35b610472611367565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104bc611390565b6040518082815260200191505060405180910390f35b6104da611396565b604051808215151515815260200191505060405180910390f35b6105206004803603602081101561050a57600080fd5b81019080803590602001909291905050506113f4565b005b61052a611623565b6040518082815260200191505060405180910390f35b610548611629565b6040518082815260200191505060405180910390f35b61058a6004803603602081101561057457600080fd5b810190808035906020019092919050505061162f565b005b6105946117c0565b6040518082815260200191505060405180910390f35b6105ec600480360360208110156105c057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061184e565b005b6105f661190e565b6040518082815260200191505060405180910390f35b610614611914565b005b61061e611c62565b6040518082815260200191505060405180910390f35b6106766004803603602081101561064a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611c7c565b005b610680611d04565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106ca611d2a565b005b60006107e3600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546107d5670de0b6b3a76400006107c7610779600a60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461076b6117c0565b611f1890919063ffffffff16565b600960008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f6290919063ffffffff16565b611fec90919063ffffffff16565b61203690919063ffffffff16565b9050919050565b60086020528060005260406000206000915090505481565b60096020528060005260406000206000915090505481565b336108236117c0565b600481905550610831611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151561090057610876816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600033905061090f81846120c0565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82856040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156109d457600080fd5b505af11580156109e8573d6000803e3d6000fd5b505050506040513d60208110156109fe57600080fd5b810190808051906020019092919050505050505050565b60075481565b33610a246117c0565b600481905550610a32611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515610b0157610a77816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60003390506000610b118261223a565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610bd857600080fd5b505af1158015610bec573d6000803e3d6000fd5b505050506040513d6020811015610c0257600080fd5b810190808051906020019092919050505050505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b610c4d611396565b1515610cc1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e6b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f4e6f74206469737472696275746f72000000000000000000000000000000000081525060200191505060405180910390fd5b6000610e756117c0565b600481905550610e83611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515610f5257610ec8816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60065442101515610f7d57610f7260075483611fec90919063ffffffff16565b600581905550610fdf565b6000610f9442600654611f1890919063ffffffff16565b90506000610fad60055483611f6290919063ffffffff16565b9050610fd6600754610fc8868461203690919063ffffffff16565b611fec90919063ffffffff16565b60058190555050505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561116a57611163600b54600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561111a57600080fd5b505afa15801561112e573d6000803e3d6000fd5b505050506040513d602081101561114457600080fd5b8101908080519060200190929190505050611f1890919063ffffffff16565b9050611263565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561122557600080fd5b505afa158015611239573d6000803e3d6000fd5b505050506040513d602081101561124f57600080fd5b810190808051906020019092919050505090505b61127860075482611fec90919063ffffffff16565b600554111515156112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f50726f76696465642072657761726420746f6f2068696768000000000000000081525060200191505060405180910390fd5b4260038190555061130d6007544261203690919063ffffffff16565b6006819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d836040518082815260200191505060405180910390a1505050565b600a6020528060005260406000206000915090505481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60055481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166113d8612393565b73ffffffffffffffffffffffffffffffffffffffff1614905090565b336113fd6117c0565b60048190555061140b611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415156114da57611450816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60003390506114e9818461239b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8230866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156115e257600080fd5b505af11580156115f6573d6000803e3d6000fd5b505050506040513d602081101561160c57600080fd5b810190808051906020019092919050505050505050565b600b5481565b60035481565b611637611396565b15156116ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60065442111515611707576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061280e6029913960400191505060405180910390fd5b60008111151561177f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f496e76616c6964206475726174696f6e0000000000000000000000000000000081525060200191505060405180910390fd5b806007819055507ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3816040518082815260200191505060405180910390a150565b600080600b5414156117d657600454905061184b565b611848611837600b54611829670de0b6b3a764000061181b60055461180d6003546117ff611c62565b611f1890919063ffffffff16565b611f6290919063ffffffff16565b611f6290919063ffffffff16565b611fec90919063ffffffff16565b60045461203690919063ffffffff16565b90505b90565b611856611396565b15156118ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60045481565b3361191d6117c0565b60048190555061192b611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415156119fa57611970816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60003390506000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050611a4d82826120c0565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611b1257600080fd5b505af1158015611b26573d6000803e3d6000fd5b505050506040513d6020811015611b3c57600080fd5b8101908080519060200190929190505050506000611b598361223a565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611c2057600080fd5b505af1158015611c34573d6000803e3d6000fd5b505050506040513d6020811015611c4a57600080fd5b81019080805190602001909291905050505050505050565b60006006544210611c7557600654611c77565b425b905090565b611c84611396565b1515611cf8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b611d0181612515565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b33611d336117c0565b600481905550611d41611c62565b600381905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515611e1057611d86816106cc565b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600454600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141515611ef7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5265696e7665737420756e617661696c61626c6500000000000000000000000081525060200191505060405180910390fd5b60003390506000611f078261223a565b9050611f13828261239b565b505050565b6000611f5a83836040805190810160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061265b565b905092915050565b600080831415611f755760009050611fe6565b60008284029050828482811515611f8857fe5b04141515611fe1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806128376021913960400191505060405180910390fd5b809150505b92915050565b600061202e83836040805190810160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061271d565b905092915050565b60008082840190508381101515156120b6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600081111515612138576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f416d6f756e7420736d616c6c6572207468616e206f6e6500000000000000000081525060200191505060405180910390fd5b61214d81600b54611f1890919063ffffffff16565b600b819055506121a581600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f1890919063ffffffff16565b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff167f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd826040518082815260200191505060405180910390a25050565b600080600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115156122f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260098152602001807f4e6f20726577617264000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a280915050919050565b600033905090565b600081111515612413576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f416d6f756e7420736d616c6c6572207468616e206f6e6500000000000000000081525060200191505060405180910390fd5b61242881600b5461203690919063ffffffff16565b600b8190555061248081600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461203690919063ffffffff16565b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a826040518082815260200191505060405180910390a25050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561259d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806127e86026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000838311158290151561270a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156126cf5780820151818401526020810190506126b4565b50505050905090810190601f1680156126fc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000808311829015156127cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612790578082015181840152602081019050612775565b50505050905090810190601f1680156127bd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858115156127d957fe5b04905080915050939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737350726576696f757320646973747269627574696f6e20706572696f64204e4f542066696e6973686564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a165627a7a7230582072771c773a5d60ef640f60f28dc8ff1b7f51f32d00b1881c7b8e745b8737578b0029

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

0000000000000000000000007051faed0775f664a0286af4f75ef5ed74e027540000000000000000000000007051faed0775f664a0286af4f75ef5ed74e0275400000000000000000000000000000000000000000000000000000000000151800000000000000000000000009273b9dc4f1f03765c28e73a4da70c718c7df2e3

-----Decoded View---------------
Arg [0] : _stakingToken (address): 0x7051faED0775f664a0286Af4F75ef5ed74e02754
Arg [1] : _rewardToken (address): 0x7051faED0775f664a0286Af4F75ef5ed74e02754
Arg [2] : _rewardsDuration (uint256): 86400
Arg [3] : _rewardsDistributor (address): 0x9273B9DC4F1f03765C28E73A4Da70C718c7DF2E3

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000007051faed0775f664a0286af4f75ef5ed74e02754
Arg [1] : 0000000000000000000000007051faed0775f664a0286af4f75ef5ed74e02754
Arg [2] : 0000000000000000000000000000000000000000000000000000000000015180
Arg [3] : 0000000000000000000000009273b9dc4f1f03765c28e73a4da70c718c7df2e3


Deployed Bytecode Sourcemap

18697:1926:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18697:1926:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17278:185;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;17278:185:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;12552:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;12552:42:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;12601:43;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;12601:43:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;13517:192;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13517:192:0;;;;;;;;;;;;;;;;;:::i;:::-;;12513:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;13717:190;;;:::i;:::-;;18738:33;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;12473;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2975:140;;;:::i;:::-;;12323:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;19064:1284;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19064:1284:0;;;;;;;;;;;;;;;;;:::i;:::-;;12651:57;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;12651:57:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2164:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;12436:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2530:94;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;13302:207;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13302:207:0;;;;;;;;;;;;;;;;;:::i;:::-;;12717:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;12358:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;15786:343;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;15786:343:0;;;;;;;;;;;;;;;;;:::i;:::-;;16642:339;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20356:138;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;20356:138:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;12394:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;14169:323;;;:::i;:::-;;16137:169;;;:::i;:::-;;;;;;;;;;;;;;;;;;;3270:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;3270:109:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;12291:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;13915:246;;;:::i;:::-;;17278:185;17329:7;17356:99;17441:7;:13;17449:4;17441:13;;;;;;;;;;;;;;;;17356:80;17431:4;17356:70;17375:50;17396:22;:28;17419:4;17396:28;;;;;;;;;;;;;;;;17375:16;:14;:16::i;:::-;:20;;:50;;;;:::i;:::-;17356:8;:14;17365:4;17356:14;;;;;;;;;;;;;;;;:18;;:70;;;;:::i;:::-;:74;;:80;;;;:::i;:::-;:84;;:99;;;;:::i;:::-;17349:106;;17278:185;;;:::o;12552:42::-;;;;;;;;;;;;;;;;;:::o;12601:43::-;;;;;;;;;;;;;;;;;:::o;13517:192::-;13572:10;18343:16;:14;:16::i;:::-;18320:20;:39;;;;18387:28;:26;:28::i;:::-;18370:14;:45;;;;18446:1;18430:18;;:4;:18;;;;18426:145;;;18481:12;18488:4;18481:6;:12::i;:::-;18465:7;:13;18473:4;18465:13;;;;;;;;;;;;;;;:28;;;;18539:20;;18508:22;:28;18531:4;18508:28;;;;;;;;;;;;;;;:51;;;;18426:145;13595:12;13610:10;13595:25;;13633:22;13642:4;13648:6;13633:8;:22::i;:::-;13666:12;;;;;;;;;;;:21;;;13688:4;13694:6;13666:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13666:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13666:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13666:35:0;;;;;;;;;;;;;;;;;18581:1;13517:192;;:::o;12513:30::-;;;;:::o;13717:190::-;13760:10;18343:16;:14;:16::i;:::-;18320:20;:39;;;;18387:28;:26;:28::i;:::-;18370:14;:45;;;;18446:1;18430:18;;:4;:18;;;;18426:145;;;18481:12;18488:4;18481:6;:12::i;:::-;18465:7;:13;18473:4;18465:13;;;;;;;;;;;;;;;:28;;;;18539:20;;18508:22;:28;18531:4;18508:28;;;;;;;;;;;;;;;:51;;;;18426:145;13783:12;13798:10;13783:25;;13821:14;13838:16;13849:4;13838:10;:16::i;:::-;13821:33;;13865:11;;;;;;;;;;;:20;;;13886:4;13892:6;13865:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13865:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13865:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13865:34:0;;;;;;;;;;;;;;;;;18581:1;;13717:190;:::o;18738:33::-;;;;;;;;;;;;;:::o;12473:::-;;;;:::o;2975:140::-;2376:9;:7;:9::i;:::-;2368:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3074:1;3037:40;;3058:6;;;;;;;;;;;3037:40;;;;;;;;;;;;3105:1;3088:6;;:19;;;;;;;;;;;;;;;;;;2975:140::o;12323:26::-;;;;;;;;;;;;;:::o;19064:1284::-;20562:18;;;;;;;;;;;20548:32;;:10;:32;;;20540:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19145:1;18343:16;:14;:16::i;:::-;18320:20;:39;;;;18387:28;:26;:28::i;:::-;18370:14;:45;;;;18446:1;18430:18;;:4;:18;;;;18426:145;;;18481:12;18488:4;18481:6;:12::i;:::-;18465:7;:13;18473:4;18465:13;;;;;;;;;;;;;;;:28;;;;18539:20;;18508:22;:28;18531:4;18508:28;;;;;;;;;;;;;;;:51;;;;18426:145;19183:18;;19164:15;:37;;19160:345;;;19236:27;19247:15;;19236:6;:10;;:27;;;;:::i;:::-;19218:15;:45;;;;19160:345;;;19296:17;19316:39;19339:15;19316:18;;:22;;:39;;;;:::i;:::-;19296:59;;19370:16;19389:30;19403:15;;19389:9;:13;;:30;;;;:::i;:::-;19370:49;;19452:41;19477:15;;19452:20;19465:6;19452:8;:12;;:20;;;;:::i;:::-;:24;;:41;;;;:::i;:::-;19434:15;:59;;;;19160:345;;;19865:15;19910:12;;;;;;;;;;;19895:27;;:11;;;;;;;;;;;:27;;;19891:203;;;19949:54;19990:12;;19949:11;;;;;;;;;;;:21;;;19979:4;19949:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19949:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19949:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19949:36:0;;;;;;;;;;;;;;;;:40;;:54;;;;:::i;:::-;19939:64;;19891:203;;;20046:11;;;;;;;;;;;:21;;;20076:4;20046:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20046:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20046:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;20046:36:0;;;;;;;;;;;;;;;;20036:46;;19891:203;20133:28;20145:15;;20133:7;:11;;:28;;;;:::i;:::-;20114:15;;:47;;20106:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20220:15;20203:14;:32;;;;20267:36;20287:15;;20267;:19;;:36;;;;:::i;:::-;20246:18;:57;;;;20321:19;20333:6;20321:19;;;;;;;;;;;;;;;;;;18581:1;20611;19064:1284;:::o;12651:57::-;;;;;;;;;;;;;;;;;:::o;2164:79::-;2202:7;2229:6;;;;;;;;;;;2222:13;;2164:79;:::o;12436:30::-;;;;:::o;2530:94::-;2570:4;2610:6;;;;;;;;;;;2594:22;;:12;:10;:12::i;:::-;:22;;;2587:29;;2530:94;:::o;13302:207::-;13355:10;18343:16;:14;:16::i;:::-;18320:20;:39;;;;18387:28;:26;:28::i;:::-;18370:14;:45;;;;18446:1;18430:18;;:4;:18;;;;18426:145;;;18481:12;18488:4;18481:6;:12::i;:::-;18465:7;:13;18473:4;18465:13;;;;;;;;;;;;;;;:28;;;;18539:20;;18508:22;:28;18531:4;18508:28;;;;;;;;;;;;;;;:51;;;;18426:145;13378:12;13393:10;13378:25;;13416:20;13423:4;13429:6;13416;:20::i;:::-;13447:12;;;;;;;;;;;:25;;;13473:4;13487;13494:6;13447:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13447:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13447:54:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;13447:54:0;;;;;;;;;;;;;;;;;18581:1;13302:207;;:::o;12717:27::-;;;;:::o;12358:29::-;;;;:::o;15786:343::-;2376:9;:7;:9::i;:::-;2368:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15894:18;;15876:15;:36;15868:90;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15996:1;15977:16;:20;15969:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16047:16;16029:15;:34;;;;16081:40;16104:16;16081:40;;;;;;;;;;;;;;;;;;15786:343;:::o;16642:339::-;16689:7;16729:1;16713:12;;:17;16709:77;;;16754:20;;16747:27;;;;16709:77;16818:155;16861:97;16945:12;;16861:79;16935:4;16861:69;16914:15;;16861:48;16894:14;;16861:28;:26;:28::i;:::-;:32;;:48;;;;:::i;:::-;:52;;:69;;;;:::i;:::-;:73;;:79;;;;:::i;:::-;:83;;:97;;;;:::i;:::-;16818:20;;:24;;:155;;;;:::i;:::-;16798:175;;16642:339;;:::o;20356:138::-;2376:9;:7;:9::i;:::-;2368:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20467:19;20446:18;;:40;;;;;;;;;;;;;;;;;;20356:138;:::o;12394:35::-;;;;:::o;14169:323::-;14207:10;18343:16;:14;:16::i;:::-;18320:20;:39;;;;18387:28;:26;:28::i;:::-;18370:14;:45;;;;18446:1;18430:18;;:4;:18;;;;18426:145;;;18481:12;18488:4;18481:6;:12::i;:::-;18465:7;:13;18473:4;18465:13;;;;;;;;;;;;;;;:28;;;;18539:20;;18508:22;:28;18531:4;18508:28;;;;;;;;;;;;;;;:51;;;;18426:145;14230:12;14245:10;14230:25;;14268:19;14290:8;:14;14299:4;14290:14;;;;;;;;;;;;;;;;14268:36;;14315:27;14324:4;14330:11;14315:8;:27::i;:::-;14353:12;;;;;;;;;;;:21;;;14375:4;14381:11;14353:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14353:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14353:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14353:40:0;;;;;;;;;;;;;;;;;14406:14;14423:16;14434:4;14423:10;:16::i;:::-;14406:33;;14450:11;;;;;;;;;;;:20;;;14471:4;14477:6;14450:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14450:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14450:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14450:34:0;;;;;;;;;;;;;;;;;18581:1;;;14169:323;:::o;16137:169::-;16196:7;16241:18;;16223:15;:36;:75;;16280:18;;16223:75;;;16262:15;16223:75;16216:82;;16137:169;:::o;3270:109::-;2376:9;:7;:9::i;:::-;2368:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3343:28;3362:8;3343:18;:28::i;:::-;3270:109;:::o;12291:25::-;;;;;;;;;;;;;:::o;13915:246::-;13957:10;18343:16;:14;:16::i;:::-;18320:20;:39;;;;18387:28;:26;:28::i;:::-;18370:14;:45;;;;18446:1;18430:18;;:4;:18;;;;18426:145;;;18481:12;18488:4;18481:6;:12::i;:::-;18465:7;:13;18473:4;18465:13;;;;;;;;;;;;;;;:28;;;;18539:20;;18508:22;:28;18531:4;18508:28;;;;;;;;;;;;;;;:51;;;;18426:145;14004:11;;;;;;;;;;;13988:27;;:12;;;;;;;;;;;:27;;;13980:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14051:12;14066:10;14051:25;;14089:14;14106:16;14117:4;14106:10;:16::i;:::-;14089:33;;14133:20;14140:4;14146:6;14133;:20::i;:::-;18581:1;;13915:246;:::o;7982:136::-;8040:7;8067:43;8071:1;8074;8067:43;;;;;;;;;;;;;;;;;;:3;:43::i;:::-;8060:50;;7982:136;;;;:::o;8898:471::-;8956:7;9206:1;9201;:6;9197:47;;;9231:1;9224:8;;;;9197:47;9256:9;9272:1;9268;:5;9256:17;;9301:1;9296;9292;:5;;;;;;;;:10;9284:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9360:1;9353:8;;;8898:471;;;;;:::o;9837:132::-;9895:7;9922:39;9926:1;9929;9922:39;;;;;;;;;;;;;;;;;;:3;:39::i;:::-;9915:46;;9837:132;;;;:::o;7526:181::-;7584:7;7604:9;7620:1;7616;:5;7604:17;;7645:1;7640;:6;;7632:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7698:1;7691:8;;;7526:181;;;;:::o;17741:266::-;17825:1;17816:6;:10;17808:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17882:24;17899:6;17882:12;;:16;;:24;;;;:::i;:::-;17867:12;:39;;;;17934:26;17953:6;17934:8;:14;17943:4;17934:14;;;;;;;;;;;;;;;;:18;;:26;;;;:::i;:::-;17917:8;:14;17926:4;17917:14;;;;;;;;;;;;;;;:43;;;;17986:4;17978:21;;;17992:6;17978:21;;;;;;;;;;;;;;;;;;17741:266;;:::o;18015:250::-;18066:7;18086:14;18103:7;:13;18111:4;18103:13;;;;;;;;;;;;;;;;18086:30;;18144:1;18135:6;:10;18127:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18188:1;18172:7;:13;18180:4;18172:13;;;;;;;;;;;;;;;:17;;;;18218:4;18207:24;;;18224:6;18207:24;;;;;;;;;;;;;;;;;;18251:6;18244:13;;;18015:250;;;:::o;864:98::-;909:15;944:10;937:17;;864:98;:::o;17471:262::-;17553:1;17544:6;:10;17536:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17610:24;17627:6;17610:12;;:16;;:24;;;;:::i;:::-;17595:12;:39;;;;17662:26;17681:6;17662:8;:14;17671:4;17662:14;;;;;;;;;;;;;;;;:18;;:26;;;;:::i;:::-;17645:8;:14;17654:4;17645:14;;;;;;;;;;;;;;;:43;;;;17712:4;17706:19;;;17718:6;17706:19;;;;;;;;;;;;;;;;;;17471:262;;:::o;3485:229::-;3579:1;3559:22;;:8;:22;;;;3551:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3669:8;3640:38;;3661:6;;;;;;;;;;;3640:38;;;;;;;;;;;;3698:8;3689:6;;:17;;;;;;;;;;;;;;;;;;3485:229;:::o;8455:192::-;8541:7;8574:1;8569;:6;;8577:12;8561:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;8561:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8601:9;8617:1;8613;:5;8601:17;;8638:1;8631:8;;;8455:192;;;;;:::o;10499:345::-;10585:7;10684:1;10680;:5;10687:12;10672:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;10672:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10711:9;10727:1;10723;:5;;;;;;;;10711:17;;10835:1;10828:8;;;10499:345;;;;;:::o

Swarm Source

bzzr://72771c773a5d60ef640f60f28dc8ff1b7f51f32d00b1881c7b8e745b8737578b

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.