Contract 0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3f7f6da5c0131882199415317a9464a87680eff172ac36e3378151afcf7c60a5Stake111021802021-09-21 7:52:203 hrs 35 mins ago0x48b5d9eefa8ffed6d9be1f6f73f0b09a08939777 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00056142
0x02ff7d704e67b3e6296a1394746fe510cb3e67915ac375cc62c8f0697efebe3aWithdraw110965122021-09-21 3:08:568 hrs 19 mins ago0x401c31bc7ccceca3b20c1a08deb4fac53203a10c IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.0003588
0x47caa7e3d3f4d62b9bac84728d6f4220d305d156c30ffe41e480f37fd997dcc5Stake110957192021-09-21 2:29:178 hrs 58 mins ago0x661103f3fd972ea775c3cca75888c45a684df8ce IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00056142
0x02fb24326cf19779b230bcb1747d5caa6d25dce3a69bb8c8c0bb11b1edeffff2Stake110946492021-09-21 1:35:119 hrs 52 mins ago0x9a418520a86b85df732aeca2eec6b63c3712d2e4 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00056148
0x33687d7e6be72dc9da9724d96d764ff903218753eeb686b1ab50653d430eb6eaStake110926172021-09-20 23:52:1711 hrs 35 mins ago0xa28407663c2914b21ee5904404dedfbc3d6f6482 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00046542
0x225f2fc4c70fa91b16b24bfc5c87ee196d9c68dee735471667049358f4390471Stake110923492021-09-20 23:38:5311 hrs 49 mins ago0x7b790252bd6bcd8ab1f897a21c1c8691ea6d2b61 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00056148
0x5ed7ded204fd000ceb446ba62af6bd5859d0a9235d715f7217a08adaf448e5b6Stake110896432021-09-20 21:22:5314 hrs 5 mins ago0x2e56f437f3e45cc8ff6b73a46c19c7fade7a5cd9 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00056142
0xc52bea930a35bbccf92f4574681096493170a364b979225facd9fddd1521686eStake110883472021-09-20 20:18:0315 hrs 10 mins ago0x29395fedacee42919d86e9d1550bde0477bba7dc IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00063636
0x14e7e312ec1d9b10482fd9eeec4c050b033d2f9bd5e7b0b244b5682a87e14cebStake110876862021-09-20 19:45:0015 hrs 43 mins ago0x291da10d2f2033aabe683f26176a863bb1766263 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00056142
0x6fe29f227bfe02468f0c40c3f8af33350dfcbe4fa7f840d2f811919fceae8054Stake110871702021-09-20 19:19:1216 hrs 8 mins ago0x06acf8669f852029fc95ff76486405a27bded8b1 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.000290265
0x28a9d283efa6f40fe524f90b95fe13722903384fd5d9e4ea34cd42c55b1e3df4Stake110847852021-09-20 17:19:5618 hrs 8 mins ago0x7f8b80002e37c496cea407b35700c6c1bbe03491 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00056142
0x4485744f163f0111ae58afc6e45c7431d17ab9f454c62f0fa72a516b9ccc20c9Stake110839252021-09-20 16:36:5518 hrs 51 mins ago0xcac0408615e5dd8353efdb6cf48db0fbd1aec2d2 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00056148
0xf9d0507cc6d6d1d92656109a48046ec4f6609b12ad97e5f513d0ab833ab38370Stake110830032021-09-20 15:50:4719 hrs 37 mins ago0x7f5383057219cf0c3d30fea17ceb99598b7d294c IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00056142
0x3bc42e38774963b94a7bf6b53078f161e8be9698741b1434977328ae795f8b23Stake110826152021-09-20 15:31:2319 hrs 56 mins ago0x4ffa9d1bbb73e9cf617fc9b02b68a58c2e982973 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.000290325
0x21cf6db845096f0c24ccc58039d8f12a917fe14dde4c043987d26cff841bd449Withdraw110806822021-09-20 13:54:3221 hrs 33 mins ago0x63791c11bc8ccf5083d0a4eaa45022cfe1f5f16e IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.0003588
0x4aa53aed976636ff9165fa11cf9084684141a71e8bc65c819d021e0499cc548fStake110790282021-09-20 12:30:2622 hrs 57 mins ago0x73931bb025b441a1de492ef02d445b327e37fb34 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00046548
0xce2401dd67a38981589762e44cc14fe10926d0944197e7c2f32fb3a40ab1e39aWithdraw110789872021-09-20 12:28:2322 hrs 59 mins ago0x73931bb025b441a1de492ef02d445b327e37fb34 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.0002838
0x35055dde50a2e1bf7766dde9f9d39cdf04860eb2a016b75f1601714eadb90293Stake110788672021-09-20 12:22:2323 hrs 5 mins ago0x0a7f90abd2865396454d47802722e0946af90c8b IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00056136
0xde844ce4497eb375f03349c75d04dba2a524a6aa10300e8c032610b0f1e9e0d7Stake110778712021-09-20 11:31:5323 hrs 56 mins ago0x9789e2aca1dd709b5b7a672eaed8f31d10890947 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00046548
0x00ab262d8410163fb816c9b22aec680e9ba22c2ee3a03a67fac87a8d0a1aa55dWithdraw110777462021-09-20 11:25:381 day 2 mins ago0x9789e2aca1dd709b5b7a672eaed8f31d10890947 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.0003588
0x6b386f98b055e2557d67ff1cb35f6f789961aca991eeb6dfd8a90e7458652e3eWithdraw110756152021-09-20 9:39:041 day 1 hr ago0x612607853c96db5ecd247f2d5927d51fb8f60495 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00028368
0x20e15f387a1a5024fe7927c1c7c9c2829e253792e15d51af698c42467c8cf9daWithdraw110748372021-09-20 9:00:101 day 2 hrs ago0x27e1ced1152730817f25d16de7aa06e6ec2f5449 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.0003588
0x7deed56feda16340077dfcdb0b24cdef04e2a7d82fb4085bedc9b2ba32aa4816Stake110747712021-09-20 8:56:521 day 2 hrs ago0x4d0649f3984051e670b4b529e9dddcbd20442468 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00046548
0x986ec568d566a85dc2c5d040cdd26521cface3c608d8e2b9710ff3917461fa1fWithdraw110747402021-09-20 8:55:191 day 2 hrs ago0x4d0649f3984051e670b4b529e9dddcbd20442468 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.0002838
0x62fd2e88c16b2c55f5b0860ecec9593c174421b7cb229487336a15c494b49892Stake110746612021-09-20 8:51:221 day 2 hrs ago0x005fbbd247b13974aa93e341e11ceabdc30028e1 IN  0x895bf27c99822ef5ba88a3e6764f6247e13f0dfa0 BNB0.00046548
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SkillStakingRewards

