ETH Price: $3,361.30 (-0.66%)
Gas: 1 Gwei

Contract

0xED27BF2baa523f63170f722dDC42c5e59c282670
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Claim202024822024-06-30 5:42:3518 mins ago1719726155IN
0xED27BF2b...59c282670
0 ETH0.000180461.90435275
Claim202024792024-06-30 5:41:5919 mins ago1719726119IN
0xED27BF2b...59c282670
0 ETH0.000181881.91951179
Claim202007082024-06-29 23:45:116 hrs ago1719704711IN
0xED27BF2b...59c282670
0 ETH0.000165541.784785
Deposit201999602024-06-29 21:14:598 hrs ago1719695699IN
0xED27BF2b...59c282670
0 ETH0.000321782.00257581
Deposit201964162024-06-29 9:21:5920 hrs ago1719652919IN
0xED27BF2b...59c282670
0 ETH0.000259281.96997523
Claim201964112024-06-29 9:20:5920 hrs ago1719652859IN
0xED27BF2b...59c282670
0 ETH0.000180191.9427384
Claim201964092024-06-29 9:20:3520 hrs ago1719652835IN
0xED27BF2b...59c282670
0 ETH0.000186921.9724777
Claim201964052024-06-29 9:19:4720 hrs ago1719652787IN
0xED27BF2b...59c282670
0 ETH0.000183721.9387676
Claim201948372024-06-29 4:04:1125 hrs ago1719633851IN
0xED27BF2b...59c282670
0 ETH0.000212121.89620962
Claim201921232024-06-28 18:57:5935 hrs ago1719601079IN
0xED27BF2b...59c282670
0 ETH0.000340533.79972524
Claim201921212024-06-28 18:57:3535 hrs ago1719601055IN
0xED27BF2b...59c282670
0 ETH0.000347673.87884985
Claim201921182024-06-28 18:56:5935 hrs ago1719601019IN
0xED27BF2b...59c282670
0 ETH0.000366533.86774372
Deposit201919422024-06-28 18:21:4735 hrs ago1719598907IN
0xED27BF2b...59c282670
0 ETH0.000570393.54977036
Deposit201914712024-06-28 16:46:5937 hrs ago1719593219IN
0xED27BF2b...59c282670
0 ETH0.001280457.96815475
Withdraw201914282024-06-28 16:38:2337 hrs ago1719592703IN
0xED27BF2b...59c282670
0 ETH0.000635927.23543913
Deposit201914222024-06-28 16:37:1137 hrs ago1719592631IN
0xED27BF2b...59c282670
0 ETH0.000921617.00222265
Claim201913572024-06-28 16:23:5937 hrs ago1719591839IN
0xED27BF2b...59c282670
0 ETH0.000860939.2819434
Claim201896332024-06-28 10:37:2343 hrs ago1719571043IN
0xED27BF2b...59c282670
0 ETH0.000821677.47884185
Deposit201885252024-06-28 6:54:5947 hrs ago1719557699IN
0xED27BF2b...59c282670
0 ETH0.00035212.19145534
Deposit201853272024-06-27 20:10:592 days ago1719519059IN
0xED27BF2b...59c282670
0 ETH0.000807277.04931732
Claim201853032024-06-27 20:06:112 days ago1719518771IN
0xED27BF2b...59c282670
0 ETH0.000765358.07625342
Claim201826642024-06-27 11:15:352 days ago1719486935IN
0xED27BF2b...59c282670
0 ETH0.000545834.87986891
Withdraw201803592024-06-27 3:32:473 days ago1719459167IN
0xED27BF2b...59c282670
0 ETH0.00085488.14359458
Claim201803312024-06-27 3:27:113 days ago1719458831IN
0xED27BF2b...59c282670
0 ETH0.000718267.58028257
Withdraw201786452024-06-26 21:48:353 days ago1719438515IN
0xED27BF2b...59c282670
0 ETH0.000413393.93831067
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:
StakingV1

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion
File 1 of 7 : StakingV1.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.6;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/utils/math/SafeMath.sol';

/**
 * @title Token Staking
 * @dev BEP20 compatible token.
 */
