ETH Price: $3,388.30 (-1.30%)

Contract

0x39F2f950d52F4d2A71Ca473e3f66D56DFC329581
 
Transaction Hash
Method
Block
From
To
Get Reward204532132024-08-04 5:51:47114 days ago1722750707IN
0x39F2f950...DFC329581
0 ETH0.000063451
Get Reward198370102024-05-10 3:39:59201 days ago1715312399IN
0x39F2f950...DFC329581
0 ETH0.000286813
Get Reward175716022023-06-27 15:33:59518 days ago1687880039IN
0x39F2f950...DFC329581
0 ETH0.0019501426.90405396
Get Reward160342272022-11-23 17:36:23734 days ago1669224983IN
0x39F2f950...DFC329581
0 ETH0.0021268422.25524657
Get Reward159377542022-11-10 6:12:59747 days ago1668060779IN
0x39F2f950...DFC329581
0 ETH0.0014894118.92686376
Get Reward155248892022-09-13 4:18:32806 days ago1663042712IN
0x39F2f950...DFC329581
0 ETH0.00052465.48948663
Get Reward155248762022-09-13 4:16:09806 days ago1663042569IN
0x39F2f950...DFC329581
0 ETH0.000424755.39756116
Get Reward155248702022-09-13 4:13:59806 days ago1663042439IN
0x39F2f950...DFC329581
0 ETH0.000427385.43102081
Get Reward155248612022-09-13 4:12:58806 days ago1663042378IN
0x39F2f950...DFC329581
0 ETH0.000470345.97695764
Get Reward155248532022-09-13 4:11:11806 days ago1663042271IN
0x39F2f950...DFC329581
0 ETH0.000535586.80597974
Get Reward155248472022-09-13 4:09:44806 days ago1663042184IN
0x39F2f950...DFC329581
0 ETH0.00062497.94110011
Get Reward155248032022-09-13 3:59:13806 days ago1663041553IN
0x39F2f950...DFC329581
0 ETH0.000670368.51879142
Get Reward155247912022-09-13 3:56:41806 days ago1663041401IN
0x39F2f950...DFC329581
0 ETH0.000725929.22474604
In Pool152761292022-08-04 13:22:06845 days ago1659619326IN
0x39F2f950...DFC329581
0.005 ETH0.000822588.9368681
Get Reward148645262022-05-29 4:46:31913 days ago1653799591IN
0x39F2f950...DFC329581
0 ETH0.0010953611.46182398
Get Reward147808702022-05-15 15:59:44926 days ago1652630384IN
0x39F2f950...DFC329581
0 ETH0.0017899622.74618512
Get Reward147808682022-05-15 15:59:34926 days ago1652630374IN
0x39F2f950...DFC329581
0 ETH0.0017843722.67512593
Get Reward143635132022-03-11 4:45:07992 days ago1646973907IN
0x39F2f950...DFC329581
0 ETH0.0017013821.62057714
Get Reward143273082022-03-05 14:08:10997 days ago1646489290IN
0x39F2f950...DFC329581
0 ETH0.0021297427.06396486
Get Reward143272582022-03-05 13:56:19997 days ago1646488579IN
0x39F2f950...DFC329581
0 ETH0.0025981933.01682319
Get Reward142748632022-02-25 11:07:021005 days ago1645787222IN
0x39F2f950...DFC329581
0 ETH0.0030630138.92360297
Get Reward141940822022-02-12 22:48:351018 days ago1644706115IN
0x39F2f950...DFC329581
0 ETH0.0044439956.47253208
Get Reward138580102021-12-22 23:42:091070 days ago1640216529IN
0x39F2f950...DFC329581
0 ETH0.0059351975.42209298
Get Reward138008682021-12-14 3:16:201079 days ago1639451780IN
0x39F2f950...DFC329581
0 ETH0.0059691875.85410743
Get Reward136512752021-11-20 10:06:321102 days ago1637402792IN
0x39F2f950...DFC329581
0 ETH0.0070244489.26395344
View all transactions

