ETH Price: $2,460.87 (+0.79%)

Contract

0x03248C084F11E71e97ba857B03331BB7f466512B
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw121261752021-03-28 7:09:211256 days ago1616915361IN
0x03248C08...7f466512B
0 ETH0.0039376880.00000134
Get Reward121261522021-03-28 7:03:591256 days ago1616915039IN
0x03248C08...7f466512B
0 ETH0.0102610480.00000134
Get Reward114483902020-12-14 2:31:421360 days ago1607913102IN
0x03248C08...7f466512B
0 ETH0.0043183844
Withdraw114483102020-12-14 2:14:581360 days ago1607912098IN
0x03248C08...7f466512B
0 ETH0.0036795742
Exit113906522020-12-05 5:09:431369 days ago1607144983IN
0x03248C08...7f466512B
0 ETH0.0048853221.1
Withdraw113548122020-11-29 16:52:361375 days ago1606668756IN
0x03248C08...7f466512B
0 ETH0.0016631321
Stake113548052020-11-29 16:51:281375 days ago1606668688IN
0x03248C08...7f466512B
0 ETH0.0018303621
Withdraw113391272020-11-27 7:10:421377 days ago1606461042IN
0x03248C08...7f466512B
0 ETH0.0022967129
Stake113319532020-11-26 4:50:301378 days ago1606366230IN
0x03248C08...7f466512B
0 ETH0.01765576166
Withdraw112948952020-11-20 12:09:361384 days ago1605874176IN
0x03248C08...7f466512B
0 ETH0.0041993453
Exit112845312020-11-18 22:09:321385 days ago1605737372IN
0x03248C08...7f466512B
0 ETH0.0035527835
Withdraw112810662020-11-18 9:16:071386 days ago1605690967IN
0x03248C08...7f466512B
0 ETH0.0052285866
Get Reward112810612020-11-18 9:15:211386 days ago1605690921IN
0x03248C08...7f466512B
0 ETH0.006092362
Stake112788872020-11-18 1:12:331386 days ago1605661953IN
0x03248C08...7f466512B
0 ETH0.0086182671
Stake112758762020-11-17 14:04:381387 days ago1605621878IN
0x03248C08...7f466512B
0 ETH0.0070221366
Withdraw112755832020-11-17 13:00:501387 days ago1605618050IN
0x03248C08...7f466512B
0 ETH0.0048800161.60000123
Stake112706102020-11-16 18:48:431387 days ago1605552523IN
0x03248C08...7f466512B
0 ETH0.0037234435
Exit112659072020-11-16 1:17:001388 days ago1605489420IN
0x03248C08...7f466512B
0 ETH0.0018439713.00000145
Get Reward112658242020-11-16 0:59:391388 days ago1605488379IN
0x03248C08...7f466512B
0 ETH0.0019236419.6
Get Reward112658212020-11-16 0:58:231388 days ago1605488303IN
0x03248C08...7f466512B
0 ETH0.001662920
Withdraw112658162020-11-16 0:57:291388 days ago1605488249IN
0x03248C08...7f466512B
0 ETH0.0010751220
Withdraw112658162020-11-16 0:57:291388 days ago1605488249IN
0x03248C08...7f466512B
0 ETH0.0020521820
Exit112656362020-11-16 0:19:211388 days ago1605485961IN
0x03248C08...7f466512B
0 ETH0.0043132127.5
Withdraw112640372020-11-15 18:21:231388 days ago1605464483IN
0x03248C08...7f466512B
0 ETH0.001882335
Withdraw112640372020-11-15 18:21:231388 days ago1605464483IN
0x03248C08...7f466512B
0 ETH0.001613430
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:
CatNap

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : CatNap.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/Math.sol";
import "./LPTokenWrapper.sol";

interface MultiplierInterface {
    function getPermanentMultiplier(address account)
        external
        view
        returns (uint256);
}

