ETH Price: $3,678.52 (+2.16%)

Contract

0xBab3c860Dc02ECF21c63416858aBFe296448f5A6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exit149131262022-06-06 5:00:32908 days ago1654491632IN
0xBab3c860...96448f5A6
0 ETH0.0022367123.09323034
Exit131274342021-08-30 14:30:381188 days ago1630333838IN
0xBab3c860...96448f5A6
0 ETH0.009276381.75185077
Exit130404032021-08-17 3:49:521201 days ago1629172192IN
0xBab3c860...96448f5A6
0 ETH0.0062407955
Exit130403822021-08-17 3:45:151201 days ago1629171915IN
0xBab3c860...96448f5A6
0 ETH0.004842850
Exit130334452021-08-16 1:58:221202 days ago1629079102IN
0xBab3c860...96448f5A6
0 ETH0.0046243863
Get Reward130334422021-08-16 1:58:001202 days ago1629079080IN
0xBab3c860...96448f5A6
0 ETH0.0048750856
Exit130289212021-08-15 9:28:171203 days ago1629019697IN
0xBab3c860...96448f5A6
0 ETH0.0029865426.32039611
Exit130281562021-08-15 6:31:591203 days ago1629009119IN
0xBab3c860...96448f5A6
0 ETH0.0034040730
Exit130230752021-08-14 11:45:141204 days ago1628941514IN
0xBab3c860...96448f5A6
0 ETH0.0038904534.28648744
Exit130182982021-08-13 17:54:491204 days ago1628877289IN
0xBab3c860...96448f5A6
0 ETH0.0055281957.07641526
Exit130168102021-08-13 12:31:551205 days ago1628857915IN
0xBab3c860...96448f5A6
0 ETH0.0063542656
Exit130092972021-08-12 8:40:501206 days ago1628757650IN
0xBab3c860...96448f5A6
0 ETH0.004969543.79615146
Exit129989232021-08-10 17:55:081207 days ago1628618108IN
0xBab3c860...96448f5A6
0 ETH0.003981343.99081116
Get Reward129988542021-08-10 17:40:441207 days ago1628617244IN
0xBab3c860...96448f5A6
0 ETH0.005257160.38831561
Exit129975872021-08-10 13:07:191208 days ago1628600839IN
0xBab3c860...96448f5A6
0 ETH0.004235637.32828783
Exit129974252021-08-10 12:34:241208 days ago1628598864IN
0xBab3c860...96448f5A6
0 ETH0.0035158736.3
Exit129972162021-08-10 11:48:381208 days ago1628596118IN
0xBab3c860...96448f5A6
0 ETH0.0045280438
Exit129965602021-08-10 9:23:371208 days ago1628587417IN
0xBab3c860...96448f5A6
0 ETH0.0043851843
Exit129956052021-08-10 5:49:071208 days ago1628574547IN
0xBab3c860...96448f5A6
0 ETH0.0032427631.79770913
Exit129910042021-08-09 12:43:541209 days ago1628513034IN
0xBab3c860...96448f5A6
0 ETH0.0031614131
Get Reward129909022021-08-09 12:22:051209 days ago1628511725IN
0xBab3c860...96448f5A6
0 ETH0.0035910347
Exit129886142021-08-09 3:53:381209 days ago1628481218IN
0xBab3c860...96448f5A6
0 ETH0.0035804635.81142538
Exit129854792021-08-08 16:09:191209 days ago1628438959IN
0xBab3c860...96448f5A6
0 ETH0.0043851843
Get Reward129854742021-08-08 16:08:241209 days ago1628438904IN
0xBab3c860...96448f5A6
0 ETH0.0039003543
Exit129848152021-08-08 13:56:261210 days ago1628430986IN
0xBab3c860...96448f5A6
0 ETH0.0028554628
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x2D6d5bc5...Aef497FCc
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
StakingRewardsStandalone

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, None license
File 1 of 10 : StakingRewardsStandalone.sol
pragma solidity ^0.5.16;