Compiler Version
v0.6.2+commit.bacdbe57

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 13 : SkillStakingRewards.sol
pragma solidity ^0.6.2;

import "./staking/StakingRewards.sol";

contract SkillStakingRewards is StakingRewards {
    constructor(
        address _owner,
        address _rewardsDistribution,
        address _rewardsToken,
        address _stakingToken,
        uint256 _minimumStakeTime
    )
        public
        StakingRewards(
            _owner,
            _rewardsDistribution,
            _rewardsToken,
            _stakingToken,
            _minimumStakeTime
        )
    {}
}

File 2 of 13 : Failsafe.sol
pragma solidity ^0.6.2;

import "./Owned.sol";

abstract contract Failsafe is Owned {
    bool public failsafeModeActive = false;

    constructor() internal {
        require(owner != address(0), "Owner must be set");
    }

    function enableFailsafeMode() public virtual onlyOwner {
        failsafeModeActive = true;
        emit FailsafeModeEnabled();
    }

    event FailsafeModeEnabled();

    modifier normalMode {
        require(
            !failsafeModeActive,
            "This action cannot be performed while the contract is in Failsafe Mode"
        );
        _;
    }

    modifier failsafeMode {
        require(
            failsafeModeActive,
            "This action can only be performed while the contract is in Failsafe Mode"
        );
        _;
    }
}

File 3 of 13 : Owned.sol
pragma solidity ^0.6.2;

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

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

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

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

    modifier onlyOwner {
        _onlyOwner();
        _;
    }

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

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

File 4 of 13 : Pausable.sol
pragma solidity ^0.6.2;

// Inheritance
import "./Owned.sol";

