Contract 0x308043A2a7c62B17906F9B074a349c43ccD919ad 1

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xf8154c256f8d57bda4c5d815579e9bf9dbfd082d1a673641abfe8d6f1b0b5665Stake110025922021-09-17 20:28:4621 hrs 13 mins ago0x232bb0aca84ebb9e4e9d218081a01562e67cee70 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000439535
0x00071a026e6270b9782dcd77d374e69146c21c38ded4af85f328c703173d8176Stake110024652021-09-17 20:22:2521 hrs 20 mins ago0x232bb0aca84ebb9e4e9d218081a01562e67cee70 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000514535
0xaafec1e3d1586daf1666dcf2839108206c45458190ab54fb862ce43a1fbeb361Get Reward110017692021-09-17 19:47:3721 hrs 54 mins ago0x232bb0aca84ebb9e4e9d218081a01562e67cee70 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00042726
0xd672fd06894d85f0c676d9be9fe7e2b37a53a96965c6b8cce277e5d59ef109ecStake109892582021-09-17 9:21:181 day 8 hrs ago0x232bb0aca84ebb9e4e9d218081a01562e67cee70 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00049329
0xc65cf8649c561746be4cbeea2f745f4579bea69ea13558e5e023ac4c9013c075Withdraw109844402021-09-17 5:20:091 day 12 hrs ago0xcad38071a0e18ad392103f6b4cfe5c70f810efd2 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00058098
0x7a3e639d41bc34552f3e1b4b8ce73c832b7ff20b20854aae89ce913c1cf6bd05Stake109686382021-09-16 16:08:542 days 1 hr ago0xcad38071a0e18ad392103f6b4cfe5c70f810efd2 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000668255
0x1a172d66777c7c99065b93a04245c0b8bf86d211f88c1da9fa9db4d482694745Withdraw109592362021-09-16 8:16:322 days 9 hrs ago0x232bb0aca84ebb9e4e9d218081a01562e67cee70 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00058104
0xe154929488a20b914c9169df2d6dbc6341053ecbc9f2be0cb1ccbf6b128d62cfGet Reward109571032021-09-16 6:29:532 days 11 hrs ago0xa888f9f1df01c65d7b164f4e3368f482eda0ee8a IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00055626
0x0718cd6fa72ce892fa26cb9e28a8e1ef41c1456b20346aa4f3c5bcd43c848e2bGet Reward109262362021-09-15 4:39:593 days 13 hrs ago0xdc5b49e33ebc60721313b7361c1f4acebeacf353 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000427015
0x2af23d0c7e6e47f03ff9b6f83a3fcd60c2bfcd0d928112768b3ddcb56e124d25Get Reward109261252021-09-15 4:34:263 days 13 hrs ago0x4334703b0b74e2045926f82f4158a103fce1df4f IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00042726
0x450c370312ec8fe332268187fc8b3bb5b2c53e00d71541490b5726745883fe68Stake109239332021-09-15 2:44:503 days 14 hrs ago0x10522996b74d19fa7fd438dfba1f05a5a55f36af IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000439475
0x4e2c7d78c545862fab560da8dd32777b674139318fc8e3e3e6fd5f830301baacWithdraw108687752021-09-13 4:40:235 days 13 hrs ago0x4334703b0b74e2045926f82f4158a103fce1df4f IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00065592
0x034803d98b1eb748a4635384cbd3dbf19894f0e32a720494dcf1b6623bd79b24Stake108372812021-09-12 2:24:336 days 15 hrs ago0x10522996b74d19fa7fd438dfba1f05a5a55f36af IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000514475
0x1d92e02973781e60627d9a37210cad48ddd219e1573adc257b47d6cf3210ddbaGet Reward108282262021-09-11 18:47:256 days 22 hrs ago0xca83a058bc7eec328ce0635610d360fa32f805f4 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00042726
0x94c53e3bae6c6fd57799ef86977a8bba0f650d1c976b23098c8b8ed5f9b39609Get Reward107955332021-09-10 15:13:048 days 2 hrs ago0x232bb0aca84ebb9e4e9d218081a01562e67cee70 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00048126
0x316d30eb3b8e6589ebcdaacb5ed35d3535bfc7589a46e386002ef8e8b2e5b079Stake107693212021-09-09 17:09:159 days 33 mins ago0x7d8cb270c03ce561d6a8f32c51fc31e78472c6fa IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000514475
0x534e0388bc085bdc9de7ba35fbbe68b74f036e1881b538202c3f77374c8a6bc8Get Reward107690882021-09-09 16:57:369 days 44 mins ago0x7d8cb270c03ce561d6a8f32c51fc31e78472c6fa IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00050226
0xb191ccf7a044b4d43cc442fbaf0ece5522f748faa77dd20e5b44db43c9edcf6cGet Reward107252152021-09-08 3:59:3010 days 13 hrs ago0x4334703b0b74e2045926f82f4158a103fce1df4f IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00050226
0xb4cf47122432f833200aa0028dc3ff60929ea86776eb77150eeeb02b228561c9Stake107191572021-09-07 22:53:4210 days 18 hrs ago0x79812b66b8acaae4844637ac89eb71c6685793f8 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000514475
0x1a9bf42e48a3d2d6b7722e29f02b2b59b9049637b38ef827215533dab523c027Get Reward107036912021-09-07 9:39:0511 days 8 hrs ago0x97e931494a837ecde1d2f152fcef1c2f5e093356 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000502015
0xe74b8bd39cc3120890efa64219191b8937f4a3145d4d94790c030fa6f10e7c3eGet Reward106799662021-09-06 13:37:3812 days 4 hrs ago0x68a98fb9de5aa136bc58f1e08866ee1cc11fccc7 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000427015
0xdbdcfc1e669c340422ad603b27071d7843dd050a685e7b04afba8ed069717831Stake106606762021-09-05 21:31:2812 days 20 hrs ago0xa1f095b8a4067c98d32369a1c9e3e210d5aa1a80 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000668255
0xb3b5c00b36c28b055ef62d3f0dfb7f392871450f428841d7897800e0c758e102Get Reward106539582021-09-05 15:54:3813 days 1 hr ago0x33a888a62f01ddb2419a160e008aeaef53b379e4 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.000502015
0xa1a1a26eb301ea081641aa8d0a4adde3fba22f23b4c521024321f69f312d1af7Get Reward105891392021-09-03 9:34:0115 days 8 hrs ago0x232bb0aca84ebb9e4e9d218081a01562e67cee70 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00042726
0x7a1bc7d6bc57b23f955f9ff1963a63b3a6b5bb9b3a2911d33c1a62ef349dcc16Withdraw105827522021-09-03 4:09:4115 days 13 hrs ago0x97e931494a837ecde1d2f152fcef1c2f5e093356 IN  0x308043a2a7c62b17906f9b074a349c43ccd919ad0 BNB0.00058104
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xe979b6225c22081ffe2b0c69acc2b5d2ce0fe595543f30aefd8451c96259658593462672021-07-21 8:43:4059 days 8 hrs ago 0x6534af0bb8cdc205be7f43fb29a602df26a0446c 0x308043a2a7c62b17906f9b074a349c43ccd919ad10,000 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingRewardsV2

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 9 : Address.sol
pragma solidity ^0.5.5;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

