ETH Price: $3,424.27 (-2.17%)
Gas: 6 Gwei

Contract

0x484787Baf344005c45E912f3117B6D7fA7507094
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Reward171289622023-04-26 7:37:11448 days ago1682494631IN
0x484787Ba...fA7507094
0 ETH0.0028746736.67618607
Stake165495822023-02-03 16:54:47530 days ago1675443287IN
0x484787Ba...fA7507094
0 ETH0.0038939634.89088066
Exit165408542023-02-02 11:35:35531 days ago1675337735IN
0x484787Ba...fA7507094
0 ETH0.0015225716.45815897
Withdraw165190752023-01-30 10:34:47534 days ago1675074887IN
0x484787Ba...fA7507094
0 ETH0.0017679116.12638052
Get Reward165187732023-01-30 9:33:59534 days ago1675071239IN
0x484787Ba...fA7507094
0 ETH0.0012044515.83241687
Exit164980562023-01-27 12:09:11537 days ago1674821351IN
0x484787Ba...fA7507094
0 ETH0.0018404714.53176136
Stake164971302023-01-27 9:02:59537 days ago1674810179IN
0x484787Ba...fA7507094
0 ETH0.0014794414.09691086
Stake164556442023-01-21 14:02:23543 days ago1674309743IN
0x484787Ba...fA7507094
0 ETH0.0017266216
Get Reward164400412023-01-19 9:44:59545 days ago1674121499IN
0x484787Ba...fA7507094
0 ETH0.001512115
Stake164112632023-01-15 9:18:47549 days ago1673774327IN
0x484787Ba...fA7507094
0 ETH0.0016817415.58236003
Get Reward164107652023-01-15 7:38:47549 days ago1673768327IN
0x484787Ba...fA7507094
0 ETH0.0010881913
Get Reward163920632023-01-12 16:58:47552 days ago1673542727IN
0x484787Ba...fA7507094
0 ETH0.0015603318.64041719
Get Reward163895042023-01-12 8:23:23552 days ago1673511803IN
0x484787Ba...fA7507094
0 ETH0.001522816
Stake163863092023-01-11 21:41:11553 days ago1673473271IN
0x484787Ba...fA7507094
0 ETH0.0034705731.09723989
Stake163859742023-01-11 20:33:35553 days ago1673469215IN
0x484787Ba...fA7507094
0 ETH0.0028202425.27286352
Stake163852532023-01-11 18:08:35553 days ago1673460515IN
0x484787Ba...fA7507094
0 ETH0.0021728829.06086272
Withdraw163852392023-01-11 18:05:47553 days ago1673460347IN
0x484787Ba...fA7507094
0 ETH0.0025868428.20465497
Get Reward163852082023-01-11 17:59:23553 days ago1673459963IN
0x484787Ba...fA7507094
0 ETH0.0022218226.44815174
Stake163790482023-01-10 21:18:23554 days ago1673385503IN
0x484787Ba...fA7507094
0 ETH0.0032348326.50724169
Get Reward163606832023-01-08 7:49:11556 days ago1673164151IN
0x484787Ba...fA7507094
0 ETH0.0010044812
Get Reward163346682023-01-04 16:38:23560 days ago1672850303IN
0x484787Ba...fA7507094
0 ETH0.002908928.77053662
Get Reward162603332022-12-25 7:40:59570 days ago1671954059IN
0x484787Ba...fA7507094
0 ETH0.0010080710
Get Reward162550112022-12-24 13:52:11571 days ago1671889931IN
0x484787Ba...fA7507094
0 ETH0.000811959.7
Get Reward162142792022-12-18 21:30:59577 days ago1671399059IN
0x484787Ba...fA7507094
0 ETH0.0008370710
Get Reward162122072022-12-18 14:35:11577 days ago1671374111IN
0x484787Ba...fA7507094
0 ETH0.0012096812
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.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-07-12
*/

/**
 *Submitted for verification at Etherscan.io on 2022-04-28
*/

/**
 *Submitted for verification at Etherscan.io on 2022-02-01
*/

// File: contracts/SafeMath.sol

pragma solidity ^0.8.11;

/**
 * @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;
    }
}

// File: contracts/StakingRewards.sol

//pragma solidity ^0.8.11;

//import "./ERC20Detailed.sol";
//import "./SafeERC20.sol";
//import "./ReentrancyGuard.sol";

// Inheritance
//import "./IStakingRewards.sol";
//import "./RewardsDistributionRecipient.sol";
//import "./Pausable.sol";


// https://docs.synthetix.io/contracts/source/interfaces/istakingrewards
interface IStakingRewards {
    // Views

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

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

    function getRewardForDuration() external view returns (uint256);

    function lastTimeRewardApplicable() external view returns (uint256);

    function rewardPerToken() external view returns (uint256);

    //function rewardsDistribution() external view returns (address);

    //function rewardsToken() external view returns (address);

    function totalSupply() external view returns (uint256);

    // Mutative

    function exit() external;

    function getReward() external;

    function stake(uint256 amount) external;

    function withdraw(uint256 amount) external;
}



/**
 * @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;
    }
}

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

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

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

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

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

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

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

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


/**
 * @dev Optional functions from the ERC20 standard.
 */
abstract 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_)  {
        _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;
    }
}

/**
 * @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");
        }
    }
}


// https://docs.synthetix.io/contracts/source/contracts/owned
contract Owned {
    address public owner;
    address public nominatedOwner;

    constructor(address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    modifier onlyOwner {
        _onlyOwner();
        _;
    }

    function _onlyOwner() private view {
        require(msg.sender == owner, "Only the contract owner may perform this action");
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}
// https://docs.synthetix.io/contracts/source/contracts/pausable
abstract contract Pausable is Owned {
    uint public lastPauseTime;
    bool public paused;

    constructor() internal {
        // This contract is abstract, and thus cannot be instantiated directly
        require(owner != address(0), "Owner must be set");
        // Paused will be false, and lastPauseTime will be 0 upon initialisation
    }

    /**
     * @notice Change the paused state of the contract
     * @dev Only the contract owner may call this.
     */
    function setPaused(bool _paused) external onlyOwner {
        // Ensure we're actually changing the state before we do anything
        if (_paused == paused) {
            return;
        }

        // Set our paused state.
        paused = _paused;

        // If applicable, set the last pause time.
        if (paused) {
            lastPauseTime = block.timestamp;
        }

        // Let everyone know that our pause state has changed.
        emit PauseChanged(paused);
    }

    event PauseChanged(bool isPaused);

    modifier notPaused {
        require(!paused, "This action cannot be performed while the contract is paused");
        _;
    }
}