Latest 21 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
115404022020-12-28 5:12:041430 days ago1609132324
0x39F2f950...DFC329581
70.3 ETH
113940072020-12-05 17:34:031452 days ago1607189643
0x39F2f950...DFC329581
21.49 ETH
113776032020-12-03 5:00:491455 days ago1606971649
0x39F2f950...DFC329581
130.440814 ETH
113219422020-11-24 15:55:091463 days ago1606233309
0x39F2f950...DFC329581
237.699057 ETH
112699122020-11-16 16:16:051471 days ago1605543365
0x39F2f950...DFC329581
1,315.03367 ETH
111960622020-11-05 8:22:131482 days ago1604564533
0x39F2f950...DFC329581
402.429 ETH
111659052020-10-31 16:56:301487 days ago1604163390
0x39F2f950...DFC329581
733.73672344 ETH
111374882020-10-27 8:27:181491 days ago1603787238
0x39F2f950...DFC329581
455.13261 ETH
111169752020-10-24 4:46:311495 days ago1603514791
0x39F2f950...DFC329581
311.198 ETH
110940172020-10-20 16:11:281498 days ago1603210288
0x39F2f950...DFC329581
449.614 ETH
110676342020-10-16 15:00:571502 days ago1602860457
0x39F2f950...DFC329581
922.2129666 ETH
110355152020-10-11 17:11:581507 days ago1602436318
0x39F2f950...DFC329581
151.45359 ETH
110288292020-10-10 16:41:351508 days ago1602348095
0x39F2f950...DFC329581
618.08550247 ETH
110154862020-10-08 14:35:381510 days ago1602167738
0x39F2f950...DFC329581
423.39 ETH
110096782020-10-07 16:32:171511 days ago1602088337
0x39F2f950...DFC329581
582.0157 ETH
110033092020-10-06 16:43:281512 days ago1602002608
0x39F2f950...DFC329581
242.08 ETH
110008762020-10-06 7:32:011512 days ago1601969521
0x39F2f950...DFC329581
955.44071818 ETH
109946662020-10-05 8:32:011513 days ago1601886721
0x39F2f950...DFC329581
1,664.48068 ETH
109902472020-10-04 15:43:591514 days ago1601826239
0x39F2f950...DFC329581
942.42072 ETH
109883632020-10-04 8:42:441514 days ago1601800964
0x39F2f950...DFC329581
582.538773 ETH
109823942020-10-03 10:15:281515 days ago1601720128
0x39F2f950...DFC329581
146.91313 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PccRewards

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

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

pragma solidity ^0.5.16;

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

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

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, "SafeMath: division by zero");
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

/**
 * @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 `sender` through `transferFrom`. This is
     * zero by default.
     *
     * This value changes when `approve` or `transferFrom` are called.
     */
    function allowance(address sender, address spender) external view returns (uint256);

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

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

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

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

/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei.
     *
     * > Note that this information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * `IERC20.balanceOf` and `IERC20.transfer`.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }
}


/**
 * @dev Collection of functions related to the address type,
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * > It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier
 * available, which can be aplied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 */
contract ReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor () internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _guardCounter = 1;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

// Inheritancea
interface IPccRewards {
    // Views
    function lastTimeRewardApplicable() external view returns (uint256);

    function rewardPerToken() external view returns (uint256);

    function earned(address account) external view returns (uint256);

    function getRewardForDuration() external view returns (uint256);

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function inPool() external payable;

    function getReward() external;
}

