ETH Price: $3,334.46 (-0.27%)

Contract

0x67000dC0860AC241c2CBb45d59d894a20A3CcB0f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw165316472023-02-01 4:41:23695 days ago1675226483IN
0x67000dC0...20A3CcB0f
0 ETH0.0017518517.00965298
Withdraw164553202023-01-21 12:57:35706 days ago1674305855IN
0x67000dC0...20A3CcB0f
0 ETH0.0009825116.22889486
Deposit164553082023-01-21 12:55:11706 days ago1674305711IN
0x67000dC0...20A3CcB0f
0 ETH0.0014929615.14528508
Withdraw151408712022-07-14 12:55:27897 days ago1657803327IN
0x67000dC0...20A3CcB0f
0 ETH0.000842058.33688024
Withdraw151408542022-07-14 12:52:22897 days ago1657803142IN
0x67000dC0...20A3CcB0f
0 ETH0.000726128.65422549
Withdraw150849492022-07-05 21:20:34906 days ago1657056034IN
0x67000dC0...20A3CcB0f
0 ETH0.0017498128.89729424
Deposit150567472022-07-01 13:00:53910 days ago1656680453IN
0x67000dC0...20A3CcB0f
0 ETH0.0017077920.96071738
Withdraw149216552022-06-07 15:40:10934 days ago1654616410IN
0x67000dC0...20A3CcB0f
0 ETH0.0044728257.61791949
Withdraw143881842022-03-15 1:09:501018 days ago1647306590IN
0x67000dC0...20A3CcB0f
0 ETH0.0028688828.40364224
Deposit143704922022-03-12 7:09:411021 days ago1647068981IN
0x67000dC0...20A3CcB0f
0 ETH0.0028391259.50175056
Withdraw143704922022-03-12 7:09:411021 days ago1647068981IN
0x67000dC0...20A3CcB0f
0 ETH0.002581242.62722092
Deposit143704922022-03-12 7:09:411021 days ago1647068981IN
0x67000dC0...20A3CcB0f
0 ETH0.0008962311.00000145
Withdraw143271942022-03-05 13:39:211028 days ago1646487561IN
0x67000dC0...20A3CcB0f
0 ETH0.0026742726.47691616
Withdraw143192112022-03-04 7:57:241029 days ago1646380644IN
0x67000dC0...20A3CcB0f
0 ETH0.0027141926.87217337
Withdraw141879102022-02-11 23:51:431050 days ago1644623503IN
0x67000dC0...20A3CcB0f
0 ETH0.0029742849.11864607
Deposit141878892022-02-11 23:47:431050 days ago1644623263IN
0x67000dC0...20A3CcB0f
0 ETH0.004928660.49143657
Withdraw140232272022-01-17 13:10:341075 days ago1642425034IN
0x67000dC0...20A3CcB0f
0 ETH0.0052771162.89470969
Withdraw140052572022-01-14 18:32:531078 days ago1642185173IN
0x67000dC0...20A3CcB0f
0 ETH0.00940534155.32423226
Deposit140051942022-01-14 18:17:511078 days ago1642184271IN
0x67000dC0...20A3CcB0f
0 ETH0.01309069160.66937882
Withdraw139252262022-01-02 9:35:171090 days ago1641116117IN
0x67000dC0...20A3CcB0f
0 ETH0.0067672667
Withdraw138642182021-12-23 22:47:111100 days ago1640299631IN
0x67000dC0...20A3CcB0f
0 ETH0.0048479580.0772479
Deposit138642172021-12-23 22:47:031100 days ago1640299623IN
0x67000dC0...20A3CcB0f
0 ETH0.0070334171.35013895
Withdraw138546762021-12-22 11:16:341101 days ago1640171794IN
0x67000dC0...20A3CcB0f
0 ETH0.0044843544.39778234
Withdraw138389342021-12-20 0:52:421103 days ago1639961562IN
0x67000dC0...20A3CcB0f
0 ETH0.0044275943.8358352
Withdraw138337612021-12-19 5:49:061104 days ago1639892946IN
0x67000dC0...20A3CcB0f
0 ETH0.0033455333.12284476
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
119198552021-02-24 12:33:391402 days ago1614170019
0x67000dC0...20A3CcB0f
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LaunchPoolStakingWithGuild

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 10 : LaunchPoolStakingWithGuild.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

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

import { LaunchPoolToken } from "./LaunchPoolToken.sol";
import { Guild } from "./Guild.sol";