File 2 of 9 : Context.sol
pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 3 of 9 : 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.
     *
     * 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 4 of 9 : KineSafeMath.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.
 */

/**
 * Original work from OpenZeppelin: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/math/SafeMath.sol
 * changes we made:
 * 1. add two methods that take errorMessage as input parameter
 */

library KineSafeMath {
    /**
     * @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 addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     * added by Kine
     */
    function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, errorMessage);

        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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        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-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     * added by Kine
     */
    function mul(uint256 a, uint256 b, string memory errorMessage) 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-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, errorMessage);

        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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        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) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 5 of 9 : LPStakingRewards.sol
pragma solidity ^0.5.16;

import "./Math.sol";
import "./SafeERC20.sol";
import "./Ownable.sol";

contract ReentrancyGuard {
    uint256 private _guardCounter;

    constructor () internal {
        _guardCounter = 1;
    }

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

contract LPStakingRewards is Ownable, ReentrancyGuard {
    using KineSafeMath for uint;
    using SafeERC20 for IERC20;

    event NewRewardDistribution(address oldRewardDistribution, address newRewardDistribution);
    event NewRewardDuration(uint oldRewardDuration, uint newRewardDuration);
    event NewRewardReleasePeriod(uint oldRewardReleasePeriod, uint newRewardReleasePeriod);
    event NewCooldownTime(uint oldCooldownTime, uint newCooldownTime);
    event Staked(address indexed user, uint amount);
    event Withdrawn(address indexed user, uint amount);
    event RewardAdded(uint reward);
    event RewardPaid(address indexed user, uint reward);

    /**
     * @notice This is for avoiding reward calculation overflow (see https://sips.synthetix.io/sips/sip-77)
     * 1.15792e59 < uint(-1) / 1e18
    */
    uint public constant REWARD_OVERFLOW_CHECK = 1.15792e59;

    IERC20 public rewardsToken;
    IERC20 public stakingToken;
    address public rewardDistribution;
    uint public rewardDuration;
    uint public rewardReleasePeriod;
    uint public startTime;
    uint public periodFinish = 0;
    uint public rewardRate = 0;
    uint public rewardPerTokenStored;
    uint public lastUpdateTime;
    uint public claimCooldownTime;
    uint public totalStakes = 0;

    struct AccountRewardDetail {
        uint lastClaimTime;
        uint rewardPerTokenUpdated;
        uint accruedReward;
    }

    mapping(address => AccountRewardDetail) public accountRewardDetails;
    mapping(address => uint) public accountStakes;

    constructor (address rewardsToken_, address stakingToken_, uint startTime_) public {
        rewardsToken = IERC20(rewardsToken_);
        stakingToken = IERC20(stakingToken_);
        startTime = startTime_;
    }

    modifier onlyRewardDistribution() {
        require(_msgSender() == rewardDistribution, "Caller is not reward distribution");
        _;
    }

    modifier checkStart() {
        require(block.timestamp >= startTime, "not started yet");
        _;
    }

    modifier afterCooldown(address staker) {
        require(accountRewardDetails[staker].lastClaimTime.add(claimCooldownTime) < block.timestamp, "claim cooling down");
        _;
    }

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            AccountRewardDetail storage rd = accountRewardDetails[account];
            rd.accruedReward = earned(account);
            rd.rewardPerTokenUpdated = rewardPerTokenStored;
            if (rd.lastClaimTime == 0) {
                rd.lastClaimTime = block.timestamp;
            }
        }
        _;
    }

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

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

    function earned(address account) public view returns (uint) {
        return accountStakes[account]
        .mul(rewardPerToken().sub(accountRewardDetails[account].rewardPerTokenUpdated))
        .div(1e18)
        .add(accountRewardDetails[account].accruedReward);
    }

    function claimable(address account) external view returns (uint) {
        uint accountNewAccruedReward = earned(account);
        uint pastTime = block.timestamp.sub(accountRewardDetails[account].lastClaimTime);
        uint maturedReward = rewardReleasePeriod == 0 ? accountNewAccruedReward : accountNewAccruedReward.mul(pastTime).div(rewardReleasePeriod);
        if (maturedReward > accountNewAccruedReward) {
            maturedReward = accountNewAccruedReward;
        }
        return maturedReward;
    }

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

    function stake(uint256 amount) external nonReentrant checkStart updateReward(msg.sender) {
        require(amount > 0, "staking 0");
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        totalStakes = totalStakes.add(amount);
        accountStakes[msg.sender] = accountStakes[msg.sender].add(amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) {
        require(amount > 0, "withdrawing 0");
        totalStakes = totalStakes.sub(amount);
        accountStakes[msg.sender] = accountStakes[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function getReward() public nonReentrant afterCooldown(msg.sender) updateReward(msg.sender) {
        uint reward = accountRewardDetails[msg.sender].accruedReward;
        if (reward > 0) {
            uint pastTime = block.timestamp.sub(accountRewardDetails[msg.sender].lastClaimTime);
            uint maturedReward = rewardReleasePeriod == 0 ? reward : reward.mul(pastTime).div(rewardReleasePeriod);
            if (maturedReward > reward) {
                maturedReward = reward;
            }

            accountRewardDetails[msg.sender].accruedReward = reward.sub(maturedReward);
            accountRewardDetails[msg.sender].lastClaimTime = block.timestamp;
            rewardsToken.safeTransfer(msg.sender, maturedReward);
            emit RewardPaid(msg.sender, maturedReward);
        }
    }

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


    function notifyRewardAmount(uint reward) external onlyRewardDistribution updateReward(address(0)) {
        if (block.timestamp > startTime) {
            if (block.timestamp >= periodFinish) {
                require(reward < REWARD_OVERFLOW_CHECK, "reward rate will overflow");
                rewardRate = reward.div(rewardDuration);
            } else {
                uint remaining = periodFinish.sub(block.timestamp);
                uint leftover = remaining.mul(rewardRate);
                require(reward.add(leftover) < REWARD_OVERFLOW_CHECK, "reward rate will overflow");
                rewardRate = reward.add(leftover).div(rewardDuration);
            }
            lastUpdateTime = block.timestamp;
            periodFinish = block.timestamp.add(rewardDuration);
            emit RewardAdded(reward);
        } else {
            require(reward < REWARD_OVERFLOW_CHECK, "reward rate will overflow");
            rewardRate = reward.div(rewardDuration);
            lastUpdateTime = startTime;
            periodFinish = startTime.add(rewardDuration);
            emit RewardAdded(reward);
        }
    }

    function _setRewardDistribution(address _rewardDistribution) external onlyOwner {
        address oldRewardDistribution = rewardDistribution;
        rewardDistribution = _rewardDistribution;
        emit NewRewardDistribution(oldRewardDistribution, _rewardDistribution);
    }

    function _setRewardDuration(uint newRewardDuration) external onlyOwner updateReward(address(0)) {
        uint oldRewardDuration = rewardDuration;
        rewardDuration = newRewardDuration;

        if (block.timestamp > startTime) {
            if (block.timestamp >= periodFinish) {
                rewardRate = 0;
            } else {
                uint remaining = periodFinish.sub(block.timestamp);
                uint leftover = remaining.mul(rewardRate);
                rewardRate = leftover.div(rewardDuration);
            }
            lastUpdateTime = block.timestamp;
            periodFinish = block.timestamp.add(rewardDuration);
        } else {
            rewardRate = rewardRate.mul(oldRewardDuration).div(rewardDuration);
            lastUpdateTime = startTime;
            periodFinish = startTime.add(rewardDuration);
        }

        emit NewRewardDuration(oldRewardDuration, newRewardDuration);
    }

    function _setRewardReleasePeriod(uint newRewardReleasePeriod) external onlyOwner updateReward(address(0)) {
        uint oldRewardReleasePeriod = rewardReleasePeriod;
        rewardReleasePeriod = newRewardReleasePeriod;
        emit NewRewardReleasePeriod(oldRewardReleasePeriod, newRewardReleasePeriod);
    }

    function _setCooldownTime(uint newCooldownTime) external onlyOwner {
        uint oldCooldownTime = claimCooldownTime;
        claimCooldownTime = newCooldownTime;
        emit NewCooldownTime(oldCooldownTime, newCooldownTime);
    }

}

File 6 of 9 : 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 7 of 9 : Ownable.sol
pragma solidity ^0.5.0;

import "./Context.sol";
/**
 * @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 applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

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

    /**
     * @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 _msgSender() == _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 9 : SafeERC20.sol
pragma solidity ^0.5.0;

import "./IERC20.sol";
import "./KineSafeMath.sol";
import "./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 KineSafeMath 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, "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.

        // 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 9 of 9 : StakingRewardsV2.sol
pragma solidity ^0.5.16;

import "./LPStakingRewards.sol";

contract StakingRewardsV2 is Ownable, ReentrancyGuard {
    using KineSafeMath for uint;
    using SafeERC20 for IERC20;

    event NewRewardDistribution(address oldRewardDistribution, address newRewardDistribution);
    event NewRewardDuration(uint oldRewardDuration, uint newRewardDuration);
    event NewRewardReleasePeriod(uint oldRewardReleasePeriod, uint newRewardReleasePeriod);
    event NewCooldownTime(uint oldCooldownTime, uint newCooldownTime);
    event Staked(address indexed user, uint amount);
    event Withdrawn(address indexed user, uint amount);
    event RewardAdded(uint reward);
    event RewardPaid(address indexed user, uint reward);
    event NewRewardToken(address oldRewardToken, address newRewardToken, uint scaleParam, uint leftOverReward, uint replaceReward, address leftoverTokenReceipient);

    /**
     * @notice This is for avoiding reward calculation overflow (see https://sips.synthetix.io/sips/sip-77)
     * 1.15792e59 < uint(-1) / 1e18
    */
    uint public constant REWARD_OVERFLOW_CHECK = 1.15792e59;

    IERC20 public rewardToken;
    IERC20 public stakingToken;
    address public rewardDistribution;
    uint public rewardDuration;
    uint public rewardReleasePeriod;
    uint public startTime;
    uint public periodFinish = 0;
    uint public rewardRate = 0;
    uint public rewardPerTokenStored;
    uint public lastUpdateTime;
    uint public claimCooldownTime;
    uint public totalStakes = 0;
    uint public currentScaleParamIndex;
    uint[] public scaleParams;

    struct AccountRewardDetail {
        uint lastClaimTime;
        uint rewardPerTokenUpdated;
        uint accruedReward;
        uint scaleParamIndex;
    }

    mapping(address => AccountRewardDetail) public accountRewardDetails;
    mapping(address => uint) public accountStakes;

    constructor (address rewardToken_, address stakingToken_, uint startTime_) public {
        rewardToken = IERC20(rewardToken_);
        stakingToken = IERC20(stakingToken_);
        startTime = startTime_;
    }

    modifier onlyRewardDistribution() {
        require(_msgSender() == rewardDistribution, "Caller is not reward distribution");
        _;
    }

    modifier checkStart() {
        require(block.timestamp >= startTime, "not started yet");
        _;
    }

    modifier afterCooldown(address staker) {
        require(accountRewardDetails[staker].lastClaimTime.add(claimCooldownTime) < block.timestamp, "claim cooling down");
        _;
    }

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            AccountRewardDetail storage rd = accountRewardDetails[account];
            rd.accruedReward = earned(account);
            rd.rewardPerTokenUpdated = rewardPerTokenStored;
            rd.scaleParamIndex = currentScaleParamIndex;
            if (rd.lastClaimTime == 0) {
                rd.lastClaimTime = block.timestamp;
            }
        }
        _;
    }

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

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

    function earned(address account) public view returns (uint) {
        AccountRewardDetail memory detail = accountRewardDetails[account];
        uint scaledRewardPerTokenUpdated = detail.rewardPerTokenUpdated;
        uint scaledAccruedReward = detail.accruedReward;
        for (uint i = detail.scaleParamIndex; i < currentScaleParamIndex; i++) {
            scaledRewardPerTokenUpdated = scaledRewardPerTokenUpdated.mul(scaleParams[i]).div(1e18);
            scaledAccruedReward = scaledAccruedReward.mul(scaleParams[i]).div(1e18);
        }

        return accountStakes[account]
        .mul(rewardPerToken().sub(scaledRewardPerTokenUpdated))
        .div(1e18)
        .add(scaledAccruedReward);
    }

    function claimable(address account) external view returns (uint) {
        uint accountNewAccruedReward = earned(account);
        uint pastTime = block.timestamp.sub(accountRewardDetails[account].lastClaimTime);
        uint maturedReward = rewardReleasePeriod == 0 ? accountNewAccruedReward : accountNewAccruedReward.mul(pastTime).div(rewardReleasePeriod);
        if (maturedReward > accountNewAccruedReward) {
            maturedReward = accountNewAccruedReward;
        }
        return maturedReward;
    }

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

    function stake(uint256 amount) external nonReentrant checkStart updateReward(msg.sender) {
        require(amount > 0, "staking 0");
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        totalStakes = totalStakes.add(amount);
        accountStakes[msg.sender] = accountStakes[msg.sender].add(amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) {
        require(amount > 0, "withdrawing 0");
        totalStakes = totalStakes.sub(amount);
        accountStakes[msg.sender] = accountStakes[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function getReward() public nonReentrant afterCooldown(msg.sender) updateReward(msg.sender) {
        uint reward = accountRewardDetails[msg.sender].accruedReward;
        if (reward > 0) {
            uint pastTime = block.timestamp.sub(accountRewardDetails[msg.sender].lastClaimTime);
            uint maturedReward = rewardReleasePeriod == 0 ? reward : reward.mul(pastTime).div(rewardReleasePeriod);
            if (maturedReward > reward) {
                maturedReward = reward;
            }

            accountRewardDetails[msg.sender].accruedReward = reward.sub(maturedReward);
            accountRewardDetails[msg.sender].lastClaimTime = block.timestamp;
            rewardToken.safeTransfer(msg.sender, maturedReward);
            emit RewardPaid(msg.sender, maturedReward);
        }
    }

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


    function notifyRewardAmount(uint reward) external onlyRewardDistribution updateReward(address(0)) {
        if (block.timestamp > startTime) {
            if (block.timestamp >= periodFinish) {
                require(reward < REWARD_OVERFLOW_CHECK, "reward rate will overflow");
                rewardRate = reward.div(rewardDuration);
            } else {
                uint remaining = periodFinish.sub(block.timestamp);
                uint leftover = remaining.mul(rewardRate);
                require(reward.add(leftover) < REWARD_OVERFLOW_CHECK, "reward rate will overflow");
                rewardRate = reward.add(leftover).div(rewardDuration);
            }
            lastUpdateTime = block.timestamp;
            periodFinish = block.timestamp.add(rewardDuration);
            emit RewardAdded(reward);
        } else {
            require(reward < REWARD_OVERFLOW_CHECK, "reward rate will overflow");
            rewardRate = reward.div(rewardDuration);
            lastUpdateTime = startTime;
            periodFinish = startTime.add(rewardDuration);
            emit RewardAdded(reward);
        }
    }

    function _setRewardDistribution(address _rewardDistribution) external onlyOwner {
        address oldRewardDistribution = rewardDistribution;
        rewardDistribution = _rewardDistribution;
        emit NewRewardDistribution(oldRewardDistribution, _rewardDistribution);
    }

    function _setRewardDuration(uint newRewardDuration) external onlyOwner updateReward(address(0)) {
        uint oldRewardDuration = rewardDuration;
        rewardDuration = newRewardDuration;

        if (block.timestamp > startTime) {
            if (block.timestamp >= periodFinish) {
                rewardRate = 0;
            } else {
                uint remaining = periodFinish.sub(block.timestamp);
                uint leftover = remaining.mul(rewardRate);
                rewardRate = leftover.div(rewardDuration);
            }
            lastUpdateTime = block.timestamp;
            periodFinish = block.timestamp.add(rewardDuration);
        } else {
            rewardRate = rewardRate.mul(oldRewardDuration).div(rewardDuration);
            lastUpdateTime = startTime;
            periodFinish = startTime.add(rewardDuration);
        }

        emit NewRewardDuration(oldRewardDuration, newRewardDuration);
    }

    function _setRewardReleasePeriod(uint newRewardReleasePeriod) external onlyOwner updateReward(address(0)) {
        uint oldRewardReleasePeriod = rewardReleasePeriod;
        rewardReleasePeriod = newRewardReleasePeriod;
        emit NewRewardReleasePeriod(oldRewardReleasePeriod, newRewardReleasePeriod);
    }

    function _setCooldownTime(uint newCooldownTime) external onlyOwner {
        uint oldCooldownTime = claimCooldownTime;
        claimCooldownTime = newCooldownTime;
        emit NewCooldownTime(oldCooldownTime, newCooldownTime);
    }

    function _changeRewardToken(address newRewardToken, uint scaleParam, address tokenHolder) external onlyOwner updateReward(address(0)) {
        require(block.timestamp > periodFinish, "period not finished yet");
        // 1. convert current rewardPerTokenStored to fit new token
        rewardPerTokenStored = rewardPerTokenStored.mul(scaleParam).div(1e18);
        rewardRate = rewardRate.mul(scaleParam).div(1e18);

        // 2. save scaleParam to array and update sys scaleParamIndex
        scaleParams.push(scaleParam);
        currentScaleParamIndex++;

        // 3. transfer left-over old reward token to tokenHolder
        uint leftOverReward = rewardToken.balanceOf(address(this));
        rewardToken.safeTransfer(tokenHolder, leftOverReward);

        // 4. set newRewardToken
        address oldRewardToken = address(rewardToken);
        rewardToken = IERC20(newRewardToken);

        // 5. transfer equivalent new reward token to this contract
        uint replaceReward = leftOverReward.mul(scaleParam).div(1e18);
        rewardToken.safeTransferFrom(tokenHolder, address(this), replaceReward);

        emit NewRewardToken(oldRewardToken, newRewardToken, scaleParam, leftOverReward, replaceReward, tokenHolder);
    }
}

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":"rewardToken_","type":"address"},{"internalType":"address","name":"stakingToken_","type":"address"},{"internalType":"uint256","name":"startTime_","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldCooldownTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCooldownTime","type":"uint256"}],"name":"NewCooldownTime","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldRewardDistribution","type":"address"},{"indexed":false,"internalType":"address","name":"newRewardDistribution","type":"address"}],"name":"NewRewardDistribution","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldRewardDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRewardDuration","type":"uint256"}],"name":"NewRewardDuration","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldRewardReleasePeriod","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newRewardReleasePeriod","type":"uint256"}],"name":"NewRewardReleasePeriod","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldRewardToken","type":"address"},{"indexed":false,"internalType":"address","name":"newRewardToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"scaleParam","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"leftOverReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"replaceReward","type":"uint256"},{"indexed":false,"internalType":"address","name":"leftoverTokenReceipient","type":"address"}],"name":"NewRewardToken","type":"event"},{"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":true,"inputs":[],"name":"REWARD_OVERFLOW_CHECK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newRewardToken","type":"address"},{"internalType":"uint256","name":"scaleParam","type":"uint256"},{"internalType":"address","name":"tokenHolder","type":"address"}],"name":"_changeRewardToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newCooldownTime","type":"uint256"}],"name":"_setCooldownTime","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardDistribution","type":"address"}],"name":"_setRewardDistribution","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newRewardDuration","type":"uint256"}],"name":"_setRewardDuration","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newRewardReleasePeriod","type":"uint256"}],"name":"_setRewardReleasePeriod","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountRewardDetails","outputs":[{"internalType":"uint256","name":"lastClaimTime","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenUpdated","type":"uint256"},{"internalType":"uint256","name":"accruedReward","type":"uint256"},{"internalType":"uint256","name":"scaleParamIndex","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountStakes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"claimCooldownTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"currentScaleParamIndex","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":"rewardDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardReleasePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"scaleParams","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalStakes","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":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

6080604052600060085560006009556000600d5534801561001f57600080fd5b506040516121073803806121078339818101604052606081101561004257600080fd5b508051602082015160409092015190919060006100666001600160e01b036100ec16565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b039485166001600160a01b03199182161790915560038054939094169216919091179091556007556100f0565b3390565b612008806100ff6000396000f3fe608060405234801561001057600080fd5b506004361061021b5760003560e01c80638da5cb5b11610125578063dfcbc488116100ad578063ebe2b12b1161007c578063ebe2b12b146104d9578063f02d520b146104e1578063f2fde38b146104e9578063f520e7e51461050f578063f7c618c1146105175761021b565b8063dfcbc48814610476578063e7690c4414610493578063e7cb69291461049b578063e9fad8ee146104d15761021b565b8063bc9d5233116100f4578063bc9d523314610430578063bf9befb114610456578063c8f33c911461045e578063cd3daf9d14610466578063df136d651461046e5761021b565b80638da5cb5b146103e75780638f32d59b146103ef578063a694fc3a1461040b578063a70c1966146104285761021b565b80633d18b912116101a8578063715018a611610177578063715018a6146103bf57806372f702f3146103c757806378e97925146103cf5780637b0a47ee146103d757806380faa57d146103df5761021b565b80633d18b9121461036c578063402914f51461037457806340d82a881461039a578063709d483c146103b75761021b565b8063155b0a71116101ef578063155b0a71146102c1578063183ddbfb146102de5780631c1f78eb1461032a5780632e1a7d4d146103325780633c6b16ab1461034f5761021b565b80628cc2621461022057806305517146146102585780630eeb50e21461027e578063101114cf1461029d575b600080fd5b6102466004803603602081101561023657600080fd5b50356001600160a01b031661051f565b60408051918252519081900360200190f35b6102466004803603602081101561026e57600080fd5b50356001600160a01b031661066d565b61029b6004803603602081101561029457600080fd5b503561067f565b005b6102a561070d565b604080516001600160a01b039092168252519081900360200190f35b610246600480360360208110156102d757600080fd5b503561071c565b610304600480360360208110156102f457600080fd5b50356001600160a01b031661073a565b604080519485526020850193909352838301919091526060830152519081900360800190f35b610246610761565b61029b6004803603602081101561034857600080fd5b5035610780565b61029b6004803603602081101561036557600080fd5b503561092a565b61029b610c67565b6102466004803603602081101561038a57600080fd5b50356001600160a01b0316610e91565b61029b600480360360208110156103b057600080fd5b5035610f0c565b6102466110cb565b61029b6110e4565b6102a5611175565b610246611184565b61024661118a565b610246611190565b6102a561119e565b6103f76111ad565b604080519115158252519081900360200190f35b61029b6004803603602081101561042157600080fd5b50356111d1565b6102466113c1565b61029b6004803603602081101561044657600080fd5b50356001600160a01b03166113c7565b610246611471565b610246611477565b61024661147d565b6102466114d7565b61029b6004803603602081101561048c57600080fd5b50356114dd565b6102466115d5565b61029b600480360360608110156104b157600080fd5b506001600160a01b038135811691602081013591604090910135166115db565b61029b6118c7565b6102466118ea565b6102466118f0565b61029b600480360360208110156104ff57600080fd5b50356001600160a01b03166118f6565b610246611946565b6102a561194c565b6000610529611ef9565b506001600160a01b03821660009081526010602090815260409182902082516080810184528154815260018201549281018390526002820154938101849052600390910154606082018190529092905b600e54811015610607576105c5670de0b6b3a76400006105b9600f848154811061059f57fe5b90600052602060002001548661195b90919063ffffffff16565b9063ffffffff6119bd16565b92506105fd670de0b6b3a76400006105b9600f84815481106105e357fe5b90600052602060002001548561195b90919063ffffffff16565b9150600101610579565b5061066481610658670de0b6b3a76400006105b96106338761062761147d565b9063ffffffff6119ff16565b6001600160a01b038b166000908152601160205260409020549063ffffffff61195b16565b9063ffffffff611a4116565b95945050505050565b60116020526000908152604090205481565b6106876111ad565b6106c6576040805162461bcd60e51b81526020600482018190526024820152600080516020611f69833981519152604482015290519081900360640190fd5b600c805490829055604080518281526020810184905281517fe1669793af965a9f472c5854f2271bd6bc1ae54cc31b82540d70915a252b9c14929181900390910190a15050565b6004546001600160a01b031681565b600f818154811061072957fe5b600091825260209091200154905081565b60106020526000908152604090208054600182015460028301546003909301549192909184565b600061077a60055460095461195b90919063ffffffff16565b90505b90565b600180548101908190553361079361147d565b600a5561079e611190565b600b556001600160a01b038116156107f2576001600160a01b03811660009081526010602052604090206107d18261051f565b6002820155600a546001820155600e54600382015580546107f0574281555b505b60008311610837576040805162461bcd60e51b815260206004820152600d60248201526c07769746864726177696e67203609c1b604482015290519081900360640190fd5b600d5461084a908463ffffffff6119ff16565b600d553360009081526011602052604090205461086d908463ffffffff6119ff16565b33600081815260116020526040902091909155600354610899916001600160a01b039091169085611a9b565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a2506001548114610926576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b6004546001600160a01b031661093e611af2565b6001600160a01b0316146109835760405162461bcd60e51b8152600401808060200182810382526021815260200180611f896021913960400191505060405180910390fd5b600061098d61147d565b600a55610998611190565b600b556001600160a01b038116156109ec576001600160a01b03811660009081526010602052604090206109cb8261051f565b6002820155600a546001820155600e54600382015580546109ea574281555b505b600754421115610b96576008544210610a805771049c9738d3e759bf07b28cf2bce5c4af5dad603a1b8210610a64576040805162461bcd60e51b815260206004820152601960248201527872657761726420726174652077696c6c206f766572666c6f7760381b604482015290519081900360640190fd5b600554610a7890839063ffffffff6119bd16565b600955610b42565b600854600090610a96904263ffffffff6119ff16565b90506000610aaf6009548361195b90919063ffffffff16565b905071049c9738d3e759bf07b28cf2bce5c4af5dad603a1b610ad7858363ffffffff611a4116565b10610b25576040805162461bcd60e51b815260206004820152601960248201527872657761726420726174652077696c6c206f766572666c6f7760381b604482015290519081900360640190fd5b600554610b3c906105b9868463ffffffff611a4116565b60095550505b42600b819055600554610b5b919063ffffffff611a4116565b6008556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1610926565b71049c9738d3e759bf07b28cf2bce5c4af5dad603a1b8210610bfb576040805162461bcd60e51b815260206004820152601960248201527872657761726420726174652077696c6c206f766572666c6f7760381b604482015290519081900360640190fd5b600554610c0f90839063ffffffff6119bd16565b600955600754600b819055600554610c2d919063ffffffff611a4116565b6008556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b60018054810190819055600c543360008181526010602052604090205490914291610c979163ffffffff611a4116565b10610cde576040805162461bcd60e51b815260206004820152601260248201527131b630b4b69031b7b7b634b733903237bbb760711b604482015290519081900360640190fd5b33610ce761147d565b600a55610cf2611190565b600b556001600160a01b03811615610d46576001600160a01b0381166000908152601060205260409020610d258261051f565b6002820155600a546001820155600e5460038201558054610d44574281555b505b336000908152601060205260409020600201548015610e355733600090815260106020526040812054610d8090429063ffffffff6119ff16565b90506000600654600014610daa57600654610da5906105b9858563ffffffff61195b16565b610dac565b825b905082811115610db95750815b610dc9838263ffffffff6119ff16565b3360008181526010602052604090206002808201939093554290559054610dfc916001600160a01b039091169083611a9b565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a250505b5050506001548114610e8e576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b50565b600080610e9d8361051f565b6001600160a01b03841660009081526010602052604081205491925090610ecb90429063ffffffff6119ff16565b90506000600654600014610ef557600654610ef0906105b9858563ffffffff61195b16565b610ef7565b825b905082811115610f045750815b949350505050565b610f146111ad565b610f53576040805162461bcd60e51b81526020600482018190526024820152600080516020611f69833981519152604482015290519081900360640190fd5b6000610f5d61147d565b600a55610f68611190565b600b556001600160a01b03811615610fbc576001600160a01b0381166000908152601060205260409020610f9b8261051f565b6002820155600a546001820155600e5460038201558054610fba574281555b505b600580549083905560075442111561104e576008544210610fe157600060095561102d565b600854600090610ff7904263ffffffff6119ff16565b905060006110106009548361195b90919063ffffffff16565b9050611027600554826119bd90919063ffffffff16565b60095550505b42600b819055600554611046919063ffffffff611a4116565b60085561108b565b6110696005546105b98360095461195b90919063ffffffff16565b600955600754600b819055600554611087919063ffffffff611a4116565b6008555b604080518281526020810185905281517f37e5f8958a9afaec655f11114303c589fb1d7bf418a0f5d0231b5645c9c97bfe929181900390910190a1505050565b71049c9738d3e759bf07b28cf2bce5c4af5dad603a1b81565b6110ec6111ad565b61112b576040805162461bcd60e51b81526020600482018190526024820152600080516020611f69833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6003546001600160a01b031681565b60075481565b60095481565b600061077a42600854611af6565b6000546001600160a01b031690565b600080546001600160a01b03166111c2611af2565b6001600160a01b031614905090565b60018054810190819055600754421015611224576040805162461bcd60e51b815260206004820152600f60248201526e1b9bdd081cdd185c9d1959081e595d608a1b604482015290519081900360640190fd5b3361122d61147d565b600a55611238611190565b600b556001600160a01b0381161561128c576001600160a01b038116600090815260106020526040902061126b8261051f565b6002820155600a546001820155600e546003820155805461128a574281555b505b600083116112cd576040805162461bcd60e51b815260206004820152600960248201526807374616b696e6720360bc1b604482015290519081900360640190fd5b6003546112eb906001600160a01b031633308663ffffffff611b0c16565b600d546112fe908463ffffffff611a4116565b600d5533600090815260116020526040902054611321908463ffffffff611a4116565b33600081815260116020908152604091829020939093558051868152905191927f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d92918290030190a2506001548114610926576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60065481565b6113cf6111ad565b61140e576040805162461bcd60e51b81526020600482018190526024820152600080516020611f69833981519152604482015290519081900360640190fd5b600480546001600160a01b038381166001600160a01b0319831681179093556040805191909216808252602082019390935281517fb2b9e30d3c2fa2ea6903abe69b7f597dc3fb9ae4b64aa1d5302557405a2b05cc929181900390910190a15050565b600d5481565b600b5481565b6000600d54600014156114935750600a5461077d565b61077a6114c8600d546105b9670de0b6b3a76400006114bc6009546114bc600b54610627611190565b9063ffffffff61195b16565b600a549063ffffffff611a4116565b600a5481565b6114e56111ad565b611524576040805162461bcd60e51b81526020600482018190526024820152600080516020611f69833981519152604482015290519081900360640190fd5b600061152e61147d565b600a55611539611190565b600b556001600160a01b0381161561158d576001600160a01b038116600090815260106020526040902061156c8261051f565b6002820155600a546001820155600e546003820155805461158b574281555b505b6006805490839055604080518281526020810185905281517fbece2bcccce4d94546c9210138e109c2851d2c2153d0e7afba36e61c1b53d817929181900390910190a1505050565b600e5481565b6115e36111ad565b611622576040805162461bcd60e51b81526020600482018190526024820152600080516020611f69833981519152604482015290519081900360640190fd5b600061162c61147d565b600a55611637611190565b600b556001600160a01b0381161561168b576001600160a01b038116600090815260106020526040902061166a8261051f565b6002820155600a546001820155600e5460038201558054611689574281555b505b60085442116116e1576040805162461bcd60e51b815260206004820152601760248201527f706572696f64206e6f742066696e697368656420796574000000000000000000604482015290519081900360640190fd5b611702670de0b6b3a76400006105b985600a5461195b90919063ffffffff16565b600a5560095461172690670de0b6b3a7640000906105b9908663ffffffff61195b16565b600955600f80546001818101835560009283527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802909101859055600e80549091019055600254604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156117b457600080fd5b505afa1580156117c8573d6000803e3d6000fd5b505050506040513d60208110156117de57600080fd5b5051600254909150611800906001600160a01b0316848363ffffffff611a9b16565b600280546001600160a01b038781166001600160a01b031983161790925516600061183d670de0b6b3a76400006105b9858963ffffffff61195b16565b60025490915061185e906001600160a01b031686308463ffffffff611b0c16565b604080516001600160a01b038085168252808a1660208301528183018990526060820186905260808201849052871660a082015290517f1f10e3993e0ce4820ebfebd541b91aa5472ed7a2729fbb43b5d5a479b73430889181900360c00190a150505050505050565b336000908152601160205260409020546118e090610780565b6118e8610c67565b565b60085481565b600c5481565b6118fe6111ad565b61193d576040805162461bcd60e51b81526020600482018190526024820152600080516020611f69833981519152604482015290519081900360640190fd5b610e8e81611b6c565b60055481565b6002546001600160a01b031681565b60008261196a575060006119b7565b8282028284828161197757fe5b04146119b45760405162461bcd60e51b8152600401808060200182810382526021815260200180611f486021913960400191505060405180910390fd5b90505b92915050565b60006119b483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611c0c565b60006119b483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611cae565b6000828201838110156119b4576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611aed908490611d08565b505050565b3390565b6000818310611b0557816119b4565b5090919050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611b66908590611d08565b50505050565b6001600160a01b038116611bb15760405162461bcd60e51b8152600401808060200182810382526026815260200180611f226026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008183611c985760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611c5d578181015183820152602001611c45565b50505050905090810190601f168015611c8a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611ca457fe5b0495945050505050565b60008184841115611d005760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611c5d578181015183820152602001611c45565b505050900390565b611d1a826001600160a01b0316611ec0565b611d6b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611da95780518252601f199092019160209182019101611d8a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611e0b576040519150601f19603f3d011682016040523d82523d6000602084013e611e10565b606091505b509150915081611e67576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611b6657808060200190516020811015611e8357600080fd5b5051611b665760405162461bcd60e51b815260040180806020018281038252602a815260200180611faa602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610f04575050151592915050565b604051806080016040528060008152602001600081526020016000815260200160008152509056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657243616c6c6572206973206e6f742072657761726420646973747269627574696f6e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a723158200c67eb1f6a4c76f9bf7428e5da6f4ba40e883e67e331c8536fad0f221cfdd4ac64736f6c63430005100032000000000000000000000000bfa9df9ed8805e657d0feab5d186c6a567752d7f000000000000000000000000c87d1a3cb88821b09b1a5057e79ce807b2de04f20000000000000000000000000000000000000000000000000000000060c03cc0

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

000000000000000000000000bfa9df9ed8805e657d0feab5d186c6a567752d7f000000000000000000000000c87d1a3cb88821b09b1a5057e79ce807b2de04f20000000000000000000000000000000000000000000000000000000060c03cc0

-----Decoded View---------------
Arg [0] : rewardToken_ (address): 0xbfa9df9ed8805e657d0feab5d186c6a567752d7f
Arg [1] : stakingToken_ (address): 0xc87d1a3cb88821b09b1a5057e79ce807b2de04f2
Arg [2] : startTime_ (uint256): 1623211200

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000bfa9df9ed8805e657d0feab5d186c6a567752d7f
Arg [1] : 000000000000000000000000c87d1a3cb88821b09b1a5057e79ce807b2de04f2
Arg [2] : 0000000000000000000000000000000000000000000000000000000060c03cc0


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.