contract CatNap is LPTokenWrapper, Ownable {
    using SafeERC20 for IERC20;
    IERC20 public rewardToken;
    IERC20 public multiplierToken;
    MultiplierInterface public multiplier = MultiplierInterface(address(0));
    uint256 public DURATION;
    uint256 public periodFinish;
    uint256 public rewardRate;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 public deployedTime;
    uint256 public multiplierDiscountRange;
    uint256 public boostLevelOneCost;
    uint256 public boostLevelTwoCost;
    uint256 public boostLevelThreeCost;
    uint256 public boostLevelFourCost;
    uint256 public boostLevelFiveCost;
    uint256 public boostLevelSixCost;
    uint256 public boostLevelOneBonus;
    uint256 public boostLevelTwoBonus;
    uint256 public boostLevelThreeBonus;
    uint256 public boostLevelFourBonus;
    uint256 public boostLevelFiveBonus;
    uint256 public boostLevelSixBonus;

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

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event Boost(uint256 level);

    constructor(
        uint256 _duration,
        uint256 _multiplierDiscountRange,
        address _stakingToken,
        address _rewardToken,
        address _multiplierToken,
        uint256 _startTime,
        address _multiplierAddr
    ) public LPTokenWrapper(_startTime) {
        setStakingToken(_stakingToken);
        rewardToken = IERC20(_rewardToken);
        multiplierToken = IERC20(_multiplierToken);
        deployedTime = block.timestamp;
        multiplier = MultiplierInterface(_multiplierAddr);
        multiplierDiscountRange = _multiplierDiscountRange;
        DURATION = _duration;
    }

    function setOwner(address _newOwner) external onlyOwner {
        super.transferOwnership(_newOwner);
    }

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

    // Returns the current rate of rewards per token (doh)
    function rewardPerToken() public view returns (uint256) {
        // Do not distribute rewards before games begin
        if (block.timestamp < startTime) {
            return 0;
        }
        if (_totalSupply == 0) {
            return rewardPerTokenStored;
        }
        // Effective total supply takes into account all the multipliers bought.
        uint256 effectiveTotalSupply = _totalSupply.add(_totalSupplyAccounting);
        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardRate)
                    .mul(1e18)
                    .div(effectiveTotalSupply)
            );
    }

    // Returns the current reward tokens that the user can claim.
    function earned(address account) public view returns (uint256) {
        // Each user has it's own effective balance which is just the staked balance multiplied by boost level multiplier.
        uint256 effectiveBalance = _balances[account].add(
            _balancesAccounting[account]
        );
        return
            effectiveBalance
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account]);
    }

    // Staking function which updates the user balances in the parent contract
    function stake(uint256 amount) public override {
        updateReward(msg.sender);
        require(amount > 0, "Cannot stake 0");
        super.stake(amount);

        // Users that have bought multipliers will have an extra balance added to their stake according to the boost multiplier.
        if (boostLevel[msg.sender] > 0) {
            uint256 prevBalancesAccounting = _balancesAccounting[msg.sender];
            // Calculate and set user's new accounting balance
            uint256 accTotalMultiplier = getTotalMultiplier(msg.sender);
            uint256 newBalancesAccounting = _balances[msg.sender]
                .mul(accTotalMultiplier)
                .div(1e18)
                .sub(_balances[msg.sender]);
            _balancesAccounting[msg.sender] = newBalancesAccounting;
            // Adjust total accounting supply accordingly
            uint256 diffBalancesAccounting = newBalancesAccounting.sub(
                prevBalancesAccounting
            );
            _totalSupplyAccounting = _totalSupplyAccounting.add(
                diffBalancesAccounting
            );
        }

        emit Staked(msg.sender, amount);
    }

    // Withdraw function to remove stake from the pool
    function withdraw(uint256 amount) public override {
        require(amount > 0, "Cannot withdraw 0");
        updateReward(msg.sender);
        super.withdraw(amount);

        // Users who have bought multipliers will have their accounting balances readjusted.
        if (boostLevel[msg.sender] > 0) {
            // The previous extra balance user had
            uint256 prevBalancesAccounting = _balancesAccounting[msg.sender];
            // Calculate and set user's new accounting balance
            uint256 accTotalMultiplier = getTotalMultiplier(msg.sender);
            uint256 newBalancesAccounting = _balances[msg.sender]
                .mul(accTotalMultiplier)
                .div(1e18)
                .sub(_balances[msg.sender]);
            _balancesAccounting[msg.sender] = newBalancesAccounting;
            // Subtract the withdrawn amount from the accounting balance
            // If all tokens are withdrawn the balance will be 0.
            uint256 diffBalancesAccounting = prevBalancesAccounting.sub(
                newBalancesAccounting
            );
            _totalSupplyAccounting = _totalSupplyAccounting.sub(
                diffBalancesAccounting
            );
        }

        emit Withdrawn(msg.sender, amount);
    }

    // Get the earned rewards and withdraw staked tokens
    function exit() external {
        getReward();
        withdraw(balanceOf(msg.sender));
    }

    // Sends out the reward tokens to the user.
    function getReward() public {
        updateReward(msg.sender);
        uint256 reward = earned(msg.sender);
        if (reward > 0) {
            rewards[msg.sender] = 0;
            rewardToken.safeTransfer(msg.sender, reward.mul(96).div(100));
            rewardToken.safeTransfer(devFund, reward.mul(4).div(100));
            emit RewardPaid(msg.sender, reward);
        }
    }

    // Called to start the pool with the reward amount it should distribute
    // The reward period will be the duration of the pool.
    function notifyRewardAmount(uint256 reward) external onlyOwner {
        updateRewardPerTokenStored();
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(DURATION);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(DURATION);
        }
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(DURATION);
        emit RewardAdded(reward);
    }

    // Notify the reward amount without updating time;
    function notifyRewardAmountWithoutUpdateTime(uint256 reward)
        external
        onlyOwner
    {
        updateRewardPerTokenStored();
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(DURATION);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(DURATION);
        }
        emit RewardAdded(reward);
    }

    // Returns the users current multiplier level
    function getLevel(address account) external view returns (uint256) {
        return boostLevel[account];
    }

    // Return the amount spent on multipliers, used for subtracting for future purchases.
    function getSpent(address account) external view returns (uint256) {
        return spentMultiplierTokens[account];
    }

    // Calculate the cost for purchasing a boost.
    function calculateCost(uint256 level) public view returns (uint256) {
        uint256 cycles = calculateCycle(
            deployedTime,
            block.timestamp,
            multiplierDiscountRange
        );
        // Cap it to 5 times
        if (cycles > 5) {
            cycles = 5;
        }
        if (level == 1) {
            return boostLevelOneCost.mul(9**cycles).div(10**cycles);
        } else if (level == 2) {
            return boostLevelTwoCost.mul(9**cycles).div(10**cycles);
        } else if (level == 3) {
            return boostLevelThreeCost.mul(9**cycles).div(10**cycles);
        } else if (level == 4) {
            return boostLevelFourCost.mul(9**cycles).div(10**cycles);
        } else if (level == 5) {
            return boostLevelFiveCost.mul(9**cycles).div(10**cycles);
        } else if (level == 6) {
            return boostLevelSixCost.mul(9**cycles).div(10**cycles);
        }
    }

    // Purchase a multiplier level, same level cannot be purchased twice.
    function purchase(uint256 level) external {
        require(
            boostLevel[msg.sender] <= level,
            "Cannot downgrade level or same level"
        );
        uint256 cost = calculateCost(level);
        // Cost will be reduced by the amount already spent on multipliers.
        uint256 finalCost = cost.sub(spentMultiplierTokens[msg.sender]);

        multiplierToken.safeTransferFrom(msg.sender, devFund, finalCost);

        // Update balances and level
        spentMultiplierTokens[msg.sender] = spentMultiplierTokens[msg.sender]
            .add(finalCost);
        boostLevel[msg.sender] = level;

        // If user has staked balances, then set their new accounting balance
        if (_balances[msg.sender] > 0) {
            // Get the previous accounting balance
            uint256 prevBalancesAccounting = _balancesAccounting[msg.sender];
            // Get the new multiplier
            uint256 accTotalMultiplier = getTotalMultiplier(msg.sender);
            // Calculate new accounting  balance
            uint256 newBalancesAccounting = _balances[msg.sender]
                .mul(accTotalMultiplier)
                .div(1e18)
                .sub(_balances[msg.sender]);
            // Set the accounting balance
            _balancesAccounting[msg.sender] = newBalancesAccounting;
            // Get the difference for adjusting the total accounting balance
            uint256 diffBalancesAccounting = newBalancesAccounting.sub(
                prevBalancesAccounting
            );
            // Adjust the global accounting balance.
            _totalSupplyAccounting = _totalSupplyAccounting.add(
                diffBalancesAccounting
            );
        }

        emit Boost(level);
    }

    // Returns the multiplier for user.
    function getTotalMultiplier(address account) public view returns (uint256) {
        uint256 zzzMultiplier = multiplier.getPermanentMultiplier(account);
        uint256 boostMultiplier;
        if (boostLevel[account] == 1) {
            boostMultiplier = boostLevelOneBonus;
        } else if (boostLevel[account] == 2) {
            boostMultiplier = boostLevelTwoBonus;
        } else if (boostLevel[account] == 3) {
            boostMultiplier = boostLevelThreeBonus;
        } else if (boostLevel[account] == 4) {
            boostMultiplier = boostLevelFourBonus;
        } else if (boostLevel[account] == 5) {
            boostMultiplier = boostLevelFiveBonus;
        } else if (boostLevel[account] == 6) {
            boostMultiplier = boostLevelSixBonus;
        }
        return zzzMultiplier.add(boostMultiplier).add(1 * 10**18);
    }

    // Ejects any remaining tokens from the pool.
    // Callable only after the pool has started and the pools reward distribution period has finished.
    function eject() external onlyOwner {
        require(
            startTime < block.timestamp && block.timestamp >= periodFinish,
            "Cannot eject before period finishes or pool has started"
        );
        uint256 currBalance = rewardToken.balanceOf(address(this));
        rewardToken.safeTransfer(msg.sender, currBalance);
    }

    // Forcefully retire a pool
    // Only sets the period finish to 0
    // This will prevent more rewards from being disbursed
    function kill() external onlyOwner {
        periodFinish = block.timestamp;
    }

    function updateRewardPerTokenStored() internal {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
    }

    function updateReward(address account) internal {
        updateRewardPerTokenStored();
        rewards[account] = earned(account);
        userRewardPerTokenPaid[account] = rewardPerTokenStored;
    }

    function changeBoostLevels(
        uint256 _boostLevelOneCost,
        uint256 _boostLevelTwoCost,
        uint256 _boostLevelThreeCost,
        uint256 _boostLevelFourCost,
        uint256 _boostLevelFiveCost,
        uint256 _boostLevelSixCost,
        uint256 _boostLevelOneBonus,
        uint256 _boostLevelTwoBonus,
        uint256 _boostLevelThreeBonus,
        uint256 _boostLevelFourBonus,
        uint256 _boostLevelFiveBonus,
        uint256 _boostLevelSixBonus
    ) public onlyOwner {
        boostLevelOneCost = _boostLevelOneCost;
        boostLevelTwoCost = _boostLevelTwoCost;
        boostLevelThreeCost = _boostLevelThreeCost;
        boostLevelFourCost = _boostLevelFourCost;
        boostLevelFiveCost = _boostLevelFiveCost;
        boostLevelSixCost = _boostLevelSixCost;

        boostLevelOneBonus = _boostLevelOneBonus;
        boostLevelTwoBonus = _boostLevelTwoBonus;
        boostLevelThreeBonus = _boostLevelThreeBonus;
        boostLevelFourBonus = _boostLevelFourBonus;
        boostLevelFiveBonus = _boostLevelFiveBonus;
        boostLevelSixBonus = _boostLevelSixBonus;
    }

    function calculateCycle(
        uint256 _deployedTime,
        uint256 _currentTime,
        uint256 _duration
    ) public pure returns (uint256) {
        uint256 cycles = (_currentTime.sub(_deployedTime)).div(_duration);
        return cycles;
    }
}