contract StakingV1 is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    struct UserInfo {
        uint256 amount;
        uint256 rewardDebt;
        uint256 pendingRewards;
        uint256 lockedTimestamp;
    }

    struct PoolInfo {
        uint256 poolShare;
        uint256 lastRewardBlock;
        uint256 tokenPerShare;
        uint256 tokenRStaked;
        uint256 tokenClaimed;
        uint256 tokenAwarded;
        uint256 tokenLimited;
        uint256 lockupTimer;
    }

    IERC20 public token;

    uint256 public tokenPerBlock;
    uint256 public startBlock;
    uint256 public closeBlock;

    PoolInfo[] public poolInfo;
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    uint256 public totalPoolShare;
    uint256 public maxPid;

    uint256 public lastChangeTimestamp;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event Claim(address indexed user, uint256 indexed pid, uint256 amount);
    event WithdrawRemaining(address indexed user, uint256 amount);

    event RewardChanged(uint256 reward);
    event StartBlockChanged(uint256 block);
    event CloseBlockChanged(uint256 block);

    constructor(uint256[] memory poolShare, uint256[] memory poolTimer, uint256[] memory poolLimit) {
        require(poolShare.length == poolTimer.length, 'Staking: Invalid constructor parameters set!');
        require(poolTimer.length == poolLimit.length, 'Staking: Invalid constructor parameters set!');

        for (uint i=0; i<poolShare.length; i++) {
            addPool(poolShare[i], poolTimer[i], poolLimit[i]);
        }
    }

    function setTokenAddress(IERC20 _token) public onlyOwner {
        require(address(_token) != address(0), 'Staking: token address needs to be different than zero!');
        require(address(token) == address(0), 'Staking: token already set!');
        token = _token;
    }

    function setTokenPerBlock(uint256 _tokenPerBlock) public onlyOwner {
        require(_tokenPerBlock > 0, 'Staking: amount of tokens per block should be greater than 0!');
        for (uint256 i=0; i<maxPid; i++) {
            updatePool(i);
        }
        tokenPerBlock = _tokenPerBlock;
        lastChangeTimestamp = block.timestamp;
        emit RewardChanged(tokenPerBlock);
    }

    function setStartBlock(uint256 _startBlock) public onlyOwner {
        require(startBlock == 0, 'Staking: start block already set');
        require(_startBlock > 0, 'Staking: start block needs to be higher than zero!');
        startBlock = _startBlock;
        emit StartBlockChanged(startBlock);
    }

    function setCloseBlock(uint256 _closeBlock) public onlyOwner {
        require(startBlock != 0, 'Staking: start block needs to be set first');
        require(closeBlock == 0, 'Staking: close block already set');
        require(_closeBlock > startBlock, 'Staking: close block needs to be higher than start one!');
        closeBlock = _closeBlock;
        emit CloseBlockChanged(closeBlock);
    }

    function withdrawRemaining() public onlyOwner {
        require(startBlock != 0, 'Staking: start block needs to be set first');
        require(closeBlock != 0, 'Staking: close block needs to be set first');
        require(block.number > closeBlock, 'Staking: withdrawal of remaining funds not ready yet');

        for (uint256 i=0; i<maxPid; i++) {
            updatePool(i);
        }

        uint256 allTokenRStaked = 0;
        uint256 allTokenAwarded = 0;
        uint256 allTokenClaimed = 0;

        for (uint256 i=0; i<maxPid; i++) {
            allTokenRStaked = allTokenRStaked.add(poolInfo[i].tokenRStaked);
            allTokenAwarded = allTokenAwarded.add(poolInfo[i].tokenAwarded);
            allTokenClaimed = allTokenClaimed.add(poolInfo[i].tokenClaimed);
        }

        uint256 reservedAmount = allTokenRStaked.add(allTokenAwarded).sub(allTokenClaimed);
        uint256 possibleAmount = token.balanceOf(address(this));
        uint256 unlockedAmount = 0;

        if (possibleAmount > reservedAmount) {
            unlockedAmount = possibleAmount.sub(reservedAmount);
        }
        if (unlockedAmount > 0) {
            token.safeTransfer(owner(), unlockedAmount);
            emit WithdrawRemaining(owner(), unlockedAmount);
        }
    }

    function stakingTokens(uint256 pid, address addr) external view returns (uint256) {
        if (pid >= maxPid) {
            return 0;
        }
        UserInfo storage user = userInfo[pid][addr];
        return user.amount;
    }

    function pendingRewards(uint256 pid, address addr) external view returns (uint256) {
        require(pid < maxPid, 'Staking: invalid pool ID provided');
        require(startBlock > 0 && block.number >= startBlock, 'Staking: not started yet');
        PoolInfo storage pool = poolInfo[pid];
        UserInfo storage user = userInfo[pid][addr];
        uint256 tokenPerShare = pool.tokenPerShare;
        uint256 lastMintedBlock = pool.lastRewardBlock;
        if (lastMintedBlock == 0) {
            lastMintedBlock = startBlock;
        }
        uint256 lastRewardBlock = getLastRewardBlock();
        if (lastRewardBlock == 0) {
            return 0;
        }
        uint256 poolTokenRStaked = pool.tokenRStaked;
        if (lastRewardBlock > lastMintedBlock && poolTokenRStaked != 0) {
            uint256 multiplier = lastRewardBlock.sub(lastMintedBlock);
            uint256 tokenReward = multiplier.mul(tokenPerBlock).mul(pool.poolShare).div(totalPoolShare);
            tokenPerShare = tokenPerShare.add(tokenReward.mul(1e12).div(poolTokenRStaked));
        }
        return user.amount.mul(tokenPerShare).div(1e12).sub(user.rewardDebt).add(user.pendingRewards);
    }

    function deposit(uint256 pid, uint256 amount) external {
        // amount eq to zero is allowed
        require(pid < maxPid, 'Staking: invalid pool ID provided');
        require(startBlock > 0 && block.number >= startBlock, 'Staking: not started yet');
        require(closeBlock == 0 || block.number <= closeBlock, 'Staking: farming has ended, please withdraw remaining tokens');

        PoolInfo storage pool = poolInfo[pid];
        UserInfo storage user = userInfo[pid][msg.sender];

        require(pool.tokenLimited == 0
            || pool.tokenLimited >= pool.tokenRStaked.add(amount), 'Staking: you cannot deposit over the limit!');

        updatePool(pid);
        updatePendingRewards(pid, msg.sender);

        if (amount > 0) {
            user.amount = user.amount.add(amount);
            pool.tokenRStaked = pool.tokenRStaked.add(amount);
            token.safeTransferFrom(address(msg.sender), address(this), amount);
        }
        user.rewardDebt = user.amount.mul(pool.tokenPerShare).div(1e12);
        user.lockedTimestamp = block.timestamp.add(pool.lockupTimer);
        emit Deposit(msg.sender, pid, amount);
    }

    function withdraw(uint256 pid, uint256 amount) external {
        // amount eq to zero is allowed
        require(pid < maxPid, 'Staking: invalid pool ID provided');
        require(startBlock > 0 && block.number >= startBlock, 'Staking: not started yet');

        PoolInfo storage pool = poolInfo[pid];
        UserInfo storage user = userInfo[pid][msg.sender];

        require((block.timestamp >= user.lockedTimestamp)
            || (closeBlock > 0 && closeBlock <= block.number)
            || (lastChangeTimestamp > 0 && lastChangeTimestamp.add(pool.lockupTimer) > user.lockedTimestamp),
            'Staking: you cannot withdraw yet!');
        require(user.amount >= amount, 'Staking: you cannot withdraw more than you have!');

        updatePool(pid);
        updatePendingRewards(pid, msg.sender);

        if (amount > 0) {
            user.amount = user.amount.sub(amount);
            pool.tokenRStaked = pool.tokenRStaked.sub(amount);
            token.safeTransfer(address(msg.sender), amount);
        }
        user.rewardDebt = user.amount.mul(pool.tokenPerShare).div(1e12);
        user.lockedTimestamp = 0;
        emit Withdraw(msg.sender, pid, amount);
    }

    function claim(uint256 pid) external {
        require(pid < maxPid, 'Staking: invalid pool ID provided');
        require(startBlock > 0 && block.number >= startBlock, 'Staking: not started yet');

        PoolInfo storage pool = poolInfo[pid];
        UserInfo storage user = userInfo[pid][msg.sender];

        updatePool(pid);
        updatePendingRewards(pid, msg.sender);

        if (user.pendingRewards > 0) {
            uint256 claimedAmount = transferPendingRewards(pid, msg.sender, user.pendingRewards);
            emit Claim(msg.sender, pid, claimedAmount);
            user.pendingRewards = user.pendingRewards.sub(claimedAmount);
            pool.tokenClaimed = pool.tokenClaimed.add(claimedAmount);
        }
        user.rewardDebt = user.amount.mul(pool.tokenPerShare).div(1e12);
    }

    function addPool(uint256 _poolShare, uint256 _lockupTimer, uint256 _tokenLimited) internal {
        require(_poolShare > 0, 'Staking: Pool share needs to be higher than zero!');
        require(maxPid < 10, 'Staking: Cannot add more than 10 pools!');

        poolInfo.push(PoolInfo({
            poolShare: _poolShare,
            lastRewardBlock: 0,
            tokenPerShare: 0,
            tokenRStaked: 0,
            tokenClaimed: 0,
            tokenAwarded: 0,
            tokenLimited: _tokenLimited,
            lockupTimer: _lockupTimer
        }));
        totalPoolShare = totalPoolShare.add(_poolShare);
        maxPid = maxPid.add(1);
    }

    function updatePool(uint256 pid) internal {
        if (pid >= maxPid) {
            return;
        }
        if (startBlock == 0 || block.number < startBlock) {
            return;
        }
        PoolInfo storage pool = poolInfo[pid];
        if (pool.lastRewardBlock == 0) {
            pool.lastRewardBlock = startBlock;
        }
        uint256 lastBlock = getLastRewardBlock();
        if (lastBlock <= pool.lastRewardBlock) {
            return;
        }
        uint256 poolTokenRStaked = pool.tokenRStaked;
        if (poolTokenRStaked == 0) {
            return;
        }
        uint256 multiplier = lastBlock.sub(pool.lastRewardBlock);
        uint256 tokenReward = multiplier.mul(tokenPerBlock).mul(pool.poolShare).div(totalPoolShare);
        pool.tokenAwarded = pool.tokenAwarded.add(tokenReward);
        pool.tokenPerShare = pool.tokenPerShare.add(tokenReward.mul(1e12).div(poolTokenRStaked));
        pool.lastRewardBlock = lastBlock;
    }

    function updatePendingRewards(uint256 pid, address addr) internal {
        if (pid >= maxPid) {
            return;
        }
        PoolInfo storage pool = poolInfo[pid];
        UserInfo storage user = userInfo[pid][addr];
        uint256 pending = user.amount.mul(pool.tokenPerShare).div(1e12).sub(user.rewardDebt);
        if (pending > 0) {
            user.pendingRewards = user.pendingRewards.add(pending);
        }
    }

    function transferPendingRewards(uint256 pid, address to, uint256 amount) internal returns (uint256) {
        if (pid >= maxPid) {
            return 0;
        }
        if (amount == 0) {
            return 0;
        }
        uint256 tokenAmount = token.balanceOf(address(this));
        if (tokenAmount == 0) {
            return 0;
        }
        if (tokenAmount > amount) {
            tokenAmount = amount;
        }
        token.safeTransfer(to, tokenAmount);
        return tokenAmount;
    }

    function getLastRewardBlock() internal view returns (uint256) {
        if (startBlock == 0) return 0;
        if (closeBlock == 0) return block.number;
        return (closeBlock < block.number) ? closeBlock : block.number;
    }
}