/// @title Staking contract for farming LPT rewards in return for staking a whitelisted token(s)
/// @author BlockRocket.tech
/// @notice Fork of MasterChef.sol from SushiSwap
/// @dev Only the owner can add new pools
contract LaunchPoolStakingWithGuild is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    /// @dev Details about each user in a pool
    struct UserInfo {
        uint256 amount;     // How many tokens the user has provided to a pool
        uint256 rewardDebt; // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of LPTs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accLptPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws ERC20 tokens to a pool. Here's what happens:
        //   1. The pool's `accLptPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    /// @dev Info of each pool.
    struct PoolInfo {
        IERC20 erc20Token; // Address of token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool; this is a weighting for rewards.
        uint256 lastRewardBlock; // Last block number that LPT distribution has occurred up to endBlock.
        uint256 accLptPerShare; // Per LP token staked, how much LPT earned in pool that users will get
        uint256 maxStakingAmountPerUser; // Max. amount of tokens that can be staked per account/user
    }

    /// @notice Container for holding all rewards
    Guild public rewardGuildBank;

    /// @notice Number of LPT tokens distributed per block, across all pools.
    uint256 public lptPerBlock;

    /// @notice The total amount of reward token available for farming across all pools between start and end block.
    uint256 public maxLPTAvailableForFarming;

    /// @notice List of pools that users can stake into
    PoolInfo[] public poolInfo;

    /// @notice Per pool, info of each user that stakes ERC20 tokens.
    /// @notice Pool ID => User Address => User Info
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;

    /// @notice Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint;

    /// @notice The block number when LPT rewards starts across all pools.
    uint256 public startBlock;

    /// @notice The block number when rewards ends.
    uint256 public endBlock;

    /// @notice Tracks ERC20 tokens added by owner
    mapping(address => bool) isErc20TokenWhitelisted;

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

    /// @param _lpt Address of the LPT reward token
    /// @param _maxLPTAvailableForFarming Maximum number of LPT that will be distributed between the start and end of farming
    /// @param _startBlock Block number when farming will begin for all pools
    /// @param _endBlock Block number when farming will end for all pools
    constructor(
        LaunchPoolToken _lpt,
        uint256 _maxLPTAvailableForFarming,
        uint256 _startBlock,
        uint256 _endBlock
    ) public {
        require(address(_lpt) != address(0), "constructor: _lpt must not be zero address");
        require(_maxLPTAvailableForFarming > 0, "constructor: _maxLPTAvailableForFarming must be greater than zero");

        maxLPTAvailableForFarming = _maxLPTAvailableForFarming;
        startBlock = _startBlock;
        endBlock = _endBlock;

        uint256 numberOfBlocksForFarming = endBlock.sub(startBlock);
        lptPerBlock = maxLPTAvailableForFarming.div(numberOfBlocksForFarming);

        rewardGuildBank = new Guild(IERC20(address(_lpt)), address(this));
    }

    /// @notice Returns the number of pools that have been added by the owner
    /// @return Number of pools
    function numberOfPools() external view returns (uint256) {
        return poolInfo.length;
    }

    /// @notice Create a new LPT pool by whitelisting a new ERC20 token.
    /// @dev Can only be called by the contract owner
    /// @param _allocPoint Governs what percentage of the total LPT rewards this pool and other pools will get
    /// @param _erc20Token Address of the staking token being whitelisted
    /// @param _maxStakingAmountPerUser For this pool, maximum amount per user that can be staked
    /// @param _withUpdate Set to true for updating all pools before adding this one
    function add(uint256 _allocPoint, IERC20 _erc20Token, uint256 _maxStakingAmountPerUser, bool _withUpdate) public onlyOwner {
        require(block.number < endBlock, "add: must be before end");
        address erc20TokenAddress = address(_erc20Token);
        require(erc20TokenAddress != address(0), "add: _erc20Token must not be zero address");
        require(isErc20TokenWhitelisted[erc20TokenAddress] == false, "add: already whitelisted");
        require(_maxStakingAmountPerUser > 0, "add: _maxStakingAmountPerUser must be greater than zero");

        if (_withUpdate) {
            massUpdatePools();
        }

        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            erc20Token : _erc20Token,
            allocPoint : _allocPoint,
            lastRewardBlock : lastRewardBlock,
            accLptPerShare : 0,
            maxStakingAmountPerUser: _maxStakingAmountPerUser
        }));

        isErc20TokenWhitelisted[erc20TokenAddress] = true;
    }

    /// @notice Update a pool's allocation point to increase or decrease its share of contract-level rewards
    /// @notice Can also update the max amount that can be staked per user
    /// @dev Can only be called by the owner
    /// @param _pid ID of the pool being updated
    /// @param _allocPoint New allocation point
    /// @param _maxStakingAmountPerUser Maximum amount that a user can deposit into the far
    /// @param _withUpdate Set to true if you want to update all pools before making this change - it will checkpoint those rewards
    function set(uint256 _pid, uint256 _allocPoint, uint256 _maxStakingAmountPerUser, bool _withUpdate) public onlyOwner {
        require(block.number < endBlock, "set: must be before end");
        require(_pid < poolInfo.length, "set: invalid _pid");
        require(_maxStakingAmountPerUser > 0, "set: _maxStakingAmountPerUser must be greater than zero");

        if (_withUpdate) {
            massUpdatePools();
        }

        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);

        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].maxStakingAmountPerUser = _maxStakingAmountPerUser;
    }

    /// @notice View function to see pending and unclaimed LPTs for a given user
    /// @param _pid ID of the pool where a user has a stake
    /// @param _user Account being queried
    /// @return Amount of LPT tokens due to a user
    function pendingLpt(uint256 _pid, address _user) external view returns (uint256) {
        require(_pid < poolInfo.length, "pendingLpt: invalid _pid");

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];

        uint256 accLptPerShare = pool.accLptPerShare;
        uint256 lpSupply = pool.erc20Token.balanceOf(address(this));

        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 maxEndBlock = block.number <= endBlock ? block.number : endBlock;
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, maxEndBlock);
            uint256 lptReward = multiplier.mul(lptPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accLptPerShare = accLptPerShare.add(lptReward.mul(1e18).div(lpSupply));
        }

        return user.amount.mul(accLptPerShare).div(1e18).sub(user.rewardDebt);
    }

    /// @notice Cycles through the pools to update all of the rewards accrued
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    /// @notice Updates a specific pool to track all of the rewards accrued up to the TX block
    /// @param _pid ID of the pool
    function updatePool(uint256 _pid) public {
        require(_pid < poolInfo.length, "updatePool: invalid _pid");

        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }

        uint256 erc20Supply = pool.erc20Token.balanceOf(address(this));
        if (erc20Supply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }

        uint256 maxEndBlock = block.number <= endBlock ? block.number : endBlock;
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, maxEndBlock);

        // No point in doing any more logic as the rewards have ended
        if (multiplier == 0) {
            return;
        }

        uint256 lptReward = multiplier.mul(lptPerBlock).mul(pool.allocPoint).div(totalAllocPoint);

        pool.accLptPerShare = pool.accLptPerShare.add(lptReward.mul(1e18).div(erc20Supply));
        pool.lastRewardBlock = maxEndBlock;
    }

    /// @notice Where any user can stake their ERC20 tokens into a pool in order to farm $LPT
    /// @param _pid ID of the pool
    /// @param _amount Amount of ERC20 being staked
    function deposit(uint256 _pid, uint256 _amount) external {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        require(user.amount.add(_amount) <= pool.maxStakingAmountPerUser, "deposit: can not exceed max staking amount per user");

        updatePool(_pid);

        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accLptPerShare).div(1e18).sub(user.rewardDebt);
            if (pending > 0) {
                safeLptTransfer(msg.sender, pending);
            }
        }

        if (_amount > 0) {
            pool.erc20Token.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = user.amount.add(_amount);
        }

        user.rewardDebt = user.amount.mul(pool.accLptPerShare).div(1e18);
        emit Deposit(msg.sender, _pid, _amount);
    }

    /// @notice Allows a user to withdraw any ERC20 tokens staked in a pool
    /// @dev Partial withdrawals permitted
    /// @param _pid Pool ID
    /// @param _amount Being withdrawn
    function withdraw(uint256 _pid, uint256 _amount) external {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        require(user.amount >= _amount, "withdraw: _amount not good");

        updatePool(_pid);

        uint256 pending = user.amount.mul(pool.accLptPerShare).div(1e18).sub(user.rewardDebt);
        if (pending > 0) {
            safeLptTransfer(msg.sender, pending);
        }

        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.erc20Token.safeTransfer(address(msg.sender), _amount);
        }

        user.rewardDebt = user.amount.mul(pool.accLptPerShare).div(1e18);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    /// @notice Emergency only. Should the rewards issuance mechanism fail, people can still withdraw their stake
    /// @param _pid Pool ID
    function emergencyWithdraw(uint256 _pid) external {
        require(_pid < poolInfo.length, "updatePool: invalid _pid");

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

        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;

        pool.erc20Token.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }

    ////////////
    // Private /
    ////////////

    /// @dev Safe LPT transfer function, just in case if rounding error causes pool to not have enough LPTs.
    /// @param _to Whom to send LPT into
    /// @param _amount of LPT to send
    function safeLptTransfer(address _to, uint256 _amount) private {
        uint256 lptBal = rewardGuildBank.tokenBalance();
        if (_amount > lptBal) {
            rewardGuildBank.withdrawTo(_to, lptBal);
        } else {
            rewardGuildBank.withdrawTo(_to, _amount);
        }
    }

    /// @notice Return reward multiplier over the given _from to _to block.
    /// @param _from Block number
    /// @param _to Block number
    /// @return Number of blocks that have passed
    function getMultiplier(uint256 _from, uint256 _to) private view returns (uint256) {
        return _to.sub(_from);
    }
}

File 2 of 10 : Guild.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract Guild {
    IERC20 public token;

    address public stakingContract;

    constructor(IERC20 _token, address _stakingContract) public {
        token = _token;
        stakingContract = _stakingContract;
    }

    function withdrawTo(address _recipient, uint256 _amount) external {
        require(msg.sender == stakingContract, "Guild.withdrawTo: Only staking contract");
        token.transfer(_recipient, _amount);
    }

    function tokenBalance() external returns (uint256) {
        return token.balanceOf(address(this));
    }
}

File 3 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 4 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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 5 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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 6 of 10 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // 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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

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

pragma solidity >=0.6.0 <0.8.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.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () 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 9 of 10 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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 10 of 10 : LaunchPoolToken.sol
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

// Copyright 2020 Compound Labs, Inc.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
// 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

