ETH Price: $3,271.98 (+0.79%)
Gas: 9 Gwei

Contract

0x26Ec7cfcdd57c0d27122349d8740B42E8E24bB0b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exit186276572023-11-22 13:45:35248 days ago1700660735IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0046923740.47172902
Exit172847652023-05-18 6:50:11436 days ago1684392611IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0040628335.04195388
Get Reward169516162023-04-01 3:24:59483 days ago1680319499IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0019056721.42607693
Get Reward164504742023-01-20 20:42:59553 days ago1674247379IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0032249630.41217748
Exit144189142022-03-19 20:00:14860 days ago1647720014IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0032501532.1590921
Get Reward144077982022-03-18 2:50:42862 days ago1647571842IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0061219481.40457311
Get Reward144077832022-03-18 2:46:44862 days ago1647571604IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.006085268.41773139
Exit135565762021-11-05 12:25:48995 days ago1636115148IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0130960399.93766097
Exit130093072021-08-12 8:43:481080 days ago1628757828IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0046004845.52008533
Get Reward130092312021-08-12 8:23:381080 days ago1628756618IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0049807556
Exit128026882021-07-10 23:56:001112 days ago1625961360IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0012774210
Get Reward127521872021-07-03 3:12:471120 days ago1625281967IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0008894210
Get Reward126049662021-06-10 5:51:581143 days ago1623304318IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.000666939
Get Reward125883722021-06-07 16:04:411146 days ago1623081881IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0014820820
Get Reward125883452021-06-07 16:00:421146 days ago1623081642IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0014230716
Exit124955982021-05-24 7:11:451160 days ago1621840305IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0035477945.1
Get Reward124851082021-05-22 16:11:561162 days ago1621699916IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0071153680
Get Reward123411242021-04-30 9:52:381184 days ago1619776358IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0027418437.00000146
Get Reward123397372021-04-30 4:36:261184 days ago1619757386IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0027394130.8
Get Reward123257322021-04-28 0:40:301186 days ago1619570430IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0048908666
Exit123086322021-04-25 9:24:151189 days ago1619342655IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0031811835.01
Stake122976302021-04-23 16:43:581190 days ago1619196238IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.0114277898
Get Reward122891342021-04-22 9:17:281192 days ago1619083048IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.00836604112.896
Exit122883442021-04-22 6:15:151192 days ago1619072115IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.01464546119.222
Exit122335232021-04-13 19:09:051200 days ago1618340945IN
0x26Ec7cfc...E8E24bB0b
0 ETH0.01907374153.00000134
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KittenPool

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-10-12
*/

