ETH Price: $3,222.91 (-2.66%)

Contract

0x7730C96A3eF1084833D5896D36129605D9a5aEAD
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw132244522021-09-14 14:44:331155 days ago1631630673IN
0x7730C96A...5D9a5aEAD
0 ETH0.005352849
Withdraw130248912021-08-14 18:26:091186 days ago1628965569IN
0x7730C96A...5D9a5aEAD
0 ETH0.0042279748.84837917
Get Reward130248882021-08-14 18:25:411186 days ago1628965541IN
0x7730C96A...5D9a5aEAD
0 ETH0.0042928746.05053068
Withdraw129324602021-07-31 9:14:221200 days ago1627722862IN
0x7730C96A...5D9a5aEAD
0 ETH0.0016034121
Withdraw129028852021-07-26 16:29:271205 days ago1627316967IN
0x7730C96A...5D9a5aEAD
0 ETH0.0042493742.9
Withdraw128710602021-07-21 17:11:591210 days ago1626887519IN
0x7730C96A...5D9a5aEAD
0 ETH0.002748736
Get Reward128710552021-07-21 17:10:361210 days ago1626887436IN
0x7730C96A...5D9a5aEAD
0 ETH0.0025119933
Withdraw128340272021-07-15 21:43:151216 days ago1626385395IN
0x7730C96A...5D9a5aEAD
0 ETH0.0028250637
Get Reward128072792021-07-11 17:08:331220 days ago1626023313IN
0x7730C96A...5D9a5aEAD
0 ETH0.0009379412.00000145
Withdraw128072712021-07-11 17:06:461220 days ago1626023206IN
0x7730C96A...5D9a5aEAD
0 ETH0.0011886312.00000145
Get Reward128071892021-07-11 16:51:181220 days ago1626022278IN
0x7730C96A...5D9a5aEAD
0 ETH0.0013050914
Withdraw127580592021-07-04 1:13:351228 days ago1625361215IN
0x7730C96A...5D9a5aEAD
0 ETH0.0007634110
Get Reward127580502021-07-04 1:12:231228 days ago1625361143IN
0x7730C96A...5D9a5aEAD
0 ETH0.0009322110
Get Reward127375702021-06-30 20:31:121231 days ago1625085072IN
0x7730C96A...5D9a5aEAD
0 ETH0.0016486727
Withdraw127372162021-06-30 19:16:361231 days ago1625080596IN
0x7730C96A...5D9a5aEAD
0 ETH0.0027731428
Withdraw126564372021-06-18 4:54:151243 days ago1623992055IN
0x7730C96A...5D9a5aEAD
0 ETH0.0011452915
Withdraw126527702021-06-17 15:35:561244 days ago1623944156IN
0x7730C96A...5D9a5aEAD
0 ETH0.0017561123
Get Reward126527562021-06-17 15:32:581244 days ago1623943978IN
0x7730C96A...5D9a5aEAD
0 ETH0.001826924
Get Reward126489042021-06-17 1:08:551245 days ago1623892135IN
0x7730C96A...5D9a5aEAD
0 ETH0.0007816210
Withdraw126474382021-06-16 19:34:241245 days ago1623872064IN
0x7730C96A...5D9a5aEAD
0 ETH0.0029014138
Get Reward126474352021-06-16 19:34:021245 days ago1623872042IN
0x7730C96A...5D9a5aEAD
0 ETH0.0035423938
Get Reward126411112021-06-15 20:00:021246 days ago1623787202IN
0x7730C96A...5D9a5aEAD
0 ETH0.000703459
Withdraw126399832021-06-15 16:00:091246 days ago1623772809IN
0x7730C96A...5D9a5aEAD
0 ETH0.0009905310
Get Reward126332232021-06-14 14:53:501247 days ago1623682430IN
0x7730C96A...5D9a5aEAD
0 ETH0.0020322126
Withdraw126332182021-06-14 14:52:481247 days ago1623682368IN
0x7730C96A...5D9a5aEAD
0 ETH0.0023769824
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
125311392021-05-29 19:22:121263 days ago1622316132  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingRewards

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

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