// https://docs.synthetix.io/contracts/source/contracts/rewardsdistributionrecipient
abstract contract RewardsDistributionRecipient is Owned {
    address public rewardsDistribution;

    function notifyRewardAmount(uint256 reward) virtual external;

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

    function setRewardsDistribution(address _rewardsDistribution) external onlyOwner {
        rewardsDistribution = _rewardsDistribution;
    }
}

/**
 * @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.
 */
abstract contract ReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

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

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


// https://docs.synthetix.io/contracts/source/contracts/stakingrewards
contract StakingRewards is IStakingRewards, RewardsDistributionRecipient, Pausable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

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

    IERC20 public rewardsToken;
    IERC20 public stakingToken;
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public rewardsDuration = 7 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;

    uint256 private _guardCounter;

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

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

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

    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 block.timestamp < periodFinish ? 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 notPaused 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);
        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);
        emit Withdrawn(msg.sender, amount);
    }

    function getReward() public nonReentrant updateReward(msg.sender) {
        uint256 reward = rewards[msg.sender];
        if (reward > 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) override external onlyRewardsDistribution updateReward(address(0)) {
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(rewardsDuration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).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.
        uint balance = rewardsToken.balanceOf(address(this));
        require(rewardRate <= balance.div(rewardsDuration), "Provided reward too high");

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(rewardsDuration);
        emit RewardAdded(reward);
    }

    // Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        require(tokenAddress != address(stakingToken), "Cannot withdraw the staking token");
        IERC20(tokenAddress).safeTransfer(owner, tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    function setRewardsDuration(uint256 _rewardsDuration) external onlyOwner {
        require(
            block.timestamp > periodFinish,
            "Previous rewards period must be complete before changing the duration for the new period"
        );
        rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

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

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

    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }

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

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event RewardsDurationUpdated(uint256 newDuration);
    event Recovered(address token, uint256 amount);
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_rewardsDistribution","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsDistribution","type":"address"}],"name":"setRewardsDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600655600060075562093a806008553480156200002257600080fd5b50604051620017f8380380620017f88339810160408190526200004591620001ba565b836001600160a01b038116620000a25760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1506000546001600160a01b0316620001485760405162461bcd60e51b815260206004820152601160248201527013dddb995c881b5d5cdd081899481cd95d607a1b604482015260640162000099565b600480546001600160a01b0393841661010002610100600160a81b0319909116179055600580549183166001600160a01b031992831617905560028054939092169216919091179055506001600f5562000217565b80516001600160a01b0381168114620001b557600080fd5b919050565b60008060008060808587031215620001d157600080fd5b620001dc856200019d565b9350620001ec602086016200019d565b9250620001fc604086016200019d565b91506200020c606086016200019d565b905092959194509250565b6115d180620002276000396000f3fe608060405234801561001057600080fd5b50600436106101e45760003560e01c806372f702f31161010f578063a694fc3a116100a2578063d1af0c7d11610071578063d1af0c7d146103e7578063df136d65146103ff578063e9fad8ee14610408578063ebe2b12b1461041057600080fd5b8063a694fc3a146103b0578063c8f33c91146103c3578063cc1a378f146103cc578063cd3daf9d146103df57600080fd5b80638980f11f116100de5780638980f11f146103615780638b876347146103745780638da5cb5b1461039457806391b4ded9146103a757600080fd5b806372f702f31461033557806379ba5097146103485780637b0a47ee1461035057806380faa57d1461035957600080fd5b80632e1a7d4d116101875780633fc6df6e116101565780633fc6df6e146102b157806353a47bb7146102dc5780635c975abb146102ef57806370a082311461030c57600080fd5b80632e1a7d4d1461027a578063386a95251461028d5780633c6b16ab146102965780633d18b912146102a957600080fd5b806316c38b3c116101c357806316c38b3c1461024457806318160ddd14610257578063197621431461025f5780631c1f78eb1461027257600080fd5b80628cc262146101e95780630700037d1461020f5780631627540c1461022f575b600080fd5b6101fc6101f736600461141b565b610419565b6040519081526020015b60405180910390f35b6101fc61021d36600461141b565b600c6020526000908152604090205481565b61024261023d36600461141b565b610497565b005b610242610252366004611444565b6104f4565b600d546101fc565b61024261026d36600461141b565b61056a565b6101fc610594565b610242610288366004611461565b6105b2565b6101fc60085481565b6102426102a4366004611461565b610753565b6102426109aa565b6002546102c4906001600160a01b031681565b6040516001600160a01b039091168152602001610206565b6001546102c4906001600160a01b031681565b6004546102fc9060ff1681565b6040519015158152602001610206565b6101fc61031a36600461141b565b6001600160a01b03166000908152600e602052604090205490565b6005546102c4906001600160a01b031681565b610242610aec565b6101fc60075481565b6101fc610bd6565b61024261036f36600461147a565b610bed565b6101fc61038236600461141b565b600b6020526000908152604090205481565b6000546102c4906001600160a01b031681565b6101fc60035481565b6102426103be366004611461565b610cbd565b6101fc60095481565b6102426103da366004611461565b610e76565b6101fc610f50565b6004546102c49061010090046001600160a01b031681565b6101fc600a5481565b610242610f9c565b6101fc60065481565b6001600160a01b0381166000908152600c6020908152604080832054600b909252822054610491919061048b90670de0b6b3a7640000906104859061046690610460610f50565b90610fbf565b6001600160a01b0388166000908152600e602052604090205490611025565b906110ab565b90611108565b92915050565b61049f611167565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020015b60405180910390a150565b6104fc611167565b60045460ff16151581151514156105105750565b6004805460ff191682151590811790915560ff161561052e57426003555b60045460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5906020016104e9565b50565b610572611167565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60006105ad60085460075461102590919063ffffffff16565b905090565b6001600f60008282546105c591906114ba565b9091555050600f54336105d6610f50565b600a556105e1610bd6565b6009556001600160a01b03811615610628576105fc81610419565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b600083116106715760405162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b60448201526064015b60405180910390fd5b600d5461067e9084610fbf565b600d55336000908152600e602052604090205461069b9084610fbf565b336000818152600e60205260409020919091556005546106c7916001600160a01b0390911690856111d9565b60405183815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a250600f54811461074f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610668565b5050565b6002546001600160a01b031633146107c05760405162461bcd60e51b815260206004820152602a60248201527f43616c6c6572206973206e6f742052657761726473446973747269627574696f6044820152691b8818dbdb9d1c9858dd60b21b6064820152608401610668565b60006107ca610f50565b600a556107d5610bd6565b6009556001600160a01b0381161561081c576107f081610419565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b600654421061083b576008546108339083906110ab565b60075561087e565b60065460009061084b9042610fbf565b905060006108646007548361102590919063ffffffff16565b600854909150610878906104858684611108565b60075550505b600480546040516370a0823160e01b815230928101929092526000916101009091046001600160a01b0316906370a0823190602401602060405180830381865afa1580156108d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f491906114d2565b905061090b600854826110ab90919063ffffffff16565b600754111561095c5760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f206869676800000000000000006044820152606401610668565b42600981905560085461096f9190611108565b6006556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050565b6001600f60008282546109bd91906114ba565b9091555050600f54336109ce610f50565b600a556109d9610bd6565b6009556001600160a01b03811615610a20576109f481610419565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b336000908152600c60205260409020548015610a9957336000818152600c6020526040812055600454610a63916101009091046001600160a01b031690836111d9565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b5050600f5481146105675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610668565b6001546001600160a01b03163314610b645760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610668565b600054600154604080516001600160a01b0393841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b60006006544210610be8575060065490565b504290565b610bf5611167565b6005546001600160a01b0383811691161415610c5d5760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420776974686472617720746865207374616b696e6720746f6b656044820152603760f91b6064820152608401610668565b600054610c77906001600160a01b038481169116836111d9565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b6001600f6000828254610cd091906114ba565b9091555050600f5460045460ff1615610d515760405162461bcd60e51b815260206004820152603c60248201527f5468697320616374696f6e2063616e6e6f7420626520706572666f726d65642060448201527f7768696c652074686520636f6e747261637420697320706175736564000000006064820152608401610668565b33610d5a610f50565b600a55610d65610bd6565b6009556001600160a01b03811615610dac57610d8081610419565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b60008311610ded5760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b6044820152606401610668565b600d54610dfa9084611108565b600d55336000908152600e6020526040902054610e179084611108565b336000818152600e6020526040902091909155600554610e44916001600160a01b03909116903086611241565b60405183815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016106f5565b610e7e611167565b6006544211610f1b5760405162461bcd60e51b815260206004820152605860248201527f50726576696f7573207265776172647320706572696f64206d7573742062652060448201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260648201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000608482015260a401610668565b60088190556040518181527ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3906020016104e9565b6000600d5460001415610f645750600a5490565b6105ad610f93600d54610485670de0b6b3a7640000610f8d600754610f8d600954610460610bd6565b90611025565b600a5490611108565b336000908152600e6020526040902054610fb5906105b2565b610fbd6109aa565b565b6000828211156110115760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006044820152606401610668565b600061101d83856114eb565b949350505050565b60008261103457506000610491565b60006110408385611502565b90508261104d8583611521565b146110a45760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610668565b9392505050565b60008082116110fc5760405162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f0000000000006044820152606401610668565b600061101d8385611521565b60008061111583856114ba565b9050838110156110a45760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610668565b6000546001600160a01b03163314610fbd5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610668565b6040516001600160a01b03831660248201526044810182905261123c90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261127f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526112799085906323b872dd60e01b90608401611205565b50505050565b6001600160a01b0382163b6112d65760405162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e7472616374006044820152606401610668565b600080836001600160a01b0316836040516112f19190611543565b6000604051808303816000865af19150503d806000811461132e576040519150601f19603f3d011682016040523d82523d6000602084013e611333565b606091505b5091509150816113855760405162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646044820152606401610668565b80511561127957808060200190518101906113a0919061157e565b6112795760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610668565b80356001600160a01b038116811461141657600080fd5b919050565b60006020828403121561142d57600080fd5b6110a4826113ff565b801515811461056757600080fd5b60006020828403121561145657600080fd5b81356110a481611436565b60006020828403121561147357600080fd5b5035919050565b6000806040838503121561148d57600080fd5b611496836113ff565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156114cd576114cd6114a4565b500190565b6000602082840312156114e457600080fd5b5051919050565b6000828210156114fd576114fd6114a4565b500390565b600081600019048311821515161561151c5761151c6114a4565b500290565b60008261153e57634e487b7160e01b600052601260045260246000fd5b500490565b6000825160005b81811015611564576020818601810151858301520161154a565b81811115611573576000828501525b509190910192915050565b60006020828403121561159057600080fd5b81516110a48161143656fea26469706673582212202a188c20ec54d65acf02badfd06a0ce1cb8032859a8eafa069adb1f08dd84c9d64736f6c634300080b0033000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c000000000000000000000000a5b947687163fe88c3e6af5b17ae69896f4abccf000000000000000000000000e1ae05518a67ebe7e1e08e3b22d905d6c05b6c0f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101e45760003560e01c806372f702f31161010f578063a694fc3a116100a2578063d1af0c7d11610071578063d1af0c7d146103e7578063df136d65146103ff578063e9fad8ee14610408578063ebe2b12b1461041057600080fd5b8063a694fc3a146103b0578063c8f33c91146103c3578063cc1a378f146103cc578063cd3daf9d146103df57600080fd5b80638980f11f116100de5780638980f11f146103615780638b876347146103745780638da5cb5b1461039457806391b4ded9146103a757600080fd5b806372f702f31461033557806379ba5097146103485780637b0a47ee1461035057806380faa57d1461035957600080fd5b80632e1a7d4d116101875780633fc6df6e116101565780633fc6df6e146102b157806353a47bb7146102dc5780635c975abb146102ef57806370a082311461030c57600080fd5b80632e1a7d4d1461027a578063386a95251461028d5780633c6b16ab146102965780633d18b912146102a957600080fd5b806316c38b3c116101c357806316c38b3c1461024457806318160ddd14610257578063197621431461025f5780631c1f78eb1461027257600080fd5b80628cc262146101e95780630700037d1461020f5780631627540c1461022f575b600080fd5b6101fc6101f736600461141b565b610419565b6040519081526020015b60405180910390f35b6101fc61021d36600461141b565b600c6020526000908152604090205481565b61024261023d36600461141b565b610497565b005b610242610252366004611444565b6104f4565b600d546101fc565b61024261026d36600461141b565b61056a565b6101fc610594565b610242610288366004611461565b6105b2565b6101fc60085481565b6102426102a4366004611461565b610753565b6102426109aa565b6002546102c4906001600160a01b031681565b6040516001600160a01b039091168152602001610206565b6001546102c4906001600160a01b031681565b6004546102fc9060ff1681565b6040519015158152602001610206565b6101fc61031a36600461141b565b6001600160a01b03166000908152600e602052604090205490565b6005546102c4906001600160a01b031681565b610242610aec565b6101fc60075481565b6101fc610bd6565b61024261036f36600461147a565b610bed565b6101fc61038236600461141b565b600b6020526000908152604090205481565b6000546102c4906001600160a01b031681565b6101fc60035481565b6102426103be366004611461565b610cbd565b6101fc60095481565b6102426103da366004611461565b610e76565b6101fc610f50565b6004546102c49061010090046001600160a01b031681565b6101fc600a5481565b610242610f9c565b6101fc60065481565b6001600160a01b0381166000908152600c6020908152604080832054600b909252822054610491919061048b90670de0b6b3a7640000906104859061046690610460610f50565b90610fbf565b6001600160a01b0388166000908152600e602052604090205490611025565b906110ab565b90611108565b92915050565b61049f611167565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020015b60405180910390a150565b6104fc611167565b60045460ff16151581151514156105105750565b6004805460ff191682151590811790915560ff161561052e57426003555b60045460405160ff909116151581527f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec5906020016104e9565b50565b610572611167565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60006105ad60085460075461102590919063ffffffff16565b905090565b6001600f60008282546105c591906114ba565b9091555050600f54336105d6610f50565b600a556105e1610bd6565b6009556001600160a01b03811615610628576105fc81610419565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b600083116106715760405162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b60448201526064015b60405180910390fd5b600d5461067e9084610fbf565b600d55336000908152600e602052604090205461069b9084610fbf565b336000818152600e60205260409020919091556005546106c7916001600160a01b0390911690856111d9565b60405183815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a250600f54811461074f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610668565b5050565b6002546001600160a01b031633146107c05760405162461bcd60e51b815260206004820152602a60248201527f43616c6c6572206973206e6f742052657761726473446973747269627574696f6044820152691b8818dbdb9d1c9858dd60b21b6064820152608401610668565b60006107ca610f50565b600a556107d5610bd6565b6009556001600160a01b0381161561081c576107f081610419565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b600654421061083b576008546108339083906110ab565b60075561087e565b60065460009061084b9042610fbf565b905060006108646007548361102590919063ffffffff16565b600854909150610878906104858684611108565b60075550505b600480546040516370a0823160e01b815230928101929092526000916101009091046001600160a01b0316906370a0823190602401602060405180830381865afa1580156108d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f491906114d2565b905061090b600854826110ab90919063ffffffff16565b600754111561095c5760405162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f206869676800000000000000006044820152606401610668565b42600981905560085461096f9190611108565b6006556040518381527fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9060200160405180910390a1505050565b6001600f60008282546109bd91906114ba565b9091555050600f54336109ce610f50565b600a556109d9610bd6565b6009556001600160a01b03811615610a20576109f481610419565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b336000908152600c60205260409020548015610a9957336000818152600c6020526040812055600454610a63916101009091046001600160a01b031690836111d9565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b5050600f5481146105675760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610668565b6001546001600160a01b03163314610b645760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610668565b600054600154604080516001600160a01b0393841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b60006006544210610be8575060065490565b504290565b610bf5611167565b6005546001600160a01b0383811691161415610c5d5760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f7420776974686472617720746865207374616b696e6720746f6b656044820152603760f91b6064820152608401610668565b600054610c77906001600160a01b038481169116836111d9565b604080516001600160a01b0384168152602081018390527f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28910160405180910390a15050565b6001600f6000828254610cd091906114ba565b9091555050600f5460045460ff1615610d515760405162461bcd60e51b815260206004820152603c60248201527f5468697320616374696f6e2063616e6e6f7420626520706572666f726d65642060448201527f7768696c652074686520636f6e747261637420697320706175736564000000006064820152608401610668565b33610d5a610f50565b600a55610d65610bd6565b6009556001600160a01b03811615610dac57610d8081610419565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b60008311610ded5760405162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b6044820152606401610668565b600d54610dfa9084611108565b600d55336000908152600e6020526040902054610e179084611108565b336000818152600e6020526040902091909155600554610e44916001600160a01b03909116903086611241565b60405183815233907f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d906020016106f5565b610e7e611167565b6006544211610f1b5760405162461bcd60e51b815260206004820152605860248201527f50726576696f7573207265776172647320706572696f64206d7573742062652060448201527f636f6d706c657465206265666f7265206368616e67696e67207468652064757260648201527f6174696f6e20666f7220746865206e657720706572696f640000000000000000608482015260a401610668565b60088190556040518181527ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d3906020016104e9565b6000600d5460001415610f645750600a5490565b6105ad610f93600d54610485670de0b6b3a7640000610f8d600754610f8d600954610460610bd6565b90611025565b600a5490611108565b336000908152600e6020526040902054610fb5906105b2565b610fbd6109aa565b565b6000828211156110115760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006044820152606401610668565b600061101d83856114eb565b949350505050565b60008261103457506000610491565b60006110408385611502565b90508261104d8583611521565b146110a45760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610668565b9392505050565b60008082116110fc5760405162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f0000000000006044820152606401610668565b600061101d8385611521565b60008061111583856114ba565b9050838110156110a45760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610668565b6000546001600160a01b03163314610fbd5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610668565b6040516001600160a01b03831660248201526044810182905261123c90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261127f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526112799085906323b872dd60e01b90608401611205565b50505050565b6001600160a01b0382163b6112d65760405162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e7472616374006044820152606401610668565b600080836001600160a01b0316836040516112f19190611543565b6000604051808303816000865af19150503d806000811461132e576040519150601f19603f3d011682016040523d82523d6000602084013e611333565b606091505b5091509150816113855760405162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646044820152606401610668565b80511561127957808060200190518101906113a0919061157e565b6112795760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610668565b80356001600160a01b038116811461141657600080fd5b919050565b60006020828403121561142d57600080fd5b6110a4826113ff565b801515811461056757600080fd5b60006020828403121561145657600080fd5b81356110a481611436565b60006020828403121561147357600080fd5b5035919050565b6000806040838503121561148d57600080fd5b611496836113ff565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b600082198211156114cd576114cd6114a4565b500190565b6000602082840312156114e457600080fd5b5051919050565b6000828210156114fd576114fd6114a4565b500390565b600081600019048311821515161561151c5761151c6114a4565b500290565b60008261153e57634e487b7160e01b600052601260045260246000fd5b500490565b6000825160005b81811015611564576020818601810151858301520161154a565b81811115611573576000828501525b509190910192915050565b60006020828403121561159057600080fd5b81516110a48161143656fea26469706673582212202a188c20ec54d65acf02badfd06a0ce1cb8032859a8eafa069adb1f08dd84c9d64736f6c634300080b0033

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

000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c000000000000000000000000a5b947687163fe88c3e6af5b17ae69896f4abccf000000000000000000000000e1ae05518a67ebe7e1e08e3b22d905d6c05b6c0f

-----Decoded View---------------
Arg [0] : _owner (address): 0xEDd77d21145Fa99Ae03689f7341E42750f9CF33c
Arg [1] : _rewardsDistribution (address): 0xEDd77d21145Fa99Ae03689f7341E42750f9CF33c
Arg [2] : _rewardsToken (address): 0xA5B947687163FE88C3e6af5b17Ae69896F4abccf
Arg [3] : _stakingToken (address): 0xe1ae05518a67EBe7e1E08e3B22D905d6c05b6C0F

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c
Arg [1] : 000000000000000000000000edd77d21145fa99ae03689f7341e42750f9cf33c
Arg [2] : 000000000000000000000000a5b947687163fe88c3e6af5b17ae69896f4abccf
Arg [3] : 000000000000000000000000e1ae05518a67ebe7e1e08e3b22d905d6c05b6c0f


Deployed Bytecode Sourcemap

18459:6349:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20345:198;;;;;;:::i;:::-;;:::i;:::-;;;529:25:1;;;517:2;502:18;20345:198:0;;;;;;;;18998:42;;;;;;:::i;:::-;;;;;;;;;;;;;;14336:141;;;;;;:::i;:::-;;:::i;:::-;;15635:500;;;;;;:::i;:::-;;:::i;19623:93::-;19696:12;;19623:93;;16745:142;;;;;;:::i;:::-;;:::i;20551:121::-;;;:::i;21121:357::-;;;;;;:::i;:::-;;:::i;18808:39::-;;;;;;21962:1092;;;;;;:::i;:::-;;:::i;21486:307::-;;;:::i;16471:34::-;;;;;-1:-1:-1;;;;;16471:34:0;;;;;;-1:-1:-1;;;;;1283:32:1;;;1265:51;;1253:2;1238:18;16471:34:0;1119:203:1;14105:29:0;;;;;-1:-1:-1;;;;;14105:29:0;;;15221:18;;;;;;;;;;;;1492:14:1;;1485:22;1467:41;;1455:2;1440:18;15221::0;1327:187:1;19724:112:0;;;;;;:::i;:::-;-1:-1:-1;;;;;19810:18:0;19783:7;19810:18;;;:9;:18;;;;;;;19724:112;18701:26;;;;;-1:-1:-1;;;;;18701:26:0;;;14485:271;;;:::i;18772:29::-;;;;;;19844:155;;;:::i;23169:302::-;;;;;;:::i;:::-;;:::i;18934:57::-;;;;;;:::i;:::-;;;;;;;;;;;;;;14078:20;;;;;-1:-1:-1;;;;;14078:20:0;;;15189:25;;;;;;20734:379;;;;;;:::i;:::-;;:::i;18854:29::-;;;;;;23479:360;;;;;;:::i;:::-;;:::i;20007:330::-;;;:::i;18668:26::-;;;;;;;;-1:-1:-1;;;;;18668:26:0;;;18890:35;;;;;;21801:97;;;:::i;18734:31::-;;;;;;20345:198;-1:-1:-1;;;;;20518:16:0;;20399:7;20518:16;;;:7;:16;;;;;;;;;20470:22;:31;;;;;;20426:109;;20518:16;20426:87;;20508:4;;20426:77;;20449:53;;:16;:14;:16::i;:::-;:20;;:53::i;:::-;-1:-1:-1;;;;;20426:18:0;;;;;;:9;:18;;;;;;;:22;:77::i;:::-;:81;;:87::i;:::-;:91;;:109::i;:::-;20419:116;20345:198;-1:-1:-1;;20345:198:0:o;14336:141::-;14794:12;:10;:12::i;:::-;14408:14:::1;:23:::0;;-1:-1:-1;;;;;;14408:23:0::1;-1:-1:-1::0;;;;;14408:23:0;::::1;::::0;;::::1;::::0;;;14447:22:::1;::::0;1265:51:1;;;14447:22:0::1;::::0;1253:2:1;1238:18;14447:22:0::1;;;;;;;;14336:141:::0;:::o;15635:500::-;14794:12;:10;:12::i;:::-;15788:6:::1;::::0;::::1;;15777:17;;::::0;::::1;;;15773:56;;;15635:500:::0;:::o;15773:56::-:1;15875:6;:16:::0;;-1:-1:-1;;15875:16:0::1;::::0;::::1;;::::0;;::::1;::::0;;;::::1;15960:6:::0;15956:70:::1;;;15999:15;15983:13;:31:::0;15956:70:::1;16120:6;::::0;16107:20:::1;::::0;16120:6:::1;::::0;;::::1;1492:14:1::0;1485:22;1467:41;;16107:20:0::1;::::0;1455:2:1;1440:18;16107:20:0::1;1327:187:1::0;14817:1:0::1;15635:500:::0;:::o;16745:142::-;14794:12;:10;:12::i;:::-;16837:19:::1;:42:::0;;-1:-1:-1;;;;;;16837:42:0::1;-1:-1:-1::0;;;;;16837:42:0;;;::::1;::::0;;;::::1;::::0;;16745:142::o;20551:121::-;20606:7;20633:31;20648:15;;20633:10;;:14;;:31;;;;:::i;:::-;20626:38;;20551:121;:::o;21121:357::-;24282:1;24265:13;;:18;;;;;;;:::i;:::-;;;;-1:-1:-1;;24317:13:0;;21188:10:::1;23965:16;:14;:16::i;:::-;23942:20;:39:::0;24009:26:::1;:24;:26::i;:::-;23992:14;:43:::0;-1:-1:-1;;;;;24050:21:0;::::1;::::0;24046:157:::1;;24107:15;24114:7;24107:6;:15::i;:::-;-1:-1:-1::0;;;;;24088:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;24171:20:::1;::::0;24137:22:::1;:31:::0;;;;;;:54;24046:157:::1;21228:1:::2;21219:6;:10;21211:40;;;::::0;-1:-1:-1;;;21211:40:0;;2467:2:1;21211:40:0::2;::::0;::::2;2449:21:1::0;2506:2;2486:18;;;2479:30;-1:-1:-1;;;2525:18:1;;;2518:47;2582:18;;21211:40:0::2;;;;;;;;;21277:12;::::0;:24:::2;::::0;21294:6;21277:16:::2;:24::i;:::-;21262:12;:39:::0;21346:10:::2;21336:21;::::0;;;:9:::2;:21;::::0;;;;;:33:::2;::::0;21362:6;21336:25:::2;:33::i;:::-;21322:10;21312:21;::::0;;;:9:::2;:21;::::0;;;;:57;;;;21380:12:::2;::::0;:45:::2;::::0;-1:-1:-1;;;;;21380:12:0;;::::2;::::0;21418:6;21380:25:::2;:45::i;:::-;21441:29;::::0;529:25:1;;;21451:10:0::2;::::0;21441:29:::2;::::0;517:2:1;502:18;21441:29:0::2;;;;;;;;24341:1:::1;24377:13:::0;;24361:12;:29;24353:73;;;;-1:-1:-1;;;24353:73:0;;2813:2:1;24353:73:0;;;2795:21:1;2852:2;2832:18;;;2825:30;2891:33;2871:18;;;2864:61;2942:18;;24353:73:0;2611:355:1;24353:73:0;24254:180;21121:357;:::o;21962:1092::-;16651:19;;-1:-1:-1;;;;;16651:19:0;16637:10;:33;16629:88;;;;-1:-1:-1;;;16629:88:0;;3173:2:1;16629:88:0;;;3155:21:1;3212:2;3192:18;;;3185:30;3251:34;3231:18;;;3224:62;-1:-1:-1;;;3302:18:1;;;3295:40;3352:19;;16629:88:0;2971:406:1;16629:88:0;22069:1:::1;23965:16;:14;:16::i;:::-;23942:20;:39:::0;24009:26:::1;:24;:26::i;:::-;23992:14;:43:::0;-1:-1:-1;;;;;24050:21:0;::::1;::::0;24046:157:::1;;24107:15;24114:7;24107:6;:15::i;:::-;-1:-1:-1::0;;;;;24088:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;24171:20:::1;::::0;24137:22:::1;:31:::0;;;;;;:54;24046:157:::1;22107:12:::2;;22088:15;:31;22084:318;;22160:15;::::0;22149:27:::2;::::0;:6;;:10:::2;:27::i;:::-;22136:10;:40:::0;22084:318:::2;;;22229:12;::::0;22209:17:::2;::::0;22229:33:::2;::::0;22246:15:::2;22229:16;:33::i;:::-;22209:53;;22277:16;22296:25;22310:10;;22296:9;:13;;:25;;;;:::i;:::-;22374:15;::::0;22277:44;;-1:-1:-1;22349:41:0::2;::::0;:20:::2;:6:::0;22277:44;22349:10:::2;:20::i;:41::-;22336:10;:54:::0;-1:-1:-1;;22084:318:0::2;22777:12;::::0;;:37:::2;::::0;-1:-1:-1;;;22777:37:0;;22808:4:::2;22777:37:::0;;::::2;1265:51:1::0;;;;22762:12:0::2;::::0;22777::::2;::::0;;::::2;-1:-1:-1::0;;;;;22777:12:0::2;::::0;:22:::2;::::0;1238:18:1;;22777:37:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;22762:52;;22847:28;22859:15;;22847:7;:11;;:28;;;;:::i;:::-;22833:10;;:42;;22825:79;;;::::0;-1:-1:-1;;;22825:79:0;;3773:2:1;22825:79:0::2;::::0;::::2;3755:21:1::0;3812:2;3792:18;;;3785:30;3851:26;3831:18;;;3824:54;3895:18;;22825:79:0::2;3571:348:1::0;22825:79:0::2;22934:15;22917:14;:32:::0;;;22995:15:::2;::::0;22975:36:::2;::::0;22934:15;22975:19:::2;:36::i;:::-;22960:12;:51:::0;23027:19:::2;::::0;529:25:1;;;23027:19:0::2;::::0;517:2:1;502:18;23027:19:0::2;;;;;;;22073:981;16728:1:::1;21962:1092:::0;:::o;21486:307::-;24282:1;24265:13;;:18;;;;;;;:::i;:::-;;;;-1:-1:-1;;24317:13:0;;21540:10:::1;23965:16;:14;:16::i;:::-;23942:20;:39:::0;24009:26:::1;:24;:26::i;:::-;23992:14;:43:::0;-1:-1:-1;;;;;24050:21:0;::::1;::::0;24046:157:::1;;24107:15;24114:7;24107:6;:15::i;:::-;-1:-1:-1::0;;;;;24088:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;:34;;;;24171:20:::1;::::0;24137:22:::1;:31:::0;;;;;;:54;24046:157:::1;21588:10:::2;21563:14;21580:19:::0;;;:7:::2;:19;::::0;;;;;21614:10;;21610:176:::2;;21649:10;21663:1;21641:19:::0;;;:7:::2;:19;::::0;;;;:23;21679:12:::2;::::0;:45:::2;::::0;:12:::2;::::0;;::::2;-1:-1:-1::0;;;;;21679:12:0::2;::::0;21717:6;21679:25:::2;:45::i;:::-;21744:30;::::0;529:25:1;;;21755:10:0::2;::::0;21744:30:::2;::::0;517:2:1;502:18;21744:30:0::2;;;;;;;21610:176;21552:241;24341:1:::1;24377:13:::0;;24361:12;:29;24353:73;;;;-1:-1:-1;;;24353:73:0;;2813:2:1;24353:73:0;;;2795:21:1;2852:2;2832:18;;;2825:30;2891:33;2871:18;;;2864:61;2942:18;;24353:73:0;2611:355:1;14485:271:0;14554:14;;-1:-1:-1;;;;;14554:14:0;14540:10;:28;14532:94;;;;-1:-1:-1;;;14532:94:0;;4126:2:1;14532:94:0;;;4108:21:1;4165:2;4145:18;;;4138:30;4204:34;4184:18;;;4177:62;-1:-1:-1;;;4255:18:1;;;4248:51;4316:19;;14532:94:0;3924:417:1;14532:94:0;14655:5;;;14662:14;14642:35;;;-1:-1:-1;;;;;14655:5:0;;;4558:34:1;;14662:14:0;;;;4623:2:1;4608:18;;4601:43;14642:35:0;;4493:18:1;14642:35:0;;;;;;;14696:14;;;;14688:22;;-1:-1:-1;;;;;;14688:22:0;;;-1:-1:-1;;;;;14696:14:0;;14688:22;;;;14721:27;;;14485:271::o;19844:155::-;19901:7;19946:12;;19928:15;:30;:63;;-1:-1:-1;19979:12:0;;;20551:121::o;19928:63::-;-1:-1:-1;19961:15:0;;19844:155::o;23169:302::-;14794:12;:10;:12::i;:::-;23296::::1;::::0;-1:-1:-1;;;;;23272:37:0;;::::1;23296:12:::0;::::1;23272:37;;23264:83;;;::::0;-1:-1:-1;;;23264:83:0;;4857:2:1;23264:83:0::1;::::0;::::1;4839:21:1::0;4896:2;4876:18;;;4869:30;4935:34;4915:18;;;4908:62;-1:-1:-1;;;4986:18:1;;;4979:31;5027:19;;23264:83:0::1;4655:397:1::0;23264:83:0::1;23392:5;::::0;23358:53:::1;::::0;-1:-1:-1;;;;;23358:33:0;;::::1;::::0;23392:5:::1;23399:11:::0;23358:33:::1;:53::i;:::-;23427:36;::::0;;-1:-1:-1;;;;;5249:32:1;;5231:51;;5313:2;5298:18;;5291:34;;;23427:36:0::1;::::0;5204:18:1;23427:36:0::1;;;;;;;23169:302:::0;;:::o;20734:379::-;24282:1;24265:13;;:18;;;;;;;:::i;:::-;;;;-1:-1:-1;;24317:13:0;;16224:6:::1;::::0;::::1;;16223:7;16215:80;;;::::0;-1:-1:-1;;;16215:80:0;;5538:2:1;16215:80:0::1;::::0;::::1;5520:21:1::0;5577:2;5557:18;;;5550:30;5616:34;5596:18;;;5589:62;5687:30;5667:18;;;5660:58;5735:19;;16215:80:0::1;5336:424:1::0;16215:80:0::1;20810:10:::2;23965:16;:14;:16::i;:::-;23942:20;:39:::0;24009:26:::2;:24;:26::i;:::-;23992:14;:43:::0;-1:-1:-1;;;;;24050:21:0;::::2;::::0;24046:157:::2;;24107:15;24114:7;24107:6;:15::i;:::-;-1:-1:-1::0;;;;;24088:16:0;::::2;;::::0;;;:7:::2;:16;::::0;;;;;;;:34;;;;24171:20:::2;::::0;24137:22:::2;:31:::0;;;;;;:54;24046:157:::2;20850:1:::3;20841:6;:10;20833:37;;;::::0;-1:-1:-1;;;20833:37:0;;5967:2:1;20833:37:0::3;::::0;::::3;5949:21:1::0;6006:2;5986:18;;;5979:30;-1:-1:-1;;;6025:18:1;;;6018:44;6079:18;;20833:37:0::3;5765:338:1::0;20833:37:0::3;20896:12;::::0;:24:::3;::::0;20913:6;20896:16:::3;:24::i;:::-;20881:12;:39:::0;20965:10:::3;20955:21;::::0;;;:9:::3;:21;::::0;;;;;:33:::3;::::0;20981:6;20955:25:::3;:33::i;:::-;20941:10;20931:21;::::0;;;:9:::3;:21;::::0;;;;:57;;;;20999:12:::3;::::0;:64:::3;::::0;-1:-1:-1;;;;;20999:12:0;;::::3;::::0;21049:4:::3;21056:6:::0;20999:29:::3;:64::i;:::-;21079:26;::::0;529:25:1;;;21086:10:0::3;::::0;21079:26:::3;::::0;517:2:1;502:18;21079:26:0::3;383:177:1::0;23479:360:0;14794:12;:10;:12::i;:::-;23603::::1;;23585:15;:30;23563:168;;;::::0;-1:-1:-1;;;23563:168:0;;6310:2:1;23563:168:0::1;::::0;::::1;6292:21:1::0;6349:2;6329:18;;;6322:30;6388:34;6368:18;;;6361:62;6459:34;6439:18;;;6432:62;6531:26;6510:19;;;6503:55;6575:19;;23563:168:0::1;6108:492:1::0;23563:168:0::1;23742:15;:34:::0;;;23792:39:::1;::::0;529:25:1;;;23792:39:0::1;::::0;517:2:1;502:18;23792:39:0::1;383:177:1::0;20007:330:0;20054:7;20078:12;;20094:1;20078:17;20074:77;;;-1:-1:-1;20119:20:0;;;20007:330::o;20074:77::-;20181:148;20224:90;20301:12;;20224:72;20291:4;20224:62;20275:10;;20224:46;20255:14;;20224:26;:24;:26::i;:46::-;:50;;:62::i;:90::-;20181:20;;;:24;:148::i;21801:97::-;21856:10;21846:21;;;;:9;:21;;;;;;21837:31;;:8;:31::i;:::-;21879:11;:9;:11::i;:::-;21801:97::o;1493:184::-;1551:7;1584:1;1579;:6;;1571:49;;;;-1:-1:-1;;;1571:49:0;;6807:2:1;1571:49:0;;;6789:21:1;6846:2;6826:18;;;6819:30;6885:32;6865:18;;;6858:60;6935:18;;1571:49:0;6605:354:1;1571:49:0;1631:9;1643:5;1647:1;1643;:5;:::i;:::-;1631:17;1493:184;-1:-1:-1;;;;1493:184:0:o;1928:470::-;1986:7;2230:6;2226:47;;-1:-1:-1;2260:1:0;2253:8;;2226:47;2285:9;2297:5;2301:1;2297;:5;:::i;:::-;2285:17;-1:-1:-1;2330:1:0;2321:5;2325:1;2285:17;2321:5;:::i;:::-;:10;2313:56;;;;-1:-1:-1;;;2313:56:0;;7691:2:1;2313:56:0;;;7673:21:1;7730:2;7710:18;;;7703:30;7769:34;7749:18;;;7742:62;-1:-1:-1;;;7820:18:1;;;7813:31;7861:19;;2313:56:0;7489:397:1;2313:56:0;2389:1;1928:470;-1:-1:-1;;;1928:470:0:o;2866:333::-;2924:7;3023:1;3019;:5;3011:44;;;;-1:-1:-1;;;3011:44:0;;8093:2:1;3011:44:0;;;8075:21:1;8132:2;8112:18;;;8105:30;8171:28;8151:18;;;8144:56;8217:18;;3011:44:0;7891:350:1;3011:44:0;3066:9;3078:5;3082:1;3078;:5;:::i;1037:181::-;1095:7;;1127:5;1131:1;1127;:5;:::i;:::-;1115:17;;1156:1;1151;:6;;1143:46;;;;-1:-1:-1;;;1143:46:0;;8448:2:1;1143:46:0;;;8430:21:1;8487:2;8467:18;;;8460:30;8526:29;8506:18;;;8499:57;8573:18;;1143:46:0;8246:351:1;14834:133:0;14902:5;;-1:-1:-1;;;;;14902:5:0;14888:10;:19;14880:79;;;;-1:-1:-1;;;14880:79:0;;8804:2:1;14880:79:0;;;8786:21:1;8843:2;8823:18;;;8816:30;8882:34;8862:18;;;8855:62;-1:-1:-1;;;8933:18:1;;;8926:45;8988:19;;14880:79:0;8602:411:1;10876:176:0;10985:58;;-1:-1:-1;;;;;5249:32:1;;10985:58:0;;;5231:51:1;5298:18;;;5291:34;;;10959:85:0;;10978:5;;-1:-1:-1;;;11008:23:0;5204:18:1;;10985:58:0;;;;-1:-1:-1;;10985:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;10985:58:0;-1:-1:-1;;;;;;10985:58:0;;;;;;;;;;10959:18;:85::i;:::-;10876:176;;;:::o;11060:204::-;11187:68;;-1:-1:-1;;;;;9276:15:1;;;11187:68:0;;;9258:34:1;9328:15;;9308:18;;;9301:43;9360:18;;;9353:34;;;11161:95:0;;11180:5;;-1:-1:-1;;;11210:27:0;9193:18:1;;11187:68:0;9018:375:1;11161:95:0;11060:204;;;;:::o;12870:1114::-;-1:-1:-1;;;;;13474:25:0;;5894:20;13466:71;;;;-1:-1:-1;;;13466:71:0;;9600:2:1;13466:71:0;;;9582:21:1;9639:2;9619:18;;;9612:30;9678:33;9658:18;;;9651:61;9729:18;;13466:71:0;9398:355:1;13466:71:0;13611:12;13625:23;13660:5;-1:-1:-1;;;;;13652:19:0;13672:4;13652:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13610:67;;;;13696:7;13688:52;;;;-1:-1:-1;;;13688:52:0;;10391:2:1;13688:52:0;;;10373:21:1;;;10410:18;;;10403:30;10469:34;10449:18;;;10442:62;10521:18;;13688:52:0;10189:356:1;13688:52:0;13757:17;;:21;13753:224;;13899:10;13888:30;;;;;;;;;;;;:::i;:::-;13880:85;;;;-1:-1:-1;;;13880:85:0;;11002:2:1;13880:85:0;;;10984:21:1;11041:2;11021:18;;;11014:30;11080:34;11060:18;;;11053:62;-1:-1:-1;;;11131:18:1;;;11124:40;11181:19;;13880:85:0;10800:406:1;14:173;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;565:118::-;651:5;644:13;637:21;630:5;627:32;617:60;;673:1;670;663:12;688:241;744:6;797:2;785:9;776:7;772:23;768:32;765:52;;;813:1;810;803:12;765:52;852:9;839:23;871:28;893:5;871:28;:::i;934:180::-;993:6;1046:2;1034:9;1025:7;1021:23;1017:32;1014:52;;;1062:1;1059;1052:12;1014:52;-1:-1:-1;1085:23:1;;934:180;-1:-1:-1;934:180:1:o;1741:254::-;1809:6;1817;1870:2;1858:9;1849:7;1845:23;1841:32;1838:52;;;1886:1;1883;1876:12;1838:52;1909:29;1928:9;1909:29;:::i;:::-;1899:39;1985:2;1970:18;;;;1957:32;;-1:-1:-1;;;1741:254:1:o;2000:127::-;2061:10;2056:3;2052:20;2049:1;2042:31;2092:4;2089:1;2082:15;2116:4;2113:1;2106:15;2132:128;2172:3;2203:1;2199:6;2196:1;2193:13;2190:39;;;2209:18;;:::i;:::-;-1:-1:-1;2245:9:1;;2132:128::o;3382:184::-;3452:6;3505:2;3493:9;3484:7;3480:23;3476:32;3473:52;;;3521:1;3518;3511:12;3473:52;-1:-1:-1;3544:16:1;;3382:184;-1:-1:-1;3382:184:1:o;6964:125::-;7004:4;7032:1;7029;7026:8;7023:34;;;7037:18;;:::i;:::-;-1:-1:-1;7074:9:1;;6964:125::o;7094:168::-;7134:7;7200:1;7196;7192:6;7188:14;7185:1;7182:21;7177:1;7170:9;7163:17;7159:45;7156:71;;;7207:18;;:::i;:::-;-1:-1:-1;7247:9:1;;7094:168::o;7267:217::-;7307:1;7333;7323:132;;7377:10;7372:3;7368:20;7365:1;7358:31;7412:4;7409:1;7402:15;7440:4;7437:1;7430:15;7323:132;-1:-1:-1;7469:9:1;;7267:217::o;9758:426::-;9887:3;9925:6;9919:13;9950:1;9960:129;9974:6;9971:1;9968:13;9960:129;;;10072:4;10056:14;;;10052:25;;10046:32;10033:11;;;10026:53;9989:12;9960:129;;;10107:6;10104:1;10101:13;10098:48;;;10142:1;10133:6;10128:3;10124:16;10117:27;10098:48;-1:-1:-1;10162:16:1;;;;;9758:426;-1:-1:-1;;9758:426:1:o;10550:245::-;10617:6;10670:2;10658:9;10649:7;10645:23;10641:32;10638:52;;;10686:1;10683;10676:12;10638:52;10718:9;10712:16;10737:28;10759:5;10737:28;:::i

Swarm Source

ipfs://2a188c20ec54d65acf02badfd06a0ce1cb8032859a8eafa069adb1f08dd84c9d

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.