contract RewardsDistributionRecipient {
    address public rewardsDistribution;

    function notifyRewardAmount(uint256 reward) external;

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

contract PccRewards is IPccRewards, RewardsDistributionRecipient, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

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

    IERC20 public rewardsToken;
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public rewardsDuration = 1095 days;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

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

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

    GameInterface private Game;

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

    constructor() public {
        Game = GameInterface(0xf8A4d3a0B5859a24cd1320BA014ab17F623612e2);
        rewardsToken = IERC20(0xed6b0dC3AA8dE5908aB857a70Cb2Ff657d9b6C5d);
        rewardsDistribution = 0x85F2408be694f59B9FCb441E401f1Ee63b2547b0;
    }

    function()
        external
        payable{}

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

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

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

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


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

    function remainRewardToken() public view returns(uint256) {
        if(block.timestamp < periodFinish){
           return rewardRate.mul(periodFinish.sub(block.timestamp));
        }
        return 0;
    }

    function weekRate() public view returns(uint256) {
        return(rewardRate.mul(1 weeks));
    }

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

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

    function info(address account) public view returns(uint256,uint256,uint256) {
        if(_totalSupply > 0)
            return(_balances[account], earned(account), weekRate().mul(_balances[account]).div(_totalSupply));
        return(0,0,0);
    }

    function inPool() external payable updateReward(msg.sender) {
        uint256 amount = msg.value;
        require(amount > 0, "Cannot in 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);

        emit InPool(msg.sender, amount);
    }

    function getReward() public nonReentrant updateReward(msg.sender) {
        uint256 reward = rewards[msg.sender];
        if (reward > 0) {
            rewards[msg.sender] = 0;
            rewardsToken.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    function transferAll2Game() external onlyRewardsDistribution updateReward(msg.sender) {
        Game.deposit.gas(200000).value(address(this).balance)();
    }

    function transfer2Game(uint256 valin) external onlyRewardsDistribution updateReward(msg.sender) {
        require(valin <= address(this).balance, "val error");
        Game.deposit.gas(200000).value(valin)();
    }

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

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

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint balance = rewardsToken.balanceOf(address(this));
        require(rewardRate <= balance.div(rewardsDuration), "Provided reward too high");

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

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

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

    /* ========== EVENTS ========== */

    event RewardAdded(uint256 reward);
    event InPool(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
}

interface GameInterface {
    function deposit() external payable;
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InPool","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"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"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":"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":false,"inputs":[],"name":"inPool","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"info","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"remainRewardToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"valin","type":"uint256"}],"name":"transfer2Game","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"transferAll2Game","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":true,"inputs":[],"name":"weekRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]

6080604052600060035560006004556305a39a8060055534801561002257600080fd5b5060018055600c80546001600160a01b031990811673f8a4d3a0b5859a24cd1320ba014ab17f623612e21790915560028054821673ed6b0dc3aa8de5908ab857a70cb2ff657d9b6c5d179055600080549091167385f2408be694f59b9fcb441e401f1ee63b2547b01790556112018061009c6000396000f3fe60806040526004361061013f5760003560e01c80637b0a47ee116100b6578063cd3daf9d1161006f578063cd3daf9d146103a5578063d1af0c7d146103ba578063d563b6c5146103cf578063df136d65146103e4578063e04206b2146103f9578063ebe2b12b1461040e5761013f565b80637b0a47ee1461030157806380faa57d146103165780638b8763471461032b5780639afa71cc1461035e578063adaa2d2514610388578063c8f33c91146103905761013f565b8063356a929411610108578063356a929414610234578063386a9525146102495780633c6b16ab1461025e5780633d18b912146102885780633fc6df6e1461029d57806370a08231146102ce5761013f565b80628cc262146101415780630700037d146101865780630aae7a6b146101b957806318160ddd1461020a5780631c1f78eb1461021f575b005b34801561014d57600080fd5b506101746004803603602081101561016457600080fd5b50356001600160a01b0316610423565b60408051918252519081900360200190f35b34801561019257600080fd5b50610174600480360360208110156101a957600080fd5b50356001600160a01b03166104b9565b3480156101c557600080fd5b506101ec600480360360208110156101dc57600080fd5b50356001600160a01b03166104cb565b60408051938452602084019290925282820152519081900360600190f35b34801561021657600080fd5b50610174610551565b34801561022b57600080fd5b50610174610558565b34801561024057600080fd5b5061013f610576565b34801561025557600080fd5b5061017461068b565b34801561026a57600080fd5b5061013f6004803603602081101561028157600080fd5b5035610691565b34801561029457600080fd5b5061013f6108e2565b3480156102a957600080fd5b506102b2610a18565b604080516001600160a01b039092168252519081900360200190f35b3480156102da57600080fd5b50610174600480360360208110156102f157600080fd5b50356001600160a01b0316610a27565b34801561030d57600080fd5b50610174610a42565b34801561032257600080fd5b50610174610a48565b34801561033757600080fd5b506101746004803603602081101561034e57600080fd5b50356001600160a01b0316610a56565b34801561036a57600080fd5b5061013f6004803603602081101561038157600080fd5b5035610a68565b61013f610bbf565b34801561039c57600080fd5b50610174610cde565b3480156103b157600080fd5b50610174610ce4565b3480156103c657600080fd5b506102b2610d32565b3480156103db57600080fd5b50610174610d41565b3480156103f057600080fd5b50610174610d80565b34801561040557600080fd5b50610174610d86565b34801561041a57600080fd5b50610174610d9f565b6001600160a01b03811660009081526009602090815260408083205460089092528220546104b391906104a790670de0b6b3a76400009061049b906104769061046a610ce4565b9063ffffffff610da516565b6001600160a01b0388166000908152600b60205260409020549063ffffffff610e0216565b9063ffffffff610e6216565b9063ffffffff610ecc16565b92915050565b60096020526000908152604090205481565b600080600080600a541115610540576001600160a01b0384166000908152600b60205260409020546104fc85610423565b600a546001600160a01b0387166000908152600b6020526040902054610535919061049b90610529610d86565b9063ffffffff610e0216565b92509250925061054a565b5060009150819050805b9193909250565b600a545b90565b6000610571600554600454610e0290919063ffffffff16565b905090565b6000546001600160a01b031633146105bf5760405162461bcd60e51b815260040180806020018281038252602a815260200180611179602a913960400191505060405180910390fd5b336105c8610ce4565b6007556105d3610a48565b6006556001600160a01b0381161561061a576105ee81610423565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b600c60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db062030d40476040518363ffffffff1660e01b81526004016000604051808303818589803b15801561066e57600080fd5b5088f1158015610682573d6000803e3d6000fd5b50505050505050565b60055481565b6000546001600160a01b031633146106da5760405162461bcd60e51b815260040180806020018281038252602a815260200180611179602a913960400191505060405180910390fd5b60006106e4610ce4565b6007556106ef610a48565b6006556001600160a01b038116156107365761070a81610423565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b600354421061075b5760055461075390839063ffffffff610e6216565b6004556107aa565b600354600090610771904263ffffffff610da516565b9050600061078a60045483610e0290919063ffffffff16565b6005549091506107a49061049b868463ffffffff610ecc16565b60045550505b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107f557600080fd5b505afa158015610809573d6000803e3d6000fd5b505050506040513d602081101561081f57600080fd5b505160055490915061083890829063ffffffff610e6216565b600454111561088e576040805162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b4260068190556005546108a7919063ffffffff610ecc16565b6003556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b60018054810190819055336108f5610ce4565b600755610900610a48565b6006556001600160a01b038116156109475761091b81610423565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b3360009081526009602052604090205480156109bd5733600081815260096020526040812055600254610986916001600160a01b039091169083610f26565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001548114610a15576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b50565b6000546001600160a01b031681565b6001600160a01b03166000908152600b602052604090205490565b60045481565b600061057142600354610f7d565b60086020526000908152604090205481565b6000546001600160a01b03163314610ab15760405162461bcd60e51b815260040180806020018281038252602a815260200180611179602a913960400191505060405180910390fd5b33610aba610ce4565b600755610ac5610a48565b6006556001600160a01b03811615610b0c57610ae081610423565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b47821115610b4d576040805162461bcd60e51b81526020600482015260096024820152683b30b61032b93937b960b91b604482015290519081900360640190fd5b600c60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db062030d40846040518363ffffffff1660e01b81526004016000604051808303818589803b158015610ba157600080fd5b5088f1158015610bb5573d6000803e3d6000fd5b5050505050505050565b33610bc8610ce4565b600755610bd3610a48565b6006556001600160a01b03811615610c1a57610bee81610423565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b3480610c5b576040805162461bcd60e51b815260206004820152600b60248201526a043616e6e6f7420696e20360ac1b604482015290519081900360640190fd5b600a54610c6e908263ffffffff610ecc16565b600a55336000908152600b6020526040902054610c91908263ffffffff610ecc16565b336000818152600b6020908152604091829020939093558051848152905191927f7af199fb8a1094d9cc3eab5f98b5316b79c16329de054235ae198146b51e62b092918290030190a25050565b60065481565b6000600a5460001415610cfa5750600754610555565b610571610d23600a5461049b670de0b6b3a764000061052960045461052960065461046a610a48565b6007549063ffffffff610ecc16565b6002546001600160a01b031681565b6000600354421015610d7a57600354610d7390610d64904263ffffffff610da516565b6004549063ffffffff610e0216565b9050610555565b50600090565b60075481565b6004546000906105719062093a8063ffffffff610e0216565b60035481565b600082821115610dfc576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082610e11575060006104b3565b82820282848281610e1e57fe5b0414610e5b5760405162461bcd60e51b81526004018080602001828103825260218152602001806111586021913960400191505060405180910390fd5b9392505050565b6000808211610eb8576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481610ec357fe5b04949350505050565b600082820183811015610e5b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f78908490610f93565b505050565b6000818310610f8c5781610e5b565b5090919050565b610fa5826001600160a01b0316611151565b610ff6576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106110345780518252601f199092019160209182019101611015565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611096576040519150601f19603f3d011682016040523d82523d6000602084013e61109b565b606091505b5091509150816110f2576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561114b5780806020019051602081101561110e57600080fd5b505161114b5760405162461bcd60e51b815260040180806020018281038252602a8152602001806111a3602a913960400191505060405180910390fd5b50505050565b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582014da7e1e1e92dc29c18bb879c40942e59c52854338003618e3526860e206a7f364736f6c63430005100032

Deployed Bytecode

0x60806040526004361061013f5760003560e01c80637b0a47ee116100b6578063cd3daf9d1161006f578063cd3daf9d146103a5578063d1af0c7d146103ba578063d563b6c5146103cf578063df136d65146103e4578063e04206b2146103f9578063ebe2b12b1461040e5761013f565b80637b0a47ee1461030157806380faa57d146103165780638b8763471461032b5780639afa71cc1461035e578063adaa2d2514610388578063c8f33c91146103905761013f565b8063356a929411610108578063356a929414610234578063386a9525146102495780633c6b16ab1461025e5780633d18b912146102885780633fc6df6e1461029d57806370a08231146102ce5761013f565b80628cc262146101415780630700037d146101865780630aae7a6b146101b957806318160ddd1461020a5780631c1f78eb1461021f575b005b34801561014d57600080fd5b506101746004803603602081101561016457600080fd5b50356001600160a01b0316610423565b60408051918252519081900360200190f35b34801561019257600080fd5b50610174600480360360208110156101a957600080fd5b50356001600160a01b03166104b9565b3480156101c557600080fd5b506101ec600480360360208110156101dc57600080fd5b50356001600160a01b03166104cb565b60408051938452602084019290925282820152519081900360600190f35b34801561021657600080fd5b50610174610551565b34801561022b57600080fd5b50610174610558565b34801561024057600080fd5b5061013f610576565b34801561025557600080fd5b5061017461068b565b34801561026a57600080fd5b5061013f6004803603602081101561028157600080fd5b5035610691565b34801561029457600080fd5b5061013f6108e2565b3480156102a957600080fd5b506102b2610a18565b604080516001600160a01b039092168252519081900360200190f35b3480156102da57600080fd5b50610174600480360360208110156102f157600080fd5b50356001600160a01b0316610a27565b34801561030d57600080fd5b50610174610a42565b34801561032257600080fd5b50610174610a48565b34801561033757600080fd5b506101746004803603602081101561034e57600080fd5b50356001600160a01b0316610a56565b34801561036a57600080fd5b5061013f6004803603602081101561038157600080fd5b5035610a68565b61013f610bbf565b34801561039c57600080fd5b50610174610cde565b3480156103b157600080fd5b50610174610ce4565b3480156103c657600080fd5b506102b2610d32565b3480156103db57600080fd5b50610174610d41565b3480156103f057600080fd5b50610174610d80565b34801561040557600080fd5b50610174610d86565b34801561041a57600080fd5b50610174610d9f565b6001600160a01b03811660009081526009602090815260408083205460089092528220546104b391906104a790670de0b6b3a76400009061049b906104769061046a610ce4565b9063ffffffff610da516565b6001600160a01b0388166000908152600b60205260409020549063ffffffff610e0216565b9063ffffffff610e6216565b9063ffffffff610ecc16565b92915050565b60096020526000908152604090205481565b600080600080600a541115610540576001600160a01b0384166000908152600b60205260409020546104fc85610423565b600a546001600160a01b0387166000908152600b6020526040902054610535919061049b90610529610d86565b9063ffffffff610e0216565b92509250925061054a565b5060009150819050805b9193909250565b600a545b90565b6000610571600554600454610e0290919063ffffffff16565b905090565b6000546001600160a01b031633146105bf5760405162461bcd60e51b815260040180806020018281038252602a815260200180611179602a913960400191505060405180910390fd5b336105c8610ce4565b6007556105d3610a48565b6006556001600160a01b0381161561061a576105ee81610423565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b600c60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db062030d40476040518363ffffffff1660e01b81526004016000604051808303818589803b15801561066e57600080fd5b5088f1158015610682573d6000803e3d6000fd5b50505050505050565b60055481565b6000546001600160a01b031633146106da5760405162461bcd60e51b815260040180806020018281038252602a815260200180611179602a913960400191505060405180910390fd5b60006106e4610ce4565b6007556106ef610a48565b6006556001600160a01b038116156107365761070a81610423565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b600354421061075b5760055461075390839063ffffffff610e6216565b6004556107aa565b600354600090610771904263ffffffff610da516565b9050600061078a60045483610e0290919063ffffffff16565b6005549091506107a49061049b868463ffffffff610ecc16565b60045550505b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107f557600080fd5b505afa158015610809573d6000803e3d6000fd5b505050506040513d602081101561081f57600080fd5b505160055490915061083890829063ffffffff610e6216565b600454111561088e576040805162461bcd60e51b815260206004820152601860248201527f50726f76696465642072657761726420746f6f20686967680000000000000000604482015290519081900360640190fd5b4260068190556005546108a7919063ffffffff610ecc16565b6003556040805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a1505050565b60018054810190819055336108f5610ce4565b600755610900610a48565b6006556001600160a01b038116156109475761091b81610423565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b3360009081526009602052604090205480156109bd5733600081815260096020526040812055600254610986916001600160a01b039091169083610f26565b60408051828152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b50506001548114610a15576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b50565b6000546001600160a01b031681565b6001600160a01b03166000908152600b602052604090205490565b60045481565b600061057142600354610f7d565b60086020526000908152604090205481565b6000546001600160a01b03163314610ab15760405162461bcd60e51b815260040180806020018281038252602a815260200180611179602a913960400191505060405180910390fd5b33610aba610ce4565b600755610ac5610a48565b6006556001600160a01b03811615610b0c57610ae081610423565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b47821115610b4d576040805162461bcd60e51b81526020600482015260096024820152683b30b61032b93937b960b91b604482015290519081900360640190fd5b600c60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db062030d40846040518363ffffffff1660e01b81526004016000604051808303818589803b158015610ba157600080fd5b5088f1158015610bb5573d6000803e3d6000fd5b5050505050505050565b33610bc8610ce4565b600755610bd3610a48565b6006556001600160a01b03811615610c1a57610bee81610423565b6001600160a01b0382166000908152600960209081526040808320939093556007546008909152919020555b3480610c5b576040805162461bcd60e51b815260206004820152600b60248201526a043616e6e6f7420696e20360ac1b604482015290519081900360640190fd5b600a54610c6e908263ffffffff610ecc16565b600a55336000908152600b6020526040902054610c91908263ffffffff610ecc16565b336000818152600b6020908152604091829020939093558051848152905191927f7af199fb8a1094d9cc3eab5f98b5316b79c16329de054235ae198146b51e62b092918290030190a25050565b60065481565b6000600a5460001415610cfa5750600754610555565b610571610d23600a5461049b670de0b6b3a764000061052960045461052960065461046a610a48565b6007549063ffffffff610ecc16565b6002546001600160a01b031681565b6000600354421015610d7a57600354610d7390610d64904263ffffffff610da516565b6004549063ffffffff610e0216565b9050610555565b50600090565b60075481565b6004546000906105719062093a8063ffffffff610e0216565b60035481565b600082821115610dfc576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082610e11575060006104b3565b82820282848281610e1e57fe5b0414610e5b5760405162461bcd60e51b81526004018080602001828103825260218152602001806111586021913960400191505060405180910390fd5b9392505050565b6000808211610eb8576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b6000828481610ec357fe5b04949350505050565b600082820183811015610e5b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f78908490610f93565b505050565b6000818310610f8c5781610e5b565b5090919050565b610fa5826001600160a01b0316611151565b610ff6576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106110345780518252601f199092019160209182019101611015565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611096576040519150601f19603f3d011682016040523d82523d6000602084013e61109b565b606091505b5091509150816110f2576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561114b5780806020019051602081101561110e57600080fd5b505161114b5760405162461bcd60e51b815260040180806020018281038252602a8152602001806111a3602a913960400191505060405180910390fd5b50505050565b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616c6c6572206973206e6f742052657761726473446973747269627574696f6e20636f6e74726163745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582014da7e1e1e92dc29c18bb879c40942e59c52854338003618e3526860e206a7f364736f6c63430005100032

Deployed Bytecode Sourcemap

15757:5463:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17872:198;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17872:198:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17872:198:0;-1:-1:-1;;;;;17872:198:0;;:::i;:::-;;;;;;;;;;;;;;;;16265:42;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16265:42:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16265:42:0;-1:-1:-1;;;;;16265:42:0;;:::i;18207:250::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18207:250:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18207:250:0;-1:-1:-1;;;;;18207:250:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;16846:93;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16846:93:0;;;:::i;18078:121::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18078:121:0;;;:::i;19100:160::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19100:160:0;;;:::i;16072:42::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16072:42:0;;;:::i;19549:1083::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19549:1083:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19549:1083:0;;:::i;18785:307::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18785:307:0;;;:::i;15492:34::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15492:34:0;;;:::i;:::-;;;;-1:-1:-1;;;;;15492:34:0;;;;;;;;;;;;;;16947:112;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16947:112:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16947:112:0;-1:-1:-1;;;;;16947:112:0;;:::i;16036:29::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16036:29:0;;;:::i;17067:131::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17067:131:0;;;:::i;16201:57::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16201:57:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16201:57:0;-1:-1:-1;;;;;16201:57:0;;:::i;19268:217::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19268:217:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19268:217:0;;:::i;18465:312::-;;;:::i;16121:29::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16121:29:0;;;:::i;17208:330::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17208:330:0;;;:::i;15965:26::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15965:26:0;;;:::i;17546:211::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17546:211:0;;;:::i;16157:35::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16157:35:0;;;:::i;17765:99::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17765:99:0;;;:::i;15998:31::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15998:31:0;;;:::i;17872:198::-;-1:-1:-1;;;;;18045:16:0;;17926:7;18045:16;;;:7;:16;;;;;;;;;17997:22;:31;;;;;;17953:109;;18045:16;17953:87;;18035:4;;17953:77;;17976:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;-1:-1:-1;;;;;17953:18:0;;;;;;:9;:18;;;;;;;:77;:22;:77;:::i;:::-;:81;:87;:81;:87;:::i;:::-;:91;:109;:91;:109;:::i;:::-;17946:116;17872:198;-1:-1:-1;;17872:198:0:o;16265:42::-;;;;;;;;;;;;;:::o;18207:250::-;18258:7;18266;18274;18312:1;18297:12;;:16;18294:131;;;-1:-1:-1;;;;;18335:18:0;;;;;;:9;:18;;;;;;18355:15;18345:7;18355:6;:15::i;:::-;18411:12;;-1:-1:-1;;;;;18387:18:0;;;;;;:9;:18;;;;;;18372:52;;18411:12;18372:34;;:10;:8;:10::i;:::-;:14;:34;:14;:34;:::i;:52::-;18328:97;;;;;;;;18294:131;-1:-1:-1;18443:1:0;;-1:-1:-1;18443:1:0;;-1:-1:-1;18443:1:0;18207:250;;;;;;:::o;16846:93::-;16919:12;;16846:93;;:::o;18078:121::-;18133:7;18160:31;18175:15;;18160:10;;:14;;:31;;;;:::i;:::-;18153:38;;18078:121;:::o;19100:160::-;15664:19;;-1:-1:-1;;;;;15664:19:0;15650:10;:33;15642:88;;;;-1:-1:-1;;;15642:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19174:10;20758:16;:14;:16::i;:::-;20735:20;:39;20802:26;:24;:26::i;:::-;20785:14;:43;-1:-1:-1;;;;;20843:21:0;;;20839:157;;20900:15;20907:7;20900:6;:15::i;:::-;-1:-1:-1;;;;;20881:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20964:20;;20930:22;:31;;;;;;:54;20839:157;19197:4;;;;;;;;;-1:-1:-1;;;;;19197:4:0;-1:-1:-1;;;;;19197:12:0;;19214:6;19228:21;19197:55;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19197:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19197:55:0;;;;;;15741:1;19100:160::o;16072:42::-;;;;:::o;19549:1083::-;15664:19;;-1:-1:-1;;;;;15664:19:0;15650:10;:33;15642:88;;;;-1:-1:-1;;;15642:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19647:1;20758:16;:14;:16::i;:::-;20735:20;:39;20802:26;:24;:26::i;:::-;20785:14;:43;-1:-1:-1;;;;;20843:21:0;;;20839:157;;20900:15;20907:7;20900:6;:15::i;:::-;-1:-1:-1;;;;;20881:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20964:20;;20930:22;:31;;;;;;:54;20839:157;19685:12;;19666:15;:31;19662:318;;19738:15;;19727:27;;:6;;:27;:10;:27;:::i;:::-;19714:10;:40;19662:318;;;19807:12;;19787:17;;19807:33;;19824:15;19807:33;:16;:33;:::i;:::-;19787:53;;19855:16;19874:25;19888:10;;19874:9;:13;;:25;;;;:::i;:::-;19952:15;;19855:44;;-1:-1:-1;19927:41:0;;:20;:6;19855:44;19927:20;:10;:20;:::i;:41::-;19914:10;:54;-1:-1:-1;;19662:318:0;20355:12;;:37;;;-1:-1:-1;;;20355:37:0;;20386:4;20355:37;;;;;;20340:12;;-1:-1:-1;;;;;20355:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;20355:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20355:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20355:37:0;20437:15;;20355:37;;-1:-1:-1;20425:28:0;;20355:37;;20425:28;:11;:28;:::i;:::-;20411:10;;:42;;20403:79;;;;;-1:-1:-1;;;20403:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;20512:15;20495:14;:32;;;20573:15;;20553:36;;20512:15;20553:36;:19;:36;:::i;:::-;20538:12;:51;20605:19;;;;;;;;;;;;;;;;;21006:1;15741;19549:1083;:::o;18785:307::-;14722:1;14705:18;;;;;;;;18839:10;20758:16;:14;:16::i;:::-;20735:20;:39;20802:26;:24;:26::i;:::-;20785:14;:43;-1:-1:-1;;;;;20843:21:0;;;20839:157;;20900:15;20907:7;20900:6;:15::i;:::-;-1:-1:-1;;;;;20881:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20964:20;;20930:22;:31;;;;;;:54;20839:157;18887:10;18862:14;18879:19;;;:7;:19;;;;;;18913:10;;18909:176;;18948:10;18962:1;18940:19;;;:7;:19;;;;;:23;18978:12;;:45;;-1:-1:-1;;;;;18978:12:0;;;;19016:6;18978:25;:45::i;:::-;19043:30;;;;;;;;19054:10;;19043:30;;;;;;;;;;18909:176;21006:1;14781;14817:13;;14801:12;:29;14793:73;;;;;-1:-1:-1;;;14793:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18785:307;:::o;15492:34::-;;;-1:-1:-1;;;;;15492:34:0;;:::o;16947:112::-;-1:-1:-1;;;;;17033:18:0;17006:7;17033:18;;;:9;:18;;;;;;;16947:112::o;16036:29::-;;;;:::o;17067:131::-;17124:7;17151:39;17160:15;17177:12;;17151:8;:39::i;16201:57::-;;;;;;;;;;;;;:::o;19268:217::-;15664:19;;-1:-1:-1;;;;;15664:19:0;15650:10;:33;15642:88;;;;-1:-1:-1;;;15642:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19352:10;20758:16;:14;:16::i;:::-;20735:20;:39;20802:26;:24;:26::i;:::-;20785:14;:43;-1:-1:-1;;;;;20843:21:0;;;20839:157;;20900:15;20907:7;20900:6;:15::i;:::-;-1:-1:-1;;;;;20881:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20964:20;;20930:22;:31;;;;;;:54;20839:157;19392:21;19383:5;:30;;19375:52;;;;;-1:-1:-1;;;19375:52:0;;;;;;;;;;;;-1:-1:-1;;;19375:52:0;;;;;;;;;;;;;;;19438:4;;;;;;;;;-1:-1:-1;;;;;19438:4:0;-1:-1:-1;;;;;19438:12:0;;19455:6;19469:5;19438:39;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19438:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19438:39:0;;;;;;15741:1;19268:217;:::o;18465:312::-;18513:10;20758:16;:14;:16::i;:::-;20735:20;:39;20802:26;:24;:26::i;:::-;20785:14;:43;-1:-1:-1;;;;;20843:21:0;;;20839:157;;20900:15;20907:7;20900:6;:15::i;:::-;-1:-1:-1;;;;;20881:16:0;;;;;;:7;:16;;;;;;;;:34;;;;20964:20;;20930:22;:31;;;;;;:54;20839:157;18553:9;18581:10;18573:34;;;;;-1:-1:-1;;;18573:34:0;;;;;;;;;;;;-1:-1:-1;;;18573:34:0;;;;;;;;;;;;;;;18633:12;;:24;;18650:6;18633:24;:16;:24;:::i;:::-;18618:12;:39;18702:10;18692:21;;;;:9;:21;;;;;;:33;;18718:6;18692:33;:25;:33;:::i;:::-;18678:10;18668:21;;;;:9;:21;;;;;;;;;:57;;;;18743:26;;;;;;;18678:10;;18743:26;;;;;;;;;21006:1;18465:312;:::o;16121:29::-;;;;:::o;17208:330::-;17255:7;17279:12;;17295:1;17279:17;17275:77;;;-1:-1:-1;17320:20:0;;17313:27;;17275:77;17382:148;17425:90;17502:12;;17425:72;17492:4;17425:62;17476:10;;17425:46;17456:14;;17425:26;:24;:26::i;:90::-;17382:20;;;:148;:24;:148;:::i;15965:26::-;;;-1:-1:-1;;;;;15965:26:0;;:::o;17546:211::-;17595:7;17636:12;;17618:15;:30;17615:116;;;17685:12;;17670:49;;17685:33;;17702:15;17685:33;:16;:33;:::i;:::-;17670:10;;;:49;:14;:49;:::i;:::-;17663:56;;;;17615:116;-1:-1:-1;17748:1:0;17546:211;:::o;16157:35::-;;;;:::o;17765:99::-;17832:10;;17805:7;;17832:23;;17847:7;17832:23;:14;:23;:::i;15998:31::-;;;;:::o;2088:184::-;2146:7;2179:1;2174;:6;;2166:49;;;;;-1:-1:-1;;;2166:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2238:5:0;;;2088:184::o;2523:470::-;2581:7;2825:6;2821:47;;-1:-1:-1;2855:1:0;2848:8;;2821:47;2892:5;;;2896:1;2892;:5;:1;2916:5;;;;;:10;2908:56;;;;-1:-1:-1;;;2908:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2984:1;2523:470;-1:-1:-1;;;2523:470:0:o;3461:333::-;3519:7;3618:1;3614;:5;3606:44;;;;;-1:-1:-1;;;3606:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3661:9;3677:1;3673;:5;;;;;;;3461:333;-1:-1:-1;;;;3461:333:0:o;1632:181::-;1690:7;1722:5;;;1746:6;;;;1738:46;;;;;-1:-1:-1;;;1738:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;10284:176;10393:58;;;-1:-1:-1;;;;;10393:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;10393:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;10367:85:0;;10386:5;;10367:18;:85::i;:::-;10284:176;;;:::o;375:106::-;433:7;464:1;460;:5;:13;;472:1;460:13;;;-1:-1:-1;468:1:0;;453:20;-1:-1:-1;375:106:0:o;12278:1114::-;12882:27;12890:5;-1:-1:-1;;;;;12882:25:0;;:27::i;:::-;12874:71;;;;;-1:-1:-1;;;12874:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13019:12;13033:23;13068:5;-1:-1:-1;;;;;13060:19:0;13080:4;13060: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;;;13060: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;;13018:67:0;;;;13104:7;13096:52;;;;;-1:-1:-1;;;13096:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13165:17;;:21;13161:224;;13307:10;13296:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;13296:30:0;13288:85;;;;-1:-1:-1;;;13288:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12278:1114;;;;:::o;9297:422::-;9664:20;9703:8;;;9297:422::o

Swarm Source

bzzr://14da7e1e1e92dc29c18bb879c40942e59c52854338003618e3526860e206a7f3

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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