/**
 *Submitted for verification at Etherscan.io on 2021-03-08
*/

// File: openzeppelin-solidity-2.3.0/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

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

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

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

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

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

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

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

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

// File: openzeppelin-solidity-2.3.0/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
    }

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

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

// File: openzeppelin-solidity-2.3.0/contracts/math/Math.sol

pragma solidity ^0.5.0;

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

// File: openzeppelin-solidity-2.3.0/contracts/math/SafeMath.sol

pragma solidity ^0.5.0;

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

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        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: openzeppelin-solidity-2.3.0/contracts/token/ERC20/ERC20Detailed.sol

pragma solidity ^0.5.0;


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

// File: openzeppelin-solidity-2.3.0/contracts/utils/Address.sol

pragma solidity ^0.5.0;

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

// File: openzeppelin-solidity-2.3.0/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.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");
        }
    }
}

// File: openzeppelin-solidity-2.3.0/contracts/utils/ReentrancyGuard.sol

pragma solidity ^0.5.0;

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

// File: contracts/interfaces/IStakingRewards.sol

pragma solidity >=0.4.24;


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;
}

// File: contracts/RewardsDistributionRecipient.sol

pragma solidity ^0.5.16;

contract RewardsDistributionRecipient {
    address public rewardsDistribution;

    function notifyRewardAmount(uint256 reward) external;

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

// File: contracts/StakingRewards.sol

pragma solidity ^0.5.16;






// Inheritance



contract StakingRewards is IStakingRewards, RewardsDistributionRecipient, ReentrancyGuard {
    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;

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

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

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

    /* ========== 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);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
}

// File: contracts/StakingRewardsFactory.sol

pragma solidity ^0.5.16;




contract StakingRewardsFactory is Ownable {
    // immutables
    address public rewardsToken;
    uint public stakingRewardsGenesis;

    // the staking tokens for which the rewards contract has been deployed
    address[] public stakingTokens;

    // info about rewards for a particular staking token
    struct StakingRewardsInfo {
        address stakingRewards;
        uint rewardAmount;
    }

    // rewards info by staking token
    mapping(address => StakingRewardsInfo) public stakingRewardsInfoByStakingToken;

    constructor(
        address _rewardsToken,
        uint _stakingRewardsGenesis
    ) Ownable() public {
        require(_stakingRewardsGenesis >= block.timestamp, 'StakingRewardsFactory::constructor: genesis too soon');

        rewardsToken = _rewardsToken;
        stakingRewardsGenesis = _stakingRewardsGenesis;
    }

    ///// permissioned functions

    // deploy a staking reward contract for the staking token, and store the reward amount
    // the reward will be distributed to the staking reward contract no sooner than the genesis
    function deploy(address stakingToken, uint rewardAmount) public onlyOwner {
        StakingRewardsInfo storage info = stakingRewardsInfoByStakingToken[stakingToken];
        require(info.stakingRewards == address(0), 'StakingRewardsFactory::deploy: already deployed');

        info.stakingRewards = address(new StakingRewards(/*_rewardsDistribution=*/ address(this), rewardsToken, stakingToken));
        info.rewardAmount = rewardAmount;
        stakingTokens.push(stakingToken);
    }

    ///// permissionless functions

    // call notifyRewardAmount for all staking tokens.
    function notifyRewardAmounts() public {
        require(stakingTokens.length > 0, 'StakingRewardsFactory::notifyRewardAmounts: called before any deploys');
        for (uint i = 0; i < stakingTokens.length; i++) {
            notifyRewardAmount(stakingTokens[i]);
        }
    }

    // notify reward amount for an individual staking token.
    // this is a fallback in case the notifyRewardAmounts costs too much gas to call for all contracts
    function notifyRewardAmount(address stakingToken) public {
        require(block.timestamp >= stakingRewardsGenesis, 'StakingRewardsFactory::notifyRewardAmount: not ready');

        StakingRewardsInfo storage info = stakingRewardsInfoByStakingToken[stakingToken];
        require(info.stakingRewards != address(0), 'StakingRewardsFactory::notifyRewardAmount: not deployed');

        if (info.rewardAmount > 0) {
            uint rewardAmount = info.rewardAmount;
            info.rewardAmount = 0;

            require(
                IERC20(rewardsToken).transfer(info.stakingRewards, rewardAmount),
                'StakingRewardsFactory::notifyRewardAmount: transfer failed'
            );
            StakingRewards(info.stakingRewards).notifyRewardAmount(rewardAmount);
        }
    }
}

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"}],"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"}],"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":"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":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040526000600455600060055562093a8060065534801561002157600080fd5b50604051611dbc380380611dbc8339818101604052606081101561004457600080fd5b810190808051906020019092919080519060200190929190805190602001909291905050506001808190555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050611c78806101446000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c806372f702f3116100b8578063c8f33c911161007c578063c8f33c9114610459578063cd3daf9d14610477578063d1af0c7d14610495578063df136d65146104df578063e9fad8ee146104fd578063ebe2b12b1461050757610136565b806372f702f31461034d5780637b0a47ee1461039757806380faa57d146103b55780638b876347146103d3578063a694fc3a1461042b57610136565b8063386a9525116100ff578063386a9525146102555780633c6b16ab146102735780633d18b912146102a15780633fc6df6e146102ab57806370a08231146102f557610136565b80628cc2621461013b5780630700037d1461019357806318160ddd146101eb5780631c1f78eb146102095780632e1a7d4d14610227575b600080fd5b61017d6004803603602081101561015157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610525565b6040518082815260200191505060405180910390f35b6101d5600480360360208110156101a957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610643565b6040518082815260200191505060405180910390f35b6101f361065b565b6040518082815260200191505060405180910390f35b610211610665565b6040518082815260200191505060405180910390f35b6102536004803603602081101561023d57600080fd5b8101908080359060200190929190505050610683565b005b61025d6109bb565b6040518082815260200191505060405180910390f35b61029f6004803603602081101561028957600080fd5b81019080803590602001909291905050506109c1565b005b6102a9610d9e565b005b6102b3611043565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103376004803603602081101561030b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611068565b6040518082815260200191505060405180910390f35b6103556110b1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61039f6110d7565b6040518082815260200191505060405180910390f35b6103bd6110dd565b6040518082815260200191505060405180910390f35b610415600480360360208110156103e957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110f0565b6040518082815260200191505060405180910390f35b6104576004803603602081101561044157600080fd5b8101908080359060200190929190505050611108565b005b610461611442565b6040518082815260200191505060405180910390f35b61047f611448565b6040518082815260200191505060405180910390f35b61049d6114d6565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104e76114fc565b6040518082815260200191505060405180910390f35b610505611502565b005b61050f611554565b6040518082815260200191505060405180910390f35b600061063c600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461062e670de0b6b3a76400006106206105d2600960008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105c4611448565b61155a90919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115e390919063ffffffff16565b61166990919063ffffffff16565b6116f890919063ffffffff16565b9050919050565b600a6020528060005260406000206000915090505481565b6000600b54905090565b600061067e6006546005546115e390919063ffffffff16565b905090565b6001806000828254019250508190555060006001549050336106a3611448565b6008819055506106b16110dd565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461077e576106f481610525565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600083116107f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b61080983600b5461155a90919063ffffffff16565b600b8190555061086183600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461155a90919063ffffffff16565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108f13384600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117809092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040518082815260200191505060405180910390a25060015481146109b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b60065481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a66576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611bf0602a913960400191505060405180910390fd5b6000610a70611448565b600881905550610a7e6110dd565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b4b57610ac181610525565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6004544210610b7457610b696006548361166990919063ffffffff16565b600581905550610bd6565b6000610b8b4260045461155a90919063ffffffff16565b90506000610ba4600554836115e390919063ffffffff16565b9050610bcd600654610bbf83876116f890919063ffffffff16565b61166990919063ffffffff16565b60058190555050505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610c7757600080fd5b505afa158015610c8b573d6000803e3d6000fd5b505050506040513d6020811015610ca157600080fd5b81019080805190602001909291905050509050610cc96006548261166990919063ffffffff16565b6005541115610d40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f50726f76696465642072657761726420746f6f2068696768000000000000000081525060200191505060405180910390fd5b42600781905550610d5c600654426116f890919063ffffffff16565b6004819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d836040518082815260200191505060405180910390a1505050565b600180600082825401925050819055506000600154905033610dbe611448565b600881905550610dcc6110dd565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e9957610e0f81610525565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115610fc7576000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610f783382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117809092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b50506001548114611040576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b50565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b60006110eb42600454611851565b905090565b60096020528060005260406000206000915090505481565b600180600082825401925050819055506000600154905033611128611448565b6008819055506111366110dd565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112035761117981610525565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008311611279576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b61128e83600b546116f890919063ffffffff16565b600b819055506112e683600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116f890919063ffffffff16565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611378333085600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661186a909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d846040518082815260200191505060405180910390a250600154811461143e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b60075481565b600080600b54141561145e5760085490506114d3565b6114d06114bf600b546114b1670de0b6b3a76400006114a36005546114956007546114876110dd565b61155a90919063ffffffff16565b6115e390919063ffffffff16565b6115e390919063ffffffff16565b61166990919063ffffffff16565b6008546116f890919063ffffffff16565b90505b90565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b61154a600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610683565b611552610d9e565b565b60045481565b6000828211156115d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b600082840390508091505092915050565b6000808314156115f65760009050611663565b600082840290508284828161160757fe5b041461165e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611bcf6021913960400191505060405180910390fd5b809150505b92915050565b60008082116116e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b60008284816116eb57fe5b0490508091505092915050565b600080828401905083811015611776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b61184c838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611970565b505050565b60008183106118605781611862565b825b905092915050565b61196a848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611970565b50505050565b61198f8273ffffffffffffffffffffffffffffffffffffffff16611bbb565b611a01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310611a505780518252602082019150602081019050602083039250611a2d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611ab2576040519150601f19603f3d011682016040523d82523d6000602084013e611ab7565b606091505b509150915081611b2f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b600081511115611bb557808060200190516020811015611b4e57600080fd5b8101908080519060200190929190505050611bb4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611c1a602a913960400191505060405180910390fd5b5b50505050565b600080823b90506000811191505091905056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820e16034dd0f5f8c323d4d37a338dff5855735ea1c1a48b3128bd2710520ab104f64736f6c6343000511003200000000000000000000000030f4d19a540fa6931e76db10c4a35927f569b2bd000000000000000000000000d23ac27148af6a2f339bd82d0e3cff380b5093de00000000000000000000000030045ad74f4475e82dcdc269952581ecb7cd2bad

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101365760003560e01c806372f702f3116100b8578063c8f33c911161007c578063c8f33c9114610459578063cd3daf9d14610477578063d1af0c7d14610495578063df136d65146104df578063e9fad8ee146104fd578063ebe2b12b1461050757610136565b806372f702f31461034d5780637b0a47ee1461039757806380faa57d146103b55780638b876347146103d3578063a694fc3a1461042b57610136565b8063386a9525116100ff578063386a9525146102555780633c6b16ab146102735780633d18b912146102a15780633fc6df6e146102ab57806370a08231146102f557610136565b80628cc2621461013b5780630700037d1461019357806318160ddd146101eb5780631c1f78eb146102095780632e1a7d4d14610227575b600080fd5b61017d6004803603602081101561015157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610525565b6040518082815260200191505060405180910390f35b6101d5600480360360208110156101a957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610643565b6040518082815260200191505060405180910390f35b6101f361065b565b6040518082815260200191505060405180910390f35b610211610665565b6040518082815260200191505060405180910390f35b6102536004803603602081101561023d57600080fd5b8101908080359060200190929190505050610683565b005b61025d6109bb565b6040518082815260200191505060405180910390f35b61029f6004803603602081101561028957600080fd5b81019080803590602001909291905050506109c1565b005b6102a9610d9e565b005b6102b3611043565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103376004803603602081101561030b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611068565b6040518082815260200191505060405180910390f35b6103556110b1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61039f6110d7565b6040518082815260200191505060405180910390f35b6103bd6110dd565b6040518082815260200191505060405180910390f35b610415600480360360208110156103e957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110f0565b6040518082815260200191505060405180910390f35b6104576004803603602081101561044157600080fd5b8101908080359060200190929190505050611108565b005b610461611442565b6040518082815260200191505060405180910390f35b61047f611448565b6040518082815260200191505060405180910390f35b61049d6114d6565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104e76114fc565b6040518082815260200191505060405180910390f35b610505611502565b005b61050f611554565b6040518082815260200191505060405180910390f35b600061063c600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461062e670de0b6b3a76400006106206105d2600960008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546105c4611448565b61155a90919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115e390919063ffffffff16565b61166990919063ffffffff16565b6116f890919063ffffffff16565b9050919050565b600a6020528060005260406000206000915090505481565b6000600b54905090565b600061067e6006546005546115e390919063ffffffff16565b905090565b6001806000828254019250508190555060006001549050336106a3611448565b6008819055506106b16110dd565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461077e576106f481610525565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600083116107f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b61080983600b5461155a90919063ffffffff16565b600b8190555061086183600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461155a90919063ffffffff16565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108f13384600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117809092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5846040518082815260200191505060405180910390a25060015481146109b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b60065481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a66576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611bf0602a913960400191505060405180910390fd5b6000610a70611448565b600881905550610a7e6110dd565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b4b57610ac181610525565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6004544210610b7457610b696006548361166990919063ffffffff16565b600581905550610bd6565b6000610b8b4260045461155a90919063ffffffff16565b90506000610ba4600554836115e390919063ffffffff16565b9050610bcd600654610bbf83876116f890919063ffffffff16565b61166990919063ffffffff16565b60058190555050505b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610c7757600080fd5b505afa158015610c8b573d6000803e3d6000fd5b505050506040513d6020811015610ca157600080fd5b81019080805190602001909291905050509050610cc96006548261166990919063ffffffff16565b6005541115610d40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f50726f76696465642072657761726420746f6f2068696768000000000000000081525060200191505060405180910390fd5b42600781905550610d5c600654426116f890919063ffffffff16565b6004819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d836040518082815260200191505060405180910390a1505050565b600180600082825401925050819055506000600154905033610dbe611448565b600881905550610dcc6110dd565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e9957610e0f81610525565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115610fc7576000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610f783382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117809092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b50506001548114611040576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b50565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b60006110eb42600454611851565b905090565b60096020528060005260406000206000915090505481565b600180600082825401925050819055506000600154905033611128611448565b6008819055506111366110dd565b600781905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146112035761117981610525565b600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600854600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b60008311611279576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b61128e83600b546116f890919063ffffffff16565b600b819055506112e683600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116f890919063ffffffff16565b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611378333085600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661186a909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d846040518082815260200191505060405180910390a250600154811461143e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b5050565b60075481565b600080600b54141561145e5760085490506114d3565b6114d06114bf600b546114b1670de0b6b3a76400006114a36005546114956007546114876110dd565b61155a90919063ffffffff16565b6115e390919063ffffffff16565b6115e390919063ffffffff16565b61166990919063ffffffff16565b6008546116f890919063ffffffff16565b90505b90565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b61154a600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610683565b611552610d9e565b565b60045481565b6000828211156115d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b600082840390508091505092915050565b6000808314156115f65760009050611663565b600082840290508284828161160757fe5b041461165e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611bcf6021913960400191505060405180910390fd5b809150505b92915050565b60008082116116e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b60008284816116eb57fe5b0490508091505092915050565b600080828401905083811015611776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b61184c838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb905060e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611970565b505050565b60008183106118605781611862565b825b905092915050565b61196a848573ffffffffffffffffffffffffffffffffffffffff166323b872dd905060e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611970565b50505050565b61198f8273ffffffffffffffffffffffffffffffffffffffff16611bbb565b611a01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e74726163740081525060200191505060405180910390fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310611a505780518252602082019150602081019050602083039250611a2d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611ab2576040519150601f19603f3d011682016040523d82523d6000602084013e611ab7565b606091505b509150915081611b2f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656481525060200191505060405180910390fd5b600081511115611bb557808060200190516020811015611b4e57600080fd5b8101908080519060200190929190505050611bb4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611c1a602a913960400191505060405180910390fd5b5b50505050565b600080823b90506000811191505091905056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820e16034dd0f5f8c323d4d37a338dff5855735ea1c1a48b3128bd2710520ab104f64736f6c63430005110032

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