contract LaunchPoolToken {
    /// @notice EIP-20 token name for this token
    string public constant name = "Launchpool token";

    /// @notice EIP-20 token symbol for this token
    string public constant symbol = "LPOOL";

    /// @notice EIP-20 token decimals for this token
    uint8 public constant decimals = 18;

    /// @notice Total number of tokens in circulation
    uint public totalSupply;

    /// @notice Allowance amounts on behalf of others
    mapping (address => mapping (address => uint96)) internal allowances;

    /// @notice Official record of token balances for each account
    mapping (address => uint96) internal balances;

    /// @notice A record of each accounts delegate
    mapping (address => address) public delegates;

    /// @notice A checkpoint for marking number of votes from a given block
    struct Checkpoint {
        uint32 fromBlock;
        uint96 votes;
    }

    /// @notice A record of votes checkpoints for each account, by index
    mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;

    /// @notice The number of checkpoints for each account
    mapping (address => uint32) public numCheckpoints;

    /// @notice The EIP-712 typehash for the contract's domain
    bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");

    /// @notice The EIP-712 typehash for the delegation struct used by the contract
    bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");

    /// @notice A record of states for signing / validating signatures
    mapping (address => uint) public nonces;

    /// @notice An event thats emitted when an account changes its delegate
    event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);

    /// @notice An event thats emitted when a delegate account's vote balance changes
    event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);

    /// @notice The standard EIP-20 transfer event
    event Transfer(address indexed from, address indexed to, uint256 amount);

    /// @notice The standard EIP-20 approval event
    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /**
     * @notice Construct a new Fuel token
     * @param initialSupply The initial supply minted at deployment
     * @param account The initial account to grant all the tokens
     */
    constructor(uint initialSupply, address account) public {
        totalSupply = safe96(initialSupply, "Token::constructor:amount exceeds 96 bits");
        balances[account] = uint96(initialSupply);
        emit Transfer(address(0), account, initialSupply);
    }

    /**
     * @notice Get the number of tokens `spender` is approved to spend on behalf of `account`
     * @param account The address of the account holding the funds
     * @param spender The address of the account spending the funds
     * @return The number of tokens approved
     */
    function allowance(address account, address spender) external view returns (uint) {
        return allowances[account][spender];
    }

    /**
     * @notice Approve `spender` to transfer up to `amount` from `src`
     * @dev This will overwrite the approval amount for `spender`
     *  and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
     * @param spender The address of the account which may transfer tokens
     * @param rawAmount The number of tokens that are approved (2^256-1 means infinite)
     * @return Whether or not the approval succeeded
     */
    function approve(address spender, uint rawAmount) external returns (bool) {
        uint96 amount;
        if (rawAmount == uint(-1)) {
            amount = uint96(-1);
        } else {
            amount = safe96(rawAmount, "Token::approve: amount exceeds 96 bits");
        }

        allowances[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);
        return true;
    }

    /**
     * @notice Get the number of tokens held by the `account`
     * @param account The address of the account to get the balance of
     * @return The number of tokens held
     */
    function balanceOf(address account) external view returns (uint) {
        return balances[account];
    }

    /**
     * @notice Burn `amount` tokens
     * @param rawAmount The number of tokens to burn
     */
    function burn(uint rawAmount) external {
        uint96 amount = safe96(rawAmount, "Token::burn: amount exceeds 96 bits");
        _burnTokens(msg.sender, amount);
    }

    /**
     * @notice Transfer `amount` tokens from `msg.sender` to `dst`
     * @param dst The address of the destination account
     * @param rawAmount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transfer(address dst, uint rawAmount) external returns (bool) {
        uint96 amount = safe96(rawAmount, "Token::transfer: amount exceeds 96 bits");
        _transferTokens(msg.sender, dst, amount);
        return true;
    }

    /**
     * @notice Transfer `amount` tokens from `src` to `dst`
     * @param src The address of the source account
     * @param dst The address of the destination account
     * @param rawAmount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transferFrom(address src, address dst, uint rawAmount) external returns (bool) {
        address spender = msg.sender;
        uint96 spenderAllowance = allowances[src][spender];
        uint96 amount = safe96(rawAmount, "Token::approve: amount exceeds 96 bits");

        if (spender != src && spenderAllowance != uint96(-1)) {
            uint96 newAllowance = sub96(spenderAllowance, amount, "Token::transferFrom: transfer amount exceeds spender allowance");
            allowances[src][spender] = newAllowance;

            emit Approval(src, spender, newAllowance);
        }

        _transferTokens(src, dst, amount);
        return true;
    }

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegatee The address to delegate votes to
     */
    function delegate(address delegatee) public {
        return _delegate(msg.sender, delegatee);
    }

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s) public {
        bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), getChainId(), address(this)));
        bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "Token::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "Token::delegateBySig: invalid nonce");
        require(now <= expiry, "Token::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

    /**
     * @notice Gets the current votes balance for `account`
     * @param account The address to get votes balance
     * @return The number of current votes for `account`
     */
    function getCurrentVotes(address account) external view returns (uint96) {
        uint32 nCheckpoints = numCheckpoints[account];
        return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
    }

    /**
     * @notice Determine the prior number of votes for an account as of a block number
     * @dev Block number must be a finalized block or else this function will revert to prevent misinformation.
     * @param account The address of the account to check
     * @param blockNumber The block number to get the vote balance at
     * @return The number of votes the account had as of the given block
     */
    function getPriorVotes(address account, uint blockNumber) public view returns (uint96) {
        require(blockNumber < block.number, "Token::getPriorVotes: not yet determined");

        uint32 nCheckpoints = numCheckpoints[account];
        if (nCheckpoints == 0) {
            return 0;
        }

        // First check most recent balance
        if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
            return checkpoints[account][nCheckpoints - 1].votes;
        }

        // Next check implicit zero balance
        if (checkpoints[account][0].fromBlock > blockNumber) {
            return 0;
        }

        uint32 lower = 0;
        uint32 upper = nCheckpoints - 1;
        while (upper > lower) {
            uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
            Checkpoint memory cp = checkpoints[account][center];
            if (cp.fromBlock == blockNumber) {
                return cp.votes;
            } else if (cp.fromBlock < blockNumber) {
                lower = center;
            } else {
                upper = center - 1;
            }
        }
        return checkpoints[account][lower].votes;
    }

    function _delegate(address delegator, address delegatee) internal {
        address currentDelegate = delegates[delegator];
        uint96 delegatorBalance = balances[delegator];
        delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _transferTokens(address src, address dst, uint96 amount) internal {
        require(src != address(0), "Token::_transferTokens: cannot transfer from the zero address");
        require(dst != address(0), "Token::_transferTokens: cannot transfer to the zero address");

        balances[src] = sub96(balances[src], amount, "Token::_transferTokens: transfer amount exceeds balance");
        balances[dst] = add96(balances[dst], amount, "Token::_transferTokens: transfer amount overflows");
        emit Transfer(src, dst, amount);

        _moveDelegates(delegates[src], delegates[dst], amount);
    }

    function _mintTokens(address dst, uint96 amount) internal {
        require(dst != address(0), "Token::_mintTokens: cannot transfer to the zero address");
        uint96 supply = safe96(totalSupply, "Token::_mintTokens: totalSupply exceeds 96 bits");
        totalSupply = add96(supply, amount, "Token::_mintTokens: totalSupply exceeds 96 bits");
        balances[dst] = add96(balances[dst], amount, "Token::_mintTokens: transfer amount overflows");
        emit Transfer(address(0), dst, amount);

        _moveDelegates(address(0), delegates[dst], amount);
    }

    function _burnTokens(address src, uint96 amount) internal {
        uint96 supply = safe96(totalSupply, "Token::_burnTokens: totalSupply exceeds 96 bits");
        totalSupply = sub96(supply, amount, "Token::_burnTokens:totalSupply underflow");
        balances[src] = sub96(balances[src], amount, "Token::_burnTokens: amount overflows");
        emit Transfer(src, address(0), amount);

        _moveDelegates(delegates[src], address(0), amount);
    }

    function _moveDelegates(address srcRep, address dstRep, uint96 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint96 srcRepNew = sub96(srcRepOld, amount, "Token::_moveVotes: vote amount underflows");
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint96 dstRepNew = add96(dstRepOld, amount, "Token::_moveVotes: vote amount overflows");
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

    function _writeCheckpoint(address delegatee, uint32 nCheckpoints, uint96 oldVotes, uint96 newVotes) internal {
        uint32 blockNumber = safe32(block.number, "Token::_writeCheckpoint: block number exceeds 32 bits");

        if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
            checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
        } else {
            checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
            numCheckpoints[delegatee] = nCheckpoints + 1;
        }

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

    function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function safe96(uint n, string memory errorMessage) internal pure returns (uint96) {
        require(n < 2**96, errorMessage);
        return uint96(n);
    }

    function add96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) {
        uint96 c = a + b;
        require(c >= a, errorMessage);
        return c;
    }

    function sub96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) {
        require(b <= a, errorMessage);
        return a - b;
    }

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}

