ETH Price: $3,261.67 (+0.05%)
Gas: 2 Gwei

Contract

0x8de4660bf04133360476A0D570f44900847b3c05
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw137571342021-12-07 6:56:02963 days ago1638860162IN
0x8de4660b...0847b3c05
0 ETH0.0102693884.31000383
Get Reward137571242021-12-07 6:53:38963 days ago1638860018IN
0x8de4660b...0847b3c05
0 ETH0.0060035578.84370713
Withdraw135630482021-11-06 12:48:10994 days ago1636202890IN
0x8de4660b...0847b3c05
0 ETH0.0114376582.35581724
Stake133274432021-09-30 13:50:351031 days ago1633009835IN
0x8de4660b...0847b3c05
0 ETH0.0118730958.47346566
Withdraw132422282021-09-17 8:46:411044 days ago1631868401IN
0x8de4660b...0847b3c05
0 ETH0.0068216953.54840958
Get Reward132352732021-09-16 6:57:151045 days ago1631775435IN
0x8de4660b...0847b3c05
0 ETH0.0027548839.11185481
Withdraw132348242021-09-16 5:18:041045 days ago1631769484IN
0x8de4660b...0847b3c05
0 ETH0.0084491458.47926954
Withdraw132101772021-09-12 9:40:241049 days ago1631439624IN
0x8de4660b...0847b3c05
0 ETH0.0059222848.62105691
Get Reward132101102021-09-12 9:24:101049 days ago1631438650IN
0x8de4660b...0847b3c05
0 ETH0.0044642860.9200489
Withdraw131639772021-09-05 5:56:541056 days ago1630821414IN
0x8de4660b...0847b3c05
0 ETH0.01616112132.69339
Get Reward131639732021-09-05 5:56:101056 days ago1630821370IN
0x8de4660b...0847b3c05
0 ETH0.00959427126
Withdraw131156012021-08-28 18:43:501063 days ago1630176230IN
0x8de4660b...0847b3c05
0 ETH0.0083770851.84835935
Get Reward131130702021-08-28 9:29:411064 days ago1630142981IN
0x8de4660b...0847b3c05
0 ETH0.0031236844.34791375
Withdraw131129812021-08-28 9:11:521064 days ago1630141912IN
0x8de4660b...0847b3c05
0 ETH0.007598752.58873207
Withdraw130736162021-08-22 6:54:161070 days ago1629615256IN
0x8de4660b...0847b3c05
0 ETH0.002920323.98
Get Reward130736052021-08-22 6:51:171070 days ago1629615077IN
0x8de4660b...0847b3c05
0 ETH0.001910425.08904032
Stake130701092021-08-21 17:53:351071 days ago1629568415IN
0x8de4660b...0847b3c05
0 ETH0.0009096234.96006761
Withdraw130357102021-08-16 10:27:461076 days ago1629109666IN
0x8de4660b...0847b3c05
0 ETH0.0053667438.63939336
Stake130355772021-08-16 9:57:571076 days ago1629107877IN
0x8de4660b...0847b3c05
0 ETH0.0028618340.65794002
Stake130355742021-08-16 9:57:351076 days ago1629107855IN
0x8de4660b...0847b3c05
0 ETH0.0077292938.06352594
Stake130320402021-08-15 20:50:391076 days ago1629060639IN
0x8de4660b...0847b3c05
0 ETH0.0101531550
Get Reward130312292021-08-15 17:56:181077 days ago1629050178IN
0x8de4660b...0847b3c05
0 ETH0.0028097639.89102698
Withdraw130312222021-08-15 17:54:251077 days ago1629050065IN
0x8de4660b...0847b3c05
0 ETH0.0059924441.47568955
Get Reward130285052021-08-15 7:52:441077 days ago1629013964IN
0x8de4660b...0847b3c05
0 ETH0.0024595634.9191013
Withdraw130233262021-08-14 12:37:391078 days ago1628944659IN
0x8de4660b...0847b3c05
0 ETH0.0059242141
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:
StakingRewards

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-05-19
*/

pragma solidity ^0.5.16;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2);
    }
}

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

        return c;
    }

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

        return c;
    }

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

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

        return c;
    }

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

        return c;
    }

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

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

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

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

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

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

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

    function mint(address recipient, uint256 amount) external returns (bool);

    function burn(address spender, uint256 amount) external returns (bool);

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

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

/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor(
        string memory name,
        string memory symbol,
        uint8 decimals
    ) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei.
     *
     * > Note that this information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * `IERC20.balanceOf` and `IERC20.transfer`.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }
}