// https://docs.synthetix.io/contracts/source/contracts/pausable
abstract contract Pausable is Owned {
    uint256 public lastPauseTime;
    bool public paused;

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

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

        // Set our paused state.
        paused = _paused;

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

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

    event PauseChanged(bool isPaused);

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

File 5 of 13 : RewardsDistributionRecipient.sol
pragma solidity ^0.6.2;

// Inheritance
import "./Owned.sol";

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

    function notifyRewardAmount(uint256 reward) external virtual;

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

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

File 6 of 13 : StakingRewards.sol
pragma solidity ^0.6.2;

import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

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

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

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

    IERC20 public rewardsToken;
    IERC20 public stakingToken;
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public rewardsDuration = 180 days;
    uint256 public minimumStakeTime;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

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

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

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

    constructor(
        address _owner,
        address _rewardsDistribution,
        address _rewardsToken,
        address _stakingToken,
        uint256 _minimumStakeTime
    ) public Owned(_owner) {
        rewardsToken = IERC20(_rewardsToken);
        stakingToken = IERC20(_stakingToken);
        rewardsDistribution = _rewardsDistribution;
        minimumStakeTime = _minimumStakeTime;
    }

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

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

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

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

    function rewardPerToken() public view override 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 override returns (uint256) {
        return
            _balances[account]
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account]);
    }

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

    function getStakeRewardDistributionTimeLeft()
        external
        view
        returns (uint256)
    {
        (bool success, uint256 diff) = periodFinish.trySub(block.timestamp);
        return success ? diff : 0;
    }

    function getStakeUnlockTimeLeft() external view returns (uint256) {
        (bool success, uint256 diff) =
            _stakeTimestamp[msg.sender].add(minimumStakeTime).trySub(
                block.timestamp
            );
        return success ? diff : 0;
    }

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

    function stake(uint256 amount)
        external
        override
        normalMode
        nonReentrant
        notPaused
        updateReward(msg.sender)
    {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        if (_stakeTimestamp[msg.sender] == 0) {
            _stakeTimestamp[msg.sender] = block.timestamp;
        }
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount)
        public
        override
        normalMode
        nonReentrant
        updateReward(msg.sender)
    {
        require(amount > 0, "Cannot withdraw 0");
        require(
            minimumStakeTime == 0 ||
                block.timestamp.sub(_stakeTimestamp[msg.sender]) >=
                minimumStakeTime,
            "Cannot withdraw until minimum staking time has passed"
        );
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        if (_balances[msg.sender] == 0) {
            _stakeTimestamp[msg.sender] = 0;
        }
        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function getReward()
        public
        override
        normalMode
        nonReentrant
        updateReward(msg.sender)
    {
        require(
            minimumStakeTime == 0 ||
                block.timestamp.sub(_stakeTimestamp[msg.sender]) >=
                minimumStakeTime,
            "Cannot get reward until minimum staking time has passed"
        );
        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 override normalMode {
        withdraw(_balances[msg.sender]);
        getReward();
    }

    function recoverOwnStake() external failsafeMode {
        uint256 amount = _balances[msg.sender];
        if (amount > 0) {
            _totalSupply = _totalSupply.sub(amount);
            _balances[msg.sender] = _balances[msg.sender].sub(amount);
            stakingToken.safeTransfer(msg.sender, amount);
        }
    }

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

    function notifyRewardAmount(uint256 reward)
        external
        override
        normalMode
        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.
        uint256 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);
    }

    // End rewards emission earlier
    function updatePeriodFinish(uint256 timestamp)
        external
        normalMode
        onlyOwner
        updateReward(address(0))
    {
        require(
            timestamp > lastUpdateTime,
            "Timestamp must be after lastUpdateTime"
        );
        periodFinish = timestamp;
    }

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

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

    function setMinimumStakeTime(uint256 _minimumStakeTime)
        external
        normalMode
        onlyOwner
    {
        minimumStakeTime = _minimumStakeTime;
        emit MinimumStakeTimeUpdated(_minimumStakeTime);
    }

    function enableFailsafeMode() public override normalMode onlyOwner {
        minimumStakeTime = 0;
        periodFinish = 0;
        rewardRate = 0;
        rewardPerTokenStored = 0;

        super.enableFailsafeMode();
    }

    function recoverExtraStakingTokensToOwner() external onlyOwner {
        // stake() and withdraw() should guarantee that
        // _totalSupply <= stakingToken.balanceOf(this)
        uint256 stakingTokenAmountBelongingToOwner =
            stakingToken.balanceOf(address(this)).sub(_totalSupply);

        if (stakingTokenAmountBelongingToOwner > 0) {
            stakingToken.safeTransfer(
                owner,
                stakingTokenAmountBelongingToOwner
            );
        }
    }

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

    modifier updateReward(address account) {
        if (!failsafeModeActive) {
            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);
    event RewardsDurationUpdated(uint256 newDuration);
    event MinimumStakeTimeUpdated(uint256 newMinimumStakeTime);
    event Recovered(address token, uint256 amount);
}