Settings
{
  "metadata": {
    "useLiteralContent": false
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract LaunchPoolToken","name":"_lpt","type":"address"},{"internalType":"uint256","name":"_maxLPTAvailableForFarming","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_endBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_erc20Token","type":"address"},{"internalType":"uint256","name":"_maxStakingAmountPerUser","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lptPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxLPTAvailableForFarming","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfPools","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingLpt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"erc20Token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accLptPerShare","type":"uint256"},{"internalType":"uint256","name":"maxStakingAmountPerUser","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardGuildBank","outputs":[{"internalType":"contract Guild","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint256","name":"_maxStakingAmountPerUser","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620021d7380380620021d7833981810160405260808110156200003757600080fd5b508051602082015160408301516060909301519192909160006200005a620001e9565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038416620000eb5760405162461bcd60e51b815260040180806020018281038252602a8152602001806200216c602a913960400191505060405180910390fd5b600083116200012c5760405162461bcd60e51b8152600401808060200182810382526041815260200180620021966041913960600191505060405180910390fd5b6003839055600782905560088190556000620001558284620001ed602090811b6200121517901c565b905062000173816003546200023e60201b6200125e1790919060201c565b6002556040518590309062000188906200038c565b6001600160a01b03928316815291166020820152604080519182900301906000f080158015620001bc573d6000803e3d6000fd5b50600180546001600160a01b0319166001600160a01b0392909216919091179055506200039a9350505050565b3390565b60006200023783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506200028860201b60201c565b9392505050565b60006200023783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506200032360201b60201c565b600081848411156200031b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620002df578181015183820152602001620002c5565b50505050905090810190601f1680156200030d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183620003755760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315620002df578181015183820152602001620002c5565b5060008385816200038257fe5b0495945050505050565b6103098062001e6383390190565b611ab980620003aa6000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80637b7e59d0116100ad578063ce99ad4211610071578063ce99ad4214610324578063d64e3c2f1461032c578063e251071e14610334578063e2bbb1581461033c578063f2fde38b1461035f5761012c565b80637b7e59d0146102245780638862445a146102505780638da5cb5b1461028157806393f1a40b146102a5578063988d7a60146102ea5761012c565b806351eb05a6116100f457806351eb05a6146101d25780635312ea8e146101ef578063630b5ba11461020c5780636f682a5314610214578063715018a61461021c5761012c565b8063083c6323146101315780631526fe271461014b57806317caf6f11461019d578063441a3e70146101a557806348cd4cb1146101ca575b600080fd5b610139610385565b60408051918252519081900360200190f35b6101686004803603602081101561016157600080fd5b503561038b565b604080516001600160a01b03909616865260208601949094528484019290925260608401526080830152519081900360a00190f35b6101396103d3565b6101c8600480360360408110156101bb57600080fd5b50803590602001356103d9565b005b61013961054b565b6101c8600480360360208110156101e857600080fd5b5035610551565b6101c86004803603602081101561020557600080fd5b50356106fa565b6101c86107e4565b610139610807565b6101c861080d565b6101396004803603604081101561023a57600080fd5b50803590602001356001600160a01b03166108af565b6101c86004803603608081101561026657600080fd5b50803590602081013590604081013590606001351515610a85565b610289610c59565b604080516001600160a01b039092168252519081900360200190f35b6102d1600480360360408110156102bb57600080fd5b50803590602001356001600160a01b0316610c68565b6040805192835260208301919091528051918290030190f35b6101c86004803603608081101561030057600080fd5b508035906001600160a01b0360208201351690604081013590606001351515610c8c565b610289610f9a565b610139610fa9565b610139610faf565b6101c86004803603604081101561035257600080fd5b5080359060200135610fb5565b6101c86004803603602081101561037557600080fd5b50356001600160a01b031661111d565b60085481565b6004818154811061039857fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b60065481565b6000600483815481106103e857fe5b6000918252602080832086845260058083526040808620338752909352919093208054929091029092019250831115610468576040805162461bcd60e51b815260206004820152601a60248201527f77697468647261773a205f616d6f756e74206e6f7420676f6f64000000000000604482015290519081900360640190fd5b61047184610551565b60006104ae82600101546104a8670de0b6b3a76400006104a2876003015487600001546112a090919063ffffffff16565b9061125e565b90611215565b905080156104c0576104c033826112f9565b83156104ea5781546104d29085611215565b825582546104ea906001600160a01b0316338661145a565b6003830154825461050891670de0b6b3a7640000916104a2916112a0565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b60075481565b60045481106105a2576040805162461bcd60e51b81526020600482015260186024820152771d5c19185d19541bdbdb0e881a5b9d985b1a590817dc1a5960421b604482015290519081900360640190fd5b6000600482815481106105b157fe5b90600052602060002090600502019050806002015443116105d257506106f7565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561061c57600080fd5b505afa158015610630573d6000803e3d6000fd5b505050506040513d602081101561064657600080fd5b505190508061065c5750436002909101556106f7565b600060085443111561067057600854610672565b435b905060006106848460020154836114ac565b90508061069457505050506106f7565b60006106bf6006546104a287600101546106b9600254876112a090919063ffffffff16565b906112a0565b90506106e56106da856104a284670de0b6b3a76400006112a0565b6003870154906114b8565b60038601555050600290920191909155505b50565b600454811061074b576040805162461bcd60e51b81526020600482015260186024820152771d5c19185d19541bdbdb0e881a5b9d985b1a590817dc1a5960421b604482015290519081900360640190fd5b60006004828154811061075a57fe5b600091825260208083208584526005808352604080862033808852945285208054868255600182019690965593020180549094509192916107a7916001600160a01b03909116908361145a565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60045460005b81811015610803576107fb81610551565b6001016107ea565b5050565b60045490565b610815611512565b6000546001600160a01b03908116911614610865576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6004546000908310610908576040805162461bcd60e51b815260206004820152601860248201527f70656e64696e674c70743a20696e76616c6964205f7069640000000000000000604482015290519081900360640190fd5b60006004848154811061091757fe5b60009182526020808320878452600580835260408086206001600160a01b03808b16885290855281872060039390960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b15801561099057600080fd5b505afa1580156109a4573d6000803e3d6000fd5b505050506040513d60208110156109ba57600080fd5b50516002850154909150431180156109d157508015155b15610a4d5760006008544311156109ea576008546109ec565b435b905060006109fe8660020154836114ac565b90506000610a256006546104a289600101546106b9600254876112a090919063ffffffff16565b9050610a47610a40856104a284670de0b6b3a76400006112a0565b86906114b8565b94505050505b610a7883600101546104a8670de0b6b3a76400006104a28688600001546112a090919063ffffffff16565b9450505050505b92915050565b610a8d611512565b6000546001600160a01b03908116911614610add576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b6008544310610b33576040805162461bcd60e51b815260206004820152601760248201527f7365743a206d757374206265206265666f726520656e64000000000000000000604482015290519081900360640190fd5b6004548410610b7d576040805162461bcd60e51b81526020600482015260116024820152701cd95d0e881a5b9d985b1a590817dc1a59607a1b604482015290519081900360640190fd5b60008211610bbc5760405162461bcd60e51b815260040180806020018281038252603781526020018061194f6037913960400191505060405180910390fd5b8015610bca57610bca6107e4565b610c0783610c0160048781548110610bde57fe5b90600052602060002090600502016001015460065461121590919063ffffffff16565b906114b8565b6006819055508260048581548110610c1b57fe5b9060005260206000209060050201600101819055508160048581548110610c3e57fe5b90600052602060002090600502016004018190555050505050565b6000546001600160a01b031690565b60056020908152600092835260408084209091529082529020805460019091015482565b610c94611512565b6000546001600160a01b03908116911614610ce4576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b6008544310610d3a576040805162461bcd60e51b815260206004820152601760248201527f6164643a206d757374206265206265666f726520656e64000000000000000000604482015290519081900360640190fd5b826001600160a01b038116610d805760405162461bcd60e51b8152600401808060200182810382526029815260200180611a5b6029913960400191505060405180910390fd5b6001600160a01b03811660009081526009602052604090205460ff1615610dee576040805162461bcd60e51b815260206004820152601860248201527f6164643a20616c72656164792077686974656c69737465640000000000000000604482015290519081900360640190fd5b60008311610e2d5760405162461bcd60e51b81526004018080602001828103825260378152602001806119fa6037913960400191505060405180910390fd5b8115610e3b57610e3b6107e4565b60006007544311610e4e57600754610e50565b435b600654909150610e6090876114b8565b6006556040805160a0810182526001600160a01b039687168152602080820198895281830193845260006060830181815260808401988952600480546001808201835591845294517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600590960295860180546001600160a01b031916918d169190911790559a517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c85015594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d84015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e83015595517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f909101559190941684526009909252509020805460ff19169091179055565b6001546001600160a01b031681565b60025481565b60035481565b600060048381548110610fc457fe5b60009182526020808320868452600580835260408086203387529093529190932091029091016004810154825491935090610fff90856114b8565b111561103c5760405162461bcd60e51b81526004018080602001828103825260338152602001806119a76033913960400191505060405180910390fd5b61104584610551565b80541561109157600061107d82600101546104a8670de0b6b3a76400006104a2876003015487600001546112a090919063ffffffff16565b9050801561108f5761108f33826112f9565b505b82156110bd5781546110ae906001600160a01b0316333086611516565b80546110ba90846114b8565b81555b600382015481546110db91670de0b6b3a7640000916104a2916112a0565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b611125611512565b6000546001600160a01b03908116911614611175576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b6001600160a01b0381166111ba5760405162461bcd60e51b81526004018080602001828103825260268152602001806119036026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061125783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611576565b9392505050565b600061125783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061160d565b6000826112af57506000610a7f565b828202828482816112bc57fe5b04146112575760405162461bcd60e51b81526004018080602001828103825260218152602001806119866021913960400191505060405180910390fd5b60015460408051639e1a4d1960e01b815290516000926001600160a01b031691639e1a4d1991600480830192602092919082900301818787803b15801561133f57600080fd5b505af1158015611353573d6000803e3d6000fd5b505050506040513d602081101561136957600080fd5b50519050808211156113e7576001546040805163040b850f60e31b81526001600160a01b038681166004830152602482018590529151919092169163205c287891604480830192600092919082900301818387803b1580156113ca57600080fd5b505af11580156113de573d6000803e3d6000fd5b50505050611455565b6001546040805163040b850f60e31b81526001600160a01b038681166004830152602482018690529151919092169163205c287891604480830192600092919082900301818387803b15801561143c57600080fd5b505af1158015611450573d6000803e3d6000fd5b505050505b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611455908490611672565b60006112578284611215565b600082820183811015611257576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611570908590611672565b50505050565b600081848411156116055760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115ca5781810151838201526020016115b2565b50505050905090810190601f1680156115f75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361165c5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156115ca5781810151838201526020016115b2565b50600083858161166857fe5b0495945050505050565b60606116c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117239092919063ffffffff16565b805190915015611455578080602001905160208110156116e657600080fd5b50516114555760405162461bcd60e51b815260040180806020018281038252602a815260200180611a31602a913960400191505060405180910390fd5b6060611732848460008561173a565b949350505050565b60608247101561177b5760405162461bcd60e51b81526004018080602001828103825260268152602001806119296026913960400191505060405180910390fd5b61178485611896565b6117d5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106118145780518252601f1990920191602091820191016117f5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611876576040519150601f19603f3d011682016040523d82523d6000602084013e61187b565b606091505b509150915061188b82828661189c565b979650505050505050565b3b151590565b606083156118ab575081611257565b8251156118bb5782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156115ca5781810151838201526020016115b256fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c7365743a205f6d61785374616b696e67416d6f756e7450657255736572206d7573742062652067726561746572207468616e207a65726f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f776465706f7369743a2063616e206e6f7420657863656564206d6178207374616b696e6720616d6f756e742070657220757365724f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726164643a205f6d61785374616b696e67416d6f756e7450657255736572206d7573742062652067726561746572207468616e207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565646164643a205f6572633230546f6b656e206d757374206e6f74206265207a65726f2061646472657373a26469706673582212204f3d5e19b38fcc2a6eb346afe817570a0b6b96123db4cfe99b6c528a5a080af264736f6c634300060c0033608060405234801561001057600080fd5b506040516103093803806103098339818101604052604081101561003357600080fd5b508051602090910151600080546001600160a01b039384166001600160a01b0319918216179091556001805493909216921691909117905561028f8061007a6000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063205c2878146100515780639e1a4d191461007f578063ee99205c14610099578063fc0c546a146100bd575b600080fd5b61007d6004803603604081101561006757600080fd5b506001600160a01b0381351690602001356100c5565b005b610087610197565b60408051918252519081900360200190f35b6100a1610214565b604080516001600160a01b039092168252519081900360200190f35b6100a1610223565b6001546001600160a01b0316331461010e5760405162461bcd60e51b81526004018080602001828103825260278152602001806102336027913960400191505060405180910390fd5b600080546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169263a9059cbb92604480820193602093909283900390910190829087803b15801561016757600080fd5b505af115801561017b573d6000803e3d6000fd5b505050506040513d602081101561019157600080fd5b50505050565b60008054604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156101e357600080fd5b505afa1580156101f7573d6000803e3d6000fd5b505050506040513d602081101561020d57600080fd5b5051905090565b6001546001600160a01b031681565b6000546001600160a01b03168156fe4775696c642e7769746864726177546f3a204f6e6c79207374616b696e6720636f6e7472616374a2646970667358221220e5e76c6b6c1eae42695da706efda884d84b0d8d8ca88c955c93ae7fee631138064736f6c634300060c0033636f6e7374727563746f723a205f6c7074206d757374206e6f74206265207a65726f2061646472657373636f6e7374727563746f723a205f6d61784c5054417661696c61626c65466f724661726d696e67206d7573742062652067726561746572207468616e207a65726f0000000000000000000000006149c26cd2f7b5ccdb32029af817123f6e37df5b000000000000000000000000000000000000000000003341cf0930c38668c0000000000000000000000000000000000000000000000000000000000000b5fbe40000000000000000000000000000000000000000000000000000000000bec0e5

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80637b7e59d0116100ad578063ce99ad4211610071578063ce99ad4214610324578063d64e3c2f1461032c578063e251071e14610334578063e2bbb1581461033c578063f2fde38b1461035f5761012c565b80637b7e59d0146102245780638862445a146102505780638da5cb5b1461028157806393f1a40b146102a5578063988d7a60146102ea5761012c565b806351eb05a6116100f457806351eb05a6146101d25780635312ea8e146101ef578063630b5ba11461020c5780636f682a5314610214578063715018a61461021c5761012c565b8063083c6323146101315780631526fe271461014b57806317caf6f11461019d578063441a3e70146101a557806348cd4cb1146101ca575b600080fd5b610139610385565b60408051918252519081900360200190f35b6101686004803603602081101561016157600080fd5b503561038b565b604080516001600160a01b03909616865260208601949094528484019290925260608401526080830152519081900360a00190f35b6101396103d3565b6101c8600480360360408110156101bb57600080fd5b50803590602001356103d9565b005b61013961054b565b6101c8600480360360208110156101e857600080fd5b5035610551565b6101c86004803603602081101561020557600080fd5b50356106fa565b6101c86107e4565b610139610807565b6101c861080d565b6101396004803603604081101561023a57600080fd5b50803590602001356001600160a01b03166108af565b6101c86004803603608081101561026657600080fd5b50803590602081013590604081013590606001351515610a85565b610289610c59565b604080516001600160a01b039092168252519081900360200190f35b6102d1600480360360408110156102bb57600080fd5b50803590602001356001600160a01b0316610c68565b6040805192835260208301919091528051918290030190f35b6101c86004803603608081101561030057600080fd5b508035906001600160a01b0360208201351690604081013590606001351515610c8c565b610289610f9a565b610139610fa9565b610139610faf565b6101c86004803603604081101561035257600080fd5b5080359060200135610fb5565b6101c86004803603602081101561037557600080fd5b50356001600160a01b031661111d565b60085481565b6004818154811061039857fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b60065481565b6000600483815481106103e857fe5b6000918252602080832086845260058083526040808620338752909352919093208054929091029092019250831115610468576040805162461bcd60e51b815260206004820152601a60248201527f77697468647261773a205f616d6f756e74206e6f7420676f6f64000000000000604482015290519081900360640190fd5b61047184610551565b60006104ae82600101546104a8670de0b6b3a76400006104a2876003015487600001546112a090919063ffffffff16565b9061125e565b90611215565b905080156104c0576104c033826112f9565b83156104ea5781546104d29085611215565b825582546104ea906001600160a01b0316338661145a565b6003830154825461050891670de0b6b3a7640000916104a2916112a0565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b60075481565b60045481106105a2576040805162461bcd60e51b81526020600482015260186024820152771d5c19185d19541bdbdb0e881a5b9d985b1a590817dc1a5960421b604482015290519081900360640190fd5b6000600482815481106105b157fe5b90600052602060002090600502019050806002015443116105d257506106f7565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561061c57600080fd5b505afa158015610630573d6000803e3d6000fd5b505050506040513d602081101561064657600080fd5b505190508061065c5750436002909101556106f7565b600060085443111561067057600854610672565b435b905060006106848460020154836114ac565b90508061069457505050506106f7565b60006106bf6006546104a287600101546106b9600254876112a090919063ffffffff16565b906112a0565b90506106e56106da856104a284670de0b6b3a76400006112a0565b6003870154906114b8565b60038601555050600290920191909155505b50565b600454811061074b576040805162461bcd60e51b81526020600482015260186024820152771d5c19185d19541bdbdb0e881a5b9d985b1a590817dc1a5960421b604482015290519081900360640190fd5b60006004828154811061075a57fe5b600091825260208083208584526005808352604080862033808852945285208054868255600182019690965593020180549094509192916107a7916001600160a01b03909116908361145a565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60045460005b81811015610803576107fb81610551565b6001016107ea565b5050565b60045490565b610815611512565b6000546001600160a01b03908116911614610865576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6004546000908310610908576040805162461bcd60e51b815260206004820152601860248201527f70656e64696e674c70743a20696e76616c6964205f7069640000000000000000604482015290519081900360640190fd5b60006004848154811061091757fe5b60009182526020808320878452600580835260408086206001600160a01b03808b16885290855281872060039390960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b15801561099057600080fd5b505afa1580156109a4573d6000803e3d6000fd5b505050506040513d60208110156109ba57600080fd5b50516002850154909150431180156109d157508015155b15610a4d5760006008544311156109ea576008546109ec565b435b905060006109fe8660020154836114ac565b90506000610a256006546104a289600101546106b9600254876112a090919063ffffffff16565b9050610a47610a40856104a284670de0b6b3a76400006112a0565b86906114b8565b94505050505b610a7883600101546104a8670de0b6b3a76400006104a28688600001546112a090919063ffffffff16565b9450505050505b92915050565b610a8d611512565b6000546001600160a01b03908116911614610add576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b6008544310610b33576040805162461bcd60e51b815260206004820152601760248201527f7365743a206d757374206265206265666f726520656e64000000000000000000604482015290519081900360640190fd5b6004548410610b7d576040805162461bcd60e51b81526020600482015260116024820152701cd95d0e881a5b9d985b1a590817dc1a59607a1b604482015290519081900360640190fd5b60008211610bbc5760405162461bcd60e51b815260040180806020018281038252603781526020018061194f6037913960400191505060405180910390fd5b8015610bca57610bca6107e4565b610c0783610c0160048781548110610bde57fe5b90600052602060002090600502016001015460065461121590919063ffffffff16565b906114b8565b6006819055508260048581548110610c1b57fe5b9060005260206000209060050201600101819055508160048581548110610c3e57fe5b90600052602060002090600502016004018190555050505050565b6000546001600160a01b031690565b60056020908152600092835260408084209091529082529020805460019091015482565b610c94611512565b6000546001600160a01b03908116911614610ce4576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b6008544310610d3a576040805162461bcd60e51b815260206004820152601760248201527f6164643a206d757374206265206265666f726520656e64000000000000000000604482015290519081900360640190fd5b826001600160a01b038116610d805760405162461bcd60e51b8152600401808060200182810382526029815260200180611a5b6029913960400191505060405180910390fd5b6001600160a01b03811660009081526009602052604090205460ff1615610dee576040805162461bcd60e51b815260206004820152601860248201527f6164643a20616c72656164792077686974656c69737465640000000000000000604482015290519081900360640190fd5b60008311610e2d5760405162461bcd60e51b81526004018080602001828103825260378152602001806119fa6037913960400191505060405180910390fd5b8115610e3b57610e3b6107e4565b60006007544311610e4e57600754610e50565b435b600654909150610e6090876114b8565b6006556040805160a0810182526001600160a01b039687168152602080820198895281830193845260006060830181815260808401988952600480546001808201835591845294517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600590960295860180546001600160a01b031916918d169190911790559a517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c85015594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d84015593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e83015595517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f909101559190941684526009909252509020805460ff19169091179055565b6001546001600160a01b031681565b60025481565b60035481565b600060048381548110610fc457fe5b60009182526020808320868452600580835260408086203387529093529190932091029091016004810154825491935090610fff90856114b8565b111561103c5760405162461bcd60e51b81526004018080602001828103825260338152602001806119a76033913960400191505060405180910390fd5b61104584610551565b80541561109157600061107d82600101546104a8670de0b6b3a76400006104a2876003015487600001546112a090919063ffffffff16565b9050801561108f5761108f33826112f9565b505b82156110bd5781546110ae906001600160a01b0316333086611516565b80546110ba90846114b8565b81555b600382015481546110db91670de0b6b3a7640000916104a2916112a0565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b611125611512565b6000546001600160a01b03908116911614611175576040805162461bcd60e51b815260206004820181905260248201526000805160206119da833981519152604482015290519081900360640190fd5b6001600160a01b0381166111ba5760405162461bcd60e51b81526004018080602001828103825260268152602001806119036026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600061125783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611576565b9392505050565b600061125783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061160d565b6000826112af57506000610a7f565b828202828482816112bc57fe5b04146112575760405162461bcd60e51b81526004018080602001828103825260218152602001806119866021913960400191505060405180910390fd5b60015460408051639e1a4d1960e01b815290516000926001600160a01b031691639e1a4d1991600480830192602092919082900301818787803b15801561133f57600080fd5b505af1158015611353573d6000803e3d6000fd5b505050506040513d602081101561136957600080fd5b50519050808211156113e7576001546040805163040b850f60e31b81526001600160a01b038681166004830152602482018590529151919092169163205c287891604480830192600092919082900301818387803b1580156113ca57600080fd5b505af11580156113de573d6000803e3d6000fd5b50505050611455565b6001546040805163040b850f60e31b81526001600160a01b038681166004830152602482018690529151919092169163205c287891604480830192600092919082900301818387803b15801561143c57600080fd5b505af1158015611450573d6000803e3d6000fd5b505050505b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611455908490611672565b60006112578284611215565b600082820183811015611257576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611570908590611672565b50505050565b600081848411156116055760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156115ca5781810151838201526020016115b2565b50505050905090810190601f1680156115f75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000818361165c5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156115ca5781810151838201526020016115b2565b50600083858161166857fe5b0495945050505050565b60606116c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117239092919063ffffffff16565b805190915015611455578080602001905160208110156116e657600080fd5b50516114555760405162461bcd60e51b815260040180806020018281038252602a815260200180611a31602a913960400191505060405180910390fd5b6060611732848460008561173a565b949350505050565b60608247101561177b5760405162461bcd60e51b81526004018080602001828103825260268152602001806119296026913960400191505060405180910390fd5b61178485611896565b6117d5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106118145780518252601f1990920191602091820191016117f5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611876576040519150601f19603f3d011682016040523d82523d6000602084013e61187b565b606091505b509150915061188b82828661189c565b979650505050505050565b3b151590565b606083156118ab575081611257565b8251156118bb5782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156115ca5781810151838201526020016115b256fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c7365743a205f6d61785374616b696e67416d6f756e7450657255736572206d7573742062652067726561746572207468616e207a65726f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f776465706f7369743a2063616e206e6f7420657863656564206d6178207374616b696e6720616d6f756e742070657220757365724f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726164643a205f6d61785374616b696e67416d6f756e7450657255736572206d7573742062652067726561746572207468616e207a65726f5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565646164643a205f6572633230546f6b656e206d757374206e6f74206265207a65726f2061646472657373a26469706673582212204f3d5e19b38fcc2a6eb346afe817570a0b6b96123db4cfe99b6c528a5a080af264736f6c634300060c0033

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

0000000000000000000000006149c26cd2f7b5ccdb32029af817123f6e37df5b000000000000000000000000000000000000000000003341cf0930c38668c0000000000000000000000000000000000000000000000000000000000000b5fbe40000000000000000000000000000000000000000000000000000000000bec0e5

-----Decoded View---------------
Arg [0] : _lpt (address): 0x6149C26Cd2f7b5CCdb32029aF817123F6E37Df5B
Arg [1] : _maxLPTAvailableForFarming (uint256): 242054647500000000000000
Arg [2] : _startBlock (uint256): 11926500
Arg [3] : _endBlock (uint256): 12501221

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000006149c26cd2f7b5ccdb32029af817123f6e37df5b
Arg [1] : 000000000000000000000000000000000000000000003341cf0930c38668c000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000b5fbe4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000bec0e5


Deployed Bytecode Sourcemap

652:12845:8:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3088:23;;;:::i;:::-;;;;;;;;;;;;;;;;2569:26;;;;;;;;;;;;;;;;-1:-1:-1;2569:26:8;;:::i;:::-;;;;-1:-1:-1;;;;;2569:26:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2892:30;;;:::i;11294:742::-;;;;;;;;;;;;;;;;-1:-1:-1;11294:742:8;;;;;;;:::i;:::-;;3004:25;;;:::i;9076:964::-;;;;;;;;;;;;;;;;-1:-1:-1;9076:964:8;;:::i;12184:454::-;;;;;;;;;;;;;;;;-1:-1:-1;12184:454:8;;:::i;8765:175::-;;;:::i;4642:96::-;;;:::i;1706:145:1:-;;;:::i;7781:900:8:-;;;;;;;;;;;;;;;;-1:-1:-1;7781:900:8;;;;;;-1:-1:-1;;;;;7781:900:8;;:::i;6893:647::-;;;;;;;;;;;;;;;;-1:-1:-1;6893:647:8;;;;;;;;;;;;;;;;;;;:::i;1083:77:1:-;;;:::i;:::-;;;;-1:-1:-1;;;;;1083:77:1;;;;;;;;;;;;;;2725:64:8;;;;;;;;;;;;;;;;-1:-1:-1;2725:64:8;;;;;;-1:-1:-1;;;;;2725:64:8;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;5239:1098;;;;;;;;;;;;;;;;-1:-1:-1;5239:1098:8;;;-1:-1:-1;;;;;5239:1098:8;;;;;;;;;;;;;;;;;:::i;2203:28::-;;;:::i;2316:26::-;;;:::i;2466:40::-;;;:::i;10227:875::-;;;;;;;;;;;;;;;;-1:-1:-1;10227:875:8;;;;;;;:::i;2000:240:1:-;;;;;;;;;;;;;;;;-1:-1:-1;2000:240:1;-1:-1:-1;;;;;2000:240:1;;:::i;3088:23:8:-;;;;:::o;2569:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2569:26:8;;;;-1:-1:-1;2569:26:8;;;;;:::o;2892:30::-;;;;:::o;11294:742::-;11362:21;11386:8;11395:4;11386:14;;;;;;;;;;;;;;;;11434;;;11386;11434;;;;;;;11449:10;11434:26;;;;;;;;;11479:11;;11386:14;;;;;;;;-1:-1:-1;;;11479:22:8;11471:61;;;;;-1:-1:-1;;;11471:61:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;11543:16;11554:4;11543:10;:16::i;:::-;11570:15;11588:67;11639:4;:15;;;11588:46;11629:4;11588:36;11604:4;:19;;;11588:4;:11;;;:15;;:36;;;;:::i;:::-;:40;;:46::i;:::-;:50;;:67::i;:::-;11570:85;-1:-1:-1;11669:11:8;;11665:78;;11696:36;11712:10;11724:7;11696:15;:36::i;:::-;11757:11;;11753:152;;11798:11;;:24;;11814:7;11798:15;:24::i;:::-;11784:38;;11836:15;;:58;;-1:-1:-1;;;;;11836:15:8;11873:10;11886:7;11836:28;:58::i;:::-;11949:19;;;;11933:11;;:46;;11974:4;;11933:36;;:15;:36::i;:46::-;11915:15;;;:64;11994:35;;;;;;;;12015:4;;12003:10;;11994:35;;;;;;;;;11294:742;;;;;:::o;3004:25::-;;;;:::o;9076:964::-;9142:8;:15;9135:22;;9127:59;;;;;-1:-1:-1;;;9127:59:8;;;;;;;;;;;;-1:-1:-1;;;9127:59:8;;;;;;;;;;;;;;;9197:21;9221:8;9230:4;9221:14;;;;;;;;;;;;;;;;;;9197:38;;9265:4;:20;;;9249:12;:36;9245:73;;9301:7;;;9245:73;9350:15;;:40;;;-1:-1:-1;;;9350:40:8;;9384:4;9350:40;;;;;;9328:19;;-1:-1:-1;;;;;9350:15:8;;:25;;:40;;;;;;;;;;;;;;:15;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9350:40:8;;-1:-1:-1;9404:16:8;9400:102;;-1:-1:-1;9459:12:8;9436:20;;;;:35;9485:7;;9400:102;9512:19;9550:8;;9534:12;:24;;:50;;9576:8;;9534:50;;;9561:12;9534:50;9512:72;;9594:18;9615:48;9629:4;:20;;;9651:11;9615:13;:48::i;:::-;9594:69;-1:-1:-1;9748:15:8;9744:52;;9779:7;;;;;;9744:52;9806:17;9826:69;9879:15;;9826:48;9858:4;:15;;;9826:27;9841:11;;9826:10;:14;;:27;;;;:::i;:::-;:31;;:48::i;:69::-;9806:89;-1:-1:-1;9928:61:8;9952:36;9976:11;9952:19;9806:89;9966:4;9952:13;:19::i;:36::-;9928:19;;;;;:23;:61::i;:::-;9906:19;;;:83;-1:-1:-1;;9999:20:8;;;;:34;;;;-1:-1:-1;9076:964:8;;:::o;12184:454::-;12259:8;:15;12252:22;;12244:59;;;;;-1:-1:-1;;;12244:59:8;;;;;;;;;;;;-1:-1:-1;;;12244:59:8;;;;;;;;;;;;;;;12314:21;12338:8;12347:4;12338:14;;;;;;;;;;;;;;;;12386;;;12338;12386;;;;;;;12401:10;12386:26;;;;;;;12440:11;;12461:15;;;-1:-1:-1;12486:15:8;;:19;;;;12338:14;;;12516:15;;12338:14;;-1:-1:-1;12386:26:8;;12440:11;12516:57;;-1:-1:-1;;;;;12516:15:8;;;;12440:11;12516:28;:57::i;:::-;12588:43;;;;;;;;12618:4;;12606:10;;12588:43;;;;;;;;;12184:454;;;;:::o;8765:175::-;8826:8;:15;8809:14;8851:83;8879:6;8873:3;:12;8851:83;;;8908:15;8919:3;8908:10;:15::i;:::-;8887:5;;8851:83;;;;8765:175;:::o;4642:96::-;4716:8;:15;4642:96;:::o;1706:145:1:-;1297:12;:10;:12::i;:::-;1287:6;;-1:-1:-1;;;;;1287:6:1;;;:22;;;1279:67;;;;;-1:-1:-1;;;1279:67:1;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1279:67:1;;;;;;;;;;;;;;;1812:1:::1;1796:6:::0;;1775:40:::1;::::0;-1:-1:-1;;;;;1796:6:1;;::::1;::::0;1775:40:::1;::::0;1812:1;;1775:40:::1;1842:1;1825:19:::0;;-1:-1:-1;;;;;;1825:19:1::1;::::0;;1706:145::o;7781:900:8:-;7887:8;:15;7853:7;;7880:22;;7872:59;;;;;-1:-1:-1;;;7872:59:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;7942:21;7966:8;7975:4;7966:14;;;;;;;;;;;;;;;;8014;;;7966;8014;;;;;;;-1:-1:-1;;;;;8014:21:8;;;;;;;;;;;8071:19;7966:14;;;;;;;8071:19;;;;8119:15;;:40;;-1:-1:-1;;;8119:40:8;;8153:4;8119:40;;;;;;7966:14;;-1:-1:-1;8014:21:8;;8071:19;;7966:14;;8119:15;;;:25;;:40;;;;;;;;;;:15;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8119:40:8;8189:20;;;;8119:40;;-1:-1:-1;8174:12:8;:35;:52;;;;-1:-1:-1;8213:13:8;;;8174:52;8170:425;;;8242:19;8280:8;;8264:12;:24;;:50;;8306:8;;8264:50;;;8291:12;8264:50;8242:72;;8328:18;8349:48;8363:4;:20;;;8385:11;8349:13;:48::i;:::-;8328:69;;8411:17;8431:69;8484:15;;8431:48;8463:4;:15;;;8431:27;8446:11;;8431:10;:14;;:27;;;;:::i;:69::-;8411:89;-1:-1:-1;8531:53:8;8550:33;8574:8;8550:19;8411:89;8564:4;8550:13;:19::i;:33::-;8531:14;;:18;:53::i;:::-;8514:70;;8170:425;;;;8612:62;8658:4;:15;;;8612:41;8648:4;8612:31;8628:14;8612:4;:11;;;:15;;:31;;;;:::i;:62::-;8605:69;;;;;;7781:900;;;;;:::o;6893:647::-;1297:12:1;:10;:12::i;:::-;1287:6;;-1:-1:-1;;;;;1287:6:1;;;:22;;;1279:67;;;;;-1:-1:-1;;;1279:67:1;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1279:67:1;;;;;;;;;;;;;;;7043:8:8::1;;7028:12;:23;7020:59;;;::::0;;-1:-1:-1;;;7020:59:8;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;7104:8;:15:::0;7097:22;::::1;7089:52;;;::::0;;-1:-1:-1;;;7089:52:8;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;7089:52:8;;;;;;;;;;;;;::::1;;7186:1;7159:24;:28;7151:96;;;;-1:-1:-1::0;;;7151:96:8::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7262:11;7258:59;;;7289:17;:15;:17::i;:::-;7345:63;7396:11;7345:46;7365:8;7374:4;7365:14;;;;;;;;;;;;;;;;;;:25;;;7345:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;7327:15;:81;;;;7447:11;7419:8;7428:4;7419:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;7509:24;7468:8;7477:4;7468:14;;;;;;;;;;;;;;;;;;:38;;:65;;;;6893:647:::0;;;;:::o;1083:77:1:-;1121:7;1147:6;-1:-1:-1;;;;;1147:6:1;1083:77;:::o;2725:64:8:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;5239:1098::-;1297:12:1;:10;:12::i;:::-;1287:6;;-1:-1:-1;;;;;1287:6:1;;;:22;;;1279:67;;;;;-1:-1:-1;;;1279:67:1;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1279:67:1;;;;;;;;;;;;;;;5395:8:8::1;;5380:12;:23;5372:59;;;::::0;;-1:-1:-1;;;5372:59:8;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;5477:11:::0;-1:-1:-1;;;;;5507:31:8;::::1;5499:85;;;;-1:-1:-1::0;;;5499:85:8::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;5602:42:8;::::1;;::::0;;;:23:::1;:42;::::0;;;;;::::1;;:51;5594:88;;;::::0;;-1:-1:-1;;;5594:88:8;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;5727:1;5700:24;:28;5692:96;;;;-1:-1:-1::0;;;5692:96:8::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5803:11;5799:59;;;5830:17;:15;:17::i;:::-;5868:23;5909:10;;5894:12;:25;:53;;5937:10;;5894:53;;;5922:12;5894:53;5975:15;::::0;5868:79;;-1:-1:-1;5975:32:8::1;::::0;5995:11;5975:19:::1;:32::i;:::-;5957:15;:50:::0;6031:238:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;6031:238:8;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;;;-1:-1:-1;6031:238:8;;;;;;;;;;;;6017:8:::1;:253:::0;;::::1;::::0;;::::1;::::0;;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;6017:253:8::1;::::0;;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;6281:42;;;::::1;::::0;;:23:::1;:42:::0;;;-1:-1:-1;6281:42:8;;:49;;-1:-1:-1;;6281:49:8::1;::::0;;::::1;::::0;;5239:1098::o;2203:28::-;;;-1:-1:-1;;;;;2203:28:8;;:::o;2316:26::-;;;;:::o;2466:40::-;;;;:::o;10227:875::-;10294:21;10318:8;10327:4;10318:14;;;;;;;;;;;;;;;;10366;;;10318;10366;;;;;;;10381:10;10366:26;;;;;;;;;10318:14;;;;;10439:28;;;;10411:11;;10318:14;;-1:-1:-1;10439:28:8;10411:24;;10427:7;10411:15;:24::i;:::-;:56;;10403:120;;;;-1:-1:-1;;;10403:120:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10534:16;10545:4;10534:10;:16::i;:::-;10565:11;;:15;10561:230;;10596:15;10614:67;10665:4;:15;;;10614:46;10655:4;10614:36;10630:4;:19;;;10614:4;:11;;;:15;;:36;;;;:::i;:67::-;10596:85;-1:-1:-1;10699:11:8;;10695:86;;10730:36;10746:10;10758:7;10730:15;:36::i;:::-;10561:230;;10805:11;;10801:171;;10832:15;;:77;;-1:-1:-1;;;;;10832:15:8;10873:10;10894:4;10901:7;10832:32;:77::i;:::-;10937:11;;:24;;10953:7;10937:15;:24::i;:::-;10923:38;;10801:171;11016:19;;;;11000:11;;:46;;11041:4;;11000:36;;:15;:36::i;:46::-;10982:15;;;:64;11061:34;;;;;;;;11081:4;;11069:10;;11061:34;;;;;;;;;10227:875;;;;:::o;2000:240:1:-;1297:12;:10;:12::i;:::-;1287:6;;-1:-1:-1;;;;;1287:6:1;;;:22;;;1279:67;;;;;-1:-1:-1;;;1279:67:1;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1279:67:1;;;;;;;;;;;;;;;-1:-1:-1;;;;;2088:22:1;::::1;2080:73;;;;-1:-1:-1::0;;;2080:73:1::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2189:6;::::0;;2168:38:::1;::::0;-1:-1:-1;;;;;2168:38:1;;::::1;::::0;2189:6;::::1;::::0;2168:38:::1;::::0;::::1;2216:6;:17:::0;;-1:-1:-1;;;;;;2216:17:1::1;-1:-1:-1::0;;;;;2216:17:1;;;::::1;::::0;;;::::1;::::0;;2000:240::o;1329:134:2:-;1387:7;1413:43;1417:1;1420;1413:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1406:50;1329:134;-1:-1:-1;;;1329:134:2:o;3109:130::-;3167:7;3193:39;3197:1;3200;3193:39;;;;;;;;;;;;;;;;;:3;:39::i;2188:459::-;2246:7;2487:6;2483:45;;-1:-1:-1;2516:1:2;2509:8;;2483:45;2550:5;;;2554:1;2550;:5;:1;2573:5;;;;;:10;2565:56;;;;-1:-1:-1;;;2565:56:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12884:293:8;12974:15;;:30;;;-1:-1:-1;;;12974:30:8;;;;12957:14;;-1:-1:-1;;;;;12974:15:8;;:28;;:30;;;;;;;;;;;;;;12957:14;12974:15;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12974:30:8;;-1:-1:-1;13018:16:8;;;13014:157;;;13050:15;;:39;;;-1:-1:-1;;;13050:39:8;;-1:-1:-1;;;;;13050:39:8;;;;;;;;;;;;;;;:15;;;;;:26;;:39;;;;;:15;;:39;;;;;;;:15;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13014:157;;;13120:15;;:40;;;-1:-1:-1;;;13120:40:8;;-1:-1:-1;;;;;13120:40:8;;;;;;;;;;;;;;;:15;;;;;:26;;:40;;;;;:15;;:40;;;;;;;:15;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13014:157;12884:293;;;:::o;704:175:4:-;813:58;;;-1:-1:-1;;;;;813:58:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;813:58:4;-1:-1:-1;;;813:58:4;;;786:86;;806:5;;786:19;:86::i;13375:120:8:-;13448:7;13474:14;:3;13482:5;13474:7;:14::i;882:176:2:-;940:7;971:5;;;994:6;;;;986:46;;;;;-1:-1:-1;;;986:46:2;;;;;;;;;;;;;;;;;;;;;;;;;;;598:104:0;685:10;598:104;:::o;885:203:4:-;1012:68;;;-1:-1:-1;;;;;1012:68:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1012:68:4;-1:-1:-1;;;1012:68:4;;;985:96;;1005:5;;985:19;:96::i;:::-;885:203;;;;:::o;1754:187:2:-;1840:7;1875:12;1867:6;;;;1859:29;;;;-1:-1:-1;;;1859:29:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1910:5:2;;;1754:187::o;3721:272::-;3807:7;3841:12;3834:5;3826:28;;;;-1:-1:-1;;;3826:28:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3864:9;3880:1;3876;:5;;;;;;;3721:272;-1:-1:-1;;;;;3721:272:2:o;2967:751:4:-;3386:23;3412:69;3440:4;3412:69;;;;;;;;;;;;;;;;;3420:5;-1:-1:-1;;;;;3412:27:4;;;:69;;;;;:::i;:::-;3495:17;;3386:95;;-1:-1:-1;3495:21:4;3491:221;;3635:10;3624:30;;;;;;;;;;;;;;;-1:-1:-1;3624:30:4;3616:85;;;;-1:-1:-1;;;3616:85:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3581:193:5;3684:12;3715:52;3737:6;3745:4;3751:1;3754:12;3715:21;:52::i;:::-;3708:59;3581:193;-1:-1:-1;;;;3581:193:5:o;4608:523::-;4735:12;4792:5;4767:21;:30;;4759:81;;;;-1:-1:-1;;;4759:81:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4858:18;4869:6;4858:10;:18::i;:::-;4850:60;;;;;-1:-1:-1;;;4850:60:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;4981:12;4995:23;5022:6;-1:-1:-1;;;;;5022:11:5;5042:5;5050:4;5022:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5022:33:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4980:75;;;;5072:52;5090:7;5099:10;5111:12;5072:17;:52::i;:::-;5065:59;4608:523;-1:-1:-1;;;;;;;4608:523:5:o;726:413::-;1086:20;1124:8;;;726:413::o;6111:725::-;6226:12;6254:7;6250:580;;;-1:-1:-1;6284:10:5;6277:17;;6250:580;6395:17;;:21;6391:429;;6653:10;6647:17;6713:15;6700:10;6696:2;6692:19;6685:44;6602:145;6785:20;;-1:-1:-1;;;6785:20:5;;;;;;;;;;;;;;;;;6792:12;;6785:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://e5e76c6b6c1eae42695da706efda884d84b0d8d8ca88c955c93ae7fee6311380

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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