/**
 * @dev Collection of functions related to the address type,
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * > It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }
}

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

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transfer.selector, to, value)
        );
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transferFrom.selector, from, to, value)
        );
    }

    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(
            token,
            abi.encodeWithSelector(token.approve.selector, spender, value)
        );
    }

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

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance =
            token.allowance(address(this), spender).sub(value);
        callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(
                abi.decode(returndata, (bool)),
                "SafeERC20: ERC20 operation did not succeed"
            );
        }
    }
}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier
 * available, which can be aplied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 */
contract ReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor() internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _guardCounter = 1;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(
            localCounter == _guardCounter,
            "ReentrancyGuard: reentrant call"
        );
    }
}

// Inheritancea
interface IStakingRewards {
    // Views
    function lastTimeRewardApplicable() external view returns (uint256);

    function rewardPerToken() external view returns (uint256);

    function earned(address account) external view returns (uint256);

    function getRewardForDuration() external view returns (uint256);

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    // Mutative

    function stake(uint256 amount) external;

    function withdraw(uint256 amount) external;

    function getReward() external;

    function exit() external;
}

contract RewardsDistributionRecipient {
    address public rewardsDistribution;

    function notifyRewardAmount(uint256 reward, uint256 duration) external;

    modifier onlyRewardsDistribution() {
        require(
            msg.sender == rewardsDistribution,
            "Caller is not RewardsDistribution contract"
        );
        _;
    }
}