File 2 of 9 : LPTokenWrapper.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

// Using these will cause _mint to be not found in Pool
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";

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

    IERC20 public stakingToken;
    uint256 public startTime;
    address public devFund = 0x3249f8c62640DC8ae2F4Ed14CD03bCA9C6Af98B2;
    // Developer fund
    uint256 public _totalSupply;
    mapping(address => uint256) public _balances;
    uint256 public _totalSupplyAccounting;
    mapping(address => uint256) public _balancesAccounting;

    constructor(uint256 _startTime) public {
        startTime = _startTime;
    }

    // Returns the total staked tokens within the contract
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    // Returns staking balance of the account
    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    // Set the staking token for the contract
    function setStakingToken(address stakingTokenAddress) internal {
        stakingToken = IERC20(stakingTokenAddress);
    }

    // Stake funds into the pool
    function stake(uint256 amount) public virtual {
        // Increment sender's balances and total supply
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        _totalSupply = _totalSupply.add(amount);

        // Transfer funds
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
    }

    // Withdraw staked funds from the pool
    function withdraw(uint256 amount) public virtual {
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
    }
}

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

pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

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

pragma solidity ^0.6.0;

import "../GSN/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.
 */
contract Ownable is Context {
    address private _owner;

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 5 of 9 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 6 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

pragma solidity ^0.6.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 8 of 9 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

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

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

pragma solidity ^0.6.2;

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

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

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

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

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

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

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

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_multiplierDiscountRange","type":"uint256"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_multiplierToken","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"address","name":"_multiplierAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"level","type":"uint256"}],"name":"Boost","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_balancesAccounting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalSupplyAccounting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"boostLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelFiveBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelFiveCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelFourBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelFourCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelOneBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelOneCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelSixBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelSixCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelThreeBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelThreeCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelTwoBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boostLevelTwoCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"name":"calculateCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_deployedTime","type":"uint256"},{"internalType":"uint256","name":"_currentTime","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"calculateCycle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_boostLevelOneCost","type":"uint256"},{"internalType":"uint256","name":"_boostLevelTwoCost","type":"uint256"},{"internalType":"uint256","name":"_boostLevelThreeCost","type":"uint256"},{"internalType":"uint256","name":"_boostLevelFourCost","type":"uint256"},{"internalType":"uint256","name":"_boostLevelFiveCost","type":"uint256"},{"internalType":"uint256","name":"_boostLevelSixCost","type":"uint256"},{"internalType":"uint256","name":"_boostLevelOneBonus","type":"uint256"},{"internalType":"uint256","name":"_boostLevelTwoBonus","type":"uint256"},{"internalType":"uint256","name":"_boostLevelThreeBonus","type":"uint256"},{"internalType":"uint256","name":"_boostLevelFourBonus","type":"uint256"},{"internalType":"uint256","name":"_boostLevelFiveBonus","type":"uint256"},{"internalType":"uint256","name":"_boostLevelSixBonus","type":"uint256"}],"name":"changeBoostLevels","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deployedTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eject","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getSpent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getTotalMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiplier","outputs":[{"internalType":"contract MultiplierInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiplierDiscountRange","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiplierToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmountWithoutUpdateTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"spentMultiplierTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","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":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052733249f8c62640dc8ae2f4ed14cd03bca9c6af98b2600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000a857600080fd5b5060405162003e6d38038062003e6d833981810160405260e0811015620000ce57600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190505050818060018190555050600062000136620002cb60201b60201c565b905080600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350620001e685620002d360201b60201c565b83600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055504260108190555080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508560118190555086600b819055505050505050505062000316565b600033905090565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b613b4780620003266000396000f3fe608060405234801561001057600080fd5b50600436106103825760003560e01c806372f702f3116101de578063ad1d5af41161010f578063df2671cf116100ad578063ebe2b12b1161007c578063ebe2b12b14610d86578063efef39a114610da4578063f2fde38b14610dd2578063f7c618c114610e1657610382565b8063df2671cf14610cae578063e14b441a14610d06578063e64d75bc14610d5e578063e9fad8ee14610d7c57610382565b8063cd3daf9d116100e9578063cd3daf9d14610c36578063d87190a914610c54578063dd51bca114610c72578063df136d6514610c9057610382565b8063ad1d5af414610b23578063bbd2697c14610bc0578063c8f33c9114610c1857610382565b806383a1b1511161017c57806393a1c2841161015657806393a1c28414610a4d578063a1ebfbd214610a81578063a3b78f8314610a9f578063a694fc3a14610af557610382565b806383a1b151146109a35780638b876347146109c15780638da5cb5b14610a1957610382565b80637ccea678116101b85780637ccea6781461090557806380faa57d14610923578063817c89661461094157806382e94ac51461099957610382565b806372f702f31461089557806378e97925146108c95780637b0a47ee146108e757610382565b80633c6b16ab116102b8578063461ac0191161025657806365d0d8741161023057806365d0d874146107bd5780636ebcf607146107db57806370a0823114610833578063715018a61461088b57610382565b8063461ac019146107055780634af18f4f14610723578063510be0141461076557610382565b806341c0e1b51161029257806341c0e1b51461068b57806342603602146106955780634390d2a8146106b357806344579cc9146106e757610382565b80633c6b16ab146106355780633d18b912146106635780633eaaf86b1461066d57610382565b80631a700268116103255780631e487eaf116102ff5780631e487eaf1461057357806322643a461461059157806322e6179b146105e95780632e1a7d4d1461060757610382565b80631a700268146104f35780631b3ed722146105215780631be052891461055557610382565b80630aae105d116103615780630aae105d1461045557806313af40351461047357806316589b6c146104b757806318160ddd146104d557610382565b80628cc2621461038757806301e492df146103df5780630700037d146103fd575b600080fd5b6103c96004803603602081101561039d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e4a565b6040518082815260200191505060405180910390f35b6103e7610fbe565b6040518082815260200191505060405180910390f35b61043f6004803603602081101561041357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fc4565b6040518082815260200191505060405180910390f35b61045d610fdc565b6040518082815260200191505060405180910390f35b6104b56004803603602081101561048957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fe2565b005b6104bf6110b8565b6040518082815260200191505060405180910390f35b6104dd6110be565b6040518082815260200191505060405180910390f35b61051f6004803603602081101561050957600080fd5b81019080803590602001909291905050506110c8565b005b61052961125f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61055d611285565b6040518082815260200191505060405180910390f35b61057b61128b565b6040518082815260200191505060405180910390f35b6105d3600480360360208110156105a757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611291565b6040518082815260200191505060405180910390f35b6105f16112a8565b6040518082815260200191505060405180910390f35b6106336004803603602081101561061d57600080fd5b81019080803590602001909291905050506112ae565b005b6106616004803603602081101561064b57600080fd5b810190808035906020019092919050505061155c565b005b61066b611715565b005b6106756118d3565b6040518082815260200191505060405180910390f35b6106936118d9565b005b61069d6119ac565b6040518082815260200191505060405180910390f35b6106bb6119b2565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106ef6119d8565b6040518082815260200191505060405180910390f35b61070d6119de565b6040518082815260200191505060405180910390f35b61074f6004803603602081101561073957600080fd5b81019080803590602001909291905050506119e4565b6040518082815260200191505060405180910390f35b6107a76004803603602081101561077b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b81565b6040518082815260200191505060405180910390f35b6107c5611b99565b6040518082815260200191505060405180910390f35b61081d600480360360208110156107f157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b9f565b6040518082815260200191505060405180910390f35b6108756004803603602081101561084957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611bb7565b6040518082815260200191505060405180910390f35b610893611c00565b005b61089d611d8b565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108d1611daf565b6040518082815260200191505060405180910390f35b6108ef611db5565b6040518082815260200191505060405180910390f35b61090d611dbb565b6040518082815260200191505060405180910390f35b61092b611dc1565b6040518082815260200191505060405180910390f35b6109836004803603602081101561095757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611dd4565b6040518082815260200191505060405180910390f35b6109a1611e1d565b005b6109ab612067565b6040518082815260200191505060405180910390f35b610a03600480360360208110156109d757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061206d565b6040518082815260200191505060405180910390f35b610a21612085565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a556120af565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a896120d5565b6040518082815260200191505060405180910390f35b610adf60048036036060811015610ab557600080fd5b810190808035906020019092919080359060200190929190803590602001909291905050506120db565b6040518082815260200191505060405180910390f35b610b2160048036036020811015610b0b57600080fd5b8101908080359060200190929190505050612110565b005b610bbe6004803603610180811015610b3a57600080fd5b810190808035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291905050506123be565b005b610c0260048036036020811015610bd657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506124ea565b6040518082815260200191505060405180910390f35b610c20612502565b6040518082815260200191505060405180910390f35b610c3e612508565b6040518082815260200191505060405180910390f35b610c5c6125c4565b6040518082815260200191505060405180910390f35b610c7a6125ca565b6040518082815260200191505060405180910390f35b610c986125d0565b6040518082815260200191505060405180910390f35b610cf060048036036020811015610cc457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506125d6565b6040518082815260200191505060405180910390f35b610d4860048036036020811015610d1c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506128c4565b6040518082815260200191505060405180910390f35b610d6661290d565b6040518082815260200191505060405180910390f35b610d84612913565b005b610d8e61292e565b6040518082815260200191505060405180910390f35b610dd060048036036020811015610dba57600080fd5b8101908080359060200190929190505050612934565b005b610e1460048036036020811015610de857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612d8a565b005b610e1e612f9a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080610ede600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612fc090919063ffffffff16565b9050610fb6601f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fa8670de0b6b3a7640000610f9a610f8b601e60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f7d612508565b61304890919063ffffffff16565b8661309290919063ffffffff16565b61311890919063ffffffff16565b612fc090919063ffffffff16565b915050919050565b60125481565b601f6020528060005260406000206000915090505481565b60155481565b610fea613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6110b581612d8a565b50565b601a5481565b6000600354905090565b6110d0613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611192576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61119a61316a565b600c5442106111c3576111b8600b548261311890919063ffffffff16565b600d81905550611225565b60006111da42600c5461304890919063ffffffff16565b905060006111f3600d548361309290919063ffffffff16565b905061121c600b5461120e8386612fc090919063ffffffff16565b61311890919063ffffffff16565b600d8190555050505b7fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d816040518082815260200191505060405180910390a150565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b60165481565b602080528060005260406000206000915090505481565b60175481565b60008111611324576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b61132d33613188565b61133681613225565b6000602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561150b576000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060006113cd336125d6565b9050600061148e600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611480670de0b6b3a764000061147286600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461309290919063ffffffff16565b61311890919063ffffffff16565b61304890919063ffffffff16565b905080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060006114e9828561304890919063ffffffff16565b90506115008160055461304890919063ffffffff16565b600581905550505050505b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040518082815260200191505060405180910390a250565b611564613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611626576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61162e61316a565b600c5442106116575761164c600b548261311890919063ffffffff16565b600d819055506116b9565b600061166e42600c5461304890919063ffffffff16565b90506000611687600d548361309290919063ffffffff16565b90506116b0600b546116a28386612fc090919063ffffffff16565b61311890919063ffffffff16565b600d8190555050505b42600e819055506116d5600b5442612fc090919063ffffffff16565b600c819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d816040518082815260200191505060405180910390a150565b61171e33613188565b600061172933610e4a565b905060008111156118d0576000601f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506117ec336117a4606461179660608661309290919063ffffffff16565b61311890919063ffffffff16565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166133239092919063ffffffff16565b611881600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611839606461182b60048661309290919063ffffffff16565b61311890919063ffffffff16565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166133239092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b50565b60035481565b6118e1613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b42600c81905550565b60135481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60185481565b60105481565b6000806119f6601054426011546120db565b90506005811115611a0657600590505b6001831415611a4457611a3c81600a0a611a2e8360090a60125461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b6002831415611a8257611a7a81600a0a611a6c8360090a60135461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b6003831415611ac057611ab881600a0a611aaa8360090a60145461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b6004831415611afe57611af681600a0a611ae88360090a60155461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b6005831415611b3c57611b3481600a0a611b268360090a60165461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b6006831415611b7a57611b7281600a0a611b648360090a60175461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b505b919050565b60066020528060005260406000206000915090505481565b60055481565b60046020528060005260406000206000915090505481565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c08613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611cca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b600d5481565b601c5481565b6000611dcf42600c546133c5565b905090565b6000602160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611e25613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ee7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b42600154108015611efa5750600c544210155b611f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180613ab76037913960400191505060405180910390fd5b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611fda57600080fd5b505afa158015611fee573d6000803e3d6000fd5b505050506040513d602081101561200457600080fd5b810190808051906020019092919050505090506120643382600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166133239092919063ffffffff16565b50565b601b5481565b601e6020528060005260406000206000915090505481565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601d5481565b600080612103836120f5878761304890919063ffffffff16565b61311890919063ffffffff16565b9050809150509392505050565b61211933613188565b6000811161218f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b612198816133de565b6000602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561236d576000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600061222f336125d6565b905060006122f0600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122e2670de0b6b3a76400006122d486600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461309290919063ffffffff16565b61311890919063ffffffff16565b61304890919063ffffffff16565b905080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600061234b848361304890919063ffffffff16565b905061236281600554612fc090919063ffffffff16565b600581905550505050505b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d826040518082815260200191505060405180910390a250565b6123c6613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612488576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8b6012819055508a60138190555089601481905550886015819055508760168190555086601781905550856018819055508460198190555083601a8190555082601b8190555081601c8190555080601d81905550505050505050505050505050565b60216020528060005260406000206000915090505481565b600e5481565b600060015442101561251d57600090506125c1565b6000600354141561253257600f5490506125c1565b600061254b600554600354612fc090919063ffffffff16565b90506125bd6125ac8261259e670de0b6b3a7640000612590600d54612582600e54612574611dc1565b61304890919063ffffffff16565b61309290919063ffffffff16565b61309290919063ffffffff16565b61311890919063ffffffff16565b600f54612fc090919063ffffffff16565b9150505b90565b60145481565b60115481565b600f5481565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347469420846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561266257600080fd5b505afa158015612676573d6000803e3d6000fd5b505050506040513d602081101561268c57600080fd5b8101908080519060200190929190505050905060006001602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156126f357601854905061288e565b6002602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561274557601954905061288d565b6003602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561279757601a54905061288c565b6004602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156127e957601b54905061288b565b6005602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561283b57601c54905061288a565b6006602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561288957601d5490505b5b5b5b5b5b6128bb670de0b6b3a76400006128ad8385612fc090919063ffffffff16565b612fc090919063ffffffff16565b92505050919050565b6000602060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60195481565b61291b611715565b61292c61292733611bb7565b6112ae565b565b600c5481565b80602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156129cc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613aee6024913960400191505060405180910390fd5b60006129d7826119e4565b90506000612a2d602060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548361304890919063ffffffff16565b9050612aa033600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166134de909392919063ffffffff16565b612af281602060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612fc090919063ffffffff16565b602060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555082602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612d4e576000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000612c10336125d6565b90506000612cd1600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612cc3670de0b6b3a7640000612cb586600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461309290919063ffffffff16565b61311890919063ffffffff16565b61304890919063ffffffff16565b905080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000612d2c848361304890919063ffffffff16565b9050612d4381600554612fc090919063ffffffff16565b600581905550505050505b7f70b27848abfd4ab169b72857464ef4ae0e45c29525a4deb12dfbb56467295594836040518082815260200191505060405180910390a1505050565b612d92613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612e54576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613a466026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008082840190508381101561303e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600061308a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061359f565b905092915050565b6000808314156130a55760009050613112565b60008284029050828482816130b657fe5b041461310d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613a6c6021913960400191505060405180910390fd5b809150505b92915050565b600061315a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061365f565b905092915050565b600033905090565b613172612508565b600f81905550613180611dc1565b600e81905550565b61319061316a565b61319981610e4a565b601f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600f54601e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b61323a8160035461304890919063ffffffff16565b60038190555061329281600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461304890919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613320338260008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166133239092919063ffffffff16565b50565b6133c08363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613725565b505050565b60008183106133d457816133d6565b825b905092915050565b61343081600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612fc090919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061348881600354612fc090919063ffffffff16565b6003819055506134db33308360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166134de909392919063ffffffff16565b50565b613599846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613725565b50505050565b600083831115829061364c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156136115780820151818401526020810190506135f6565b50505050905090810190601f16801561363e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000808311829061370b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156136d05780820151818401526020810190506136b5565b50505050905090810190601f1680156136fd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161371757fe5b049050809150509392505050565b6060613787826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166138149092919063ffffffff16565b905060008151111561380f578080602001905160208110156137a857600080fd5b810190808051906020019092919050505061380e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613a8d602a913960400191505060405180910390fd5b5b505050565b6060613823848460008561382c565b90509392505050565b606061383785613a32565b6138a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106138f957805182526020820191506020810190506020830392506138d6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461395b576040519150601f19603f3d011682016040523d82523d6000602084013e613960565b606091505b50915091508115613975578092505050613a2a565b6000815111156139885780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156139ef5780820151818401526020810190506139d4565b50505050905090810190601f168015613a1c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b600080823b90506000811191505091905056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420656a656374206265666f726520706572696f642066696e6973686573206f7220706f6f6c20686173207374617274656443616e6e6f7420646f776e6772616465206c6576656c206f722073616d65206c6576656ca2646970667358221220c16f7f0d3400c03bfffb7aa3b4257a313d8cec8c249af37d51bb1dd15652fbe664736f6c634300060c0033000000000000000000000000000000000000000000000000000000000013c680000000000000000000000000000000000000000000000000000000000000d2f000000000000000000000000056015bbe3c01fe05bc30a8a9a9fd9a88917e7db300000000000000000000000066b3037aa8dd64c3ef1aee13a4d1f2509f672d1c00000000000000000000000066b3037aa8dd64c3ef1aee13a4d1f2509f672d1c000000000000000000000000000000000000000000000000000000005f9c7b5800000000000000000000000064912352749e2be98c374b93a57f301f95cf1bff

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103825760003560e01c806372f702f3116101de578063ad1d5af41161010f578063df2671cf116100ad578063ebe2b12b1161007c578063ebe2b12b14610d86578063efef39a114610da4578063f2fde38b14610dd2578063f7c618c114610e1657610382565b8063df2671cf14610cae578063e14b441a14610d06578063e64d75bc14610d5e578063e9fad8ee14610d7c57610382565b8063cd3daf9d116100e9578063cd3daf9d14610c36578063d87190a914610c54578063dd51bca114610c72578063df136d6514610c9057610382565b8063ad1d5af414610b23578063bbd2697c14610bc0578063c8f33c9114610c1857610382565b806383a1b1511161017c57806393a1c2841161015657806393a1c28414610a4d578063a1ebfbd214610a81578063a3b78f8314610a9f578063a694fc3a14610af557610382565b806383a1b151146109a35780638b876347146109c15780638da5cb5b14610a1957610382565b80637ccea678116101b85780637ccea6781461090557806380faa57d14610923578063817c89661461094157806382e94ac51461099957610382565b806372f702f31461089557806378e97925146108c95780637b0a47ee146108e757610382565b80633c6b16ab116102b8578063461ac0191161025657806365d0d8741161023057806365d0d874146107bd5780636ebcf607146107db57806370a0823114610833578063715018a61461088b57610382565b8063461ac019146107055780634af18f4f14610723578063510be0141461076557610382565b806341c0e1b51161029257806341c0e1b51461068b57806342603602146106955780634390d2a8146106b357806344579cc9146106e757610382565b80633c6b16ab146106355780633d18b912146106635780633eaaf86b1461066d57610382565b80631a700268116103255780631e487eaf116102ff5780631e487eaf1461057357806322643a461461059157806322e6179b146105e95780632e1a7d4d1461060757610382565b80631a700268146104f35780631b3ed722146105215780631be052891461055557610382565b80630aae105d116103615780630aae105d1461045557806313af40351461047357806316589b6c146104b757806318160ddd146104d557610382565b80628cc2621461038757806301e492df146103df5780630700037d146103fd575b600080fd5b6103c96004803603602081101561039d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e4a565b6040518082815260200191505060405180910390f35b6103e7610fbe565b6040518082815260200191505060405180910390f35b61043f6004803603602081101561041357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fc4565b6040518082815260200191505060405180910390f35b61045d610fdc565b6040518082815260200191505060405180910390f35b6104b56004803603602081101561048957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fe2565b005b6104bf6110b8565b6040518082815260200191505060405180910390f35b6104dd6110be565b6040518082815260200191505060405180910390f35b61051f6004803603602081101561050957600080fd5b81019080803590602001909291905050506110c8565b005b61052961125f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61055d611285565b6040518082815260200191505060405180910390f35b61057b61128b565b6040518082815260200191505060405180910390f35b6105d3600480360360208110156105a757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611291565b6040518082815260200191505060405180910390f35b6105f16112a8565b6040518082815260200191505060405180910390f35b6106336004803603602081101561061d57600080fd5b81019080803590602001909291905050506112ae565b005b6106616004803603602081101561064b57600080fd5b810190808035906020019092919050505061155c565b005b61066b611715565b005b6106756118d3565b6040518082815260200191505060405180910390f35b6106936118d9565b005b61069d6119ac565b6040518082815260200191505060405180910390f35b6106bb6119b2565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106ef6119d8565b6040518082815260200191505060405180910390f35b61070d6119de565b6040518082815260200191505060405180910390f35b61074f6004803603602081101561073957600080fd5b81019080803590602001909291905050506119e4565b6040518082815260200191505060405180910390f35b6107a76004803603602081101561077b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b81565b6040518082815260200191505060405180910390f35b6107c5611b99565b6040518082815260200191505060405180910390f35b61081d600480360360208110156107f157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b9f565b6040518082815260200191505060405180910390f35b6108756004803603602081101561084957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611bb7565b6040518082815260200191505060405180910390f35b610893611c00565b005b61089d611d8b565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108d1611daf565b6040518082815260200191505060405180910390f35b6108ef611db5565b6040518082815260200191505060405180910390f35b61090d611dbb565b6040518082815260200191505060405180910390f35b61092b611dc1565b6040518082815260200191505060405180910390f35b6109836004803603602081101561095757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611dd4565b6040518082815260200191505060405180910390f35b6109a1611e1d565b005b6109ab612067565b6040518082815260200191505060405180910390f35b610a03600480360360208110156109d757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061206d565b6040518082815260200191505060405180910390f35b610a21612085565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a556120af565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a896120d5565b6040518082815260200191505060405180910390f35b610adf60048036036060811015610ab557600080fd5b810190808035906020019092919080359060200190929190803590602001909291905050506120db565b6040518082815260200191505060405180910390f35b610b2160048036036020811015610b0b57600080fd5b8101908080359060200190929190505050612110565b005b610bbe6004803603610180811015610b3a57600080fd5b810190808035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291905050506123be565b005b610c0260048036036020811015610bd657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506124ea565b6040518082815260200191505060405180910390f35b610c20612502565b6040518082815260200191505060405180910390f35b610c3e612508565b6040518082815260200191505060405180910390f35b610c5c6125c4565b6040518082815260200191505060405180910390f35b610c7a6125ca565b6040518082815260200191505060405180910390f35b610c986125d0565b6040518082815260200191505060405180910390f35b610cf060048036036020811015610cc457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506125d6565b6040518082815260200191505060405180910390f35b610d4860048036036020811015610d1c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506128c4565b6040518082815260200191505060405180910390f35b610d6661290d565b6040518082815260200191505060405180910390f35b610d84612913565b005b610d8e61292e565b6040518082815260200191505060405180910390f35b610dd060048036036020811015610dba57600080fd5b8101908080359060200190929190505050612934565b005b610e1460048036036020811015610de857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612d8a565b005b610e1e612f9a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600080610ede600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612fc090919063ffffffff16565b9050610fb6601f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fa8670de0b6b3a7640000610f9a610f8b601e60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f7d612508565b61304890919063ffffffff16565b8661309290919063ffffffff16565b61311890919063ffffffff16565b612fc090919063ffffffff16565b915050919050565b60125481565b601f6020528060005260406000206000915090505481565b60155481565b610fea613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146110ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6110b581612d8a565b50565b601a5481565b6000600354905090565b6110d0613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611192576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61119a61316a565b600c5442106111c3576111b8600b548261311890919063ffffffff16565b600d81905550611225565b60006111da42600c5461304890919063ffffffff16565b905060006111f3600d548361309290919063ffffffff16565b905061121c600b5461120e8386612fc090919063ffffffff16565b61311890919063ffffffff16565b600d8190555050505b7fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d816040518082815260200191505060405180910390a150565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b60165481565b602080528060005260406000206000915090505481565b60175481565b60008111611324576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f43616e6e6f74207769746864726177203000000000000000000000000000000081525060200191505060405180910390fd5b61132d33613188565b61133681613225565b6000602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561150b576000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060006113cd336125d6565b9050600061148e600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611480670de0b6b3a764000061147286600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461309290919063ffffffff16565b61311890919063ffffffff16565b61304890919063ffffffff16565b905080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060006114e9828561304890919063ffffffff16565b90506115008160055461304890919063ffffffff16565b600581905550505050505b3373ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040518082815260200191505060405180910390a250565b611564613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611626576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61162e61316a565b600c5442106116575761164c600b548261311890919063ffffffff16565b600d819055506116b9565b600061166e42600c5461304890919063ffffffff16565b90506000611687600d548361309290919063ffffffff16565b90506116b0600b546116a28386612fc090919063ffffffff16565b61311890919063ffffffff16565b600d8190555050505b42600e819055506116d5600b5442612fc090919063ffffffff16565b600c819055507fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d816040518082815260200191505060405180910390a150565b61171e33613188565b600061172933610e4a565b905060008111156118d0576000601f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506117ec336117a4606461179660608661309290919063ffffffff16565b61311890919063ffffffff16565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166133239092919063ffffffff16565b611881600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611839606461182b60048661309290919063ffffffff16565b61311890919063ffffffff16565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166133239092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040518082815260200191505060405180910390a25b50565b60035481565b6118e1613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146119a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b42600c81905550565b60135481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60185481565b60105481565b6000806119f6601054426011546120db565b90506005811115611a0657600590505b6001831415611a4457611a3c81600a0a611a2e8360090a60125461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b6002831415611a8257611a7a81600a0a611a6c8360090a60135461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b6003831415611ac057611ab881600a0a611aaa8360090a60145461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b6004831415611afe57611af681600a0a611ae88360090a60155461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b6005831415611b3c57611b3481600a0a611b268360090a60165461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b6006831415611b7a57611b7281600a0a611b648360090a60175461309290919063ffffffff16565b61311890919063ffffffff16565b915050611b7c565b505b919050565b60066020528060005260406000206000915090505481565b60055481565b60046020528060005260406000206000915090505481565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c08613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611cca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b600d5481565b601c5481565b6000611dcf42600c546133c5565b905090565b6000602160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611e25613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611ee7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b42600154108015611efa5750600c544210155b611f4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180613ab76037913960400191505060405180910390fd5b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611fda57600080fd5b505afa158015611fee573d6000803e3d6000fd5b505050506040513d602081101561200457600080fd5b810190808051906020019092919050505090506120643382600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166133239092919063ffffffff16565b50565b601b5481565b601e6020528060005260406000206000915090505481565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601d5481565b600080612103836120f5878761304890919063ffffffff16565b61311890919063ffffffff16565b9050809150509392505050565b61211933613188565b6000811161218f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f43616e6e6f74207374616b65203000000000000000000000000000000000000081525060200191505060405180910390fd5b612198816133de565b6000602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561236d576000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600061222f336125d6565b905060006122f0600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122e2670de0b6b3a76400006122d486600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461309290919063ffffffff16565b61311890919063ffffffff16565b61304890919063ffffffff16565b905080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600061234b848361304890919063ffffffff16565b905061236281600554612fc090919063ffffffff16565b600581905550505050505b3373ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d826040518082815260200191505060405180910390a250565b6123c6613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612488576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8b6012819055508a60138190555089601481905550886015819055508760168190555086601781905550856018819055508460198190555083601a8190555082601b8190555081601c8190555080601d81905550505050505050505050505050565b60216020528060005260406000206000915090505481565b600e5481565b600060015442101561251d57600090506125c1565b6000600354141561253257600f5490506125c1565b600061254b600554600354612fc090919063ffffffff16565b90506125bd6125ac8261259e670de0b6b3a7640000612590600d54612582600e54612574611dc1565b61304890919063ffffffff16565b61309290919063ffffffff16565b61309290919063ffffffff16565b61311890919063ffffffff16565b600f54612fc090919063ffffffff16565b9150505b90565b60145481565b60115481565b600f5481565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347469420846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561266257600080fd5b505afa158015612676573d6000803e3d6000fd5b505050506040513d602081101561268c57600080fd5b8101908080519060200190929190505050905060006001602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156126f357601854905061288e565b6002602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561274557601954905061288d565b6003602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561279757601a54905061288c565b6004602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414156127e957601b54905061288b565b6005602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561283b57601c54905061288a565b6006602160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054141561288957601d5490505b5b5b5b5b5b6128bb670de0b6b3a76400006128ad8385612fc090919063ffffffff16565b612fc090919063ffffffff16565b92505050919050565b6000602060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60195481565b61291b611715565b61292c61292733611bb7565b6112ae565b565b600c5481565b80602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156129cc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613aee6024913960400191505060405180910390fd5b60006129d7826119e4565b90506000612a2d602060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548361304890919063ffffffff16565b9050612aa033600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166134de909392919063ffffffff16565b612af281602060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612fc090919063ffffffff16565b602060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555082602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612d4e576000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000612c10336125d6565b90506000612cd1600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612cc3670de0b6b3a7640000612cb586600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461309290919063ffffffff16565b61311890919063ffffffff16565b61304890919063ffffffff16565b905080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506000612d2c848361304890919063ffffffff16565b9050612d4381600554612fc090919063ffffffff16565b600581905550505050505b7f70b27848abfd4ab169b72857464ef4ae0e45c29525a4deb12dfbb56467295594836040518082815260200191505060405180910390a1505050565b612d92613162565b73ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612e54576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613a466026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008082840190508381101561303e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600061308a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061359f565b905092915050565b6000808314156130a55760009050613112565b60008284029050828482816130b657fe5b041461310d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613a6c6021913960400191505060405180910390fd5b809150505b92915050565b600061315a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061365f565b905092915050565b600033905090565b613172612508565b600f81905550613180611dc1565b600e81905550565b61319061316a565b61319981610e4a565b601f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600f54601e60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b61323a8160035461304890919063ffffffff16565b60038190555061329281600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461304890919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613320338260008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166133239092919063ffffffff16565b50565b6133c08363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613725565b505050565b60008183106133d457816133d6565b825b905092915050565b61343081600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612fc090919063ffffffff16565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061348881600354612fc090919063ffffffff16565b6003819055506134db33308360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166134de909392919063ffffffff16565b50565b613599846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613725565b50505050565b600083831115829061364c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156136115780820151818401526020810190506135f6565b50505050905090810190601f16801561363e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6000808311829061370b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156136d05780820151818401526020810190506136b5565b50505050905090810190601f1680156136fd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161371757fe5b049050809150509392505050565b6060613787826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166138149092919063ffffffff16565b905060008151111561380f578080602001905160208110156137a857600080fd5b810190808051906020019092919050505061380e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613a8d602a913960400191505060405180910390fd5b5b505050565b6060613823848460008561382c565b90509392505050565b606061383785613a32565b6138a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106138f957805182526020820191506020810190506020830392506138d6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461395b576040519150601f19603f3d011682016040523d82523d6000602084013e613960565b606091505b50915091508115613975578092505050613a2a565b6000815111156139885780518082602001fd5b836040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156139ef5780820151818401526020810190506139d4565b50505050905090810190601f168015613a1c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b949350505050565b600080823b90506000811191505091905056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420656a656374206265666f726520706572696f642066696e6973686573206f7220706f6f6c20686173207374617274656443616e6e6f7420646f776e6772616465206c6576656c206f722073616d65206c6576656ca2646970667358221220c16f7f0d3400c03bfffb7aa3b4257a313d8cec8c249af37d51bb1dd15652fbe664736f6c634300060c0033

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

000000000000000000000000000000000000000000000000000000000013c680000000000000000000000000000000000000000000000000000000000000d2f000000000000000000000000056015bbe3c01fe05bc30a8a9a9fd9a88917e7db300000000000000000000000066b3037aa8dd64c3ef1aee13a4d1f2509f672d1c00000000000000000000000066b3037aa8dd64c3ef1aee13a4d1f2509f672d1c000000000000000000000000000000000000000000000000000000005f9c7b5800000000000000000000000064912352749e2be98c374b93a57f301f95cf1bff

-----Decoded View---------------
Arg [0] : _duration (uint256): 1296000
Arg [1] : _multiplierDiscountRange (uint256): 54000
Arg [2] : _stakingToken (address): 0x56015BBE3C01fE05bc30A8a9a9Fd9A88917e7dB3
Arg [3] : _rewardToken (address): 0x66B3037aa8Dd64c3eF1AEE13a4D1F2509F672D1C
Arg [4] : _multiplierToken (address): 0x66B3037aa8Dd64c3eF1AEE13a4D1F2509F672D1C
Arg [5] : _startTime (uint256): 1604090712
Arg [6] : _multiplierAddr (address): 0x64912352749E2BE98c374B93A57F301f95cF1bfF

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000013c680
Arg [1] : 000000000000000000000000000000000000000000000000000000000000d2f0
Arg [2] : 00000000000000000000000056015bbe3c01fe05bc30a8a9a9fd9a88917e7db3
Arg [3] : 00000000000000000000000066b3037aa8dd64c3ef1aee13a4d1f2509f672d1c
Arg [4] : 00000000000000000000000066b3037aa8dd64c3ef1aee13a4d1f2509f672d1c
Arg [5] : 000000000000000000000000000000000000000000000000000000005f9c7b58
Arg [6] : 00000000000000000000000064912352749e2be98c374b93a57f301f95cf1bff


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.