import "openzeppelin-solidity-2.3.0/contracts/math/Math.sol";
import "openzeppelin-solidity-2.3.0/contracts/math/SafeMath.sol";
import "openzeppelin-solidity-2.3.0/contracts/token/ERC20/ERC20Detailed.sol";
import "openzeppelin-solidity-2.3.0/contracts/token/ERC20/SafeERC20.sol";
import "openzeppelin-solidity-2.3.0/contracts/utils/ReentrancyGuard.sol";
import "openzeppelin-solidity-2.3.0/contracts/ownership/Ownable.sol";

// Inheritance
import "./interfaces/IStakingRewards.sol";

contract StakingRewardsStandalone is IStakingRewards, Ownable, 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 = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

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

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

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

    constructor(
        address _rewardsToken,
        address _stakingToken,
        uint256 _rewardsDuration
    ) public {
        rewardsToken = IERC20(_rewardsToken);
        stakingToken = IERC20(_stakingToken);
        rewardsDuration = _rewardsDuration;
    }

    /* ========== 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 stakeWithPermit(uint256 amount, uint deadline, uint8 v, bytes32 r, bytes32 s) external nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);

        // permit
        IUniswapV2ERC20(address(stakingToken)).permit(msg.sender, address(this), amount, deadline, v, r, s);

        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

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

    function adminWithdrawETH() external onlyOwner {
        msg.sender.transfer(address(this).balance);
    }

    function adminWithdrawERC20(address token) external onlyOwner {
        uint256 amount = IERC20(token).balanceOf(address(this));
        IERC20(token).transfer(msg.sender, amount);
    }

    function setRewardsDuration(uint256 duration) external onlyOwner {
        rewardsDuration = duration;
    }

    function setStakingToken(address token) external onlyOwner {
        stakingToken = IERC20(token);
    }

    function setRewardsToken(address token) external onlyOwner {
        rewardsToken = IERC20(token);
    }

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

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

File 2 of 10 : 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 3 of 10 : 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 4 of 10 : ERC20Detailed.sol
pragma solidity ^0.5.0;

import "./IERC20.sol";

/**
 * @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 5 of 10 : SafeERC20.sol
pragma solidity ^0.5.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for 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 6 of 10 : 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 7 of 10 : 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 8 of 10 : 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 9 of 10 : 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 10 of 10 : 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;
    }
}

Settings
{
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "evmVersion": "istanbul",
  "optimizer": {
    "enabled": true,
    "runs": 200
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"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":false,"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"adminWithdrawERC20","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"adminWithdrawETH","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"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":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"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":"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":"duration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"setRewardsToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"setStakingToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"stakeWithPermit","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":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","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"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101d95760003560e01c80638b87634711610104578063d1af0c7d116100a2578063ebe2b12b11610071578063ebe2b12b14610418578063ecd9ba8214610420578063ed84fc9114610458578063f2fde38b14610460576101d9565b8063d1af0c7d146103da578063de320cc1146103e2578063df136d6514610408578063e9fad8ee14610410576101d9565b8063a694fc3a116100de578063a694fc3a14610390578063c8f33c91146103ad578063cc1a378f146103b5578063cd3daf9d146103d2576101d9565b80638b876347146103465780638da5cb5b1461036c5780638f32d59b14610374576101d9565b8063386a95251161017c578063715018a61161014b578063715018a61461030a57806372f702f3146103125780637b0a47ee1461033657806380faa57d1461033e576101d9565b8063386a9525146102b75780633c6b16ab146102bf5780633d18b912146102dc57806370a08231146102e4576101d9565b806319a33ea2116101b857806319a33ea2146102445780631c1f78eb1461026c5780631e9b12ef146102745780632e1a7d4d1461029a576101d9565b80628cc262146101de5780630700037d1461021657806318160ddd1461023c575b600080fd5b610204600480360360208110156101f457600080fd5b50356001600160a01b0316610486565b60408051918252519081900360200190f35b6102046004803603602081101561022c57600080fd5b50356001600160a01b031661051c565b61020461052e565b61026a6004803603602081101561025a57600080fd5b50356001600160a01b0316610535565b005b610204610675565b61026a6004803603602081101561028a57600080fd5b50356001600160a01b0316610693565b61026a600480360360208110156102b057600080fd5b50356106fc565b61020461088b565b61026a600480360360208110156102d557600080fd5b5035610891565b61026a610ae0565b610204600480360360208110156102fa57600080fd5b50356001600160a01b0316610c04565b61026a610c1f565b61031a610cb0565b604080516001600160a01b039092168252519081900360200190f35b610204610cbf565b610204610cc5565b6102046004803603602081101561035c57600080fd5b50356001600160a01b0316610cd3565b61031a610ce5565b61037c610cf4565b604080519115158252519081900360200190f35b61026a600480360360208110156103a657600080fd5b5035610d05565b610204610e8e565b61026a600480360360208110156103cb57600080fd5b5035610e94565b610204610ee0565b61031a610f3a565b61026a600480360360208110156103f857600080fd5b50356001600160a01b0316610f49565b610204610fb2565b61026a610fb8565b610204610fdb565b61026a600480360360a081101561043657600080fd5b5080359060208101359060ff6040820135169060608101359060800135610fe1565b61026a611203565b61026a6004803603602081101561047657600080fd5b50356001600160a01b0316611276565b6001600160a01b0381166000908152600a60209081526040808320546009909252822054610516919061050a90670de0b6b3a7640000906104fe906104d9906104cd610ee0565b9063ffffffff6112c616565b6001600160a01b0388166000908152600c60205260409020549063ffffffff61132316565b9063ffffffff61138316565b9063ffffffff6113ed16565b92915050565b600a6020526000908152604090205481565b600b545b90565b61053d610cf4565b61057c576040805162461bcd60e51b815260206004820181905260248201526000805160206117d4833981519152604482015290519081900360640190fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b1580156105c657600080fd5b505afa1580156105da573d6000803e3d6000fd5b505050506040513d60208110156105f057600080fd5b50516040805163a9059cbb60e01b81523360048201526024810183905290519192506001600160a01b0384169163a9059cbb916044808201926020929091908290030181600087803b15801561064557600080fd5b505af1158015610659573d6000803e3d6000fd5b505050506040513d602081101561066f57600080fd5b50505050565b600061068e60065460055461132390919063ffffffff16565b905090565b61069b610cf4565b6106da576040805162461bcd60e51b815260206004820181905260248201526000805160206117d4833981519152604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600180548101908190553361070f610ee0565b60085561071a610cc5565b6007556001600160a01b038116156107615761073581610486565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b600083116107aa576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600b546107bd908463ffffffff6112c616565b600b55336000908152600c60205260409020546107e0908463ffffffff6112c616565b336000818152600c602052604090209190915560035461080c916001600160a01b039091169085611447565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a2506001548114610887576040805162461bcd60e51b815260206004820152601f602482015260008051602061176d833981519152604482015290519081900360640190fd5b5050565b60065481565b610899610cf4565b6108d8576040805162461bcd60e51b815260206004820181905260248201526000805160206117d4833981519152604482015290519081900360640190fd5b60006108e2610ee0565b6008556108ed610cc5565b6007556001600160a01b038116156109345761090881610486565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b60045442106109595760065461095190839063ffffffff61138316565b6005556109a8565b60045460009061096f904263ffffffff6112c616565b905060006109886005548361132390919063ffffffff16565b6006549091506109a2906104fe868463ffffffff6113ed16565b60055550505b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156109f357600080fd5b505afa158015610a07573d6000803e3d6000fd5b505050506040513d6020811015610a1d57600080fd5b5051600654909150610a3690829063ffffffff61138316565b6005541115610a8c576040805162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b426007819055600654610aa5919063ffffffff6113ed16565b6004556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b6001805481019081905533610af3610ee0565b600855610afe610cc5565b6007556001600160a01b03811615610b4557610b1981610486565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b336000908152600a60205260409020548015610bbb57336000818152600a6020526040812055600254610b84916001600160a01b039091169083611447565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001548114610c01576040805162461bcd60e51b815260206004820152601f602482015260008051602061176d833981519152604482015290519081900360640190fd5b50565b6001600160a01b03166000908152600c602052604090205490565b610c27610cf4565b610c66576040805162461bcd60e51b815260206004820181905260248201526000805160206117d4833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6003546001600160a01b031681565b60055481565b600061068e4260045461149e565b60096020526000908152604090205481565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6001805481019081905533610d18610ee0565b600855610d23610cc5565b6007556001600160a01b03811615610d6a57610d3e81610486565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b60008311610db0576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b54610dc3908463ffffffff6113ed16565b600b55336000908152600c6020526040902054610de6908463ffffffff6113ed16565b336000818152600c6020526040902091909155600354610e13916001600160a01b039091169030866114b4565b60408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2506001548114610887576040805162461bcd60e51b815260206004820152601f602482015260008051602061176d833981519152604482015290519081900360640190fd5b60075481565b610e9c610cf4565b610edb576040805162461bcd60e51b815260206004820181905260248201526000805160206117d4833981519152604482015290519081900360640190fd5b600655565b6000600b5460001415610ef65750600854610532565b61068e610f2b600b546104fe670de0b6b3a7640000610f1f600554610f1f6007546104cd610cc5565b9063ffffffff61132316565b6008549063ffffffff6113ed16565b6002546001600160a01b031681565b610f51610cf4565b610f90576040805162461bcd60e51b815260206004820181905260248201526000805160206117d4833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60085481565b336000908152600c6020526040902054610fd1906106fc565b610fd9610ae0565b565b60045481565b6001805481019081905533610ff4610ee0565b600855610fff610cc5565b6007556001600160a01b038116156110465761101a81610486565b6001600160a01b0382166000908152600a60209081526040808320939093556008546009909152919020555b6000871161108c576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b5461109f908863ffffffff6113ed16565b600b55336000908152600c60205260409020546110c2908863ffffffff6113ed16565b336000818152600c602052604080822093909355600354835163d505accf60e01b81526004810193909352306024840152604483018b9052606483018a905260ff8916608484015260a4830188905260c4830187905292516001600160a01b039093169263d505accf9260e480820193929182900301818387803b15801561114957600080fd5b505af115801561115d573d6000803e3d6000fd5b505060035461118092506001600160a01b0316905033308a63ffffffff6114b416565b60408051888152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25060015481146111fb576040805162461bcd60e51b815260206004820152601f602482015260008051602061176d833981519152604482015290519081900360640190fd5b505050505050565b61120b610cf4565b61124a576040805162461bcd60e51b815260206004820181905260248201526000805160206117d4833981519152604482015290519081900360640190fd5b60405133904780156108fc02916000818181858888f19350505050158015610c01573d6000803e3d6000fd5b61127e610cf4565b6112bd576040805162461bcd60e51b815260206004820181905260248201526000805160206117d4833981519152604482015290519081900360640190fd5b610c018161150e565b60008282111561131d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261133257506000610516565b8282028284828161133f57fe5b041461137c5760405162461bcd60e51b81526004018080602001828103825260218152602001806117b36021913960400191505060405180910390fd5b9392505050565b60008082116113d9576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b60008284816113e457fe5b04949350505050565b60008282018381101561137c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114999084906115ae565b505050565b60008183106114ad578161137c565b5090919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261066f9085906115ae565b6001600160a01b0381166115535760405162461bcd60e51b815260040180806020018281038252602681526020018061178d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6115c0826001600160a01b0316611766565b611611576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061164f5780518252601f199092019160209182019101611630565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146116b1576040519150601f19603f3d011682016040523d82523d6000602084013e6116b6565b606091505b50915091508161170d576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561066f5780806020019051602081101561172957600080fd5b505161066f5760405162461bcd60e51b815260040180806020018281038252602a8152602001806117f4602a913960400191505060405180910390fd5b3b15159056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582020615273c687e9fcee82c1fecfd43fa5cac085c4e1a9bffcb777cd3f6b08bda964736f6c63430005100032

Deployed Bytecode Sourcemap

510:6127:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;510:6127:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2202:196;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2202:196:0;-1:-1:-1;;;;;2202:196:0;;:::i;:::-;;;;;;;;;;;;;;;;1031:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1031:42:0;-1:-1:-1;;;;;1031:42:0;;:::i;1526:91::-;;;:::i;5489:186::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5489:186:0;-1:-1:-1;;;;;5489:186:0;;:::i;:::-;;2404:119;;;:::i;5795:104::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5795:104:0;-1:-1:-1;;;;;5795:104:0;;:::i;3504:351::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3504:351:0;;:::i;845:34::-;;;:::i;4321:1050::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4321:1050:0;;:::i;3861:300::-;;;:::i;1623:110::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1623:110:0;-1:-1:-1;;;;;1623:110:0;;:::i;1599:137:4:-;;;:::i;741:26:0:-;;;:::i;:::-;;;;-1:-1:-1;;;;;741:26:0;;;;;;;;;;;;;;810:29;;;:::i;1739:129::-;;;:::i;962:57::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;962:57:0;-1:-1:-1;;;;;962:57:0;;:::i;814:77:4:-;;;:::i;1165:90::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;3135:363:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3135:363:0;;:::i;885:29::-;;;:::i;5681:108::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5681:108:0;;:::i;1874:322::-;;;:::i;709:26::-;;;:::i;5905:104::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5905:104:0;-1:-1:-1;;;;;5905:104:0;;:::i;920:35::-;;;:::i;4167:94::-;;;:::i;773:31::-;;;:::i;2581:548::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;2581:548:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;5377:106::-;;;:::i;1885:107:4:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1885:107:4;-1:-1:-1;;;;;1885:107:4;;:::i;2202:196:0:-;-1:-1:-1;;;;;2374:16:0;;2256:7;2374:16;;;:7;:16;;;;;;;;;2326:22;:31;;;;;;2282:109;;2374:16;2282:87;;2364:4;;2282:77;;2305:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;-1:-1:-1;;;;;2282:18:0;;;;;;:9;:18;;;;;;;:77;:22;:77;:::i;:::-;:81;:87;:81;:87;:::i;:::-;:91;:109;:91;:109;:::i;:::-;2275:116;2202:196;-1:-1:-1;;2202:196:0:o;1031:42::-;;;;;;;;;;;;;:::o;1526:91::-;1598:12;;1526:91;;:::o;5489:186::-;1018:9:4;:7;:9::i;:::-;1010:54;;;;;-1:-1:-1;;;1010:54:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1010:54:4;;;;;;;;;;;;;;;5578:38:0;;;-1:-1:-1;;;5578:38:0;;5610:4;5578:38;;;;;;5561:14;;-1:-1:-1;;;;;5578:23:0;;;;;:38;;;;;;;;;;;;;;;:23;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;5578:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5578:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5578:38:0;5626:42;;;-1:-1:-1;;;5626:42:0;;5649:10;5626:42;;;;;;;;;;;;5578:38;;-1:-1:-1;;;;;;5626:22:0;;;;;:42;;;;;5578:38;;5626:42;;;;;;;;-1:-1:-1;5626:22:0;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;5626:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5626:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;5489:186:0:o;2404:119::-;2459:7;2485:31;2500:15;;2485:10;;:14;;:31;;;;:::i;:::-;2478:38;;2404:119;:::o;5795:104::-;1018:9:4;:7;:9::i;:::-;1010:54;;;;;-1:-1:-1;;;1010:54:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1010:54:4;;;;;;;;;;;;;;;5864:12:0;:28;;-1:-1:-1;;;;;;5864:28:0;-1:-1:-1;;;;;5864:28:0;;;;;;;;;;5795:104::o;3504:351::-;1318:1:9;1301:18;;;;;;;;3571:10:0;6130:16;:14;:16::i;:::-;6107:20;:39;6173:26;:24;:26::i;:::-;6156:14;:43;-1:-1:-1;;;;;6213:21:0;;;6209:154;;6269:15;6276:7;6269:6;:15::i;:::-;-1:-1:-1;;;;;6250:16:0;;;;;;:7;:16;;;;;;;;:34;;;;6332:20;;6298:22;:31;;;;;;:54;6209:154;3610:1;3601:6;:10;3593:40;;;;;-1:-1:-1;;;3593:40:0;;;;;;;;;;;;-1:-1:-1;;;3593:40:0;;;;;;;;;;;;;;;3658:12;;:24;;3675:6;3658:24;:16;:24;:::i;:::-;3643:12;:39;3726:10;3716:21;;;;:9;:21;;;;;;:33;;3742:6;3716:33;:25;:33;:::i;:::-;3702:10;3692:21;;;;:9;:21;;;;;:57;;;;3759:12;;:45;;-1:-1:-1;;;;;3759:12:0;;;;3797:6;3759:25;:45::i;:::-;3819:29;;;;;;;;3829:10;;3819:29;;;;;;;;;;1375:1:9;1410:13;;1394:12;:29;1386:73;;;;;-1:-1:-1;;;1386:73:9;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1386:73:9;;;;;;;;;;;;;;;3504:351:0;;:::o;845:34::-;;;;:::o;4321:1050::-;1018:9:4;:7;:9::i;:::-;1010:54;;;;;-1:-1:-1;;;1010:54:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1010:54:4;;;;;;;;;;;;;;;4405:1:0;6130:16;:14;:16::i;:::-;6107:20;:39;6173:26;:24;:26::i;:::-;6156:14;:43;-1:-1:-1;;;;;6213:21:0;;;6209:154;;6269:15;6276:7;6269:6;:15::i;:::-;-1:-1:-1;;;;;6250:16:0;;;;;;:7;:16;;;;;;;;:34;;;;6332:20;;6298:22;:31;;;;;;:54;6209:154;4442:12;;4423:15;:31;4419:312;;4494:15;;4483:27;;:6;;:27;:10;:27;:::i;:::-;4470:10;:40;4419:312;;;4561:12;;4541:17;;4561:33;;4578:15;4561:33;:16;:33;:::i;:::-;4541:53;;4608:16;4627:25;4641:10;;4627:9;:13;;:25;;;;:::i;:::-;4704:15;;4608:44;;-1:-1:-1;4679:41:0;;:20;:6;4608:44;4679:20;:10;:20;:::i;:41::-;4666:10;:54;-1:-1:-1;;4419:312:0;5100:12;;:37;;;-1:-1:-1;;;5100:37:0;;5131:4;5100:37;;;;;;5085:12;;-1:-1:-1;;;;;5100:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;5100:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;5100:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5100:37:0;5181:15;;5100:37;;-1:-1:-1;5169:28:0;;5100:37;;5169:28;:11;:28;:::i;:::-;5155:10;;:42;;5147:79;;;;;-1:-1:-1;;;5147:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5254:15;5237:14;:32;;;5314:15;;5294:36;;5254:15;5294:36;:19;:36;:::i;:::-;5279:12;:51;5345:19;;;;;;;;;;;;;;;;;6372:1;1074::4;4321:1050:0;:::o;3861:300::-;1318:1:9;1301:18;;;;;;;;3915:10:0;6130:16;:14;:16::i;:::-;6107:20;:39;6173:26;:24;:26::i;:::-;6156:14;:43;-1:-1:-1;;;;;6213:21:0;;;6209:154;;6269:15;6276:7;6269:6;:15::i;:::-;-1:-1:-1;;;;;6250:16:0;;;;;;:7;:16;;;;;;;;:34;;;;6332:20;;6298:22;:31;;;;;;:54;6209:154;3962:10;3937:14;3954:19;;;:7;:19;;;;;;3987:10;;3983:172;;4021:10;4035:1;4013:19;;;:7;:19;;;;;:23;4050:12;;:45;;-1:-1:-1;;;;;4050:12:0;;;;4088:6;4050:25;:45::i;:::-;4114:30;;;;;;;;4125:10;;4114:30;;;;;;;;;;3983:172;6372:1;1375::9;1410:13;;1394:12;:29;1386:73;;;;;-1:-1:-1;;;1386:73:9;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1386:73:9;;;;;;;;;;;;;;;3861:300:0;:::o;1623:110::-;-1:-1:-1;;;;;1708:18:0;1682:7;1708:18;;;:9;:18;;;;;;;1623:110::o;1599:137:4:-;1018:9;:7;:9::i;:::-;1010:54;;;;;-1:-1:-1;;;1010:54:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1010:54:4;;;;;;;;;;;;;;;1697:1;1681:6;;1660:40;;-1:-1:-1;;;;;1681:6:4;;;;1660:40;;1697:1;;1660:40;1727:1;1710:19;;-1:-1:-1;;;;;;1710:19:4;;;1599:137::o;741:26:0:-;;;-1:-1:-1;;;;;741:26:0;;:::o;810:29::-;;;;:::o;1739:129::-;1796:7;1822:39;1831:15;1848:12;;1822:8;:39::i;962:57::-;;;;;;;;;;;;;:::o;814:77:4:-;852:7;878:6;-1:-1:-1;;;;;878:6:4;814:77;:::o;1165:90::-;1205:4;1242:6;-1:-1:-1;;;;;1242:6:4;1228:10;:20;;1165:90::o;3135:363:0:-;1318:1:9;1301:18;;;;;;;;3201:10:0;6130:16;:14;:16::i;:::-;6107:20;:39;6173:26;:24;:26::i;:::-;6156:14;:43;-1:-1:-1;;;;;6213:21:0;;;6209:154;;6269:15;6276:7;6269:6;:15::i;:::-;-1:-1:-1;;;;;6250:16:0;;;;;;:7;:16;;;;;;;;:34;;;;6332:20;;6298:22;:31;;;;;;:54;6209:154;3240:1;3231:6;:10;3223:37;;;;;-1:-1:-1;;;3223:37:0;;;;;;;;;;;;-1:-1:-1;;;3223:37:0;;;;;;;;;;;;;;;3285:12;;:24;;3302:6;3285:24;:16;:24;:::i;:::-;3270:12;:39;3353:10;3343:21;;;;:9;:21;;;;;;:33;;3369:6;3343:33;:25;:33;:::i;:::-;3329:10;3319:21;;;;:9;:21;;;;;:57;;;;3386:12;;:64;;-1:-1:-1;;;;;3386:12:0;;;;3436:4;3443:6;3386:29;:64::i;:::-;3465:26;;;;;;;;3472:10;;3465:26;;;;;;;;;;1375:1:9;1410:13;;1394:12;:29;1386:73;;;;;-1:-1:-1;;;1386:73:9;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1386:73:9;;;;;;;;;;;;;;885:29:0;;;;:::o;5681:108::-;1018:9:4;:7;:9::i;:::-;1010:54;;;;;-1:-1:-1;;;1010:54:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1010:54:4;;;;;;;;;;;;;;;5756:15:0;:26;5681:108::o;1874:322::-;1921:7;1944:12;;1960:1;1944:17;1940:75;;;-1:-1:-1;1984:20:0;;1977:27;;1940:75;2043:146;2085:90;2162:12;;2085:72;2152:4;2085:62;2136:10;;2085:46;2116:14;;2085:26;:24;:26::i;:46::-;:50;:62;:50;:62;:::i;:90::-;2043:20;;;:146;:24;:146;:::i;709:26::-;;;-1:-1:-1;;;;;709:26:0;;:::o;5905:104::-;1018:9:4;:7;:9::i;:::-;1010:54;;;;;-1:-1:-1;;;1010:54:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1010:54:4;;;;;;;;;;;;;;;5974:12:0;:28;;-1:-1:-1;;;;;;5974:28:0;-1:-1:-1;;;;;5974:28:0;;;;;;;;;;5905:104::o;920:35::-;;;;:::o;4167:94::-;4221:10;4211:21;;;;:9;:21;;;;;;4202:31;;:8;:31::i;:::-;4243:11;:9;:11::i;:::-;4167:94::o;773:31::-;;;;:::o;2581:548::-;1318:1:9;1301:18;;;;;;;;2703:10:0;6130:16;:14;:16::i;:::-;6107:20;:39;6173:26;:24;:26::i;:::-;6156:14;:43;-1:-1:-1;;;;;6213:21:0;;;6209:154;;6269:15;6276:7;6269:6;:15::i;:::-;-1:-1:-1;;;;;6250:16:0;;;;;;:7;:16;;;;;;;;:34;;;;6332:20;;6298:22;:31;;;;;;:54;6209:154;2742:1;2733:6;:10;2725:37;;;;;-1:-1:-1;;;2725:37:0;;;;;;;;;;;;-1:-1:-1;;;2725:37:0;;;;;;;;;;;;;;;2787:12;;:24;;2804:6;2787:24;:16;:24;:::i;:::-;2772:12;:39;2855:10;2845:21;;;;:9;:21;;;;;;:33;;2871:6;2845:33;:25;:33;:::i;:::-;2831:10;2821:21;;;;:9;:21;;;;;;:57;;;;2931:12;;2907:99;;-1:-1:-1;;;2907:99:0;;;;;;;;;2973:4;2907:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2931:12:0;;;;2907:45;;:99;;;;;2821:21;2907:99;;;;;;2821:21;2931:12;2907:99;;;5:2:-1;;;;30:1;27;20:12;5:2;2907:99:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;3017:12:0;;:64;;-1:-1:-1;;;;;;3017:12:0;;-1:-1:-1;3047:10:0;3067:4;3074:6;3017:64;:29;:64;:::i;:::-;3096:26;;;;;;;;3103:10;;3096:26;;;;;;;;;;1375:1:9;1410:13;;1394:12;:29;1386:73;;;;;-1:-1:-1;;;1386:73:9;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1386:73:9;;;;;;;;;;;;;;;2581:548:0;;;;;;:::o;5377:106::-;1018:9:4;:7;:9::i;:::-;1010:54;;;;;-1:-1:-1;;;1010:54:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1010:54:4;;;;;;;;;;;;;;;5434:42:0;;:10;;5454:21;5434:42;;;;;;;;;5454:21;5434:10;:42;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;1885:107:4;1018:9;:7;:9::i;:::-;1010:54;;;;;-1:-1:-1;;;1010:54:4;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1010:54:4;;;;;;;;;;;;;;;1957:28;1976:8;1957:18;:28::i;1274:179:3:-;1332:7;1364:1;1359;:6;;1351:49;;;;;-1:-1:-1;;;1351:49:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1422:5:3;;;1274:179::o;1693:458::-;1751:7;1991:6;1987:45;;-1:-1:-1;2020:1:3;2013:8;;1987:45;2054:5;;;2058:1;2054;:5;:1;2077:5;;;;;:10;2069:56;;;;-1:-1:-1;;;2069:56:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2143:1;1693:458;-1:-1:-1;;;1693:458:3:o;2606:326::-;2664:7;2761:1;2757;:5;2749:44;;;;;-1:-1:-1;;;2749:44:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;2803:9;2819:1;2815;:5;;;;;;;2606:326;-1:-1:-1;;;;2606:326:3:o;834:176::-;892:7;923:5;;;946:6;;;;938:46;;;;;-1:-1:-1;;;938:46:3;;;;;;;;;;;;;;;;;;;;;;;;;;;662:174:7;770:58;;;-1:-1:-1;;;;;770:58:7;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;770:58:7;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;744:85:7;;763:5;;744:18;:85::i;:::-;662:174;;;:::o;358:104:2:-;416:7;446:1;442;:5;:13;;454:1;442:13;;;-1:-1:-1;450:1:2;;435:20;-1:-1:-1;358:104:2:o;842:202:7:-;968:68;;;-1:-1:-1;;;;;968:68:7;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;968:68:7;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;942:95:7;;961:5;;942:18;:95::i;2093:225:4:-;-1:-1:-1;;;;;2166:22:4;;2158:73;;;;-1:-1:-1;;;2158:73:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2267:6;;;2246:38;;-1:-1:-1;;;;;2246:38:4;;;;2267:6;;;2246:38;;;2294:6;:17;;-1:-1:-1;;;;;;2294:17:4;-1:-1:-1;;;;;2294:17:4;;;;;;;;;;2093:225::o;2621:1095:7:-;3216:27;3224:5;-1:-1:-1;;;;;3216:25:7;;:27::i;:::-;3208:71;;;;;-1:-1:-1;;;3208:71:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;3350:12;3364:23;3399:5;-1:-1:-1;;;;;3391:19:7;3411:4;3391:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;3391:25:7;;;;;;;;;;;;;;;;;;;;;;;;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;;3349:67:7;;;;3434:7;3426:52;;;;;-1:-1:-1;;;3426:52:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3493:17;;:21;3489:221;;3633:10;3622:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3622:30:7;3614:85;;;;-1:-1:-1;;;3614:85:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;542:413:8;902:20;940:8;;;542:413::o

Swarm Source

bzzr://20615273c687e9fcee82c1fecfd43fa5cac085c4e1a9bffcb777cd3f6b08bda9

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.