File 2 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 3 of 7 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.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 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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 4 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - 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. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 6 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 7 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * 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.
 */
abstract 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() {
        _setOwner(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the 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 virtual onlyOwner {
        _setOwner(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 virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256[]","name":"poolShare","type":"uint256[]"},{"internalType":"uint256[]","name":"poolTimer","type":"uint256[]"},{"internalType":"uint256[]","name":"poolLimit","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"block","type":"uint256"}],"name":"CloseBlockChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"block","type":"uint256"}],"name":"StartBlockChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawRemaining","type":"event"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closeBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastChangeTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"poolShare","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"tokenPerShare","type":"uint256"},{"internalType":"uint256","name":"tokenRStaked","type":"uint256"},{"internalType":"uint256","name":"tokenClaimed","type":"uint256"},{"internalType":"uint256","name":"tokenAwarded","type":"uint256"},{"internalType":"uint256","name":"tokenLimited","type":"uint256"},{"internalType":"uint256","name":"lockupTimer","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_closeBlock","type":"uint256"}],"name":"setCloseBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"name":"setStartBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"setTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPerBlock","type":"uint256"}],"name":"setTokenPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"stakingTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPoolShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"pendingRewards","type":"uint256"},{"internalType":"uint256","name":"lockedTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawRemaining","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200237138038062002371833981016040819052620000349162000529565b6200003f3362000184565b81518351146200009a5760405162461bcd60e51b815260206004820152602c60248201526000805160206200235183398151915260448201526b616d6574657273207365742160a01b60648201526084015b60405180910390fd5b8051825114620000f15760405162461bcd60e51b815260206004820152602c60248201526000805160206200235183398151915260448201526b616d6574657273207365742160a01b606482015260840162000091565b60005b83518110156200017a576200016584828151811062000117576200011762000609565b602002602001015184838151811062000134576200013462000609565b602002602001015184848151811062000151576200015162000609565b6020026020010151620001d460201b60201c565b806200017181620005d5565b915050620000f4565b5050505062000635565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008311620002405760405162461bcd60e51b815260206004820152603160248201527f5374616b696e673a20506f6f6c207368617265206e6565647320746f20626520604482015270686967686572207468616e207a65726f2160781b606482015260840162000091565b600a60085410620002a45760405162461bcd60e51b815260206004820152602760248201527f5374616b696e673a2043616e6e6f7420616464206d6f7265207468616e20313060448201526620706f6f6c732160c81b606482015260840162000091565b604080516101008101825284815260006020808301828152938301828152606084018381526080850184815260a0860185815260c0870189815260e088018b815260058054600181018255985297517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db060089098029788015597517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db187015592517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db286015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db3850155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db4840155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db583015592517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db682015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db7909101556007546200043f9185906200046a811b6200140917901c565b6007819055506200046260016008546200046a60201b620014091790919060201c565b600855505050565b6000620004788284620005ba565b9392505050565b600082601f8301126200049157600080fd5b815160206001600160401b0380831115620004b057620004b06200061f565b8260051b604051601f19603f83011681018181108482111715620004d857620004d86200061f565b60405284815283810192508684018288018501891015620004f857600080fd5b600092505b858310156200051d578051845292840192600192909201918401620004fd565b50979650505050505050565b6000806000606084860312156200053f57600080fd5b83516001600160401b03808211156200055757600080fd5b62000565878388016200047f565b945060208601519150808211156200057c57600080fd5b6200058a878388016200047f565b93506040860151915080821115620005a157600080fd5b50620005b0868287016200047f565b9150509250925092565b60008219821115620005d057620005d0620005f3565b500190565b6000600019821415620005ec57620005ec620005f3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b611d0c80620006456000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b8578063d18df53c1161007c578063d18df53c146102df578063e2bbb158146102f2578063ee38db9514610305578063f2fde38b1461030d578063f35e4a6e14610320578063fc0c546a1461033357600080fd5b8063715018a6146102405780638cdcbdef146102485780638da5cb5b146102515780638ff668091461027657806393f1a40b1461027f57600080fd5b8063379607f51161010a578063379607f5146101ec578063411330bd146101ff5780634198709a14610212578063441a3e701461021b57806348cd4cb11461022e57806367d1768d1461023757600080fd5b8063095e5a54146101475780630b6793091461016d5780631526fe271461017657806326a4e8d2146101c457806335c8518b146101d9575b600080fd5b61015a610155366004611a46565b610346565b6040519081526020015b60405180910390f35b61015a60085481565b610189610184366004611a14565b610384565b604080519889526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610164565b6101d76101d23660046119d5565b6103dc565b005b6101d76101e7366004611a14565b610506565b6101d76101fa366004611a14565b610652565b6101d761020d366004611a14565b6107a9565b61015a60025481565b6101d7610229366004611a76565b6108ab565b61015a60035481565b61015a60095481565b6101d7610afd565b61015a60045481565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610164565b61015a60075481565b6102bf61028d366004611a46565b600660209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610164565b61015a6102ed366004611a46565b610b33565b6101d7610300366004611a76565b610cc0565b6101d7610f14565b6101d761031b3660046119d5565b611254565b6101d761032e366004611a14565b6112ef565b60015461025e906001600160a01b031681565b600060085483106103595750600061037e565b5060008281526006602090815260408083206001600160a01b03851684529091529020545b92915050565b6005818154811061039457600080fd5b90600052602060002090600802016000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154908060070154905088565b6000546001600160a01b0316331461040f5760405162461bcd60e51b815260040161040690611b1e565b60405180910390fd5b6001600160a01b03811661048b5760405162461bcd60e51b815260206004820152603760248201527f5374616b696e673a20746f6b656e2061646472657373206e6565647320746f2060448201527f626520646966666572656e74207468616e207a65726f210000000000000000006064820152608401610406565b6001546001600160a01b0316156104e45760405162461bcd60e51b815260206004820152601b60248201527f5374616b696e673a20746f6b656e20616c7265616479207365742100000000006044820152606401610406565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146105305760405162461bcd60e51b815260040161040690611b1e565b60035461054f5760405162461bcd60e51b815260040161040690611b94565b6004541561059f5760405162461bcd60e51b815260206004820181905260248201527f5374616b696e673a20636c6f736520626c6f636b20616c7265616479207365746044820152606401610406565b60035481116106165760405162461bcd60e51b815260206004820152603760248201527f5374616b696e673a20636c6f736520626c6f636b206e6565647320746f20626560448201527f20686967686572207468616e207374617274206f6e65210000000000000000006064820152608401610406565b60048190556040518181527ff611389adc906823d7195c85599775805c1387992a80055df34e70b86bdde4d5906020015b60405180910390a150565b60085481106106735760405162461bcd60e51b815260040161040690611b53565b600060035411801561068757506003544310155b6106a35760405162461bcd60e51b815260040161040690611ae7565b6000600582815481106106b8576106b8611cab565b600091825260208083208584526006825260408085203386529092529220600890910290910191506106e98361141c565b6106f38333611530565b60028101541561077e57600061070e843384600201546115d3565b905083336001600160a01b03167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf78360405161074c91815260200190565b60405180910390a3600282015461076390826116aa565b600283015560048301546107779082611409565b6004840155505b6002820154815461079f9164e8d4a5100091610799916116b6565b906116c2565b6001909101555050565b6000546001600160a01b031633146107d35760405162461bcd60e51b815260040161040690611b1e565b600081116108495760405162461bcd60e51b815260206004820152603d60248201527f5374616b696e673a20616d6f756e74206f6620746f6b656e732070657220626c60448201527f6f636b2073686f756c642062652067726561746572207468616e2030210000006064820152608401610406565b60005b6008548110156108715761085f8161141c565b8061086981611c7a565b91505061084c565b506002819055426009556040518181527fba54ce5940e90276397dfc944292ed6a6a43aa64f9deb96d5f471bef49b78e1490602001610647565b60085482106108cc5760405162461bcd60e51b815260040161040690611b53565b60006003541180156108e057506003544310155b6108fc5760405162461bcd60e51b815260040161040690611ae7565b60006005838154811061091157610911611cab565b6000918252602080832086845260068252604080852033865290925292206003810154600890920290920192504210158061095b5750600060045411801561095b57504360045411155b806109865750600060095411801561098657506003810154600783015460095461098491611409565b115b6109dc5760405162461bcd60e51b815260206004820152602160248201527f5374616b696e673a20796f752063616e6e6f74207769746864726177207965746044820152602160f81b6064820152608401610406565b8054831115610a465760405162461bcd60e51b815260206004820152603060248201527f5374616b696e673a20796f752063616e6e6f74207769746864726177206d6f7260448201526f65207468616e20796f7520686176652160801b6064820152608401610406565b610a4f8461141c565b610a598433611530565b8215610a98578054610a6b90846116aa565b81556003820154610a7c90846116aa565b6003830155600154610a98906001600160a01b031633856116ce565b60028201548154610ab39164e8d4a5100091610799916116b6565b600182015560006003820155604051838152849033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a350505050565b6000546001600160a01b03163314610b275760405162461bcd60e51b815260040161040690611b1e565b610b316000611736565b565b60006008548310610b565760405162461bcd60e51b815260040161040690611b53565b6000600354118015610b6a57506003544310155b610b865760405162461bcd60e51b815260040161040690611ae7565b600060058481548110610b9b57610b9b611cab565b600091825260208083208784526006825260408085206001600160a01b03891686529092529220600260089092029092019081015460018201549193509080610be357506003545b6000610bed611786565b905080610c025760009550505050505061037e565b60038501548282118015610c1557508015155b15610c77576000610c2683856116aa565b90506000610c536007546107998a60000154610c4d600254876116b690919063ffffffff16565b906116b6565b9050610c72610c6b846107998464e8d4a510006116b6565b8790611409565b955050505b610cb38560020154610cad8760010154610ca764e8d4a510006107998a8c600001546116b690919063ffffffff16565b906116aa565b90611409565b9998505050505050505050565b6008548210610ce15760405162461bcd60e51b815260040161040690611b53565b6000600354118015610cf557506003544310155b610d115760405162461bcd60e51b815260040161040690611ae7565b6004541580610d2257506004544311155b610d945760405162461bcd60e51b815260206004820152603c60248201527f5374616b696e673a206661726d696e672068617320656e6465642c20706c656160448201527f73652077697468647261772072656d61696e696e6720746f6b656e73000000006064820152608401610406565b600060058381548110610da957610da9611cab565b600091825260208083208684526006808352604080862033875290935291909320600890920290920191820154919250901580610df857506003820154610df09084611409565b826006015410155b610e585760405162461bcd60e51b815260206004820152602b60248201527f5374616b696e673a20796f752063616e6e6f74206465706f736974206f76657260448201526a20746865206c696d69742160a81b6064820152608401610406565b610e618461141c565b610e6b8433611530565b8215610eab578054610e7d9084611409565b81556003820154610e8e9084611409565b6003830155600154610eab906001600160a01b03163330866117ba565b60028201548154610ec69164e8d4a5100091610799916116b6565b60018201556007820154610edb904290611409565b6003820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610aef565b6000546001600160a01b03163314610f3e5760405162461bcd60e51b815260040161040690611b1e565b600354610f5d5760405162461bcd60e51b815260040161040690611b94565b600454610fbf5760405162461bcd60e51b815260206004820152602a60248201527f5374616b696e673a20636c6f736520626c6f636b206e6565647320746f206265604482015269081cd95d08199a5c9cdd60b21b6064820152608401610406565b600454431161102d5760405162461bcd60e51b815260206004820152603460248201527f5374616b696e673a207769746864726177616c206f662072656d61696e696e6760448201527308199d5b991cc81b9bdd081c9958591e481e595d60621b6064820152608401610406565b60005b600854811015611055576110438161141c565b8061104d81611c7a565b915050611030565b506000806000805b6008548110156111245761109e6005828154811061107d5761107d611cab565b9060005260206000209060080201600301548561140990919063ffffffff16565b93506110d7600582815481106110b6576110b6611cab565b9060005260206000209060080201600501548461140990919063ffffffff16565b9250611110600582815481106110ef576110ef611cab565b9060005260206000209060080201600401548361140990919063ffffffff16565b91508061111c81611c7a565b91505061105d565b50600061113582610ca78686611409565b6001546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a082319060240160206040518083038186803b15801561117e57600080fd5b505afa158015611192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b69190611a2d565b90506000828211156111cf576111cc82846116aa565b90505b801561124c576111fd6111ea6000546001600160a01b031690565b6001546001600160a01b031690836116ce565b6000546001600160a01b03166001600160a01b03167fcdbc2e554e2a29ae95f46efb6591e6922a2cf48460ad9fa7e4bfad4212f21e418260405161124391815260200190565b60405180910390a25b505050505050565b6000546001600160a01b0316331461127e5760405162461bcd60e51b815260040161040690611b1e565b6001600160a01b0381166112e35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610406565b6112ec81611736565b50565b6000546001600160a01b031633146113195760405162461bcd60e51b815260040161040690611b1e565b600354156113695760405162461bcd60e51b815260206004820181905260248201527f5374616b696e673a20737461727420626c6f636b20616c7265616479207365746044820152606401610406565b600081116113d45760405162461bcd60e51b815260206004820152603260248201527f5374616b696e673a20737461727420626c6f636b206e6565647320746f20626560448201527120686967686572207468616e207a65726f2160701b6064820152608401610406565b60038190556040518181527f2ff5a4bd003b5c8c334ec018975259184173d0eabd4384b3ddbf74f447dd5a7490602001610647565b60006114158284611bde565b9392505050565b60085481106114285750565b6003541580611438575060035443105b156114405750565b60006005828154811061145557611455611cab565b9060005260206000209060080201905080600101546000141561147b5760035460018201555b6000611485611786565b90508160010154811161149757505050565b6003820154806114a75750505050565b60006114c08460010154846116aa90919063ffffffff16565b905060006114e76007546107998760000154610c4d600254876116b690919063ffffffff16565b60058601549091506114f99082611409565b600586015561151f611514846107998464e8d4a510006116b6565b600287015490611409565b600286015550505060019091015550565b600854821061153d575050565b60006005838154811061155257611552611cab565b600091825260208083208684526006825260408085206001600160a01b03881686529092529083206001810154600260089094029092019283015481549395509093926115af9291610ca79164e8d4a510009161079991906116b6565b905080156115cc5760028201546115c69082611409565b60028301555b5050505050565b600060085484106115e657506000611415565b816115f357506000611415565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561163757600080fd5b505afa15801561164b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166f9190611a2d565b905080611680576000915050611415565b8281111561168b5750815b6001546116a2906001600160a01b031685836116ce565b949350505050565b60006114158284611c37565b60006114158284611c18565b60006114158284611bf6565b6040516001600160a01b03831660248201526044810182905261173190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526117f8565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000600354600014156117995750600090565b6004546117a557504390565b43600454106117b357504390565b5060045490565b6040516001600160a01b03808516602483015283166044820152606481018290526117f29085906323b872dd60e01b906084016116fa565b50505050565b600061184d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118ca9092919063ffffffff16565b805190915015611731578080602001905181019061186b91906119f2565b6117315760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610406565b60606116a2848460008585843b6119235760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610406565b600080866001600160a01b0316858760405161193f9190611a98565b60006040518083038185875af1925050503d806000811461197c576040519150601f19603f3d011682016040523d82523d6000602084013e611981565b606091505b509150915061199182828661199c565b979650505050505050565b606083156119ab575081611415565b8251156119bb5782518084602001fd5b8160405162461bcd60e51b81526004016104069190611ab4565b6000602082840312156119e757600080fd5b813561141581611cc1565b600060208284031215611a0457600080fd5b8151801515811461141557600080fd5b600060208284031215611a2657600080fd5b5035919050565b600060208284031215611a3f57600080fd5b5051919050565b60008060408385031215611a5957600080fd5b823591506020830135611a6b81611cc1565b809150509250929050565b60008060408385031215611a8957600080fd5b50508035926020909101359150565b60008251611aaa818460208701611c4e565b9190910192915050565b6020815260008251806020840152611ad3816040850160208701611c4e565b601f01601f19169190910160400192915050565b60208082526018908201527f5374616b696e673a206e6f742073746172746564207965740000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f5374616b696e673a20696e76616c696420706f6f6c2049442070726f766964656040820152601960fa1b606082015260800190565b6020808252602a908201527f5374616b696e673a20737461727420626c6f636b206e6565647320746f206265604082015269081cd95d08199a5c9cdd60b21b606082015260800190565b60008219821115611bf157611bf1611c95565b500190565b600082611c1357634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611c3257611c32611c95565b500290565b600082821015611c4957611c49611c95565b500390565b60005b83811015611c69578181015183820152602001611c51565b838111156117f25750506000910152565b6000600019821415611c8e57611c8e611c95565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03811681146112ec57600080fdfea26469706673582212202c1441b2c128a04acbbf8bec7f8ed43a8828635e5e5f0fbd5a748ffa2a52cffd64736f6c634300080600335374616b696e673a20496e76616c696420636f6e7374727563746f72207061720000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001ee00000000000000000000000000000000000000000000000000000000000000a400000000000000000000000000000000000000000000000000000000000000b200000000000000000000000000000000000000000000000000000000000000a400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000076a7000000000000000000000000000000000000000000000000000000000000ed4e000000000000000000000000000000000000000000000000000000000001da9c00000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000018d0bf423c03d8de0000000000000000000000000000000000000000000000000422ca8b0a00a425000000000000000000000000000000000000000000000000027b46536c66c8e300000000000000000000000000000000000000000000000001a784379d99db42000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b8578063d18df53c1161007c578063d18df53c146102df578063e2bbb158146102f2578063ee38db9514610305578063f2fde38b1461030d578063f35e4a6e14610320578063fc0c546a1461033357600080fd5b8063715018a6146102405780638cdcbdef146102485780638da5cb5b146102515780638ff668091461027657806393f1a40b1461027f57600080fd5b8063379607f51161010a578063379607f5146101ec578063411330bd146101ff5780634198709a14610212578063441a3e701461021b57806348cd4cb11461022e57806367d1768d1461023757600080fd5b8063095e5a54146101475780630b6793091461016d5780631526fe271461017657806326a4e8d2146101c457806335c8518b146101d9575b600080fd5b61015a610155366004611a46565b610346565b6040519081526020015b60405180910390f35b61015a60085481565b610189610184366004611a14565b610384565b604080519889526020890197909752958701949094526060860192909252608085015260a084015260c083015260e082015261010001610164565b6101d76101d23660046119d5565b6103dc565b005b6101d76101e7366004611a14565b610506565b6101d76101fa366004611a14565b610652565b6101d761020d366004611a14565b6107a9565b61015a60025481565b6101d7610229366004611a76565b6108ab565b61015a60035481565b61015a60095481565b6101d7610afd565b61015a60045481565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610164565b61015a60075481565b6102bf61028d366004611a46565b600660209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b604080519485526020850193909352918301526060820152608001610164565b61015a6102ed366004611a46565b610b33565b6101d7610300366004611a76565b610cc0565b6101d7610f14565b6101d761031b3660046119d5565b611254565b6101d761032e366004611a14565b6112ef565b60015461025e906001600160a01b031681565b600060085483106103595750600061037e565b5060008281526006602090815260408083206001600160a01b03851684529091529020545b92915050565b6005818154811061039457600080fd5b90600052602060002090600802016000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154908060070154905088565b6000546001600160a01b0316331461040f5760405162461bcd60e51b815260040161040690611b1e565b60405180910390fd5b6001600160a01b03811661048b5760405162461bcd60e51b815260206004820152603760248201527f5374616b696e673a20746f6b656e2061646472657373206e6565647320746f2060448201527f626520646966666572656e74207468616e207a65726f210000000000000000006064820152608401610406565b6001546001600160a01b0316156104e45760405162461bcd60e51b815260206004820152601b60248201527f5374616b696e673a20746f6b656e20616c7265616479207365742100000000006044820152606401610406565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146105305760405162461bcd60e51b815260040161040690611b1e565b60035461054f5760405162461bcd60e51b815260040161040690611b94565b6004541561059f5760405162461bcd60e51b815260206004820181905260248201527f5374616b696e673a20636c6f736520626c6f636b20616c7265616479207365746044820152606401610406565b60035481116106165760405162461bcd60e51b815260206004820152603760248201527f5374616b696e673a20636c6f736520626c6f636b206e6565647320746f20626560448201527f20686967686572207468616e207374617274206f6e65210000000000000000006064820152608401610406565b60048190556040518181527ff611389adc906823d7195c85599775805c1387992a80055df34e70b86bdde4d5906020015b60405180910390a150565b60085481106106735760405162461bcd60e51b815260040161040690611b53565b600060035411801561068757506003544310155b6106a35760405162461bcd60e51b815260040161040690611ae7565b6000600582815481106106b8576106b8611cab565b600091825260208083208584526006825260408085203386529092529220600890910290910191506106e98361141c565b6106f38333611530565b60028101541561077e57600061070e843384600201546115d3565b905083336001600160a01b03167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf78360405161074c91815260200190565b60405180910390a3600282015461076390826116aa565b600283015560048301546107779082611409565b6004840155505b6002820154815461079f9164e8d4a5100091610799916116b6565b906116c2565b6001909101555050565b6000546001600160a01b031633146107d35760405162461bcd60e51b815260040161040690611b1e565b600081116108495760405162461bcd60e51b815260206004820152603d60248201527f5374616b696e673a20616d6f756e74206f6620746f6b656e732070657220626c60448201527f6f636b2073686f756c642062652067726561746572207468616e2030210000006064820152608401610406565b60005b6008548110156108715761085f8161141c565b8061086981611c7a565b91505061084c565b506002819055426009556040518181527fba54ce5940e90276397dfc944292ed6a6a43aa64f9deb96d5f471bef49b78e1490602001610647565b60085482106108cc5760405162461bcd60e51b815260040161040690611b53565b60006003541180156108e057506003544310155b6108fc5760405162461bcd60e51b815260040161040690611ae7565b60006005838154811061091157610911611cab565b6000918252602080832086845260068252604080852033865290925292206003810154600890920290920192504210158061095b5750600060045411801561095b57504360045411155b806109865750600060095411801561098657506003810154600783015460095461098491611409565b115b6109dc5760405162461bcd60e51b815260206004820152602160248201527f5374616b696e673a20796f752063616e6e6f74207769746864726177207965746044820152602160f81b6064820152608401610406565b8054831115610a465760405162461bcd60e51b815260206004820152603060248201527f5374616b696e673a20796f752063616e6e6f74207769746864726177206d6f7260448201526f65207468616e20796f7520686176652160801b6064820152608401610406565b610a4f8461141c565b610a598433611530565b8215610a98578054610a6b90846116aa565b81556003820154610a7c90846116aa565b6003830155600154610a98906001600160a01b031633856116ce565b60028201548154610ab39164e8d4a5100091610799916116b6565b600182015560006003820155604051838152849033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a350505050565b6000546001600160a01b03163314610b275760405162461bcd60e51b815260040161040690611b1e565b610b316000611736565b565b60006008548310610b565760405162461bcd60e51b815260040161040690611b53565b6000600354118015610b6a57506003544310155b610b865760405162461bcd60e51b815260040161040690611ae7565b600060058481548110610b9b57610b9b611cab565b600091825260208083208784526006825260408085206001600160a01b03891686529092529220600260089092029092019081015460018201549193509080610be357506003545b6000610bed611786565b905080610c025760009550505050505061037e565b60038501548282118015610c1557508015155b15610c77576000610c2683856116aa565b90506000610c536007546107998a60000154610c4d600254876116b690919063ffffffff16565b906116b6565b9050610c72610c6b846107998464e8d4a510006116b6565b8790611409565b955050505b610cb38560020154610cad8760010154610ca764e8d4a510006107998a8c600001546116b690919063ffffffff16565b906116aa565b90611409565b9998505050505050505050565b6008548210610ce15760405162461bcd60e51b815260040161040690611b53565b6000600354118015610cf557506003544310155b610d115760405162461bcd60e51b815260040161040690611ae7565b6004541580610d2257506004544311155b610d945760405162461bcd60e51b815260206004820152603c60248201527f5374616b696e673a206661726d696e672068617320656e6465642c20706c656160448201527f73652077697468647261772072656d61696e696e6720746f6b656e73000000006064820152608401610406565b600060058381548110610da957610da9611cab565b600091825260208083208684526006808352604080862033875290935291909320600890920290920191820154919250901580610df857506003820154610df09084611409565b826006015410155b610e585760405162461bcd60e51b815260206004820152602b60248201527f5374616b696e673a20796f752063616e6e6f74206465706f736974206f76657260448201526a20746865206c696d69742160a81b6064820152608401610406565b610e618461141c565b610e6b8433611530565b8215610eab578054610e7d9084611409565b81556003820154610e8e9084611409565b6003830155600154610eab906001600160a01b03163330866117ba565b60028201548154610ec69164e8d4a5100091610799916116b6565b60018201556007820154610edb904290611409565b6003820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610aef565b6000546001600160a01b03163314610f3e5760405162461bcd60e51b815260040161040690611b1e565b600354610f5d5760405162461bcd60e51b815260040161040690611b94565b600454610fbf5760405162461bcd60e51b815260206004820152602a60248201527f5374616b696e673a20636c6f736520626c6f636b206e6565647320746f206265604482015269081cd95d08199a5c9cdd60b21b6064820152608401610406565b600454431161102d5760405162461bcd60e51b815260206004820152603460248201527f5374616b696e673a207769746864726177616c206f662072656d61696e696e6760448201527308199d5b991cc81b9bdd081c9958591e481e595d60621b6064820152608401610406565b60005b600854811015611055576110438161141c565b8061104d81611c7a565b915050611030565b506000806000805b6008548110156111245761109e6005828154811061107d5761107d611cab565b9060005260206000209060080201600301548561140990919063ffffffff16565b93506110d7600582815481106110b6576110b6611cab565b9060005260206000209060080201600501548461140990919063ffffffff16565b9250611110600582815481106110ef576110ef611cab565b9060005260206000209060080201600401548361140990919063ffffffff16565b91508061111c81611c7a565b91505061105d565b50600061113582610ca78686611409565b6001546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a082319060240160206040518083038186803b15801561117e57600080fd5b505afa158015611192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b69190611a2d565b90506000828211156111cf576111cc82846116aa565b90505b801561124c576111fd6111ea6000546001600160a01b031690565b6001546001600160a01b031690836116ce565b6000546001600160a01b03166001600160a01b03167fcdbc2e554e2a29ae95f46efb6591e6922a2cf48460ad9fa7e4bfad4212f21e418260405161124391815260200190565b60405180910390a25b505050505050565b6000546001600160a01b0316331461127e5760405162461bcd60e51b815260040161040690611b1e565b6001600160a01b0381166112e35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610406565b6112ec81611736565b50565b6000546001600160a01b031633146113195760405162461bcd60e51b815260040161040690611b1e565b600354156113695760405162461bcd60e51b815260206004820181905260248201527f5374616b696e673a20737461727420626c6f636b20616c7265616479207365746044820152606401610406565b600081116113d45760405162461bcd60e51b815260206004820152603260248201527f5374616b696e673a20737461727420626c6f636b206e6565647320746f20626560448201527120686967686572207468616e207a65726f2160701b6064820152608401610406565b60038190556040518181527f2ff5a4bd003b5c8c334ec018975259184173d0eabd4384b3ddbf74f447dd5a7490602001610647565b60006114158284611bde565b9392505050565b60085481106114285750565b6003541580611438575060035443105b156114405750565b60006005828154811061145557611455611cab565b9060005260206000209060080201905080600101546000141561147b5760035460018201555b6000611485611786565b90508160010154811161149757505050565b6003820154806114a75750505050565b60006114c08460010154846116aa90919063ffffffff16565b905060006114e76007546107998760000154610c4d600254876116b690919063ffffffff16565b60058601549091506114f99082611409565b600586015561151f611514846107998464e8d4a510006116b6565b600287015490611409565b600286015550505060019091015550565b600854821061153d575050565b60006005838154811061155257611552611cab565b600091825260208083208684526006825260408085206001600160a01b03881686529092529083206001810154600260089094029092019283015481549395509093926115af9291610ca79164e8d4a510009161079991906116b6565b905080156115cc5760028201546115c69082611409565b60028301555b5050505050565b600060085484106115e657506000611415565b816115f357506000611415565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561163757600080fd5b505afa15801561164b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166f9190611a2d565b905080611680576000915050611415565b8281111561168b5750815b6001546116a2906001600160a01b031685836116ce565b949350505050565b60006114158284611c37565b60006114158284611c18565b60006114158284611bf6565b6040516001600160a01b03831660248201526044810182905261173190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526117f8565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000600354600014156117995750600090565b6004546117a557504390565b43600454106117b357504390565b5060045490565b6040516001600160a01b03808516602483015283166044820152606481018290526117f29085906323b872dd60e01b906084016116fa565b50505050565b600061184d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118ca9092919063ffffffff16565b805190915015611731578080602001905181019061186b91906119f2565b6117315760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610406565b60606116a2848460008585843b6119235760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610406565b600080866001600160a01b0316858760405161193f9190611a98565b60006040518083038185875af1925050503d806000811461197c576040519150601f19603f3d011682016040523d82523d6000602084013e611981565b606091505b509150915061199182828661199c565b979650505050505050565b606083156119ab575081611415565b8251156119bb5782518084602001fd5b8160405162461bcd60e51b81526004016104069190611ab4565b6000602082840312156119e757600080fd5b813561141581611cc1565b600060208284031215611a0457600080fd5b8151801515811461141557600080fd5b600060208284031215611a2657600080fd5b5035919050565b600060208284031215611a3f57600080fd5b5051919050565b60008060408385031215611a5957600080fd5b823591506020830135611a6b81611cc1565b809150509250929050565b60008060408385031215611a8957600080fd5b50508035926020909101359150565b60008251611aaa818460208701611c4e565b9190910192915050565b6020815260008251806020840152611ad3816040850160208701611c4e565b601f01601f19169190910160400192915050565b60208082526018908201527f5374616b696e673a206e6f742073746172746564207965740000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f5374616b696e673a20696e76616c696420706f6f6c2049442070726f766964656040820152601960fa1b606082015260800190565b6020808252602a908201527f5374616b696e673a20737461727420626c6f636b206e6565647320746f206265604082015269081cd95d08199a5c9cdd60b21b606082015260800190565b60008219821115611bf157611bf1611c95565b500190565b600082611c1357634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611c3257611c32611c95565b500290565b600082821015611c4957611c49611c95565b500390565b60005b83811015611c69578181015183820152602001611c51565b838111156117f25750506000910152565b6000600019821415611c8e57611c8e611c95565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03811681146112ec57600080fdfea26469706673582212202c1441b2c128a04acbbf8bec7f8ed43a8828635e5e5f0fbd5a748ffa2a52cffd64736f6c63430008060033

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

0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001ee00000000000000000000000000000000000000000000000000000000000000a400000000000000000000000000000000000000000000000000000000000000b200000000000000000000000000000000000000000000000000000000000000a400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000076a7000000000000000000000000000000000000000000000000000000000000ed4e000000000000000000000000000000000000000000000000000000000001da9c00000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000018d0bf423c03d8de0000000000000000000000000000000000000000000000000422ca8b0a00a425000000000000000000000000000000000000000000000000027b46536c66c8e300000000000000000000000000000000000000000000000001a784379d99db42000000

-----Decoded View---------------
Arg [0] : poolShare (uint256[]): 494,164,178,164
Arg [1] : poolTimer (uint256[]): 0,7776000,15552000,31104000
Arg [2] : poolLimit (uint256[]): 30000000000000000000000000,5000000000000000000000000,3000000000000000000000000,2000000000000000000000000

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001ee
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000a4
Arg [6] : 00000000000000000000000000000000000000000000000000000000000000b2
Arg [7] : 00000000000000000000000000000000000000000000000000000000000000a4
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000076a700
Arg [11] : 0000000000000000000000000000000000000000000000000000000000ed4e00
Arg [12] : 0000000000000000000000000000000000000000000000000000000001da9c00
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [14] : 00000000000000000000000000000000000000000018d0bf423c03d8de000000
Arg [15] : 0000000000000000000000000000000000000000000422ca8b0a00a425000000
Arg [16] : 000000000000000000000000000000000000000000027b46536c66c8e3000000
Arg [17] : 00000000000000000000000000000000000000000001a784379d99db42000000


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.