File 7 of 13 : IStakingRewards.sol
pragma solidity >=0.4.24;

// https://docs.synthetix.io/contracts/source/interfaces/istakingrewards
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 8 of 13 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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 9 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

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

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 10 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

File 11 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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 IERC20;` 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));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    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, "SafeERC20: decreased allowance below zero");
        _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. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "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 12 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 13 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied 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.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

Contract Security Audit

Contract ABI

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

60806040526004805460ff191690556000600881905560095562ed4e00600a5534801561002b57600080fd5b506040516122ff3803806122ff833981810160405260a081101561004e57600080fd5b508051602082015160408301516060840151608090940151929391929091908484848484846001600160a01b0381166100ce576040805162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b038316908117825560408051928352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a15060016003556000546001600160a01b031661017d576040805162461bcd60e51b815260206004820152601160248201527013dddb995c881b5d5cdd081899481cd95d607a1b604482015290519081900360640190fd5b6000546001600160a01b03166101ce576040805162461bcd60e51b815260206004820152601160248201527013dddb995c881b5d5cdd081899481cd95d607a1b604482015290519081900360640190fd5b600680546001600160a01b0394851661010002610100600160a81b0319909116179055600780549284166001600160a01b0319938416179055600280549490931693909116929092179055600b555050505050506120ce806102316000396000f3fe608060405234801561001057600080fd5b50600436106102475760003560e01c806370a082311161013b578063c8f33c91116100b8578063e2adc2371161007c578063e2adc23714610500578063e942204614610508578063e9fad8ee14610525578063ebe2b12b1461052d578063f603944c1461053557610247565b8063c8f33c91146104c3578063cc1a378f146104cb578063cd3daf9d146104e8578063d1af0c7d146104f0578063df136d65146104f857610247565b80638980f11f116100ff5780638980f11f146104445780638b876347146104705780638da5cb5b1461049657806391b4ded91461049e578063a694fc3a146104a657610247565b806370a08231146103fe57806372f702f31461042457806379ba50971461042c5780637b0a47ee1461043457806380faa57d1461043c57610247565b80632e1a7d4d116101c95780633fc6df6e1161018d5780633fc6df6e146103a557806344142db5146103c957806353a47bb7146103d1578063556f6e6b146103d95780635c975abb146103f657610247565b80632e1a7d4d146103535780632f3d3b1414610370578063386a9525146103785780633c6b16ab146103805780633d18b9121461039d57610247565b806318160ddd1161021057806318160ddd1461030d57806319762143146103155780631c1f78eb1461033b578063242df9e11461034357806327ab19691461034b57610247565b80628cc2621461024c5780630700037d146102845780631265cc97146102aa5780631627540c146102c657806316c38b3c146102ee575b600080fd5b6102726004803603602081101561026257600080fd5b50356001600160a01b031661053d565b60408051918252519081900360200190f35b6102726004803603602081101561029a57600080fd5b50356001600160a01b03166105d3565b6102b26105e5565b604080519115158252519081900360200190f35b6102ec600480360360208110156102dc57600080fd5b50356001600160a01b03166105ee565b005b6102ec6004803603602081101561030457600080fd5b5035151561064a565b6102726106c4565b6102ec6004803603602081101561032b57600080fd5b50356001600160a01b03166106cb565b6102726106f5565b610272610713565b610272610719565b6102ec6004803603602081101561036957600080fd5b503561074c565b6102ec6109bf565b610272610a78565b6102ec6004803603602081101561039657600080fd5b5035610a7e565b6102ec610d21565b6103ad610f1b565b604080516001600160a01b039092168252519081900360200190f35b6102ec610f2a565b6103ad610fec565b6102ec600480360360208110156103ef57600080fd5b5035610ffb565b6102b26110f2565b6102726004803603602081101561041457600080fd5b50356001600160a01b03166110fb565b6103ad611116565b6102ec611125565b6102726111e1565b6102726111e7565b6102ec6004803603604081101561045a57600080fd5b506001600160a01b0381351690602001356111f5565b6102726004803603602081101561048657600080fd5b50356001600160a01b03166112b2565b6103ad6112c4565b6102726112d3565b6102ec600480360360208110156104bc57600080fd5b50356112d9565b61027261152c565b6102ec600480360360208110156104e157600080fd5b5035611532565b6102726115f7565b6103ad611651565b610272611665565b6102ec61166b565b6102ec6004803603602081101561051e57600080fd5b50356116d3565b6102ec611758565b6102726117bb565b6102726117c1565b6001600160a01b0381166000908152600f6020908152604080832054600e9092528220546105cd91906105c190670de0b6b3a7640000906105b590610590906105846115f7565b9063ffffffff6117fc16565b6001600160a01b0388166000908152601160205260409020549063ffffffff61185916565b9063ffffffff6118b916565b9063ffffffff61192016565b92915050565b600f6020526000908152604090205481565b60045460ff1681565b6105f661197a565b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b61065261197a565b60065460ff1615158115151415610668576106c1565b6006805460ff1916821515179081905560ff161561068557426005555b6006546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a15b50565b6010545b90565b6106d361197a565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600061070e600a5460095461185990919063ffffffff16565b905090565b600b5481565b6000806000610733426008546119c390919063ffffffff16565b9150915081610743576000610745565b805b9250505090565b60045460ff161561078e5760405162461bcd60e51b8152600401808060200182810382526046815260200180611e526046913960600191505060405180910390fd5b600260035414156107e6576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600355600454339060ff16610851576107ff6115f7565b600d5561080a6111e7565b600c556001600160a01b03811615610851576108258161053d565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b6000821161089a576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600b5415806108cb5750600b54336000908152601260205260409020546108c890429063ffffffff6117fc16565b10155b6109065760405162461bcd60e51b8152600401808060200182810382526035815260200180611f566035913960400191505060405180910390fd5b601054610919908363ffffffff6117fc16565b6010553360009081526011602052604090205461093c908363ffffffff6117fc16565b33600090815260116020526040902081905561096357336000908152601260205260408120555b600754610980906001600160a01b0316338463ffffffff6119e916565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250506001600355565b60045460ff16610a005760405162461bcd60e51b8152600401808060200182810382526048815260200180611e986048913960600191505060405180910390fd5b3360009081526011602052604090205480156106c157601054610a29908263ffffffff6117fc16565b60105533600090815260116020526040902054610a4c908263ffffffff6117fc16565b336000818152601160205260409020919091556007546106c1916001600160a01b0390911690836119e9565b600a5481565b60045460ff1615610ac05760405162461bcd60e51b8152600401808060200182810382526046815260200180611e526046913960600191505060405180910390fd5b6002546001600160a01b03163314610b095760405162461bcd60e51b815260040180806020018281038252602a815260200180611fed602a913960400191505060405180910390fd5b60045460009060ff16610b7057610b1e6115f7565b600d55610b296111e7565b600c556001600160a01b03811615610b7057610b448161053d565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b6008544210610b9557600a54610b8d90839063ffffffff6118b916565b600955610be4565b600854600090610bab904263ffffffff6117fc16565b90506000610bc46009548361185990919063ffffffff16565b600a54909150610bde906105b5868463ffffffff61192016565b60095550505b600654604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610c3457600080fd5b505afa158015610c48573d6000803e3d6000fd5b505050506040513d6020811015610c5e57600080fd5b5051600a54909150610c7790829063ffffffff6118b916565b6009541115610ccd576040805162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b42600c819055600a54610ce6919063ffffffff61192016565b6008556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b60045460ff1615610d635760405162461bcd60e51b8152600401808060200182810382526046815260200180611e526046913960600191505060405180910390fd5b60026003541415610dbb576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600355600454339060ff16610e2657610dd46115f7565b600d55610ddf6111e7565b600c556001600160a01b03811615610e2657610dfa8161053d565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b600b541580610e575750600b5433600090815260126020526040902054610e5490429063ffffffff6117fc16565b10155b610e925760405162461bcd60e51b81526004018080602001828103825260378152602001806120416037913960400191505060405180910390fd5b336000908152600f60205260409020548015610f1257336000818152600f6020526040812055600654610edb916101009091046001600160a01b0316908363ffffffff6119e916565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001600355565b6002546001600160a01b031681565b610f3261197a565b601054600754604080516370a0823160e01b81523060048201529051600093610fc19390926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610f8957600080fd5b505afa158015610f9d573d6000803e3d6000fd5b505050506040513d6020811015610fb357600080fd5b50519063ffffffff6117fc16565b905080156106c1576000546007546106c1916001600160a01b0391821691168363ffffffff6119e916565b6001546001600160a01b031681565b60045460ff161561103d5760405162461bcd60e51b8152600401808060200182810382526046815260200180611e526046913960600191505060405180910390fd5b61104561197a565b60045460009060ff166110ac5761105a6115f7565b600d556110656111e7565b600c556001600160a01b038116156110ac576110808161053d565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b600c5482116110ec5760405162461bcd60e51b8152600401808060200182810382526026815260200180611f8b6026913960400191505060405180910390fd5b50600855565b60065460ff1681565b6001600160a01b031660009081526011602052604090205490565b6007546001600160a01b031681565b6001546001600160a01b0316331461116e5760405162461bcd60e51b8152600401808060200182810382526035815260200180611e1d6035913960400191505060405180910390fd5b600054600154604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b60095481565b600061070e42600854611a40565b6111fd61197a565b6007546001600160a01b038381169116141561124a5760405162461bcd60e51b81526004018080602001828103825260218152602001806120786021913960400191505060405180910390fd5b60005461126a906001600160a01b0384811691168363ffffffff6119e916565b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b600e6020526000908152604090205481565b6000546001600160a01b031681565b60055481565b60045460ff161561131b5760405162461bcd60e51b8152600401808060200182810382526046815260200180611e526046913960600191505060405180910390fd5b60026003541415611373576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260035560065460ff16156113ba5760405162461bcd60e51b815260040180806020018281038252603c815260200180611fb1603c913960400191505060405180910390fd5b600454339060ff16611420576113ce6115f7565b600d556113d96111e7565b600c556001600160a01b03811615611420576113f48161053d565b6001600160a01b0382166000908152600f6020908152604080832093909355600d54600e909152919020555b60008211611466576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b601054611479908363ffffffff61192016565b6010553360009081526011602052604090205461149c908363ffffffff61192016565b336000908152601160209081526040808320939093556012905220546114cf573360009081526012602052604090204290555b6007546114ed906001600160a01b031633308563ffffffff611a5616565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250506001600355565b600c5481565b60045460ff16156115745760405162461bcd60e51b8152600401808060200182810382526046815260200180611e526046913960600191505060405180910390fd5b61157c61197a565b60085442116115bc5760405162461bcd60e51b8152600401808060200182810382526058815260200180611dc56058913960600191505060405180910390fd5b600a8190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b60006010546000141561160d5750600d546106c8565b61070e6116426010546105b5670de0b6b3a7640000611636600954611636600c546105846111e7565b9063ffffffff61185916565b600d549063ffffffff61192016565b60065461010090046001600160a01b031681565b600d5481565b60045460ff16156116ad5760405162461bcd60e51b8152600401808060200182810382526046815260200180611e526046913960600191505060405180910390fd5b6116b561197a565b6000600b81905560088190556009819055600d556116d1611ab6565b565b60045460ff16156117155760405162461bcd60e51b8152600401808060200182810382526046815260200180611e526046913960600191505060405180910390fd5b61171d61197a565b600b8190556040805182815290517f2b0fa66d155c9598699cb6569577f27b95729bbf580268eed39db6bc4e8144779181900360200190a150565b60045460ff161561179a5760405162461bcd60e51b8152600401808060200182810382526046815260200180611e526046913960600191505060405180910390fd5b336000908152601160205260409020546117b39061074c565b6116d1610d21565b60085481565b600b54336000908152601260205260408120549091829182916107339142916117f0919063ffffffff61192016565b9063ffffffff6119c316565b600082821115611853576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082611868575060006105cd565b8282028284828161187557fe5b04146118b25760405162461bcd60e51b8152600401808060200182810382526021815260200180611f356021913960400191505060405180910390fd5b9392505050565b600080821161190f576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161191857fe5b049392505050565b6000828201838110156118b2576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000546001600160a01b031633146116d15760405162461bcd60e51b815260040180806020018281038252602f815260200180611f06602f913960400191505060405180910390fd5b600080838311156119d9575060009050806119e2565b50600190508183035b9250929050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611a3b908490611af6565b505050565b6000818310611a4f57816118b2565b5090919050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611ab0908590611af6565b50505050565b611abe61197a565b6004805460ff191660011790556040517fe68101b30364d616deefc8cd307b7e27ccbd9c73f138bd478179497563d97a1190600090a1565b6060611b4b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ba79092919063ffffffff16565b805190915015611a3b57808060200190516020811015611b6a57600080fd5b5051611a3b5760405162461bcd60e51b815260040180806020018281038252602a815260200180612017602a913960400191505060405180910390fd5b6060611bb68484600085611bbe565b949350505050565b606082471015611bff5760405162461bcd60e51b8152600401808060200182810382526026815260200180611ee06026913960400191505060405180910390fd5b611c0885611d1a565b611c59576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611c985780518252601f199092019160209182019101611c79565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611cfa576040519150601f19603f3d011682016040523d82523d6000602084013e611cff565b606091505b5091509150611d0f828286611d20565b979650505050505050565b3b151590565b60608315611d2f5750816118b2565b825115611d3f5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611d89578181015183820152602001611d71565b50505050905090810190601f168015611db65780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f64596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869705468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e747261637420697320696e204661696c73616665204d6f64655468697320616374696f6e2063616e206f6e6c7920626520706572666f726d6564207768696c652074686520636f6e747261637420697320696e204661696c73616665204d6f6465416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616e6e6f7420776974686472617720756e74696c206d696e696d756d207374616b696e672074696d65206861732070617373656454696d657374616d70206d757374206265206166746572206c61737455706461746554696d655468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e74726163742069732070617573656443616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f74206765742072657761726420756e74696c206d696e696d756d207374616b696e672074696d65206861732070617373656443616e6e6f7420776974686472617720746865207374616b696e6720746f6b656ea264697066735822122003dfee96f2895d2ca0bdd3311e6e03176b51b5e5f07663221b0526515f8e080564736f6c63430006020033000000000000000000000000c2573a26297a0c952c92bb48fdcb6929524f7f48000000000000000000000000c2573a26297a0c952c92bb48fdcb6929524f7f48000000000000000000000000154a9f9cbd3449ad22fdae23044319d6ef2a1fab000000000000000000000000154a9f9cbd3449ad22fdae23044319d6ef2a1fab0000000000000000000000000000000000000000000000000000000000093a80

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

000000000000000000000000c2573a26297a0c952c92bb48fdcb6929524f7f48000000000000000000000000c2573a26297a0c952c92bb48fdcb6929524f7f48000000000000000000000000154a9f9cbd3449ad22fdae23044319d6ef2a1fab000000000000000000000000154a9f9cbd3449ad22fdae23044319d6ef2a1fab0000000000000000000000000000000000000000000000000000000000093a80

-----Decoded View---------------
Arg [0] : _owner (address): 0xc2573a26297a0c952c92bb48fdcb6929524f7f48
Arg [1] : _rewardsDistribution (address): 0xc2573a26297a0c952c92bb48fdcb6929524f7f48
Arg [2] : _rewardsToken (address): 0x154a9f9cbd3449ad22fdae23044319d6ef2a1fab
Arg [3] : _stakingToken (address): 0x154a9f9cbd3449ad22fdae23044319d6ef2a1fab
Arg [4] : _minimumStakeTime (uint256): 604800

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000c2573a26297a0c952c92bb48fdcb6929524f7f48
Arg [1] : 000000000000000000000000c2573a26297a0c952c92bb48fdcb6929524f7f48
Arg [2] : 000000000000000000000000154a9f9cbd3449ad22fdae23044319d6ef2a1fab
Arg [3] : 000000000000000000000000154a9f9cbd3449ad22fdae23044319d6ef2a1fab
Arg [4] : 0000000000000000000000000000000000000000000000000000000000093a80


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.