00000000000000000000000030f4d19a540fa6931e76db10c4a35927f569b2bd000000000000000000000000d23ac27148af6a2f339bd82d0e3cff380b5093de00000000000000000000000030045ad74f4475e82dcdc269952581ecb7cd2bad

-----Decoded View---------------
Arg [0] : _rewardsDistribution (address): 0x30F4d19a540fa6931e76DB10C4a35927f569b2bd
Arg [1] : _rewardsToken (address): 0xD23Ac27148aF6A2f339BD82D0e3CFF380b5093de
Arg [2] : _stakingToken (address): 0x30045ad74f4475E82DcDC269952581ECb7CD2bAd

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000030f4d19a540fa6931e76db10c4a35927f569b2bd
Arg [1] : 000000000000000000000000d23ac27148af6a2f339bd82d0e3cff380b5093de
Arg [2] : 00000000000000000000000030045ad74f4475e82dcdc269952581ecb7cd2bad


Deployed Bytecode Sourcemap

19329:5102:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19329:5102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21093:198;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21093:198:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;19875:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19875:42:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20395:93;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21299:121;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21859:357;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21859:357:0;;;;;;;;;;;;;;;;;:::i;:::-;;19685:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22700:1083;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;22700:1083:0;;;;;;;;;;;;;;;;;:::i;:::-;;22224:307;;;:::i;:::-;;18963:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;20496:112;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;20496:112:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;19578:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;19649:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20616:131;;;:::i;:::-;;;;;;;;;;;;;;;;;;;19811:57;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;19811:57:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21482:369;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;21482:369:0;;;;;;;;;;;;;;;;;:::i;:::-;;19731:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;20755:330;;;:::i;:::-;;;;;;;;;;;;;;;;;;;19545:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;19767:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;22539:97;;;:::i;:::-;;19611:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21093:198;21147:7;21174:109;21266:7;:16;21274:7;21266:16;;;;;;;;;;;;;;;;21174:87;21256:4;21174:77;21197:53;21218:22;:31;21241:7;21218:31;;;;;;;;;;;;;;;;21197:16;:14;:16::i;:::-;:20;;:53;;;;:::i;:::-;21174:9;:18;21184:7;21174:18;;;;;;;;;;;;;;;;:22;;:77;;;;:::i;:::-;:81;;:87;;;;:::i;:::-;:91;;:109;;;;:::i;:::-;21167:116;;21093:198;;;:::o;19875:42::-;;;;;;;;;;;;;;;;;:::o;20395:93::-;20441:7;20468:12;;20461:19;;20395:93;:::o;21299:121::-;21354:7;21381:31;21396:15;;21381:10;;:14;;:31;;;;:::i;:::-;21374:38;;21299:121;:::o;21859:357::-;17931:1;17914:13;;:18;;;;;;;;;;;17943:20;17966:13;;17943:36;;21926:10;23909:16;:14;:16::i;:::-;23886:20;:39;;;;23953:26;:24;:26::i;:::-;23936:14;:43;;;;24013:1;23994:21;;:7;:21;;;23990:157;;24051:15;24058:7;24051:6;:15::i;:::-;24032:7;:16;24040:7;24032:16;;;;;;;;;;;;;;;:34;;;;24115:20;;24081:22;:31;24104:7;24081:31;;;;;;;;;;;;;;;:54;;;;23990:157;21966:1;21957:6;:10;21949:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22015:24;22032:6;22015:12;;:16;;:24;;;;:::i;:::-;22000:12;:39;;;;22074:33;22100:6;22074:9;:21;22084:10;22074:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;22050:9;:21;22060:10;22050:21;;;;;;;;;;;;;;;:57;;;;22118:45;22144:10;22156:6;22118:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;22189:10;22179:29;;;22201:6;22179:29;;;;;;;;;;;;;;;;;;17990:1;18026:13;;18010:12;:29;18002:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21859:357;;:::o;19685:39::-;;;;:::o;22700:1083::-;19135:19;;;;;;;;;;;19121:33;;:10;:33;;;19113:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22798:1;23909:16;:14;:16::i;:::-;23886:20;:39;;;;23953:26;:24;:26::i;:::-;23936:14;:43;;;;24013:1;23994:21;;:7;:21;;;23990:157;;24051:15;24058:7;24051:6;:15::i;:::-;24032:7;:16;24040:7;24032:16;;;;;;;;;;;;;;;:34;;;;24115:20;;24081:22;:31;24104:7;24081:31;;;;;;;;;;;;;;;:54;;;;23990:157;22836:12;;22817:15;:31;22813:318;;22878:27;22889:15;;22878:6;:10;;:27;;;;:::i;:::-;22865:10;:40;;;;22813:318;;;22938:17;22958:33;22975:15;22958:12;;:16;;:33;;;;:::i;:::-;22938:53;;23006:16;23025:25;23039:10;;23025:9;:13;;:25;;;;:::i;:::-;23006:44;;23078:41;23103:15;;23078:20;23089:8;23078:6;:10;;:20;;;;:::i;:::-;:24;;:41;;;;:::i;:::-;23065:10;:54;;;;22813:318;;;23491:12;23506;;;;;;;;;;;:22;;;23537:4;23506:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23506:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23506:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;23506:37:0;;;;;;;;;;;;;;;;23491:52;;23576:28;23588:15;;23576:7;:11;;:28;;;;:::i;:::-;23562:10;;:42;;23554:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23663:15;23646:14;:32;;;;23704:36;23724:15;;23704;:19;;:36;;;;:::i;:::-;23689:12;:51;;;;23756:19;23768:6;23756:19;;;;;;;;;;;;;;;;;;24157:1;19212;22700:1083;:::o;22224:307::-;17931:1;17914:13;;:18;;;;;;;;;;;17943:20;17966:13;;17943:36;;22278:10;23909:16;:14;:16::i;:::-;23886:20;:39;;;;23953:26;:24;:26::i;:::-;23936:14;:43;;;;24013:1;23994:21;;:7;:21;;;23990:157;;24051:15;24058:7;24051:6;:15::i;:::-;24032:7;:16;24040:7;24032:16;;;;;;;;;;;;;;;:34;;;;24115:20;;24081:22;:31;24104:7;24081:31;;;;;;;;;;;;;;;:54;;;;23990:157;22301:14;22318:7;:19;22326:10;22318:19;;;;;;;;;;;;;;;;22301:36;;22361:1;22352:6;:10;22348:176;;;22401:1;22379:7;:19;22387:10;22379:19;;;;;;;;;;;;;;;:23;;;;22417:45;22443:10;22455:6;22417:12;;;;;;;;;;;:25;;;;:45;;;;;:::i;:::-;22493:10;22482:30;;;22505:6;22482:30;;;;;;;;;;;;;;;;;;22348:176;24157:1;17990;18026:13;;18010:12;:29;18002:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22224:307;:::o;18963:34::-;;;;;;;;;;;;;:::o;20496:112::-;20555:7;20582:9;:18;20592:7;20582:18;;;;;;;;;;;;;;;;20575:25;;20496:112;;;:::o;19578:26::-;;;;;;;;;;;;;:::o;19649:29::-;;;;:::o;20616:131::-;20673:7;20700:39;20709:15;20726:12;;20700:8;:39::i;:::-;20693:46;;20616:131;:::o;19811:57::-;;;;;;;;;;;;;;;;;:::o;21482:369::-;17931:1;17914:13;;:18;;;;;;;;;;;17943:20;17966:13;;17943:36;;21548:10;23909:16;:14;:16::i;:::-;23886:20;:39;;;;23953:26;:24;:26::i;:::-;23936:14;:43;;;;24013:1;23994:21;;:7;:21;;;23990:157;;24051:15;24058:7;24051:6;:15::i;:::-;24032:7;:16;24040:7;24032:16;;;;;;;;;;;;;;;:34;;;;24115:20;;24081:22;:31;24104:7;24081:31;;;;;;;;;;;;;;;:54;;;;23990:157;21588:1;21579:6;:10;21571:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21634:24;21651:6;21634:12;;:16;;:24;;;;:::i;:::-;21619:12;:39;;;;21693:33;21719:6;21693:9;:21;21703:10;21693:21;;;;;;;;;;;;;;;;:25;;:33;;;;:::i;:::-;21669:9;:21;21679:10;21669:21;;;;;;;;;;;;;;;:57;;;;21737:64;21767:10;21787:4;21794:6;21737:12;;;;;;;;;;;:29;;;;:64;;;;;;:::i;:::-;21824:10;21817:26;;;21836:6;21817:26;;;;;;;;;;;;;;;;;;17990:1;18026:13;;18010:12;:29;18002:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21482:369;;:::o;19731:29::-;;;;:::o;20755:330::-;20802:7;20842:1;20826:12;;:17;20822:77;;;20867:20;;20860:27;;;;20822:77;20929:148;20972:90;21049:12;;20972:72;21039:4;20972:62;21023:10;;20972:46;21003:14;;20972:26;:24;:26::i;:::-;:30;;:46;;;;:::i;:::-;:50;;:62;;;;:::i;:::-;:66;;:72;;;;:::i;:::-;:76;;:90;;;;:::i;:::-;20929:20;;:24;;:148;;;;:::i;:::-;20909:168;;20755:330;;:::o;19545:26::-;;;;;;;;;;;;;:::o;19767:35::-;;;;:::o;22539:97::-;22575:31;22584:9;:21;22594:10;22584:21;;;;;;;;;;;;;;;;22575:8;:31::i;:::-;22617:11;:9;:11::i;:::-;22539:97::o;19611:31::-;;;;:::o;7672:184::-;7730:7;7763:1;7758;:6;;7750:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7810:9;7826:1;7822;:5;7810:17;;7847:1;7840:8;;;7672:184;;;;:::o;8107:470::-;8165:7;8414:1;8409;:6;8405:47;;;8439:1;8432:8;;;;8405:47;8464:9;8480:1;8476;:5;8464:17;;8509:1;8504;8500;:5;;;;;;:10;8492:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8568:1;8561:8;;;8107:470;;;;;:::o;9045:333::-;9103:7;9202:1;9198;:5;9190:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9245:9;9261:1;9257;:5;;;;;;9245:17;;9369:1;9362:8;;;9045:333;;;;:::o;7216:181::-;7274:7;7294:9;7310:1;7306;:5;7294:17;;7335:1;7330;:6;;7322:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7388:1;7381:8;;;7216:181;;;;:::o;13390:176::-;13473:85;13492:5;13522;:14;;;:23;;;;13547:2;13551:5;13499:58;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;13499:58:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;13499:58:0;13473:18;:85::i;:::-;13390:176;;;:::o;5864:106::-;5922:7;5953:1;5949;:5;:13;;5961:1;5949:13;;;5957:1;5949:13;5942:20;;5864:106;;;;:::o;13574:204::-;13675:95;13694:5;13724;:18;;;:27;;;;13753:4;13759:2;13763:5;13701:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;13701:68:0;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;13701:68:0;13675:18;:95::i;:::-;13574:204;;;;:::o;15384:1114::-;15988:27;15996:5;15988:25;;;:27::i;:::-;15980:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16125:12;16139:23;16174:5;16166:19;;16186:4;16166:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;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;;;16166: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;;16124:67:0;;;;16210:7;16202:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16291:1;16271:10;:17;:21;16267:224;;;16413:10;16402:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;16402:30:0;;;;;;;;;;;;;;;;16394:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16267:224;15384:1114;;;;:::o;12294:422::-;12354:4;12562:12;12673:7;12661:20;12653:28;;12707:1;12700:4;:8;12693:15;;;12294:422;;;:::o

Swarm Source

bzzr://e16034dd0f5f8c323d4d37a338dff5855735ea1c1a48b3128bd2710520ab104f

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  ]
[ 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.