//   _    _ _   _                __ _                            
//  | |  (_) | | |              / _(_)                           
//  | | ___| |_| |_ ___ _ __   | |_ _ _ __   __ _ _ __   ___ ___ 
//  | |/ / | __| __/ _ \ '_ \  |  _| | '_ \ / _` | '_ \ / __/ _ \
//  |   <| | |_| ||  __/ | | |_| | | | | | | (_| | | | | (_|  __/
//  |_|\_\_|\__|\__\___|_| |_(_)_| |_|_| |_|\__,_|_| |_|\___\___|
/*
   ____            __   __        __   _
  / __/__ __ ___  / /_ / /  ___  / /_ (_)__ __
 _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
     /___/

* Synthetix: YFIRewards.sol
*
* Docs: https://docs.synthetix.io/
*
*
* MIT License
* ===========
*
* Copyright (c) 2020 Synthetix
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/

// File: @openzeppelin/contracts/math/Math.sol

pragma solidity ^0.5.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.5.0;

library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

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

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/GSN/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: @openzeppelin/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be 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 {
        _owner = _msgSender();
        emit OwnershipTransferred(address(0), _owner);
    }

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _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: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

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

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

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

    /**
     * @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: @openzeppelin/contracts/utils/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.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * 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.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // 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 != 0x0 && codehash != accountHash);
    }

    /**
     * @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: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.0;

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "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: contracts/CurveRewards.sol

pragma solidity ^0.5.0;

contract LPTokenWrapper {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    using Address for address;

    IERC20 public LP_TOKEN = IERC20(0x0aD8fB8c6ac8Fa7446FD00BD53cEFa8E03FC01D3); // EDIT_ME: Stake LP token

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

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

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

    function stake(uint256 amount) public {
        address sender = msg.sender;
        require(!address(sender).isContract(), "plz farm by hand");
        require(tx.origin == sender, "plz farm by hand");
        _totalSupply = _totalSupply.add(amount);
        _balances[sender] = _balances[sender].add(amount);
        LP_TOKEN.safeTransferFrom(sender, address(this), amount);
    }

    function withdraw(uint256 amount) public {
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        LP_TOKEN.safeTransfer(msg.sender, amount);
    }
}

contract KittenPool is LPTokenWrapper, Ownable {
    IERC20 public REWARD_TOKEN = IERC20(0x3516415161C478DF10ADBb8bb884Cc83FbD5F11a); // EDIT_ME: Reward token
    uint256 public constant DURATION = 7 days; // EDIT_ME

    uint256 public initreward = 0;
    uint256 public starttime = 999999999999999999;
    uint256 public reductionFactor = 0;
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

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

    function startPool(uint256 _initFactor, uint256 _reductionFactor) external onlyOwner {
        starttime = block.timestamp;

        reductionFactor = _reductionFactor;
        initreward = REWARD_TOKEN.totalSupply().mul(_initFactor).div(1000);
        
        notifyRewardAmount(initreward);
        renounceOwnership();
    }

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

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

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

    function earned(address account) public view returns (uint256) {
        return
            balanceOf(account)
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account]);
    }

    // stake visibility is public as overriding LPTokenWrapper's stake() function
    function stake(uint256 amount) public updateReward(msg.sender) checkhalve checkStart { 
        require(amount > 0, "Cannot stake 0");
        super.stake(amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        super.withdraw(amount);
        emit Withdrawn(msg.sender, amount);
    }

    function exit() external {
        withdraw(balanceOf(msg.sender));
        getReward();
    }

    function getReward() public updateReward(msg.sender) checkhalve {
        uint256 reward = earned(msg.sender);
        if (reward > 0) {
            rewards[msg.sender] = 0;

            REWARD_TOKEN.safeTransfer(msg.sender, reward);
            
            emit RewardPaid(msg.sender, reward);
        }
    }

    modifier checkhalve(){
        if (block.timestamp >= periodFinish) {
            initreward = initreward.mul(reductionFactor).div(1000);

            rewardRate = initreward.div(DURATION);
            periodFinish = block.timestamp.add(DURATION);
            emit RewardAdded(initreward);
        }
        _;
    }
    modifier checkStart(){
        require(block.timestamp >= starttime, "not start");
        _;
    }

    function notifyRewardAmount(uint256 reward) private
        updateReward(address(0))
    {
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(DURATION);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(DURATION);
        }

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

Contract Security Audit

Contract ABI

[{"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":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"LP_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"REWARD_TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"initreward","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":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":true,"inputs":[],"name":"reductionFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_initFactor","type":"uint256"},{"internalType":"uint256","name":"_reductionFactor","type":"uint256"}],"name":"startPool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"starttime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

6080604052600080546001600160a01b0319908116730ad8fb8c6ac8fa7446fd00bd53cefa8e03fc01d317825560048054909116733516415161c478df10adbb8bb884cc83fbd5f11a1790556005819055670de0b6b3a763ffff6006556007819055600881905560095561007a6001600160e01b036100cb16565b600380546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36100cf565b3390565b611429806100de6000396000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c80638da5cb5b116100de578063c8f33c9111610097578063e9fad8ee11610071578063e9fad8ee14610328578063ebe2b12b14610330578063f2fde38b14610338578063f8c2b7731461035e5761018d565b8063c8f33c9114610310578063cd3daf9d14610318578063df136d65146103205761018d565b80638da5cb5b1461029b5780638f32d59b146102bf57806399248ea7146102db5780639c907b58146102e3578063a694fc3a146102eb578063bfd9041b146103085761018d565b80636378eba31161014b5780637b0a47ee116101255780637b0a47ee1461025d57806380faa57d146102655780638b8763471461026d5780638da58897146102935761018d565b80636378eba31461022757806370a082311461022f578063715018a6146102555761018d565b80628cc262146101925780630700037d146101ca57806318160ddd146101f05780631be05289146101f85780632e1a7d4d146102005780633d18b9121461021f575b600080fd5b6101b8600480360360208110156101a857600080fd5b50356001600160a01b0316610381565b60408051918252519081900360200190f35b6101b8600480360360208110156101e057600080fd5b50356001600160a01b0316610407565b6101b8610419565b6101b8610420565b61021d6004803603602081101561021657600080fd5b5035610427565b005b61021d61050e565b6101b861066d565b6101b86004803603602081101561024557600080fd5b50356001600160a01b0316610673565b61021d61068e565b6101b8610731565b6101b8610737565b6101b86004803603602081101561028357600080fd5b50356001600160a01b031661074a565b6101b861075c565b6102a3610762565b604080516001600160a01b039092168252519081900360200190f35b6102c7610771565b604080519115158252519081900360200190f35b6102a3610797565b6101b86107a6565b61021d6004803603602081101561030157600080fd5b50356107ac565b6102a3610960565b6101b861096f565b6101b8610975565b6101b86109c9565b61021d6109cf565b6101b86109ea565b61021d6004803603602081101561034e57600080fd5b50356001600160a01b03166109f0565b61021d6004803603604081101561037457600080fd5b5080359060200135610a55565b6001600160a01b0381166000908152600d6020908152604080832054600c90925282205461040191906103f590670de0b6b3a7640000906103e9906103d4906103c8610975565b9063ffffffff610b5516565b6103dd88610673565b9063ffffffff610b9e16565b9063ffffffff610bf716565b9063ffffffff610c3916565b92915050565b600d6020526000908152604090205481565b6001545b90565b62093a8081565b33610430610975565b600b5561043b610737565b600a556001600160a01b038116156104825761045681610381565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b600082116104cb576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b6104d482610c93565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b33610517610975565b600b55610522610737565b600a556001600160a01b038116156105695761053d81610381565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b60085442106105f65761058f6103e86103e9600754600554610b9e90919063ffffffff16565b60058190556105a79062093a8063ffffffff610bf716565b6009556105bd4262093a8063ffffffff610c3916565b60085560055460408051918252517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15b600061060133610381565b9050801561066957336000818152600d6020526040812055600454610632916001600160a01b039091169083610cf0565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b60075481565b6001600160a01b031660009081526002602052604090205490565b610696610771565b6106e7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b60095481565b600061074542600854610d47565b905090565b600c6020526000908152604090205481565b60065481565b6003546001600160a01b031690565b6003546000906001600160a01b0316610788610d5d565b6001600160a01b031614905090565b6004546001600160a01b031681565b60055481565b336107b5610975565b600b556107c0610737565b600a556001600160a01b03811615610807576107db81610381565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b60085442106108945761082d6103e86103e9600754600554610b9e90919063ffffffff16565b60058190556108459062093a8063ffffffff610bf716565b60095561085b4262093a8063ffffffff610c3916565b60085560055460408051918252517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15b6006544210156108d7576040805162461bcd60e51b81526020600482015260096024820152681b9bdd081cdd185c9d60ba1b604482015290519081900360640190fd5b6000821161091d576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b61092682610d61565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b6000546001600160a01b031681565b600a5481565b600061097f610419565b61098c5750600b5461041d565b6107456109ba61099a610419565b6103e9670de0b6b3a76400006103dd6009546103dd600a546103c8610737565b600b549063ffffffff610c3916565b600b5481565b6109e06109db33610673565b610427565b6109e861050e565b565b60085481565b6109f8610771565b610a49576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610a5281610e71565b50565b610a5d610771565b610aae576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b42600655600781905560048054604080516318160ddd60e01b81529051610b3f936103e8936103e99388936001600160a01b03909216926318160ddd928282019260209290829003018186803b158015610b0757600080fd5b505afa158015610b1b573d6000803e3d6000fd5b505050506040513d6020811015610b3157600080fd5b50519063ffffffff610b9e16565b6005819055610b4d90610f12565b61066961068e565b6000610b9783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611033565b9392505050565b600082610bad57506000610401565b82820282848281610bba57fe5b0414610b975760405162461bcd60e51b81526004018080602001828103825260218152602001806113aa6021913960400191505060405180910390fd5b6000610b9783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506110ca565b600082820183811015610b97576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600154610ca6908263ffffffff610b5516565b60015533600090815260026020526040902054610cc9908263ffffffff610b5516565b336000818152600260205260408120929092559054610a52916001600160a01b0390911690835b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d4290849061112f565b505050565b6000818310610d565781610b97565b5090919050565b3390565b33610d6b816112ed565b15610db0576040805162461bcd60e51b815260206004820152601060248201526f1c1b1e8819985c9b48189e481a185b9960821b604482015290519081900360640190fd5b326001600160a01b03821614610e00576040805162461bcd60e51b815260206004820152601060248201526f1c1b1e8819985c9b48189e481a185b9960821b604482015290519081900360640190fd5b600154610e13908363ffffffff610c3916565b6001556001600160a01b038116600090815260026020526040902054610e3f908363ffffffff610c3916565b6001600160a01b038083166000908152600260205260408120929092559054610669911682308563ffffffff61132916565b6001600160a01b038116610eb65760405162461bcd60e51b81526004018080602001828103825260268152602001806113846026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000610f1c610975565b600b55610f27610737565b600a556001600160a01b03811615610f6e57610f4281610381565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6008544210610f9257610f8a8262093a8063ffffffff610bf716565b600955610fe0565b600854600090610fa8904263ffffffff610b5516565b90506000610fc160095483610b9e90919063ffffffff16565b9050610fda62093a806103e9868463ffffffff610c3916565b60095550505b42600a819055610ff99062093a8063ffffffff610c3916565b6008556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b600081848411156110c25760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561108757818101518382015260200161106f565b50505050905090810190601f1680156110b45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836111195760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561108757818101518382015260200161106f565b50600083858161112557fe5b0495945050505050565b611141826001600160a01b03166112ed565b611192576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106111d05780518252601f1990920191602091820191016111b1565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611232576040519150601f19603f3d011682016040523d82523d6000602084013e611237565b606091505b50915091508161128e576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156112e7578080602001905160208110156112aa57600080fd5b50516112e75760405162461bcd60e51b815260040180806020018281038252602a8152602001806113cb602a913960400191505060405180910390fd5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906113215750808214155b949350505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526112e790859061112f56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820fb59a938582e4377596b22433ef65d458a6ef740c850e63d253a9c10c3f67a6664736f6c63430005100032

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018d5760003560e01c80638da5cb5b116100de578063c8f33c9111610097578063e9fad8ee11610071578063e9fad8ee14610328578063ebe2b12b14610330578063f2fde38b14610338578063f8c2b7731461035e5761018d565b8063c8f33c9114610310578063cd3daf9d14610318578063df136d65146103205761018d565b80638da5cb5b1461029b5780638f32d59b146102bf57806399248ea7146102db5780639c907b58146102e3578063a694fc3a146102eb578063bfd9041b146103085761018d565b80636378eba31161014b5780637b0a47ee116101255780637b0a47ee1461025d57806380faa57d146102655780638b8763471461026d5780638da58897146102935761018d565b80636378eba31461022757806370a082311461022f578063715018a6146102555761018d565b80628cc262146101925780630700037d146101ca57806318160ddd146101f05780631be05289146101f85780632e1a7d4d146102005780633d18b9121461021f575b600080fd5b6101b8600480360360208110156101a857600080fd5b50356001600160a01b0316610381565b60408051918252519081900360200190f35b6101b8600480360360208110156101e057600080fd5b50356001600160a01b0316610407565b6101b8610419565b6101b8610420565b61021d6004803603602081101561021657600080fd5b5035610427565b005b61021d61050e565b6101b861066d565b6101b86004803603602081101561024557600080fd5b50356001600160a01b0316610673565b61021d61068e565b6101b8610731565b6101b8610737565b6101b86004803603602081101561028357600080fd5b50356001600160a01b031661074a565b6101b861075c565b6102a3610762565b604080516001600160a01b039092168252519081900360200190f35b6102c7610771565b604080519115158252519081900360200190f35b6102a3610797565b6101b86107a6565b61021d6004803603602081101561030157600080fd5b50356107ac565b6102a3610960565b6101b861096f565b6101b8610975565b6101b86109c9565b61021d6109cf565b6101b86109ea565b61021d6004803603602081101561034e57600080fd5b50356001600160a01b03166109f0565b61021d6004803603604081101561037457600080fd5b5080359060200135610a55565b6001600160a01b0381166000908152600d6020908152604080832054600c90925282205461040191906103f590670de0b6b3a7640000906103e9906103d4906103c8610975565b9063ffffffff610b5516565b6103dd88610673565b9063ffffffff610b9e16565b9063ffffffff610bf716565b9063ffffffff610c3916565b92915050565b600d6020526000908152604090205481565b6001545b90565b62093a8081565b33610430610975565b600b5561043b610737565b600a556001600160a01b038116156104825761045681610381565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b600082116104cb576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b6104d482610c93565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b33610517610975565b600b55610522610737565b600a556001600160a01b038116156105695761053d81610381565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b60085442106105f65761058f6103e86103e9600754600554610b9e90919063ffffffff16565b60058190556105a79062093a8063ffffffff610bf716565b6009556105bd4262093a8063ffffffff610c3916565b60085560055460408051918252517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15b600061060133610381565b9050801561066957336000818152600d6020526040812055600454610632916001600160a01b039091169083610cf0565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b5050565b60075481565b6001600160a01b031660009081526002602052604090205490565b610696610771565b6106e7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b60095481565b600061074542600854610d47565b905090565b600c6020526000908152604090205481565b60065481565b6003546001600160a01b031690565b6003546000906001600160a01b0316610788610d5d565b6001600160a01b031614905090565b6004546001600160a01b031681565b60055481565b336107b5610975565b600b556107c0610737565b600a556001600160a01b03811615610807576107db81610381565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b60085442106108945761082d6103e86103e9600754600554610b9e90919063ffffffff16565b60058190556108459062093a8063ffffffff610bf716565b60095561085b4262093a8063ffffffff610c3916565b60085560055460408051918252517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15b6006544210156108d7576040805162461bcd60e51b81526020600482015260096024820152681b9bdd081cdd185c9d60ba1b604482015290519081900360640190fd5b6000821161091d576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b61092682610d61565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b6000546001600160a01b031681565b600a5481565b600061097f610419565b61098c5750600b5461041d565b6107456109ba61099a610419565b6103e9670de0b6b3a76400006103dd6009546103dd600a546103c8610737565b600b549063ffffffff610c3916565b600b5481565b6109e06109db33610673565b610427565b6109e861050e565b565b60085481565b6109f8610771565b610a49576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b610a5281610e71565b50565b610a5d610771565b610aae576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b42600655600781905560048054604080516318160ddd60e01b81529051610b3f936103e8936103e99388936001600160a01b03909216926318160ddd928282019260209290829003018186803b158015610b0757600080fd5b505afa158015610b1b573d6000803e3d6000fd5b505050506040513d6020811015610b3157600080fd5b50519063ffffffff610b9e16565b6005819055610b4d90610f12565b61066961068e565b6000610b9783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611033565b9392505050565b600082610bad57506000610401565b82820282848281610bba57fe5b0414610b975760405162461bcd60e51b81526004018080602001828103825260218152602001806113aa6021913960400191505060405180910390fd5b6000610b9783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506110ca565b600082820183811015610b97576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600154610ca6908263ffffffff610b5516565b60015533600090815260026020526040902054610cc9908263ffffffff610b5516565b336000818152600260205260408120929092559054610a52916001600160a01b0390911690835b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d4290849061112f565b505050565b6000818310610d565781610b97565b5090919050565b3390565b33610d6b816112ed565b15610db0576040805162461bcd60e51b815260206004820152601060248201526f1c1b1e8819985c9b48189e481a185b9960821b604482015290519081900360640190fd5b326001600160a01b03821614610e00576040805162461bcd60e51b815260206004820152601060248201526f1c1b1e8819985c9b48189e481a185b9960821b604482015290519081900360640190fd5b600154610e13908363ffffffff610c3916565b6001556001600160a01b038116600090815260026020526040902054610e3f908363ffffffff610c3916565b6001600160a01b038083166000908152600260205260408120929092559054610669911682308563ffffffff61132916565b6001600160a01b038116610eb65760405162461bcd60e51b81526004018080602001828103825260268152602001806113846026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000610f1c610975565b600b55610f27610737565b600a556001600160a01b03811615610f6e57610f4281610381565b6001600160a01b0382166000908152600d6020908152604080832093909355600b54600c909152919020555b6008544210610f9257610f8a8262093a8063ffffffff610bf716565b600955610fe0565b600854600090610fa8904263ffffffff610b5516565b90506000610fc160095483610b9e90919063ffffffff16565b9050610fda62093a806103e9868463ffffffff610c3916565b60095550505b42600a819055610ff99062093a8063ffffffff610c3916565b6008556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b600081848411156110c25760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561108757818101518382015260200161106f565b50505050905090810190601f1680156110b45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836111195760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561108757818101518382015260200161106f565b50600083858161112557fe5b0495945050505050565b611141826001600160a01b03166112ed565b611192576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106111d05780518252601f1990920191602091820191016111b1565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611232576040519150601f19603f3d011682016040523d82523d6000602084013e611237565b606091505b50915091508161128e576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156112e7578080602001905160208110156112aa57600080fd5b50516112e75760405162461bcd60e51b815260040180806020018281038252602a8152602001806113cb602a913960400191505060405180910390fd5b50505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906113215750808214155b949350505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526112e790859061112f56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820fb59a938582e4377596b22433ef65d458a6ef740c850e63d253a9c10c3f67a6664736f6c63430005100032

Deployed Bytecode Sourcemap

18919:4311:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18919:4311:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21016:265;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21016:265:0;-1:-1:-1;;;;;21016:265:0;;:::i;:::-;;;;;;;;;;;;;;;;19496:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19496:42:0;-1:-1:-1;;;;;19496:42:0;;:::i;18079:91::-;;;:::i;19084:41::-;;;:::i;21594:203::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21594:203:0;;:::i;:::-;;21910:320;;;:::i;19233:34::-;;;:::i;18178:110::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18178:110:0;-1:-1:-1;;;;;18178:110:0;;:::i;7053:140::-;;;:::i;19312:29::-;;;:::i;20449:131::-;;;:::i;19432:57::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19432:57:0;-1:-1:-1;;;;;19432:57:0;;:::i;19181:45::-;;;:::i;6242:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;6242:79:0;;;;;;;;;;;;;;6608:94;;;:::i;:::-;;;;;;;;;;;;;;;;;;18973:79;;;:::i;19145:29::-;;;:::i;21372:214::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21372:214:0;;:::i;17879:75::-;;;:::i;19354:29::-;;;:::i;20588:420::-;;;:::i;19390:35::-;;;:::i;21805:97::-;;;:::i;19274:31::-;;;:::i;7348:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7348:109:0;-1:-1:-1;;;;;7348:109:0;;:::i;19767:336::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19767:336:0;;;;;;;:::i;21016:265::-;-1:-1:-1;;;;;21256:16:0;;21070:7;21256:16;;;:7;:16;;;;;;;;;21172:22;:31;;;;;;21110:163;;21256:16;21110:123;;21228:4;;21110:95;;21151:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;21110:18;21120:7;21110:9;:18::i;:::-;:40;:95;:40;:95;:::i;:::-;:117;:123;:117;:123;:::i;:::-;:145;:163;:145;:163;:::i;:::-;21090:183;21016:265;-1:-1:-1;;21016:265:0:o;19496:42::-;;;;;;;;;;;;;:::o;18079:91::-;18150:12;;18079:91;;:::o;19084:41::-;19119:6;19084:41;:::o;21594:203::-;21648:10;20184:16;:14;:16::i;:::-;20161:20;:39;20228:26;:24;:26::i;:::-;20211:14;:43;-1:-1:-1;;;;;20269:21:0;;;20265:157;;20326:15;20333:7;20326:6;:15::i;:::-;-1:-1:-1;;;;;20307:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20390:20;;20356:22;:31;;;;;;:54;20265:157;21688:1;21679:6;:10;21671:40;;;;;-1:-1:-1;;;21671:40:0;;;;;;;;;;;;-1:-1:-1;;;21671:40:0;;;;;;;;;;;;;;;21722:22;21737:6;21722:14;:22::i;:::-;21760:29;;;;;;;;21770:10;;21760:29;;;;;;;;;;21594:203;;:::o;21910:320::-;21951:10;20184:16;:14;:16::i;:::-;20161:20;:39;20228:26;:24;:26::i;:::-;20211:14;:43;-1:-1:-1;;;;;20269:21:0;;;20265:157;;20326:15;20333:7;20326:6;:15::i;:::-;-1:-1:-1;;;;;20307:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20390:20;;20356:22;:31;;;;;;:54;20265:157;22293:12;;22274:15;:31;22270:274;;22335:41;22371:4;22335:31;22350:15;;22335:10;;:14;;:31;;;;:::i;:41::-;22322:10;:54;;;22406:24;;19119:6;22406:24;:14;:24;:::i;:::-;22393:10;:37;22460:29;:15;19119:6;22460:29;:19;:29;:::i;:::-;22445:12;:44;22521:10;;22509:23;;;;;;;;;;;;;;;;22270:274;21985:14;22002:18;22009:10;22002:6;:18::i;:::-;21985:35;-1:-1:-1;22035:10:0;;22031:192;;22070:10;22084:1;22062:19;;;:7;:19;;;;;:23;22102:12;;:45;;-1:-1:-1;;;;;22102:12:0;;;;22140:6;22102:25;:45::i;:::-;22181:30;;;;;;;;22192:10;;22181:30;;;;;;;;;;22031:192;22554:1;21910:320;:::o;19233:34::-;;;;:::o;18178:110::-;-1:-1:-1;;;;;18262:18:0;18235:7;18262:18;;;:9;:18;;;;;;;18178:110::o;7053:140::-;6454:9;:7;:9::i;:::-;6446:54;;;;;-1:-1:-1;;;6446:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7136:6;;7115:40;;7152:1;;-1:-1:-1;;;;;7136:6:0;;7115:40;;7152:1;;7115:40;7166:6;:19;;-1:-1:-1;;;;;;7166:19:0;;;7053:140::o;19312:29::-;;;;:::o;20449:131::-;20506:7;20533:39;20542:15;20559:12;;20533:8;:39::i;:::-;20526:46;;20449:131;:::o;19432:57::-;;;;;;;;;;;;;:::o;19181:45::-;;;;:::o;6242:79::-;6307:6;;-1:-1:-1;;;;;6307:6:0;6242:79;:::o;6608:94::-;6688:6;;6648:4;;-1:-1:-1;;;;;6688:6:0;6672:12;:10;:12::i;:::-;-1:-1:-1;;;;;6672:22:0;;6665:29;;6608:94;:::o;18973:79::-;;;-1:-1:-1;;;;;18973:79:0;;:::o;19145:29::-;;;;:::o;21372:214::-;21423:10;20184:16;:14;:16::i;:::-;20161:20;:39;20228:26;:24;:26::i;:::-;20211:14;:43;-1:-1:-1;;;;;20269:21:0;;;20265:157;;20326:15;20333:7;20326:6;:15::i;:::-;-1:-1:-1;;;;;20307:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20390:20;;20356:22;:31;;;;;;:54;20265:157;22293:12;;22274:15;:31;22270:274;;22335:41;22371:4;22335:31;22350:15;;22335:10;;:14;;:31;;;;:::i;:41::-;22322:10;:54;;;22406:24;;19119:6;22406:24;:14;:24;:::i;:::-;22393:10;:37;22460:29;:15;19119:6;22460:29;:19;:29;:::i;:::-;22445:12;:44;22521:10;;22509:23;;;;;;;;;;;;;;;;22270:274;22628:9;;22609:15;:28;;22601:50;;;;;-1:-1:-1;;;22601:50:0;;;;;;;;;;;;-1:-1:-1;;;22601:50:0;;;;;;;;;;;;;;;21486:1;21477:6;:10;21469:37;;;;;-1:-1:-1;;;21469:37:0;;;;;;;;;;;;-1:-1:-1;;;21469:37:0;;;;;;;;;;;;;;;21517:19;21529:6;21517:11;:19::i;:::-;21552:26;;;;;;;;21559:10;;21552:26;;;;;;;;;;21372:214;;:::o;17879:75::-;;;-1:-1:-1;;;;;17879:75:0;;:::o;19354:29::-;;;;:::o;20588:420::-;20635:7;20659:13;:11;:13::i;:::-;20655:78;;-1:-1:-1;20701:20:0;;20694:27;;20655:78;20763:237;20806:179;20971:13;:11;:13::i;:::-;20806:138;20939:4;20806:106;20901:10;;20806:68;20859:14;;20806:26;:24;:26::i;:179::-;20763:20;;;:237;:24;:237;:::i;19390:35::-;;;;:::o;21805:97::-;21841:31;21850:21;21860:10;21850:9;:21::i;:::-;21841:8;:31::i;:::-;21883:11;:9;:11::i;:::-;21805:97::o;19274:31::-;;;;:::o;7348:109::-;6454:9;:7;:9::i;:::-;6446:54;;;;;-1:-1:-1;;;6446:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7421:28;7440:8;7421:18;:28::i;:::-;7348:109;:::o;19767:336::-;6454:9;:7;:9::i;:::-;6446:54;;;;;-1:-1:-1;;;6446:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19875:15;19863:9;:27;19903:15;:34;;;19961:12;;;:26;;;-1:-1:-1;;;19961:26:0;;;;:53;;20009:4;;19961:43;;19992:11;;-1:-1:-1;;;;;19961:12:0;;;;:24;;:26;;;;;;;;;;;;:12;:26;;;5:2:-1;;;;30:1;27;20:12;5:2;19961:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19961:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19961:26:0;;:43;:30;:43;:::i;:53::-;19948:10;:66;;;20035:30;;:18;:30::i;:::-;20076:19;:17;:19::i;2506:136::-;2564:7;2591:43;2595:1;2598;2591:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;2584:50;2506:136;-1:-1:-1;;;2506:136:0:o;2850:471::-;2908:7;3153:6;3149:47;;-1:-1:-1;3183:1:0;3176:8;;3149:47;3220:5;;;3224:1;3220;:5;:1;3244:5;;;;;:10;3236:56;;;;-1:-1:-1;;;3236:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3329:132;3387:7;3414:39;3418:1;3421;3414:39;;;;;;;;;;;;;;;;;:3;:39::i;2317:181::-;2375:7;2407:5;;;2431:6;;;;2423:46;;;;;-1:-1:-1;;;2423:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;18693:219;18760:12;;:24;;18777:6;18760:24;:16;:24;:::i;:::-;18745:12;:39;18829:10;18819:21;;;;:9;:21;;;;;;:33;;18845:6;18819:33;:25;:33;:::i;:::-;18805:10;18795:21;;;;:9;:21;;;;;:57;;;;18863:8;;:41;;-1:-1:-1;;;;;18863:8:0;;;;18897:6;14522:176;14631:58;;;-1:-1:-1;;;;;14631:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;14631:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;14605:85:0;;14624:5;;14605:18;:85::i;:::-;14522:176;;;:::o;2099:106::-;2157:7;2188:1;2184;:5;:13;;2196:1;2184:13;;;-1:-1:-1;2192:1:0;;2099:106;-1:-1:-1;2099:106:0:o;4991:98::-;5071:10;4991:98;:::o;18296:389::-;18362:10;18392:28;18362:10;18392:26;:28::i;:::-;18391:29;18383:58;;;;;-1:-1:-1;;;18383:58:0;;;;;;;;;;;;-1:-1:-1;;;18383:58:0;;;;;;;;;;;;;;;18460:9;-1:-1:-1;;;;;18460:19:0;;;18452:48;;;;;-1:-1:-1;;;18452:48:0;;;;;;;;;;;;-1:-1:-1;;;18452:48:0;;;;;;;;;;;;;;;18526:12;;:24;;18543:6;18526:24;:16;:24;:::i;:::-;18511:12;:39;-1:-1:-1;;;;;18581:17:0;;;;;;:9;:17;;;;;;:29;;18603:6;18581:29;:21;:29;:::i;:::-;-1:-1:-1;;;;;18561:17:0;;;;;;;:9;:17;;;;;:49;;;;18621:8;;:56;;:8;18571:6;18663:4;18670:6;18621:56;:25;:56;:::i;7563:229::-;-1:-1:-1;;;;;7637:22:0;;7629:73;;;;-1:-1:-1;;;7629:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7739:6;;7718:38;;-1:-1:-1;;;;;7718:38:0;;;;7739:6;;7718:38;;7739:6;;7718:38;7767:6;:17;;-1:-1:-1;;;;;;7767:17:0;-1:-1:-1;;;;;7767:17:0;;;;;;;;;;7563:229::o;22679:548::-;22761:1;20184:16;:14;:16::i;:::-;20161:20;:39;20228:26;:24;:26::i;:::-;20211:14;:43;-1:-1:-1;;;;;20269:21:0;;;20265:157;;20326:15;20333:7;20326:6;:15::i;:::-;-1:-1:-1;;;;;20307:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20390:20;;20356:22;:31;;;;;;:54;20265:157;22804:12;;22785:15;:31;22781:304;;22846:20;:6;19119;22846:20;:10;:20;:::i;:::-;22833:10;:33;22781:304;;;22919:12;;22899:17;;22919:33;;22936:15;22919:33;:16;:33;:::i;:::-;22899:53;;22967:16;22986:25;23000:10;;22986:9;:13;;:25;;;;:::i;:::-;22967:44;-1:-1:-1;23039:34:0;19119:6;23039:20;:6;22967:44;23039:20;:10;:20;:::i;:34::-;23026:10;:47;-1:-1:-1;;22781:304:0;23114:15;23097:14;:32;;;23155:29;;19119:6;23155:29;:19;:29;:::i;:::-;23140:12;:44;23200:19;;;;;;;;;;;;;;;;;22679:548;;:::o;2650:192::-;2736:7;2772:12;2764:6;;;;2756:29;;;;-1:-1:-1;;;2756:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2756:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2808:5:0;;;2650:192::o;3469:345::-;3555:7;3657:12;3650:5;3642:28;;;;-1:-1:-1;;;3642:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;3642:28:0;;3681:9;3697:1;3693;:5;;;;;;;3469:345;-1:-1:-1;;;;;3469:345:0:o;16561:1114::-;17165:27;17173:5;-1:-1:-1;;;;;17165:25:0;;:27::i;:::-;17157:71;;;;;-1:-1:-1;;;17157:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;17302:12;17316:23;17351:5;-1:-1:-1;;;;;17343:19:0;17363:4;17343:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;17343:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;17301:67:0;;;;17387:7;17379:52;;;;;-1:-1:-1;;;17379:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17448:17;;:21;17444:224;;17590:10;17579:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17579:30:0;17571:85;;;;-1:-1:-1;;;17571:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16561:1114;;;;:::o;11366:810::-;11426:4;12085:20;;11928:66;12125:15;;;;;:42;;;12156:11;12144:8;:23;;12125:42;12117:51;11366:810;-1:-1:-1;;;;11366:810:0:o;14706:204::-;14833:68;;;-1:-1:-1;;;;;14833:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;14833:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;14807:95:0;;14826:5;;14807:18;:95::i

Swarm Source

bzzr://fb59a938582e4377596b22433ef65d458a6ef740c850e63d253a9c10c3f67a66

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.