contract StakingRewards is
    IStakingRewards,
    RewardsDistributionRecipient,
    ReentrancyGuard
{
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    /* ========== STATE VARIABLES ========== */

    IERC20 public rewardsToken;
    IERC20 public stakingToken;
    IERC20 public vToken;
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public rewardsDuration = 30 days;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

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

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    /* ========== CONSTRUCTOR ========== */

    constructor(
        address _rewardsDistribution,
        address _rewardsToken,
        address _stakingToken
    ) public {
        rewardsToken = IERC20(_rewardsToken);
        stakingToken = IERC20(_stakingToken);
        rewardsDistribution = _rewardsDistribution;
    }

    /* ========== VIEWS ========== */

    function setVtoken(address _addr) external onlyRewardsDistribution {
        vToken = IERC20(_addr);
    }

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardRate)
                    .mul(1e18)
                    .div(_totalSupply)
            );
    }

    function earned(address account) public view returns (uint256) {
        return
            _balances[account]
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account]);
    }

    function getRewardForDuration() external view returns (uint256) {
        return rewardRate.mul(rewardsDuration);
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function stake(uint256 amount)
        external
        nonReentrant
        updateReward(msg.sender)
    {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        vToken.mint(msg.sender, amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount)
        public
        nonReentrant
        updateReward(msg.sender)
    {
        require(amount > 0, "Cannot withdraw 0");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        vToken.burn(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function getReward() public nonReentrant updateReward(msg.sender) {
        uint256 reward = rewards[msg.sender];
        require(reward > 0, "Reward can not be 0!");
        rewards[msg.sender] = 0;
        rewardsToken.safeTransfer(msg.sender, reward);
        emit RewardPaid(msg.sender, reward);
    }

    function exit() external {
        withdraw(_balances[msg.sender]);
        getReward();
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function notifyRewardAmount(uint256 reward, uint256 _rewardsDuration)
        external
        onlyRewardsDistribution
        updateReward(address(0))
    {
        // 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 = rewardsToken.balanceOf(address(this));
        if (block.timestamp >= periodFinish) {
            rewardsDuration = _rewardsDuration;
            rewardRate = reward.div(rewardsDuration);
            require(
                rewardRate <= balance.div(rewardsDuration),
                "Provided reward too high"
            );
            periodFinish = block.timestamp.add(rewardsDuration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(remaining);
            require(
                rewardRate <= balance.div(remaining),
                "Provided reward too high"
            );
        }

        lastUpdateTime = block.timestamp;
        emit RewardAdded(reward, _rewardsDuration);
    }

    /* ========== MODIFIERS ========== */

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

    /* ========== EVENTS ========== */

    event RewardAdded(uint256 reward, uint256 duration);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
}

interface IUniswapV2ERC20 {
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardsDistribution","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setVtoken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"vToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526000600555600060065562278d0060075534801561002157600080fd5b506040516113213803806113218339818101604052606081101561004457600080fd5b508051602082015160409092015160018055600280546001600160a01b039485166001600160a01b03199182161790915560038054928516928216929092179091556000805493909216921691909117905561127c806100a56000396000f3fe608060405234801561001057600080fd5b506004361061014c5760003560e01c80637b0a47ee116100c3578063cd3daf9d1161007c578063cd3daf9d146102c6578063d1af0c7d146102ce578063df136d65146102d6578063e9fad8ee146102de578063ebe2b12b146102e6578063f60cf281146102ee5761014c565b80637b0a47ee1461026357806380faa57d1461026b5780638b876347146102735780639bb1a99c14610299578063a694fc3a146102a1578063c8f33c91146102be5761014c565b80632e1a7d4d116101155780632e1a7d4d146101e4578063386a9525146102015780633d18b912146102095780633fc6df6e1461021157806370a082311461023557806372f702f31461025b5761014c565b80628cc262146101515780630700037d1461018957806318160ddd146101af5780631c1f78eb146101b7578063246132f9146101bf575b600080fd5b6101776004803603602081101561016757600080fd5b50356001600160a01b0316610314565b60408051918252519081900360200190f35b6101776004803603602081101561019f57600080fd5b50356001600160a01b03166103aa565b6101776103bc565b6101776103c3565b6101e2600480360360408110156101d557600080fd5b50803590602001356103e1565b005b6101e2600480360360208110156101fa57600080fd5b5035610693565b6101776108b5565b6101e26108bb565b610219610a33565b604080516001600160a01b039092168252519081900360200190f35b6101776004803603602081101561024b57600080fd5b50356001600160a01b0316610a42565b610219610a5d565b610177610a6c565b610177610a72565b6101776004803603602081101561028957600080fd5b50356001600160a01b0316610a80565b610219610a92565b6101e2600480360360208110156102b757600080fd5b5035610aa1565b610177610cbd565b610177610cc3565b610219610d1d565b610177610d2c565b6101e2610d32565b610177610d55565b6101e26004803603602081101561030457600080fd5b50356001600160a01b0316610d5b565b6001600160a01b0381166000908152600b6020908152604080832054600a9092528220546103a4919061039890670de0b6b3a76400009061038c906103679061035b610cc3565b9063ffffffff610dc616565b6001600160a01b0388166000908152600d60205260409020549063ffffffff610e2316565b9063ffffffff610e8316565b9063ffffffff610eed16565b92915050565b600b6020526000908152604090205481565b600c545b90565b60006103dc600754600654610e2390919063ffffffff16565b905090565b6000546001600160a01b0316331461042a5760405162461bcd60e51b815260040180806020018281038252602a8152602001806111f4602a913960400191505060405180910390fd5b6000610434610cc3565b60095561043f610a72565b6008556001600160a01b038116156104865761045a81610314565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156104d157600080fd5b505afa1580156104e5573d6000803e3d6000fd5b505050506040513d60208110156104fb57600080fd5b505160055490915042106105a257600783905561051e848463ffffffff610e8316565b60065560075461053590829063ffffffff610e8316565b6006541115610586576040805162461bcd60e51b81526020600482015260186024820152770a0e4deecd2c8cac840e4caeec2e4c840e8dede40d0d2ced60431b604482015290519081900360640190fd5b60075461059a90429063ffffffff610eed16565b60055561064e565b6005546000906105b8904263ffffffff610dc616565b905060006105d160065483610e2390919063ffffffff16565b90506105e78261038c888463ffffffff610eed16565b6006556105fa838363ffffffff610e8316565b600654111561064b576040805162461bcd60e51b81526020600482015260186024820152770a0e4deecd2c8cac840e4caeec2e4c840e8dede40d0d2ced60431b604482015290519081900360640190fd5b50505b42600855604080518581526020810185905281517f6c07ee05dcf262f13abf9d87b846ee789d2f90fe991d495acd7d7fc109ee1f55929181900390910190a150505050565b60018054810190819055336106a6610cc3565b6009556106b1610a72565b6008556001600160a01b038116156106f8576106cc81610314565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b60008311610741576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600c54610754908463ffffffff610dc616565b600c55336000908152600d6020526040902054610777908463ffffffff610dc616565b336000818152600d60205260409020919091556003546107a3916001600160a01b039091169085610f47565b6004805460408051632770a7eb60e21b8152339381019390935260248301869052516001600160a01b0390911691639dc29fac9160448083019260209291908290030181600087803b1580156107f857600080fd5b505af115801561080c573d6000803e3d6000fd5b505050506040513d602081101561082257600080fd5b505060408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25060015481146108b1576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b60075481565b60018054810190819055336108ce610cc3565b6009556108d9610a72565b6008556001600160a01b03811615610920576108f481610314565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b336000908152600b602052604090205480610979576040805162461bcd60e51b81526020600482015260146024820152735265776172642063616e206e6f7420626520302160601b604482015290519081900360640190fd5b336000818152600b60205260408120556002546109a2916001600160a01b039091169083610f47565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a250506001548114610a30576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b50565b6000546001600160a01b031681565b6001600160a01b03166000908152600d602052604090205490565b6003546001600160a01b031681565b60065481565b60006103dc42600554610f9e565b600a6020526000908152604090205481565b6004546001600160a01b031681565b6001805481019081905533610ab4610cc3565b600955610abf610a72565b6008556001600160a01b03811615610b0657610ada81610314565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b60008311610b4c576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600c54610b5f908463ffffffff610eed16565b600c55336000908152600d6020526040902054610b82908463ffffffff610eed16565b336000818152600d6020526040902091909155600354610baf916001600160a01b03909116903086610fb4565b60048054604080516340c10f1960e01b8152339381019390935260248301869052516001600160a01b03909116916340c10f199160448083019260209291908290030181600087803b158015610c0457600080fd5b505af1158015610c18573d6000803e3d6000fd5b505050506040513d6020811015610c2e57600080fd5b505060408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25060015481146108b1576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60085481565b6000600c5460001415610cd957506009546103c0565b6103dc610d0e600c5461038c670de0b6b3a7640000610d02600654610d0260085461035b610a72565b9063ffffffff610e2316565b6009549063ffffffff610eed16565b6002546001600160a01b031681565b60095481565b336000908152600d6020526040902054610d4b90610693565b610d536108bb565b565b60055481565b6000546001600160a01b03163314610da45760405162461bcd60e51b815260040180806020018281038252602a8152602001806111f4602a913960400191505060405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600082821115610e1d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082610e32575060006103a4565b82820282848281610e3f57fe5b0414610e7c5760405162461bcd60e51b81526004018080602001828103825260218152602001806111d36021913960400191505060405180910390fd5b9392505050565b6000808211610ed9576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481610ee457fe5b04949350505050565b600082820183811015610e7c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f99908490611014565b505050565b6000818310610fad5781610e7c565b5090919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261100e908590611014565b50505050565b611026826001600160a01b03166111cc565b611077576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106110b55780518252601f199092019160209182019101611096565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611117576040519150601f19603f3d011682016040523d82523d6000602084013e61111c565b606091505b509150915081611173576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561100e5780806020019051602081101561118f57600080fd5b505161100e5760405162461bcd60e51b815260040180806020018281038252602a81526020018061121e602a913960400191505060405180910390fd5b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582010293538e61439a394dff51c0fa557214444d94fb315ae80299dc00d32f4140e64736f6c63430005110032000000000000000000000000e0d02780b6874cb06704d8e26b08a89a1a969999000000000000000000000000bc194e6f748a222754c3e8b9946922c09e7d4e91000000000000000000000000bc194e6f748a222754c3e8b9946922c09e7d4e91

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014c5760003560e01c80637b0a47ee116100c3578063cd3daf9d1161007c578063cd3daf9d146102c6578063d1af0c7d146102ce578063df136d65146102d6578063e9fad8ee146102de578063ebe2b12b146102e6578063f60cf281146102ee5761014c565b80637b0a47ee1461026357806380faa57d1461026b5780638b876347146102735780639bb1a99c14610299578063a694fc3a146102a1578063c8f33c91146102be5761014c565b80632e1a7d4d116101155780632e1a7d4d146101e4578063386a9525146102015780633d18b912146102095780633fc6df6e1461021157806370a082311461023557806372f702f31461025b5761014c565b80628cc262146101515780630700037d1461018957806318160ddd146101af5780631c1f78eb146101b7578063246132f9146101bf575b600080fd5b6101776004803603602081101561016757600080fd5b50356001600160a01b0316610314565b60408051918252519081900360200190f35b6101776004803603602081101561019f57600080fd5b50356001600160a01b03166103aa565b6101776103bc565b6101776103c3565b6101e2600480360360408110156101d557600080fd5b50803590602001356103e1565b005b6101e2600480360360208110156101fa57600080fd5b5035610693565b6101776108b5565b6101e26108bb565b610219610a33565b604080516001600160a01b039092168252519081900360200190f35b6101776004803603602081101561024b57600080fd5b50356001600160a01b0316610a42565b610219610a5d565b610177610a6c565b610177610a72565b6101776004803603602081101561028957600080fd5b50356001600160a01b0316610a80565b610219610a92565b6101e2600480360360208110156102b757600080fd5b5035610aa1565b610177610cbd565b610177610cc3565b610219610d1d565b610177610d2c565b6101e2610d32565b610177610d55565b6101e26004803603602081101561030457600080fd5b50356001600160a01b0316610d5b565b6001600160a01b0381166000908152600b6020908152604080832054600a9092528220546103a4919061039890670de0b6b3a76400009061038c906103679061035b610cc3565b9063ffffffff610dc616565b6001600160a01b0388166000908152600d60205260409020549063ffffffff610e2316565b9063ffffffff610e8316565b9063ffffffff610eed16565b92915050565b600b6020526000908152604090205481565b600c545b90565b60006103dc600754600654610e2390919063ffffffff16565b905090565b6000546001600160a01b0316331461042a5760405162461bcd60e51b815260040180806020018281038252602a8152602001806111f4602a913960400191505060405180910390fd5b6000610434610cc3565b60095561043f610a72565b6008556001600160a01b038116156104865761045a81610314565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156104d157600080fd5b505afa1580156104e5573d6000803e3d6000fd5b505050506040513d60208110156104fb57600080fd5b505160055490915042106105a257600783905561051e848463ffffffff610e8316565b60065560075461053590829063ffffffff610e8316565b6006541115610586576040805162461bcd60e51b81526020600482015260186024820152770a0e4deecd2c8cac840e4caeec2e4c840e8dede40d0d2ced60431b604482015290519081900360640190fd5b60075461059a90429063ffffffff610eed16565b60055561064e565b6005546000906105b8904263ffffffff610dc616565b905060006105d160065483610e2390919063ffffffff16565b90506105e78261038c888463ffffffff610eed16565b6006556105fa838363ffffffff610e8316565b600654111561064b576040805162461bcd60e51b81526020600482015260186024820152770a0e4deecd2c8cac840e4caeec2e4c840e8dede40d0d2ced60431b604482015290519081900360640190fd5b50505b42600855604080518581526020810185905281517f6c07ee05dcf262f13abf9d87b846ee789d2f90fe991d495acd7d7fc109ee1f55929181900390910190a150505050565b60018054810190819055336106a6610cc3565b6009556106b1610a72565b6008556001600160a01b038116156106f8576106cc81610314565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b60008311610741576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600c54610754908463ffffffff610dc616565b600c55336000908152600d6020526040902054610777908463ffffffff610dc616565b336000818152600d60205260409020919091556003546107a3916001600160a01b039091169085610f47565b6004805460408051632770a7eb60e21b8152339381019390935260248301869052516001600160a01b0390911691639dc29fac9160448083019260209291908290030181600087803b1580156107f857600080fd5b505af115801561080c573d6000803e3d6000fd5b505050506040513d602081101561082257600080fd5b505060408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25060015481146108b1576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b60075481565b60018054810190819055336108ce610cc3565b6009556108d9610a72565b6008556001600160a01b03811615610920576108f481610314565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b336000908152600b602052604090205480610979576040805162461bcd60e51b81526020600482015260146024820152735265776172642063616e206e6f7420626520302160601b604482015290519081900360640190fd5b336000818152600b60205260408120556002546109a2916001600160a01b039091169083610f47565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a250506001548114610a30576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b50565b6000546001600160a01b031681565b6001600160a01b03166000908152600d602052604090205490565b6003546001600160a01b031681565b60065481565b60006103dc42600554610f9e565b600a6020526000908152604090205481565b6004546001600160a01b031681565b6001805481019081905533610ab4610cc3565b600955610abf610a72565b6008556001600160a01b03811615610b0657610ada81610314565b6001600160a01b0382166000908152600b6020908152604080832093909355600954600a909152919020555b60008311610b4c576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600c54610b5f908463ffffffff610eed16565b600c55336000908152600d6020526040902054610b82908463ffffffff610eed16565b336000818152600d6020526040902091909155600354610baf916001600160a01b03909116903086610fb4565b60048054604080516340c10f1960e01b8152339381019390935260248301869052516001600160a01b03909116916340c10f199160448083019260209291908290030181600087803b158015610c0457600080fd5b505af1158015610c18573d6000803e3d6000fd5b505050506040513d6020811015610c2e57600080fd5b505060408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25060015481146108b1576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60085481565b6000600c5460001415610cd957506009546103c0565b6103dc610d0e600c5461038c670de0b6b3a7640000610d02600654610d0260085461035b610a72565b9063ffffffff610e2316565b6009549063ffffffff610eed16565b6002546001600160a01b031681565b60095481565b336000908152600d6020526040902054610d4b90610693565b610d536108bb565b565b60055481565b6000546001600160a01b03163314610da45760405162461bcd60e51b815260040180806020018281038252602a8152602001806111f4602a913960400191505060405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600082821115610e1d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082610e32575060006103a4565b82820282848281610e3f57fe5b0414610e7c5760405162461bcd60e51b81526004018080602001828103825260218152602001806111d36021913960400191505060405180910390fd5b9392505050565b6000808211610ed9576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481610ee457fe5b04949350505050565b600082820183811015610e7c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f99908490611014565b505050565b6000818310610fad5781610e7c565b5090919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261100e908590611014565b50505050565b611026826001600160a01b03166111cc565b611077576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106110b55780518252601f199092019160209182019101611096565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611117576040519150601f19603f3d011682016040523d82523d6000602084013e61111c565b606091505b509150915081611173576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561100e5780806020019051602081101561118f57600080fd5b505161100e5760405162461bcd60e51b815260040180806020018281038252602a81526020018061121e602a913960400191505060405180910390fd5b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582010293538e61439a394dff51c0fa557214444d94fb315ae80299dc00d32f4140e64736f6c63430005110032

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

000000000000000000000000e0d02780b6874cb06704d8e26b08a89a1a969999000000000000000000000000bc194e6f748a222754c3e8b9946922c09e7d4e91000000000000000000000000bc194e6f748a222754c3e8b9946922c09e7d4e91

-----Decoded View---------------
Arg [0] : _rewardsDistribution (address): 0xe0D02780B6874cB06704D8E26B08A89A1A969999
Arg [1] : _rewardsToken (address): 0xbc194e6f748a222754C3E8b9946922c09E7d4e91
Arg [2] : _stakingToken (address): 0xbc194e6f748a222754C3E8b9946922c09E7d4e91

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000e0d02780b6874cb06704d8e26b08a89a1a969999
Arg [1] : 000000000000000000000000bc194e6f748a222754c3e8b9946922c09e7d4e91
Arg [2] : 000000000000000000000000bc194e6f748a222754c3e8b9946922c09e7d4e91


Deployed Bytecode Sourcemap

16884:5901:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16884:5901:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18896:265;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18896:265:0;-1:-1:-1;;;;;18896:265:0;;:::i;:::-;;;;;;;;;;;;;;;;17474:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17474:42:0;-1:-1:-1;;;;;17474:42:0;;:::i;18110:93::-;;;:::i;19169:121::-;;;:::i;20722:1397::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20722:1397:0;;;;;;;:::i;:::-;;19803:431;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19803:431:0;;:::i;17283:40::-;;;:::i;20242:311::-;;;:::i;16564:34::-;;;:::i;:::-;;;;-1:-1:-1;;;;;16564:34:0;;;;;;;;;;;;;;18211:112;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18211:112:0;-1:-1:-1;;;;;18211:112:0;;:::i;17149:26::-;;;:::i;17247:29::-;;;:::i;18331:131::-;;;:::i;17410:57::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17410:57:0;-1:-1:-1;;;;;17410:57:0;;:::i;17182:20::-;;;:::i;19352:443::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19352:443:0;;:::i;17330:29::-;;;:::i;18470:418::-;;;:::i;17116:26::-;;;:::i;17366:35::-;;;:::i;20561:97::-;;;:::i;17209:31::-;;;:::i;17994:108::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17994:108:0;-1:-1:-1;;;;;17994:108:0;;:::i;18896:265::-;-1:-1:-1;;;;;19136:16:0;;18950:7;19136:16;;;:7;:16;;;;;;;;;19052:22;:31;;;;;;18990:163;;19136:16;18990:123;;19108:4;;18990:95;;19031:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;-1:-1:-1;;;;;18990:18:0;;;;;;:9;:18;;;;;;;:95;:40;:95;:::i;:::-;:117;:123;:117;:123;:::i;:::-;:145;:163;:145;:163;:::i;:::-;18970:183;18896:265;-1:-1:-1;;18896:265:0:o;17474:42::-;;;;;;;;;;;;;:::o;18110:93::-;18183:12;;18110:93;;:::o;19169:121::-;19224:7;19251:31;19266:15;;19251:10;;:14;;:31;;;;:::i;:::-;19244:38;;19169:121;:::o;20722:1397::-;16768:19;;-1:-1:-1;;;;;16768:19:0;16754:10;:33;16732:125;;;;-1:-1:-1;;;16732:125:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20873:1;22245:16;:14;:16::i;:::-;22222:20;:39;22289:26;:24;:26::i;:::-;22272:14;:43;-1:-1:-1;;;;;22330:21:0;;;22326:157;;22387:15;22394:7;22387:6;:15::i;:::-;-1:-1:-1;;;;;22368:16:0;;;;;;:7;:16;;;;;;;;:34;;;;22451:20;;22417:22;:31;;;;;;:54;22326:157;21259:12;;:37;;;-1:-1:-1;;;21259:37:0;;21290:4;21259:37;;;;;;21241:15;;-1:-1:-1;;;;;21259:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;21259:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;21259:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21259:37:0;21330:12;;21259:37;;-1:-1:-1;21311:15:0;:31;21307:707;;21359:15;:34;;;21421:27;:6;21377:16;21421:27;:10;:27;:::i;:::-;21408:10;:40;21515:15;;21503:28;;:7;;:28;:11;:28;:::i;:::-;21489:10;;:42;;21463:128;;;;;-1:-1:-1;;;21463:128:0;;;;;;;;;;;;-1:-1:-1;;;21463:128:0;;;;;;;;;;;;;;;21641:15;;21621:36;;:15;;:36;:19;:36;:::i;:::-;21606:12;:51;21307:707;;;21710:12;;21690:17;;21710:33;;21727:15;21710:33;:16;:33;:::i;:::-;21690:53;;21758:16;21777:25;21791:10;;21777:9;:13;;:25;;;;:::i;:::-;21758:44;-1:-1:-1;21830:35:0;21855:9;21830:20;:6;21758:44;21830:20;:10;:20;:::i;:35::-;21817:10;:48;21920:22;:7;21932:9;21920:22;:11;:22;:::i;:::-;21906:10;;:36;;21880:122;;;;;-1:-1:-1;;;21880:122:0;;;;;;;;;;;;-1:-1:-1;;;21880:122:0;;;;;;;;;;;;;;;21307:707;;;22043:15;22026:14;:32;22074:37;;;;;;;;;;;;;;;;;;;;;;;;;22493:1;16868;20722:1397;;:::o;19803:431::-;15645:1;15628:18;;;;;;;;19897:10;22245:16;:14;:16::i;:::-;22222:20;:39;22289:26;:24;:26::i;:::-;22272:14;:43;-1:-1:-1;;;;;22330:21:0;;;22326:157;;22387:15;22394:7;22387:6;:15::i;:::-;-1:-1:-1;;;;;22368:16:0;;;;;;:7;:16;;;;;;;;:34;;;;22451:20;;22417:22;:31;;;;;;:54;22326:157;19942:1;19933:6;:10;19925:40;;;;;-1:-1:-1;;;19925:40:0;;;;;;;;;;;;-1:-1:-1;;;19925:40:0;;;;;;;;;;;;;;;19991:12;;:24;;20008:6;19991:24;:16;:24;:::i;:::-;19976:12;:39;20060:10;20050:21;;;;:9;:21;;;;;;:33;;20076:6;20050:33;:25;:33;:::i;:::-;20036:10;20026:21;;;;:9;:21;;;;;:57;;;;20094:12;;:45;;-1:-1:-1;;;;;20094:12:0;;;;20132:6;20094:25;:45::i;:::-;20150:6;;;:31;;;-1:-1:-1;;;20150:31:0;;20162:10;20150:31;;;;;;;;;;;;;;-1:-1:-1;;;;;20150:6:0;;;;:11;;:31;;;;;;;;;;;;;;:6;;:31;;;5:2:-1;;;;30:1;27;20:12;5:2;20150:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20150:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;20197:29:0;;;;;;;;20207:10;;20197:29;;;;;;20150:31;20197:29;;;15704:1;15754:13;;15738:12;:29;15716:110;;;;;-1:-1:-1;;;15716:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19803:431;;:::o;17283:40::-;;;;:::o;20242:311::-;15645:1;15628:18;;;;;;;;20296:10;22245:16;:14;:16::i;:::-;22222:20;:39;22289:26;:24;:26::i;:::-;22272:14;:43;-1:-1:-1;;;;;22330:21:0;;;22326:157;;22387:15;22394:7;22387:6;:15::i;:::-;-1:-1:-1;;;;;22368:16:0;;;;;;:7;:16;;;;;;;;:34;;;;22451:20;;22417:22;:31;;;;;;:54;22326:157;20344:10;20319:14;20336:19;;;:7;:19;;;;;;20374:10;20366:43;;;;;-1:-1:-1;;;20366:43:0;;;;;;;;;;;;-1:-1:-1;;;20366:43:0;;;;;;;;;;;;;;;20428:10;20442:1;20420:19;;;:7;:19;;;;;:23;20454:12;;:45;;-1:-1:-1;;;;;20454:12:0;;;;20492:6;20454:25;:45::i;:::-;20515:30;;;;;;;;20526:10;;20515:30;;;;;;;;;;22493:1;15704;15754:13;;15738:12;:29;15716:110;;;;;-1:-1:-1;;;15716:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;20242:311;:::o;16564:34::-;;;-1:-1:-1;;;;;16564:34:0;;:::o;18211:112::-;-1:-1:-1;;;;;18297:18:0;18270:7;18297:18;;;:9;:18;;;;;;;18211:112::o;17149:26::-;;;-1:-1:-1;;;;;17149:26:0;;:::o;17247:29::-;;;;:::o;18331:131::-;18388:7;18415:39;18424:15;18441:12;;18415:8;:39::i;17410:57::-;;;;;;;;;;;;;:::o;17182:20::-;;;-1:-1:-1;;;;;17182:20:0;;:::o;19352:443::-;15645:1;15628:18;;;;;;;;19445:10;22245:16;:14;:16::i;:::-;22222:20;:39;22289:26;:24;:26::i;:::-;22272:14;:43;-1:-1:-1;;;;;22330:21:0;;;22326:157;;22387:15;22394:7;22387:6;:15::i;:::-;-1:-1:-1;;;;;22368:16:0;;;;;;:7;:16;;;;;;;;:34;;;;22451:20;;22417:22;:31;;;;;;:54;22326:157;19490:1;19481:6;:10;19473:37;;;;;-1:-1:-1;;;19473:37:0;;;;;;;;;;;;-1:-1:-1;;;19473:37:0;;;;;;;;;;;;;;;19536:12;;:24;;19553:6;19536:24;:16;:24;:::i;:::-;19521:12;:39;19605:10;19595:21;;;;:9;:21;;;;;;:33;;19621:6;19595:33;:25;:33;:::i;:::-;19581:10;19571:21;;;;:9;:21;;;;;:57;;;;19639:12;;:64;;-1:-1:-1;;;;;19639:12:0;;;;19689:4;19696:6;19639:29;:64::i;:::-;19714:6;;;:31;;;-1:-1:-1;;;19714:31:0;;19726:10;19714:31;;;;;;;;;;;;;;-1:-1:-1;;;;;19714:6:0;;;;:11;;:31;;;;;;;;;;;;;;:6;;:31;;;5:2:-1;;;;30:1;27;20:12;5:2;19714:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19714:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;19761:26:0;;;;;;;;19768:10;;19761:26;;;;;;19714:31;19761:26;;;15704:1;15754:13;;15738:12;:29;15716:110;;;;;-1:-1:-1;;;15716:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;17330:29;;;;:::o;18470:418::-;18517:7;18541:12;;18557:1;18541:17;18537:77;;;-1:-1:-1;18582:20:0;;18575:27;;18537:77;18644:236;18687:178;18852:12;;18687:138;18820:4;18687:106;18782:10;;18687:68;18740:14;;18687:26;:24;:26::i;:68::-;:94;:106;:94;:106;:::i;:178::-;18644:20;;;:236;:24;:236;:::i;17116:26::-;;;-1:-1:-1;;;;;17116:26:0;;:::o;17366:35::-;;;;:::o;20561:97::-;20616:10;20606:21;;;;:9;:21;;;;;;20597:31;;:8;:31::i;:::-;20639:11;:9;:11::i;:::-;20561:97::o;17209:31::-;;;;:::o;17994:108::-;16768:19;;-1:-1:-1;;;;;16768:19:0;16754:10;:33;16732:125;;;;-1:-1:-1;;;16732:125:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18072:6;:22;;-1:-1:-1;;;;;;18072:22:0;-1:-1:-1;;;;;18072:22:0;;;;;;;;;;17994:108::o;2092:184::-;2150:7;2183:1;2178;:6;;2170:49;;;;;-1:-1:-1;;;2170:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2242:5:0;;;2092:184::o;2527:470::-;2585:7;2829:6;2825:47;;-1:-1:-1;2859:1:0;2852:8;;2825:47;2896:5;;;2900:1;2896;:5;:1;2920:5;;;;;:10;2912:56;;;;-1:-1:-1;;;2912:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2988:1;2527:470;-1:-1:-1;;;2527:470:0:o;3465:333::-;3523:7;3622:1;3618;:5;3610:44;;;;;-1:-1:-1;;;3610:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3665:9;3681:1;3677;:5;;;;;;;3465:333;-1:-1:-1;;;;3465:333:0:o;1636:181::-;1694:7;1726:5;;;1750:6;;;;1742:46;;;;;-1:-1:-1;;;1742:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;10610:247;10780:58;;;-1:-1:-1;;;;;10780:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;10780:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;10727:122:0;;10760:5;;10727:18;:122::i;:::-;10610:247;;;:::o;375:106::-;433:7;464:1;460;:5;:13;;472:1;460:13;;;-1:-1:-1;468:1:0;;453:20;-1:-1:-1;375:106:0:o;10865:284::-;11062:68;;;-1:-1:-1;;;;;11062:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;11062:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;11009:132:0;;11042:5;;11009:18;:132::i;:::-;10865:284;;;;:::o;13140:1176::-;13744:27;13752:5;-1:-1:-1;;;;;13744:25:0;;:27::i;:::-;13736:71;;;;;-1:-1:-1;;;13736:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13881:12;13895:23;13930:5;-1:-1:-1;;;;;13922:19:0;13942:4;13922:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;13922:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;13880:67:0;;;;13966:7;13958:52;;;;;-1:-1:-1;;;13958:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14027:17;;:21;14023:286;;14200:10;14189:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14189:30:0;14163:134;;;;-1:-1:-1;;;14163:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9601:444;9981:20;10029:8;;;9601:444::o

Swarm Source

bzzr://10293538e61439a394dff51c0fa557214444d94fb315ae80299dc00d32f4140e

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.