ETH Price: $3,584.46 (+0.31%)
Gas: 23 Gwei

Contract

0x001C249c09090D79Dc350A286247479F08c7aaD7
 
Transaction Hash
Method
Block
From
To
Value
Claim160402522022-11-24 13:51:35489 days ago1669297895IN
0x001C249c...F08c7aaD7
0 ETH0.000305512.79903815
Deposit144231012022-03-20 11:51:23738 days ago1647777083IN
0x001C249c...F08c7aaD7
0 ETH0.0002412410
Claim143203272022-03-04 12:01:38754 days ago1646395298IN
0x001C249c...F08c7aaD7
0 ETH0.0004296418
Claim142747172022-02-25 10:29:53761 days ago1645784993IN
0x001C249c...F08c7aaD7
0 ETH0.0005967225
Migrate142686962022-02-24 12:05:37762 days ago1645704337IN
0x001C249c...F08c7aaD7
0 ETH0.0077027262.4223365
Migrate142686922022-02-24 12:05:26762 days ago1645704326IN
0x001C249c...F08c7aaD7
0 ETH0.0091921573.54781708
Migrate142686902022-02-24 12:04:31762 days ago1645704271IN
0x001C249c...F08c7aaD7
0 ETH0.0073273159.51990111
Migrate142686862022-02-24 12:04:02762 days ago1645704242IN
0x001C249c...F08c7aaD7
0 ETH0.0092695176.82028545
Migrate142686852022-02-24 12:03:43762 days ago1645704223IN
0x001C249c...F08c7aaD7
0 ETH0.0091187275.57058426
Migrate142686842022-02-24 12:03:26762 days ago1645704206IN
0x001C249c...F08c7aaD7
0 ETH0.0090302273.3198601
Set Migrator142686732022-02-24 12:00:40762 days ago1645704040IN
0x001C249c...F08c7aaD7
0 ETH0.0044681494.63610513
Set142686212022-02-24 11:48:42762 days ago1645703322IN
0x001C249c...F08c7aaD7
0 ETH0.0019646365.00040946
Set142686202022-02-24 11:48:04762 days ago1645703284IN
0x001C249c...F08c7aaD7
0 ETH0.0019134858.0178535
Set142686172022-02-24 11:47:33762 days ago1645703253IN
0x001C249c...F08c7aaD7
0 ETH0.0021478665.12428981
Set142686142022-02-24 11:46:26762 days ago1645703186IN
0x001C249c...F08c7aaD7
0 ETH0.0018652656.55564981
Set142686122022-02-24 11:46:08762 days ago1645703168IN
0x001C249c...F08c7aaD7
0 ETH0.0020473262.07585535
Set142686102022-02-24 11:45:42762 days ago1645703142IN
0x001C249c...F08c7aaD7
0 ETH0.0021114264.04281797
Set Gro Per Bloc...142686082022-02-24 11:45:21762 days ago1645703121IN
0x001C249c...F08c7aaD7
0 ETH0.0016146259.69272841
Mass Update Pool...142686072022-02-24 11:44:56762 days ago1645703096IN
0x001C249c...F08c7aaD7
0 ETH0.009394253.28593813
Set Manager142686032022-02-24 11:44:33762 days ago1645703073IN
0x001C249c...F08c7aaD7
0 ETH0.0018098560.19198296
Withdraw142680072022-02-24 9:26:46763 days ago1645694806IN
0x001C249c...F08c7aaD7
0 ETH0.0068589262.97268705
Withdraw142679352022-02-24 9:09:18763 days ago1645693758IN
0x001C249c...F08c7aaD7
0 ETH0.0047659153.50333824
Claim142679152022-02-24 9:04:55763 days ago1645693495IN
0x001C249c...F08c7aaD7
0 ETH0.004489646.98155547
Claim142673472022-02-24 7:07:49763 days ago1645686469IN
0x001C249c...F08c7aaD7
0 ETH0.0086157290.15944785
Claim142672372022-02-24 6:43:44763 days ago1645685024IN
0x001C249c...F08c7aaD7
0 ETH0.011029388.56105357
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LPTokenStaker

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 8 : LPTokenStaker.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

interface IVestable {
    function vest(address _receiver, uint256 _amount) external;
}

interface IMigrator {
    // Take the current LP token address and return the new LP token address.
    // Migrator should have full access to the caller's LP token.
    function migrate(IERC20 token) external returns (IERC20);
}

contract LPTokenStaker is Ownable {
    using SafeERC20 for IERC20;

    IVestable public vesting;

    /// @notice Info of each user.
    /// `amount` LP token amount the user has provided.
    /// `rewardDebt` The amount of GRO entitled to the user.
    struct UserInfo {
        uint256 amount;
        int256 rewardDebt;
    }

    /// @notice Info of each pool.
    /// `allocPoint` The amount of allocation points assigned to the pool.
    /// which will determine the share of GRO token rewards the pool will get
    struct PoolInfo {
        uint256 accGroPerShare;
        uint256 allocPoint;
        uint256 lastRewardBlock;
        IERC20 lpToken;
    }

    /// @notice Info of each pool.
    PoolInfo[] public poolInfo;

    /// @notice Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    /// @dev Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint;

    uint256 public maxGroPerBlock;
    uint256 public groPerBlock;

    address public manager;
    mapping(address => bool) public activeLpTokens;

    uint256 private constant ACC_GRO_PRECISION = 1e12;

    /// @notice The migrator contract. It has a lot of power. Can only be set through governance (owner).
    IMigrator public migrator;

    event LogAddPool(uint256 indexed pid, uint256 allocPoint, IERC20 indexed lpToken);
    event LogSetPool(uint256 indexed pid, uint256 allocPoint);
    event LogUpdatePool(uint256 indexed pid, uint256 lastRewardBlock, uint256 lpSupply, uint256 accGroPerShare);
    event LogDeposit(address indexed user, uint256 indexed pid, uint256 amount);
    event LogWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event LogClaim(address indexed user, uint256 indexed pid, uint256 amount);
    event LogLpTokenAdded(address token);
    event LogEmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event LogNewManagment(address newManager);
    event LogMaxGroPerBlock(uint256 newMax);
    event LogGroPerBlock(uint256 newGro);
    event LogNewVester(address newVester);
    event LogNewMigrator(address newMigrator);

    function setVesting(address _vesting) external onlyOwner {
        vesting = IVestable(_vesting);
        emit LogNewVester(_vesting);
    }

    function setManager(address _manager) external onlyOwner {
        manager = _manager;
        emit LogNewManagment(_manager);
    }

    function setMaxGroPerBlock(uint256 _maxGroPerBlock) external onlyOwner {
        maxGroPerBlock = _maxGroPerBlock;
        emit LogMaxGroPerBlock(_maxGroPerBlock);
    }

    function setGroPerBlock(uint256 _groPerBlock) external {
        require(msg.sender == manager, "setGroPerBlock: !manager");
        require(_groPerBlock <= maxGroPerBlock, "setGroPerBlock: > maxGroPerBlock");
        groPerBlock = _groPerBlock;
        emit LogGroPerBlock(_groPerBlock);
    }

    /// @notice Returns the number of pools.
    function poolLength() public view returns (uint256 pools) {
        pools = poolInfo.length;
    }

    /// @notice Add a new LP to the pool. Can only be called by the manager.
    /// DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    /// @param allocPoint AP of the new pool.
    /// @param _lpToken Address of the LP ERC-20 token.
    function add(uint256 allocPoint, IERC20 _lpToken) external {
        require(msg.sender == manager, 'add: !manager');
        totalAllocPoint += allocPoint;

        require(!activeLpTokens[address(_lpToken)], 'add: lpToken already added');
        poolInfo.push(
            PoolInfo({allocPoint: allocPoint, lastRewardBlock: block.number, accGroPerShare: 0, lpToken: _lpToken})
        );
        activeLpTokens[address(_lpToken)] = true;
        emit LogLpTokenAdded(address(_lpToken));
        emit LogAddPool(poolInfo.length - 1, allocPoint, _lpToken);
    }

    /// @notice Update the given pool's allocation point. Can only be called by the manager.
    /// @param _pid The index of the pool. See `poolInfo`.
    /// @param _allocPoint New AP of the pool.
    function set(uint256 _pid, uint256 _allocPoint) external {
        require(msg.sender == manager, "set: !manager");
        totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;

        emit LogSetPool(_pid, _allocPoint);
    }

    /// @notice Set the `migrator` contract. Can only be called by the owner.
    /// @param _migrator The contract address to set.
    function setMigrator(IMigrator _migrator) public onlyOwner {
        migrator = _migrator;
        emit LogNewMigrator(address(_migrator));
    }

    /// @notice Migrate LP token to another LP contract through the `migrator` contract.
    /// @param _pid The index of the pool. See `poolInfo`.
    function migrate(uint256 _pid) public {
        require(address(migrator) != address(0), "migrate: !migrator");
        PoolInfo memory pool = poolInfo[_pid];
        uint256 bal = pool.lpToken.balanceOf(address(this));
        pool.lpToken.approve(address(migrator), bal);
        IERC20 newLpToken = migrator.migrate(pool.lpToken);
        require(bal == newLpToken.balanceOf(address(this)), "migrate: migrated balance must match");
        pool.lpToken = newLpToken;
        poolInfo[_pid] = pool;
    }

    /// @notice Update reward variables for all pools. Be careful of gas spending!
    /// @param pids Pool IDs of all to be updated. Make sure to update all active pools.
    function massUpdatePools(uint256[] calldata pids) external {
        uint256 len = pids.length;
        for (uint256 i = 0; i < len; ++i) {
            updatePool(pids[i]);
        }
    }

    /// @notice Update reward variables of the given pool.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @return pool Returns the pool that was updated.
    function updatePool(uint256 pid) public returns (PoolInfo memory pool) {
        uint256 _totalAllocPoint = totalAllocPoint;
        require(_totalAllocPoint > 0, 'updatePool: totalAllocPoint == 0');
        pool = poolInfo[pid];
        if (block.number > pool.lastRewardBlock) {
            uint256 lpSupply = pool.lpToken.balanceOf(address(this));
            if (lpSupply > 0) {
                uint256 blocks = block.number - pool.lastRewardBlock;
                uint256 groReward = (blocks * groPerBlock * pool.allocPoint) / _totalAllocPoint;
                pool.accGroPerShare = pool.accGroPerShare + (groReward * ACC_GRO_PRECISION) / lpSupply;
            }
            pool.lastRewardBlock = block.number;
            poolInfo[pid] = pool;
            emit LogUpdatePool(pid, pool.lastRewardBlock, lpSupply, pool.accGroPerShare);
        }
    }

    /// @notice View function to see claimable GRO on frontend.
    /// @param _pid The index of the pool. See `poolInfo`.
    /// @param _user Address of user.
    /// @return claimable GRO reward for a given user.
    function claimable(uint256 _pid, address _user) external view returns (uint256) {
        uint256 _totalAllocPoint = totalAllocPoint;
        if (_totalAllocPoint == 0) return 0;
        PoolInfo memory pool = poolInfo[_pid];
        UserInfo memory user = userInfo[_pid][_user];
        uint256 accPerShare = pool.accGroPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 blocks = block.number - pool.lastRewardBlock;
            uint256 groReward = (blocks * groPerBlock * pool.allocPoint) / _totalAllocPoint;
            accPerShare = accPerShare + (groReward * ACC_GRO_PRECISION) / lpSupply;
        }
        return uint256(int256((user.amount * accPerShare) / ACC_GRO_PRECISION) - user.rewardDebt);
    }

    /// @notice Deposit LP tokens for GRO reward.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param amount LP token amount to deposit.
    function deposit(uint256 pid, uint256 amount) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo memory user = userInfo[pid][msg.sender];

        // Effects
        user.amount = user.amount + amount;
        user.rewardDebt = user.rewardDebt + int256((amount * pool.accGroPerShare) / ACC_GRO_PRECISION);
        userInfo[pid][msg.sender] = user;

        pool.lpToken.safeTransferFrom(msg.sender, address(this), amount);

        emit LogDeposit(msg.sender, pid, amount);
    }

    /// @notice Withdraw LP tokens.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param amount LP token amount to withdraw.
    function withdraw(uint256 pid, uint256 amount) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo memory user = userInfo[pid][msg.sender];

        // Effects
        user.rewardDebt = user.rewardDebt - int256((amount * pool.accGroPerShare) / ACC_GRO_PRECISION);
        user.amount = user.amount - amount;
        userInfo[pid][msg.sender] = user;

        pool.lpToken.safeTransfer(msg.sender, amount);

        emit LogWithdraw(msg.sender, pid, amount);
    }

    /// @notice Claim proceeds for transaction sender.
    /// @param pid The index of the pool. See `poolInfo`.
    function claim(uint256 pid) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo memory user = userInfo[pid][msg.sender];

        int256 accumulatedGro = int256((user.amount * pool.accGroPerShare) / ACC_GRO_PRECISION);
        uint256 pending = uint256(accumulatedGro - user.rewardDebt);

        // Effects
        user.rewardDebt = accumulatedGro;
        userInfo[pid][msg.sender] = user;

        // Interactions
        if (pending > 0) {
            vesting.vest(msg.sender, pending);
        }

        emit LogClaim(msg.sender, pid, pending);
    }

    /// @notice Withdraw LP tokens and claim proceeds for transaction sender.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param amount LP token amount to withdraw.
    function withdrawAndClaim(uint256 pid, uint256 amount) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo memory user = userInfo[pid][msg.sender];
        int256 accumulatedGro = int256((user.amount * pool.accGroPerShare) / ACC_GRO_PRECISION);
        uint256 pending = uint256(accumulatedGro - user.rewardDebt);

        // Effects
        user.rewardDebt = accumulatedGro - int256((amount * pool.accGroPerShare) / ACC_GRO_PRECISION);
        user.amount = user.amount - amount;
        userInfo[pid][msg.sender] = user;

        // Interactions
        if (pending > 0) {
            vesting.vest(msg.sender, pending);
        }
        pool.lpToken.safeTransfer(msg.sender, amount);

        emit LogWithdraw(msg.sender, pid, amount);
        emit LogClaim(msg.sender, pid, pending);
    }

    /// @notice Withdraw without caring about rewards. EMERGENCY ONLY.
    /// @param pid The index of the pool. See `poolInfo`.
    function emergencyWithdraw(uint256 pid) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][msg.sender];
        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;

        pool.lpToken.safeTransfer(msg.sender, amount);
        emit LogEmergencyWithdraw(msg.sender, pid, amount);
    }
}

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

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

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

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

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

pragma solidity ^0.8.0;

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

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

File 4 of 8 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 5 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 6 of 8 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"lpToken","type":"address"}],"name":"LogAddPool","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":"LogClaim","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":"LogDeposit","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":"LogEmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newGro","type":"uint256"}],"name":"LogGroPerBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"LogLpTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"LogMaxGroPerBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newManager","type":"address"}],"name":"LogNewManagment","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newMigrator","type":"address"}],"name":"LogNewMigrator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newVester","type":"address"}],"name":"LogNewVester","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"}],"name":"LogSetPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accGroPerShare","type":"uint256"}],"name":"LogUpdatePool","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":"LogWithdraw","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"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"activeLpTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"groPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxGroPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"contract IMigrator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"accGroPerShare","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"contract IERC20","name":"lpToken","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"pools","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_groPerBlock","type":"uint256"}],"name":"setGroPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxGroPerBlock","type":"uint256"}],"name":"setMaxGroPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMigrator","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vesting","type":"address"}],"name":"setVesting","outputs":[],"stateMutability":"nonpayable","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":[{"components":[{"internalType":"uint256","name":"accGroPerShare","type":"uint256"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"contract IERC20","name":"lpToken","type":"address"}],"internalType":"struct LPTokenStaker.PoolInfo","name":"pool","type":"tuple"}],"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":"int256","name":"rewardDebt","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vesting","outputs":[{"internalType":"contract IVestable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawAndClaim","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6120968061007e6000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635312ea8e116101045780638da5cb5b116100a2578063cab1364f11610071578063cab1364f14610465578063d0ebdbe71461046e578063e2bbb15814610481578063f2fde38b1461049457600080fd5b80638da5cb5b146103f157806393f1a40b14610402578063a0c7f71c14610449578063a21336651461045c57600080fd5b80636f6ff3bc116100de5780636f6ff3bc146103b0578063715018a6146103c35780637cd07e47146103cb57806387eebaea146103de57600080fd5b80635312ea8e1461035757806357a5b58c1461036a578063677e2af01461037d57600080fd5b80632b8bbbe81161017157806344c63eec1161014b57806344c63eec146102b7578063454b0608146102e2578063481c6a75146102f557806351eb05a61461030857600080fd5b80632b8bbbe81461027e578063379607f514610291578063441a3e70146102a457600080fd5b80631ab06ee5116101ad5780631ab06ee5146102305780631e014fcc1461024557806321fb8da61461025857806323cf31181461026b57600080fd5b8063081e3eda146101d45780631526fe27146101eb57806317caf6f114610227575b600080fd5b6002545b6040519081526020015b60405180910390f35b6101fe6101f9366004611dfc565b6104a7565b604080519485526020850193909352918301526001600160a01b031660608201526080016101e2565b6101d860045481565b61024361023e366004611e5b565b6104ea565b005b610243610253366004611dfc565b6105ff565b610243610266366004611dfc565b610665565b610243610279366004611d34565b610746565b61024361028c366004611e2c565b6107be565b61024361029f366004611dfc565b610a13565b6102436102b2366004611e5b565b610b5d565b6001546102ca906001600160a01b031681565b6040516001600160a01b0390911681526020016101e2565b6102436102f0366004611dfc565b610c5b565b6007546102ca906001600160a01b031681565b61031b610316366004611dfc565b610ffb565b6040516101e291908151815260208083015190820152604080830151908201526060918201516001600160a01b03169181019190915260800190565b610243610365366004611dfc565b6112b2565b610243610378366004611d50565b611336565b6103a061038b366004611d34565b60086020526000908152604090205460ff1681565b60405190151581526020016101e2565b6102436103be366004611d34565b611388565b610243611400565b6009546102ca906001600160a01b031681565b6102436103ec366004611e5b565b611436565b6000546001600160a01b03166102ca565b610434610410366004611e2c565b60036020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101e2565b6101d8610457366004611e2c565b611608565b6101d860065481565b6101d860055481565b61024361047c366004611d34565b6117ec565b61024361048f366004611e5b565b611864565b6102436104a2366004611d34565b61195d565b600281815481106104b757600080fd5b6000918252602090912060049091020180546001820154600283015460039093015491935091906001600160a01b031684565b6007546001600160a01b031633146105395760405162461bcd60e51b815260206004820152600d60248201526c39b2ba1d1010b6b0b730b3b2b960991b60448201526064015b60405180910390fd5b806002838154811061055b57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016001015460045461057a9190611fd7565b6105849190611f41565b60048190555080600283815481106105ac57634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160010181905550817f942cc7e17a17c164bd977f32ab8c54265d5b9d481e4e352bf874f1e568874e7c826040516105f391815260200190565b60405180910390a25050565b6000546001600160a01b031633146106295760405162461bcd60e51b815260040161053090611ecb565b60058190556040518181527fef5cff0f07016d24d3b61ccdbbd8a5cd2b1c7cc12fe03dcf61258c4dc2afa76d906020015b60405180910390a150565b6007546001600160a01b031633146106bf5760405162461bcd60e51b815260206004820152601860248201527f73657447726f506572426c6f636b3a20216d616e6167657200000000000000006044820152606401610530565b6005548111156107115760405162461bcd60e51b815260206004820181905260248201527f73657447726f506572426c6f636b3a203e206d617847726f506572426c6f636b6044820152606401610530565b60068190556040518181527f1fa92eb48df781e7cc40c189fdd28e43db409a6014f5a9af156b623c761b38679060200161065a565b6000546001600160a01b031633146107705760405162461bcd60e51b815260040161053090611ecb565b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f91fd088d16d243fa0cecbd79d788f3ec61b57f58cd2574924554dfa4db6693799060200161065a565b6007546001600160a01b031633146108085760405162461bcd60e51b815260206004820152600d60248201526c30b2321d1010b6b0b730b3b2b960991b6044820152606401610530565b816004600082825461081a9190611f41565b90915550506001600160a01b03811660009081526008602052604090205460ff16156108885760405162461bcd60e51b815260206004820152601a60248201527f6164643a206c70546f6b656e20616c72656164792061646465640000000000006044820152606401610530565b6040805160808101825260008082526020808301868152438486019081526001600160a01b0387811660608701818152600280546001808201835591895298517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace6004909a02998a015594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf89015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad088015591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad190960180546001600160a01b03191696909116959095179094558383526008825291849020805460ff191690921790915591519081527f62f9ac45ee463803e8be25d4b152392732d8d82a35d71f88608df68df9fc46c8910160405180910390a16002546001600160a01b038216906109dc90600190611fd7565b6040518481527f80ced013fa6cac51587ad829f875c2dff69de70dddf137abbf704b91b7163b5d9060200160405180910390a35050565b6000610a1e82610ffb565b60008381526003602090815260408083203384528252808320815180830190925280548083526001909101549282019290925283519394509264e8d4a5100091610a689190611f79565b610a729190611f59565b90506000826020015182610a869190611f98565b602080850184815260008881526003835260408082203383529093529190912085518155905160019091015590508015610b1f576001546040516304f2f8d960e31b8152336004820152602481018390526001600160a01b0390911690632797c6c890604401600060405180830381600087803b158015610b0657600080fd5b505af1158015610b1a573d6000803e3d6000fd5b505050505b604051818152859033907f9a4772cd5c0946aaea956f025c3bd64f5b4464abfaa006dbfc1ffe104b89ef2f9060200160405180910390a35050505050565b6000610b6883610ffb565b6000848152600360209081526040808320338452825291829020825180840190935280548352600101549082015281519192509064e8d4a5100090610bad9085611f79565b610bb79190611f59565b8160200151610bc69190611f98565b60208201528051610bd8908490611fd7565b8152600084815260036020908152604080832033808552908352922083518155908301516001909101556060830151610c1d916001600160a01b0390911690856119f8565b604051838152849033907fda9a10d7b992511ddadbfc7ff712c1424ce2058bbcdac8c9876d6f8de590d43f906020015b60405180910390a350505050565b6009546001600160a01b0316610ca85760405162461bcd60e51b815260206004820152601260248201527136b4b3b930ba329d1010b6b4b3b930ba37b960711b6044820152606401610530565b600060028281548110610ccb57634e487b7160e01b600052603260045260246000fd5b60009182526020808320604080516080810182526004948502909201805483526001810154938301939093526002830154828201526003909201546001600160a01b03166060820181905291516370a0823160e01b815230938101939093529350906370a082319060240160206040518083038186803b158015610d4e57600080fd5b505afa158015610d62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d869190611e14565b606083015160095460405163095ea7b360e01b81526001600160a01b03918216600482015260248101849052929350169063095ea7b390604401602060405180830381600087803b158015610dda57600080fd5b505af1158015610dee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e129190611dc0565b50600954606083015160405163ce5494bb60e01b81526001600160a01b039182166004820152600092919091169063ce5494bb90602401602060405180830381600087803b158015610e6357600080fd5b505af1158015610e77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9b9190611de0565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a082319060240160206040518083038186803b158015610edd57600080fd5b505afa158015610ef1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f159190611e14565b8214610f6f5760405162461bcd60e51b8152602060048201526024808201527f6d6967726174653a206d696772617465642062616c616e6365206d757374206d6044820152630c2e8c6d60e31b6064820152608401610530565b6001600160a01b03811660608401526002805484919086908110610fa357634e487b7160e01b600052603260045260246000fd5b600091825260209182902083516004929092020190815590820151600182015560408201516002820155606090910151600390910180546001600160a01b0319166001600160a01b0390921691909117905550505050565b61102f604051806080016040528060008152602001600081526020016000815260200160006001600160a01b031681525090565b6004548061107f5760405162461bcd60e51b815260206004820181905260248201527f757064617465506f6f6c3a20746f74616c416c6c6f63506f696e74203d3d20306044820152606401610530565b600283815481106110a057634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825260049093029091018054835260018101549383019390935260028301549082018190526003909201546001600160a01b0316606082015292504311156112ac5760608201516040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561113b57600080fd5b505afa15801561114f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111739190611e14565b905080156111e657600083604001514361118d9190611fd7565b90506000838560200151600654846111a59190611f79565b6111af9190611f79565b6111b99190611f59565b9050826111cb64e8d4a5100083611f79565b6111d59190611f59565b85516111e19190611f41565b855250505b436040840152600280548491908690811061121157634e487b7160e01b600052603260045260246000fd5b60009182526020918290208351600492909202019081558282015160018201556040808401516002830155606093840151600390920180546001600160a01b0319166001600160a01b039093169290921790915585810151865182519182529281018590529081019190915285917fcb7325664a4a3b7c7223eefc492a97ca4fdf94d46884621e5a8fae5a04b2b9d2910160405180910390a2505b50919050565b60006112bd82610ffb565b6000838152600360209081526040808320338085529252822080548382556001820193909355606084015193945092611302916001600160a01b0390911690836119f8565b604051818152849033907fcb8e650a8088d4aa667da82206cb1273e93b40a8f1e718e3ab86e9577b72524990602001610c4d565b8060005b818110156113825761137184848381811061136557634e487b7160e01b600052603260045260246000fd5b90506020020135610ffb565b5061137b8161201a565b905061133a565b50505050565b6000546001600160a01b031633146113b25760405162461bcd60e51b815260040161053090611ecb565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f021bc7f0c8f417c0bfd2953190e2bb164345161eec2bc776c10ac94f29d452df9060200161065a565b6000546001600160a01b0316331461142a5760405162461bcd60e51b815260040161053090611ecb565b6114346000611a60565b565b600061144183610ffb565b60008481526003602090815260408083203384528252808320815180830190925280548083526001909101549282019290925283519394509264e8d4a510009161148b9190611f79565b6114959190611f59565b905060008260200151826114a99190611f98565b845190915064e8d4a51000906114bf9087611f79565b6114c99190611f59565b6114d39083611f98565b602084015282516114e5908690611fd7565b83526000868152600360209081526040808320338452825290912084518155908401516001909101558015611579576001546040516304f2f8d960e31b8152336004820152602481018390526001600160a01b0390911690632797c6c890604401600060405180830381600087803b15801561156057600080fd5b505af1158015611574573d6000803e3d6000fd5b505050505b6060840151611592906001600160a01b031633876119f8565b604051858152869033907fda9a10d7b992511ddadbfc7ff712c1424ce2058bbcdac8c9876d6f8de590d43f9060200160405180910390a3604051818152869033907f9a4772cd5c0946aaea956f025c3bd64f5b4464abfaa006dbfc1ffe104b89ef2f9060200160405180910390a3505050505050565b6004546000908061161d5760009150506117e6565b60006002858154811061164057634e487b7160e01b600052603260045260246000fd5b6000918252602080832060408051608081018252600494850290920180548352600180820154848601526002820154848401526003918201546001600160a01b03908116606086019081528d89529286528388208c8216895286528388208451808601865281548152920154958201959095528351915192516370a0823160e01b8152309681019690965292965091949193919216906370a082319060240160206040518083038186803b1580156116f757600080fd5b505afa15801561170b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172f9190611e14565b905083604001514311801561174357508015155b156117b157600084604001514361175a9190611fd7565b90506000868660200151600654846117729190611f79565b61177c9190611f79565b6117869190611f59565b90508261179864e8d4a5100083611f79565b6117a29190611f59565b6117ac9085611f41565b935050505b6020830151835164e8d4a51000906117ca908590611f79565b6117d49190611f59565b6117de9190611f98565b955050505050505b92915050565b6000546001600160a01b031633146118165760405162461bcd60e51b815260040161053090611ecb565b600780546001600160a01b0319166001600160a01b0383169081179091556040519081527fd5e2a84aa36d46ec4790f610ee38160940db160864c3e92ad933ddf4fd72ad5d9060200161065a565b600061186f83610ffb565b60008481526003602090815260408083203384528252918290208251808401909352805480845260019091015491830191909152919250906118b2908490611f41565b8152815164e8d4a51000906118c79085611f79565b6118d19190611f59565b81602001516118e09190611f00565b6020828101918252600086815260038252604080822033808452935290208351815591516001909201919091556060830151611929916001600160a01b03909116903086611ab0565b604051838152849033907f9dbb0e7dda3e09710ce75b801addc87cf9d9c6c581641b3275fca409ad086c6290602001610c4d565b6000546001600160a01b031633146119875760405162461bcd60e51b815260040161053090611ecb565b6001600160a01b0381166119ec5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610530565b6119f581611a60565b50565b6040516001600160a01b038316602482015260448101829052611a5b90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611ae8565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526113829085906323b872dd60e01b90608401611a24565b6000611b3d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611bba9092919063ffffffff16565b805190915015611a5b5780806020019051810190611b5b9190611dc0565b611a5b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610530565b6060611bc98484600085611bd3565b90505b9392505050565b606082471015611c345760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610530565b843b611c825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610530565b600080866001600160a01b03168587604051611c9e9190611e7c565b60006040518083038185875af1925050503d8060008114611cdb576040519150601f19603f3d011682016040523d82523d6000602084013e611ce0565b606091505b5091509150611cf0828286611cfb565b979650505050505050565b60608315611d0a575081611bcc565b825115611d1a5782518084602001fd5b8160405162461bcd60e51b81526004016105309190611e98565b600060208284031215611d45578081fd5b8135611bcc8161204b565b60008060208385031215611d62578081fd5b823567ffffffffffffffff80821115611d79578283fd5b818501915085601f830112611d8c578283fd5b813581811115611d9a578384fd5b8660208260051b8501011115611dae578384fd5b60209290920196919550909350505050565b600060208284031215611dd1578081fd5b81518015158114611bcc578182fd5b600060208284031215611df1578081fd5b8151611bcc8161204b565b600060208284031215611e0d578081fd5b5035919050565b600060208284031215611e25578081fd5b5051919050565b60008060408385031215611e3e578182fd5b823591506020830135611e508161204b565b809150509250929050565b60008060408385031215611e6d578182fd5b50508035926020909101359150565b60008251611e8e818460208701611fee565b9190910192915050565b6020815260008251806020840152611eb7816040850160208701611fee565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b0384900385131615611f2257611f22612035565b600160ff1b8390038412811615611f3b57611f3b612035565b50500190565b60008219821115611f5457611f54612035565b500190565b600082611f7457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611f9357611f93612035565b500290565b60008083128015600160ff1b850184121615611fb657611fb6612035565b6001600160ff1b0384018313811615611fd157611fd1612035565b50500390565b600082821015611fe957611fe9612035565b500390565b60005b83811015612009578181015183820152602001611ff1565b838111156113825750506000910152565b600060001982141561202e5761202e612035565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146119f557600080fdfea2646970667358221220bfbf5a6e9d408c26455f556100b07356a3d7690f6f06332fd2a74d82b58e27f864736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635312ea8e116101045780638da5cb5b116100a2578063cab1364f11610071578063cab1364f14610465578063d0ebdbe71461046e578063e2bbb15814610481578063f2fde38b1461049457600080fd5b80638da5cb5b146103f157806393f1a40b14610402578063a0c7f71c14610449578063a21336651461045c57600080fd5b80636f6ff3bc116100de5780636f6ff3bc146103b0578063715018a6146103c35780637cd07e47146103cb57806387eebaea146103de57600080fd5b80635312ea8e1461035757806357a5b58c1461036a578063677e2af01461037d57600080fd5b80632b8bbbe81161017157806344c63eec1161014b57806344c63eec146102b7578063454b0608146102e2578063481c6a75146102f557806351eb05a61461030857600080fd5b80632b8bbbe81461027e578063379607f514610291578063441a3e70146102a457600080fd5b80631ab06ee5116101ad5780631ab06ee5146102305780631e014fcc1461024557806321fb8da61461025857806323cf31181461026b57600080fd5b8063081e3eda146101d45780631526fe27146101eb57806317caf6f114610227575b600080fd5b6002545b6040519081526020015b60405180910390f35b6101fe6101f9366004611dfc565b6104a7565b604080519485526020850193909352918301526001600160a01b031660608201526080016101e2565b6101d860045481565b61024361023e366004611e5b565b6104ea565b005b610243610253366004611dfc565b6105ff565b610243610266366004611dfc565b610665565b610243610279366004611d34565b610746565b61024361028c366004611e2c565b6107be565b61024361029f366004611dfc565b610a13565b6102436102b2366004611e5b565b610b5d565b6001546102ca906001600160a01b031681565b6040516001600160a01b0390911681526020016101e2565b6102436102f0366004611dfc565b610c5b565b6007546102ca906001600160a01b031681565b61031b610316366004611dfc565b610ffb565b6040516101e291908151815260208083015190820152604080830151908201526060918201516001600160a01b03169181019190915260800190565b610243610365366004611dfc565b6112b2565b610243610378366004611d50565b611336565b6103a061038b366004611d34565b60086020526000908152604090205460ff1681565b60405190151581526020016101e2565b6102436103be366004611d34565b611388565b610243611400565b6009546102ca906001600160a01b031681565b6102436103ec366004611e5b565b611436565b6000546001600160a01b03166102ca565b610434610410366004611e2c565b60036020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101e2565b6101d8610457366004611e2c565b611608565b6101d860065481565b6101d860055481565b61024361047c366004611d34565b6117ec565b61024361048f366004611e5b565b611864565b6102436104a2366004611d34565b61195d565b600281815481106104b757600080fd5b6000918252602090912060049091020180546001820154600283015460039093015491935091906001600160a01b031684565b6007546001600160a01b031633146105395760405162461bcd60e51b815260206004820152600d60248201526c39b2ba1d1010b6b0b730b3b2b960991b60448201526064015b60405180910390fd5b806002838154811061055b57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016001015460045461057a9190611fd7565b6105849190611f41565b60048190555080600283815481106105ac57634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160010181905550817f942cc7e17a17c164bd977f32ab8c54265d5b9d481e4e352bf874f1e568874e7c826040516105f391815260200190565b60405180910390a25050565b6000546001600160a01b031633146106295760405162461bcd60e51b815260040161053090611ecb565b60058190556040518181527fef5cff0f07016d24d3b61ccdbbd8a5cd2b1c7cc12fe03dcf61258c4dc2afa76d906020015b60405180910390a150565b6007546001600160a01b031633146106bf5760405162461bcd60e51b815260206004820152601860248201527f73657447726f506572426c6f636b3a20216d616e6167657200000000000000006044820152606401610530565b6005548111156107115760405162461bcd60e51b815260206004820181905260248201527f73657447726f506572426c6f636b3a203e206d617847726f506572426c6f636b6044820152606401610530565b60068190556040518181527f1fa92eb48df781e7cc40c189fdd28e43db409a6014f5a9af156b623c761b38679060200161065a565b6000546001600160a01b031633146107705760405162461bcd60e51b815260040161053090611ecb565b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f91fd088d16d243fa0cecbd79d788f3ec61b57f58cd2574924554dfa4db6693799060200161065a565b6007546001600160a01b031633146108085760405162461bcd60e51b815260206004820152600d60248201526c30b2321d1010b6b0b730b3b2b960991b6044820152606401610530565b816004600082825461081a9190611f41565b90915550506001600160a01b03811660009081526008602052604090205460ff16156108885760405162461bcd60e51b815260206004820152601a60248201527f6164643a206c70546f6b656e20616c72656164792061646465640000000000006044820152606401610530565b6040805160808101825260008082526020808301868152438486019081526001600160a01b0387811660608701818152600280546001808201835591895298517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace6004909a02998a015594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf89015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad088015591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad190960180546001600160a01b03191696909116959095179094558383526008825291849020805460ff191690921790915591519081527f62f9ac45ee463803e8be25d4b152392732d8d82a35d71f88608df68df9fc46c8910160405180910390a16002546001600160a01b038216906109dc90600190611fd7565b6040518481527f80ced013fa6cac51587ad829f875c2dff69de70dddf137abbf704b91b7163b5d9060200160405180910390a35050565b6000610a1e82610ffb565b60008381526003602090815260408083203384528252808320815180830190925280548083526001909101549282019290925283519394509264e8d4a5100091610a689190611f79565b610a729190611f59565b90506000826020015182610a869190611f98565b602080850184815260008881526003835260408082203383529093529190912085518155905160019091015590508015610b1f576001546040516304f2f8d960e31b8152336004820152602481018390526001600160a01b0390911690632797c6c890604401600060405180830381600087803b158015610b0657600080fd5b505af1158015610b1a573d6000803e3d6000fd5b505050505b604051818152859033907f9a4772cd5c0946aaea956f025c3bd64f5b4464abfaa006dbfc1ffe104b89ef2f9060200160405180910390a35050505050565b6000610b6883610ffb565b6000848152600360209081526040808320338452825291829020825180840190935280548352600101549082015281519192509064e8d4a5100090610bad9085611f79565b610bb79190611f59565b8160200151610bc69190611f98565b60208201528051610bd8908490611fd7565b8152600084815260036020908152604080832033808552908352922083518155908301516001909101556060830151610c1d916001600160a01b0390911690856119f8565b604051838152849033907fda9a10d7b992511ddadbfc7ff712c1424ce2058bbcdac8c9876d6f8de590d43f906020015b60405180910390a350505050565b6009546001600160a01b0316610ca85760405162461bcd60e51b815260206004820152601260248201527136b4b3b930ba329d1010b6b4b3b930ba37b960711b6044820152606401610530565b600060028281548110610ccb57634e487b7160e01b600052603260045260246000fd5b60009182526020808320604080516080810182526004948502909201805483526001810154938301939093526002830154828201526003909201546001600160a01b03166060820181905291516370a0823160e01b815230938101939093529350906370a082319060240160206040518083038186803b158015610d4e57600080fd5b505afa158015610d62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d869190611e14565b606083015160095460405163095ea7b360e01b81526001600160a01b03918216600482015260248101849052929350169063095ea7b390604401602060405180830381600087803b158015610dda57600080fd5b505af1158015610dee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e129190611dc0565b50600954606083015160405163ce5494bb60e01b81526001600160a01b039182166004820152600092919091169063ce5494bb90602401602060405180830381600087803b158015610e6357600080fd5b505af1158015610e77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9b9190611de0565b6040516370a0823160e01b81523060048201529091506001600160a01b038216906370a082319060240160206040518083038186803b158015610edd57600080fd5b505afa158015610ef1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f159190611e14565b8214610f6f5760405162461bcd60e51b8152602060048201526024808201527f6d6967726174653a206d696772617465642062616c616e6365206d757374206d6044820152630c2e8c6d60e31b6064820152608401610530565b6001600160a01b03811660608401526002805484919086908110610fa357634e487b7160e01b600052603260045260246000fd5b600091825260209182902083516004929092020190815590820151600182015560408201516002820155606090910151600390910180546001600160a01b0319166001600160a01b0390921691909117905550505050565b61102f604051806080016040528060008152602001600081526020016000815260200160006001600160a01b031681525090565b6004548061107f5760405162461bcd60e51b815260206004820181905260248201527f757064617465506f6f6c3a20746f74616c416c6c6f63506f696e74203d3d20306044820152606401610530565b600283815481106110a057634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160808101825260049093029091018054835260018101549383019390935260028301549082018190526003909201546001600160a01b0316606082015292504311156112ac5760608201516040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561113b57600080fd5b505afa15801561114f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111739190611e14565b905080156111e657600083604001514361118d9190611fd7565b90506000838560200151600654846111a59190611f79565b6111af9190611f79565b6111b99190611f59565b9050826111cb64e8d4a5100083611f79565b6111d59190611f59565b85516111e19190611f41565b855250505b436040840152600280548491908690811061121157634e487b7160e01b600052603260045260246000fd5b60009182526020918290208351600492909202019081558282015160018201556040808401516002830155606093840151600390920180546001600160a01b0319166001600160a01b039093169290921790915585810151865182519182529281018590529081019190915285917fcb7325664a4a3b7c7223eefc492a97ca4fdf94d46884621e5a8fae5a04b2b9d2910160405180910390a2505b50919050565b60006112bd82610ffb565b6000838152600360209081526040808320338085529252822080548382556001820193909355606084015193945092611302916001600160a01b0390911690836119f8565b604051818152849033907fcb8e650a8088d4aa667da82206cb1273e93b40a8f1e718e3ab86e9577b72524990602001610c4d565b8060005b818110156113825761137184848381811061136557634e487b7160e01b600052603260045260246000fd5b90506020020135610ffb565b5061137b8161201a565b905061133a565b50505050565b6000546001600160a01b031633146113b25760405162461bcd60e51b815260040161053090611ecb565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f021bc7f0c8f417c0bfd2953190e2bb164345161eec2bc776c10ac94f29d452df9060200161065a565b6000546001600160a01b0316331461142a5760405162461bcd60e51b815260040161053090611ecb565b6114346000611a60565b565b600061144183610ffb565b60008481526003602090815260408083203384528252808320815180830190925280548083526001909101549282019290925283519394509264e8d4a510009161148b9190611f79565b6114959190611f59565b905060008260200151826114a99190611f98565b845190915064e8d4a51000906114bf9087611f79565b6114c99190611f59565b6114d39083611f98565b602084015282516114e5908690611fd7565b83526000868152600360209081526040808320338452825290912084518155908401516001909101558015611579576001546040516304f2f8d960e31b8152336004820152602481018390526001600160a01b0390911690632797c6c890604401600060405180830381600087803b15801561156057600080fd5b505af1158015611574573d6000803e3d6000fd5b505050505b6060840151611592906001600160a01b031633876119f8565b604051858152869033907fda9a10d7b992511ddadbfc7ff712c1424ce2058bbcdac8c9876d6f8de590d43f9060200160405180910390a3604051818152869033907f9a4772cd5c0946aaea956f025c3bd64f5b4464abfaa006dbfc1ffe104b89ef2f9060200160405180910390a3505050505050565b6004546000908061161d5760009150506117e6565b60006002858154811061164057634e487b7160e01b600052603260045260246000fd5b6000918252602080832060408051608081018252600494850290920180548352600180820154848601526002820154848401526003918201546001600160a01b03908116606086019081528d89529286528388208c8216895286528388208451808601865281548152920154958201959095528351915192516370a0823160e01b8152309681019690965292965091949193919216906370a082319060240160206040518083038186803b1580156116f757600080fd5b505afa15801561170b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172f9190611e14565b905083604001514311801561174357508015155b156117b157600084604001514361175a9190611fd7565b90506000868660200151600654846117729190611f79565b61177c9190611f79565b6117869190611f59565b90508261179864e8d4a5100083611f79565b6117a29190611f59565b6117ac9085611f41565b935050505b6020830151835164e8d4a51000906117ca908590611f79565b6117d49190611f59565b6117de9190611f98565b955050505050505b92915050565b6000546001600160a01b031633146118165760405162461bcd60e51b815260040161053090611ecb565b600780546001600160a01b0319166001600160a01b0383169081179091556040519081527fd5e2a84aa36d46ec4790f610ee38160940db160864c3e92ad933ddf4fd72ad5d9060200161065a565b600061186f83610ffb565b60008481526003602090815260408083203384528252918290208251808401909352805480845260019091015491830191909152919250906118b2908490611f41565b8152815164e8d4a51000906118c79085611f79565b6118d19190611f59565b81602001516118e09190611f00565b6020828101918252600086815260038252604080822033808452935290208351815591516001909201919091556060830151611929916001600160a01b03909116903086611ab0565b604051838152849033907f9dbb0e7dda3e09710ce75b801addc87cf9d9c6c581641b3275fca409ad086c6290602001610c4d565b6000546001600160a01b031633146119875760405162461bcd60e51b815260040161053090611ecb565b6001600160a01b0381166119ec5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610530565b6119f581611a60565b50565b6040516001600160a01b038316602482015260448101829052611a5b90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611ae8565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526113829085906323b872dd60e01b90608401611a24565b6000611b3d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611bba9092919063ffffffff16565b805190915015611a5b5780806020019051810190611b5b9190611dc0565b611a5b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610530565b6060611bc98484600085611bd3565b90505b9392505050565b606082471015611c345760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610530565b843b611c825760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610530565b600080866001600160a01b03168587604051611c9e9190611e7c565b60006040518083038185875af1925050503d8060008114611cdb576040519150601f19603f3d011682016040523d82523d6000602084013e611ce0565b606091505b5091509150611cf0828286611cfb565b979650505050505050565b60608315611d0a575081611bcc565b825115611d1a5782518084602001fd5b8160405162461bcd60e51b81526004016105309190611e98565b600060208284031215611d45578081fd5b8135611bcc8161204b565b60008060208385031215611d62578081fd5b823567ffffffffffffffff80821115611d79578283fd5b818501915085601f830112611d8c578283fd5b813581811115611d9a578384fd5b8660208260051b8501011115611dae578384fd5b60209290920196919550909350505050565b600060208284031215611dd1578081fd5b81518015158114611bcc578182fd5b600060208284031215611df1578081fd5b8151611bcc8161204b565b600060208284031215611e0d578081fd5b5035919050565b600060208284031215611e25578081fd5b5051919050565b60008060408385031215611e3e578182fd5b823591506020830135611e508161204b565b809150509250929050565b60008060408385031215611e6d578182fd5b50508035926020909101359150565b60008251611e8e818460208701611fee565b9190910192915050565b6020815260008251806020840152611eb7816040850160208701611fee565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600080821280156001600160ff1b0384900385131615611f2257611f22612035565b600160ff1b8390038412811615611f3b57611f3b612035565b50500190565b60008219821115611f5457611f54612035565b500190565b600082611f7457634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615611f9357611f93612035565b500290565b60008083128015600160ff1b850184121615611fb657611fb6612035565b6001600160ff1b0384018313811615611fd157611fd1612035565b50500390565b600082821015611fe957611fe9612035565b500390565b60005b83811015612009578181015183820152602001611ff1565b838111156113825750506000910152565b600060001982141561202e5761202e612035565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146119f557600080fdfea2646970667358221220bfbf5a6e9d408c26455f556100b07356a3d7690f6f06332fd2a74d82b58e27f864736f6c63430008040033

Deployed Bytecode Sourcemap

552:11347:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3557:98;3633:8;:15;3557:98;;;10945:25:8;;;10933:2;10918:18;3557:98:0;;;;;;;;1257:26;;;;;;:::i;:::-;;:::i;:::-;;;;11802:25:8;;;11858:2;11843:18;;11836:34;;;;11886:18;;;11879:34;-1:-1:-1;;;;;11949:32:8;11944:2;11929:18;;11922:60;11789:3;11774:19;1257:26:0;11756:232:8;1510:30:0;;;;;;4698:300;;;;;;:::i;:::-;;:::i;:::-;;3037:169;;;;;;:::i;:::-;;:::i;3212:294::-;;;;;;:::i;:::-;;:::i;5136:145::-;;;;;;:::i;:::-;;:::i;3930:563::-;;;;;;:::i;:::-;;:::i;9807:578::-;;;;;;:::i;:::-;;:::i;9203:485::-;;;;;;:::i;:::-;;:::i;625:24::-;;;;;-1:-1:-1;;;;;625:24:0;;;;;;-1:-1:-1;;;;;3582:32:8;;;3564:51;;3552:2;3537:18;625:24:0;3519:102:8;5435:506:0;;;;;;:::i;:::-;;:::i;1615:22::-;;;;;-1:-1:-1;;;;;1615:22:0;;;6486:856;;;;;;:::i;:::-;;:::i;:::-;;;;;;10559:13:8;;10541:32;;10629:4;10617:17;;;10611:24;10589:20;;;10582:54;10692:4;10680:17;;;10674:24;10652:20;;;10645:54;10759:4;10747:17;;;10741:24;-1:-1:-1;;;;;10737:50:8;10715:20;;;10708:80;;;;10528:3;10513:19;;10495:299;11528:369:0;;;;;;:::i;:::-;;:::i;6119:188::-;;;;;;:::i;:::-;;:::i;1643:46::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4450:14:8;;4443:22;4425:41;;4413:2;4398:18;1643:46:0;4380:92:8;2753:140:0;;;;;;:::i;:::-;;:::i;1605:92:1:-;;;:::i;1858:25:0:-;;;;;-1:-1:-1;;;;;1858:25:0;;;10578:815;;;;;;:::i;:::-;;:::i;973:85:1:-;1019:7;1045:6;-1:-1:-1;;;;;1045:6:1;973:85;;1347:64:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11153:25:8;;;11209:2;11194:18;;11187:34;;;;11126:18;1347:64:0;11108:119:8;7564:822:0;;;;;;:::i;:::-;;:::i;1582:26::-;;;;;;1547:29;;;;;;2899:132;;;;;;:::i;:::-;;:::i;8550:502::-;;;;;;:::i;:::-;;:::i;1846:189:1:-;;;;;;:::i;:::-;;:::i;1257:26:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1257:26:0;;-1:-1:-1;;;;;1257:26:0;;:::o;4698:300::-;4787:7;;-1:-1:-1;;;;;4787:7:0;4773:10;:21;4765:47;;;;-1:-1:-1;;;4765:47:0;;8715:2:8;4765:47:0;;;8697:21:8;8754:2;8734:18;;;8727:30;-1:-1:-1;;;8773:18:8;;;8766:43;8826:18;;4765:47:0;;;;;;;;;4886:11;4858:8;4867:4;4858:14;;;;;;-1:-1:-1;;;4858:14:0;;;;;;;;;;;;;;;;;;;:25;;;4840:15;;:43;;;;:::i;:::-;:57;;;;:::i;:::-;4822:15;:75;;;;4935:11;4907:8;4916:4;4907:14;;;;;;-1:-1:-1;;;4907:14:0;;;;;;;;;;;;;;;;;;;:25;;:39;;;;4973:4;4962:29;4979:11;4962:29;;;;10945:25:8;;10933:2;10918:18;;10900:76;4962:29:0;;;;;;;;4698:300;;:::o;3037:169::-;1019:7:1;1045:6;-1:-1:-1;;;;;1045:6:1;666:10:7;1185:23:1;1177:68;;;;-1:-1:-1;;;1177:68:1;;;;;;;:::i;:::-;3118:14:0::1;:32:::0;;;3165:34:::1;::::0;10945:25:8;;;3165:34:0::1;::::0;10933:2:8;10918:18;3165:34:0::1;;;;;;;;3037:169:::0;:::o;3212:294::-;3299:7;;-1:-1:-1;;;;;3299:7:0;3285:10;:21;3277:58;;;;-1:-1:-1;;;3277:58:0;;7208:2:8;3277:58:0;;;7190:21:8;7247:2;7227:18;;;7220:30;7286:26;7266:18;;;7259:54;7330:18;;3277:58:0;7180:174:8;3277:58:0;3369:14;;3353:12;:30;;3345:75;;;;-1:-1:-1;;;3345:75:0;;6093:2:8;3345:75:0;;;6075:21:8;;;6112:18;;;6105:30;6171:34;6151:18;;;6144:62;6223:18;;3345:75:0;6065:182:8;3345:75:0;3430:11;:26;;;3471:28;;10945:25:8;;;3471:28:0;;10933:2:8;10918:18;3471:28:0;10900:76:8;5136:145:0;1019:7:1;1045:6;-1:-1:-1;;;;;1045:6:1;666:10:7;1185:23:1;1177:68;;;;-1:-1:-1;;;1177:68:1;;;;;;;:::i;:::-;5205:8:0::1;:20:::0;;-1:-1:-1;;;;;;5205:20:0::1;-1:-1:-1::0;;;;;5205:20:0;::::1;::::0;;::::1;::::0;;;5240:34:::1;::::0;3564:51:8;;;5240:34:0::1;::::0;3552:2:8;3537:18;5240:34:0::1;3519:102:8::0;3930:563:0;4021:7;;-1:-1:-1;;;;;4021:7:0;4007:10;:21;3999:47;;;;-1:-1:-1;;;3999:47:0;;7968:2:8;3999:47:0;;;7950:21:8;8007:2;7987:18;;;7980:30;-1:-1:-1;;;8026:18:8;;;8019:43;8079:18;;3999:47:0;7940:163:8;3999:47:0;4075:10;4056:15;;:29;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;4105:33:0;;;;;;:14;:33;;;;;;;;4104:34;4096:73;;;;-1:-1:-1;;;4096:73:0;;5738:2:8;4096:73:0;;;5720:21:8;5777:2;5757:18;;;5750:30;5816:28;5796:18;;;5789:56;5862:18;;4096:73:0;5710:176:8;4096:73:0;4206:103;;;;;;;;-1:-1:-1;4206:103:0;;;;;;;;;;4257:12;4206:103;;;;;;-1:-1:-1;;;;;4206:103:0;;;;;;;;;4179:8;:140;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4179:140:0;;;;;;;;;;;;4329:33;;;:14;:33;;;;;;:40;;-1:-1:-1;;4329:40:0;;;;;;;4384:34;;3564:51:8;;;4384:34:0;;3537:18:8;4384:34:0;;;;;;;4444:8;:15;-1:-1:-1;;;;;4433:53:0;;;4444:19;;4462:1;;4444:19;:::i;:::-;4433:53;;10945:25:8;;;4433:53:0;;10933:2:8;10918:18;4433:53:0;;;;;;;3930:563;;:::o;9807:578::-;9852:20;9875:15;9886:3;9875:10;:15::i;:::-;9900:20;9923:13;;;:8;:13;;;;;;;;9937:10;9923:25;;;;;;;9900:48;;;;;;;;;;;;;;;;;;;;;;;;;10005:19;;9852:38;;-1:-1:-1;9900:48:0;1741:4;;9991:33;;10005:19;9991:33;:::i;:::-;9990:55;;;;:::i;:::-;9959:87;;10056:15;10099:4;:15;;;10082:14;:32;;;;:::i;:::-;10145:15;;;;:32;;;10187:13;;;;:8;:13;;;;;;10201:10;10187:25;;;;;;;;;:32;;;;;;;;;;;10056:59;-1:-1:-1;10258:11:0;;10254:75;;10285:7;;:33;;-1:-1:-1;;;10285:33:0;;10298:10;10285:33;;;4180:51:8;4247:18;;;4240:34;;;-1:-1:-1;;;;;10285:7:0;;;;:12;;4153:18:8;;10285:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10254:75;10344:34;;10945:25:8;;;10365:3:0;;10353:10;;10344:34;;10933:2:8;10918:18;10344:34:0;;;;;;;9807:578;;;;;:::o;9203:485::-;9267:20;9290:15;9301:3;9290:10;:15::i;:::-;9315:20;9338:13;;;:8;:13;;;;;;;;9352:10;9338:25;;;;;;;;9315:48;;;;;;;;;;;;;;;;;;;9446:19;;9267:38;;-1:-1:-1;9315:48:0;1741:4;;9437:28;;:6;:28;:::i;:::-;9436:50;;;;:::i;:::-;9411:4;:15;;;:76;;;;:::i;:::-;9393:15;;;:94;9511:11;;:20;;9525:6;;9511:20;:::i;:::-;9497:34;;:11;9541:13;;;:8;:13;;;;;;;;9555:10;9541:25;;;;;;;;:32;;;;;;;;;;;;;9584:12;;;;:45;;-1:-1:-1;;;;;9584:25:0;;;;9622:6;9584:25;:45::i;:::-;9645:36;;10945:25:8;;;9669:3:0;;9657:10;;9645:36;;10933:2:8;10918:18;9645:36:0;;;;;;;;9203:485;;;;:::o;5435:506::-;5499:8;;-1:-1:-1;;;;;5499:8:0;5483:62;;;;-1:-1:-1;;;5483:62:0;;6861:2:8;5483:62:0;;;6843:21:8;6900:2;6880:18;;;6873:30;-1:-1:-1;;;6919:18:8;;;6912:48;6977:18;;5483:62:0;6833:168:8;5483:62:0;5555:20;5578:8;5587:4;5578:14;;;;;;-1:-1:-1;;;5578:14:0;;;;;;;;;;;;;;;;;5555:37;;;;;;;;5578:14;;;;;;;5555:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5555:37:0;;;;;;;5616;;-1:-1:-1;;;5616:37:0;;5647:4;5616:37;;;3564:51:8;;;;5555:37:0;-1:-1:-1;5555:37:0;5616:22;;3537:18:8;;5616:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5663:12;;;;5692:8;;5663:44;;-1:-1:-1;;;5663:44:0;;-1:-1:-1;;;;;5692:8:0;;;5663:44;;;4180:51:8;4247:18;;;4240:34;;;5602:51:0;;-1:-1:-1;5663:20:0;;;;4153:18:8;;5663:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;5737:8:0;;5754:12;;;;5737:30;;-1:-1:-1;;;5737:30:0;;-1:-1:-1;;;;;3582:32:8;;;5737:30:0;;;3564:51:8;5717:17:0;;5737:8;;;;;:16;;3537:18:8;;5737:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5792:35;;-1:-1:-1;;;5792:35:0;;5821:4;5792:35;;;3564:51:8;5717:50:0;;-1:-1:-1;;;;;;5792:20:0;;;;;3537:18:8;;5792:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5785:3;:42;5777:91;;;;-1:-1:-1;;;5777:91:0;;8310:2:8;5777:91:0;;;8292:21:8;8349:2;8329:18;;;8322:30;8388:34;8368:18;;;8361:62;-1:-1:-1;;;8439:18:8;;;8432:34;8483:19;;5777:91:0;8282:226:8;5777:91:0;-1:-1:-1;;;;;5878:25:0;;:12;;;:25;5913:8;:14;;5878:4;;5913:8;5922:4;;5913:14;;;;-1:-1:-1;;;5913:14:0;;;;;;;;;;;;;;;;;;:21;;:14;;;;;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;5913:21:0;-1:-1:-1;;;;;5913:21:0;;;;;;;;;-1:-1:-1;;;;5435:506:0:o;6486:856::-;6535:20;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6535:20:0;6594:15;;6627:20;6619:65;;;;-1:-1:-1;;;6619:65:0;;9057:2:8;6619:65:0;;;9039:21:8;;;9076:18;;;9069:30;9135:34;9115:18;;;9108:62;9187:18;;6619:65:0;9029:182:8;6619:65:0;6701:8;6710:3;6701:13;;;;;;-1:-1:-1;;;6701:13:0;;;;;;;;;;;;;;;;;;6694:20;;;;;;;;6701:13;;;;;;;6694:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6694:20:0;;;;;;-1:-1:-1;6728:12:0;:35;6724:612;;;6798:12;;;;:37;;-1:-1:-1;;;6798:37:0;;6829:4;6798:37;;;3564:51:8;6779:16:0;;-1:-1:-1;;;;;6798:22:0;;;;3537:18:8;;6798:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6779:56;-1:-1:-1;6853:12:0;;6849:304;;6885:14;6917:4;:20;;;6902:12;:35;;;;:::i;:::-;6885:52;;6955:17;7018:16;6999:4;:15;;;6985:11;;6976:6;:20;;;;:::i;:::-;:38;;;;:::i;:::-;6975:59;;;;:::i;:::-;6955:79;-1:-1:-1;7130:8:0;7097:29;1741:4;6955:79;7097:29;:::i;:::-;7096:42;;;;:::i;:::-;7074:19;;:64;;;;:::i;:::-;7052:86;;-1:-1:-1;;6849:304:0;7189:12;7166:20;;;:35;7215:8;:13;;7166:4;;7215:8;7224:3;;7215:13;;;;-1:-1:-1;;;7215:13:0;;;;;;;;;;;;;;;;;;:20;;:13;;;;;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;7215:20:0;-1:-1:-1;;;;;7215:20:0;;;;;;;;;;7273;;;;7305:19;;7254:71;;11434:25:8;;;11475:18;;;11468:34;;;11518:18;;;11511:34;;;;7268:3:0;;7254:71;;11407:18:8;7254:71:0;;;;;;;6724:612;;6486:856;;;;:::o;11528:369::-;11585:20;11608:15;11619:3;11608:10;:15::i;:::-;11633:21;11657:13;;;:8;:13;;;;;;;;11671:10;11657:25;;;;;;;11709:11;;11730:15;;;-1:-1:-1;11755:15:0;;:19;;;;11785:12;;;;;;-1:-1:-1;11657:25:0;11785:45;;-1:-1:-1;;;;;11785:25:0;;;;11709:11;11785:25;:45::i;:::-;11845;;10945:25:8;;;11878:3:0;;11866:10;;11845:45;;10933:2:8;10918:18;11845:45:0;10900:76:8;6119:188:0;6202:4;6188:11;6223:78;6247:3;6243:1;:7;6223:78;;;6271:19;6282:4;;6287:1;6282:7;;;;;-1:-1:-1;;;6282:7:0;;;;;;;;;;;;;;;6271:10;:19::i;:::-;-1:-1:-1;6252:3:0;;;:::i;:::-;;;6223:78;;;;6119:188;;;:::o;2753:140::-;1019:7:1;1045:6;-1:-1:-1;;;;;1045:6:1;666:10:7;1185:23:1;1177:68;;;;-1:-1:-1;;;1177:68:1;;;;;;;:::i;:::-;2820:7:0::1;:29:::0;;-1:-1:-1;;;;;;2820:29:0::1;-1:-1:-1::0;;;;;2820:29:0;::::1;::::0;;::::1;::::0;;;2864:22:::1;::::0;3564:51:8;;;2864:22:0::1;::::0;3552:2:8;3537:18;2864:22:0::1;3519:102:8::0;1605:92:1;1019:7;1045:6;-1:-1:-1;;;;;1045:6:1;666:10:7;1185:23:1;1177:68;;;;-1:-1:-1;;;1177:68:1;;;;;;;:::i;:::-;1669:21:::1;1687:1;1669:9;:21::i;:::-;1605:92::o:0;10578:815:0:-;10650:20;10673:15;10684:3;10673:10;:15::i;:::-;10698:20;10721:13;;;:8;:13;;;;;;;;10735:10;10721:25;;;;;;;10698:48;;;;;;;;;;;;;;;;;;;;;;;;;10802:19;;10650:38;;-1:-1:-1;10698:48:0;1741:4;;10788:33;;10802:19;10788:33;:::i;:::-;10787:55;;;;:::i;:::-;10756:87;;10853:15;10896:4;:15;;;10879:14;:32;;;;:::i;:::-;10994:19;;10853:59;;-1:-1:-1;1741:4:0;;10985:28;;:6;:28;:::i;:::-;10984:50;;;;:::i;:::-;10960:75;;:14;:75;:::i;:::-;10942:15;;;:93;11059:11;;:20;;11073:6;;11059:20;:::i;:::-;11045:34;;:11;11089:13;;;:8;:13;;;;;;;;11103:10;11089:25;;;;;;;:32;;;;;;;;;;;;;11160:11;;11156:75;;11187:7;;:33;;-1:-1:-1;;;11187:33:0;;11200:10;11187:33;;;4180:51:8;4247:18;;;4240:34;;;-1:-1:-1;;;;;11187:7:0;;;;:12;;4153:18:8;;11187:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11156:75;11240:12;;;;:45;;-1:-1:-1;;;;;11240:25:0;11266:10;11278:6;11240:25;:45::i;:::-;11301:36;;10945:25:8;;;11325:3:0;;11313:10;;11301:36;;10933:2:8;10918:18;11301:36:0;;;;;;;11352:34;;10945:25:8;;;11373:3:0;;11361:10;;11352:34;;10933:2:8;10918:18;11352:34:0;;;;;;;10578:815;;;;;;:::o;7564:822::-;7681:15;;7635:7;;7710:21;7706:35;;7740:1;7733:8;;;;;7706:35;7751:20;7774:8;7783:4;7774:14;;;;;;-1:-1:-1;;;7774:14:0;;;;;;;;;;;;;;;;;7751:37;;;;;;;;7774:14;;;;;;;7751:37;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7751:37:0;;;;;;;;;7821:14;;;;;;;;;:21;;;;;;;;;;7798:44;;;;;;;;;;;;;;;;;;;;;7874:19;;7922:12;;:37;;-1:-1:-1;;;7922:37:0;;7953:4;7922:37;;;3564:51:8;;;;7751:37:0;;-1:-1:-1;7798:44:0;;7874:19;;7774:14;;7922:22;;;;3537:18:8;;7922:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7903:56;;7988:4;:20;;;7973:12;:35;:52;;;;-1:-1:-1;8012:13:0;;;7973:52;7969:312;;;8041:14;8073:4;:20;;;8058:12;:35;;;;:::i;:::-;8041:52;;8107:17;8170:16;8151:4;:15;;;8137:11;;8128:6;:20;;;;:::i;:::-;:38;;;;:::i;:::-;8127:59;;;;:::i;:::-;8107:79;-1:-1:-1;8262:8:0;8229:29;1741:4;8107:79;8229:29;:::i;:::-;8228:42;;;;:::i;:::-;8214:56;;:11;:56;:::i;:::-;8200:70;;7969:312;;;8363:15;;;;8313:11;;1741:4;;8313:25;;8327:11;;8313:25;:::i;:::-;8312:47;;;;:::i;:::-;8305:73;;;;:::i;:::-;8290:89;;;;;;;7564:822;;;;;:::o;2899:132::-;1019:7:1;1045:6;-1:-1:-1;;;;;1045:6:1;666:10:7;1185:23:1;1177:68;;;;-1:-1:-1;;;1177:68:1;;;;;;;:::i;:::-;2966:7:0::1;:18:::0;;-1:-1:-1;;;;;;2966:18:0::1;-1:-1:-1::0;;;;;2966:18:0;::::1;::::0;;::::1;::::0;;;2999:25:::1;::::0;3564:51:8;;;2999:25:0::1;::::0;3552:2:8;3537:18;2999:25:0::1;3519:102:8::0;8550:502:0;8613:20;8636:15;8647:3;8636:10;:15::i;:::-;8661:20;8684:13;;;:8;:13;;;;;;;;8698:10;8684:25;;;;;;;;8661:48;;;;;;;;;;;;;;;;;;;;;;;;;8613:38;;-1:-1:-1;8661:48:0;8753:20;;8767:6;;8753:20;:::i;:::-;8739:34;;8836:19;;1741:4;;8827:28;;:6;:28;:::i;:::-;8826:50;;;;:::i;:::-;8801:4;:15;;;:76;;;;:::i;:::-;8783:15;;;;:94;;;8887:13;;;;:8;:13;;;;;;8901:10;8887:25;;;;;;;:32;;;;;;;;;;;;;;8930:12;;;;:64;;-1:-1:-1;;;;;8930:29:0;;;;8980:4;8987:6;8930:29;:64::i;:::-;9010:35;;10945:25:8;;;9033:3:0;;9021:10;;9010:35;;10933:2:8;10918:18;9010:35:0;10900:76:8;1846:189:1;1019:7;1045:6;-1:-1:-1;;;;;1045:6:1;666:10:7;1185:23:1;1177:68;;;;-1:-1:-1;;;1177:68:1;;;;;;;:::i;:::-;-1:-1:-1;;;;;1934:22:1;::::1;1926:73;;;::::0;-1:-1:-1;;;1926:73:1;;6454:2:8;1926:73:1::1;::::0;::::1;6436:21:8::0;6493:2;6473:18;;;6466:30;6532:34;6512:18;;;6505:62;-1:-1:-1;;;6583:18:8;;;6576:36;6629:19;;1926:73:1::1;6426:228:8::0;1926:73:1::1;2009:19;2019:8;2009:9;:19::i;:::-;1846:189:::0;:::o;634:205:5:-;773:58;;-1:-1:-1;;;;;4198:32:8;;773:58:5;;;4180:51:8;4247:18;;;4240:34;;;746:86:5;;766:5;;-1:-1:-1;;;796:23:5;4153:18:8;;773:58:5;;;;-1:-1:-1;;773:58:5;;;;;;;;;;;;;;-1:-1:-1;;;;;773:58:5;-1:-1:-1;;;;;;773:58:5;;;;;;;;;;746:19;:86::i;:::-;634:205;;;:::o;2041:169:1:-;2096:16;2115:6;;-1:-1:-1;;;;;2131:17:1;;;-1:-1:-1;;;;;;2131:17:1;;;;;;2163:40;;2115:6;;;;;;;2163:40;;2096:16;2163:40;2041:169;;:::o;845:241:5:-;1010:68;;-1:-1:-1;;;;;3884:15:8;;;1010:68:5;;;3866:34:8;3936:15;;3916:18;;;3909:43;3968:18;;;3961:34;;;983:96:5;;1003:5;;-1:-1:-1;;;1033:27:5;3801:18:8;;1010:68:5;3783:218:8;3140:706:5;3559:23;3585:69;3613:4;3585:69;;;;;;;;;;;;;;;;;3593:5;-1:-1:-1;;;;;3585:27:5;;;:69;;;;;:::i;:::-;3668:17;;3559:95;;-1:-1:-1;3668:21:5;3664:176;;3763:10;3752:30;;;;;;;;;;;;:::i;:::-;3744:85;;;;-1:-1:-1;;;3744:85:5;;10137:2:8;3744:85:5;;;10119:21:8;10176:2;10156:18;;;10149:30;10215:34;10195:18;;;10188:62;-1:-1:-1;;;10266:18:8;;;10259:40;10316:19;;3744:85:5;10109:232:8;3461:223:6;3594:12;3625:52;3647:6;3655:4;3661:1;3664:12;3625:21;:52::i;:::-;3618:59;;3461:223;;;;;;:::o;4548:499::-;4713:12;4770:5;4745:21;:30;;4737:81;;;;-1:-1:-1;;;4737:81:6;;7561:2:8;4737:81:6;;;7543:21:8;7600:2;7580:18;;;7573:30;7639:34;7619:18;;;7612:62;-1:-1:-1;;;7690:18:8;;;7683:36;7736:19;;4737:81:6;7533:228:8;4737:81:6;1034:20;;4828:60;;;;-1:-1:-1;;;4828:60:6;;9779:2:8;4828:60:6;;;9761:21:8;9818:2;9798:18;;;9791:30;9857:31;9837:18;;;9830:59;9906:18;;4828:60:6;9751:179:8;4828:60:6;4900:12;4914:23;4941:6;-1:-1:-1;;;;;4941:11:6;4960:5;4967:4;4941:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4899:73;;;;4989:51;5006:7;5015:10;5027:12;4989:16;:51::i;:::-;4982:58;4548:499;-1:-1:-1;;;;;;;4548:499:6:o;7161:692::-;7307:12;7335:7;7331:516;;;-1:-1:-1;7365:10:6;7358:17;;7331:516;7476:17;;:21;7472:365;;7670:10;7664:17;7730:15;7717:10;7713:2;7709:19;7702:44;7619:145;7809:12;7802:20;;-1:-1:-1;;;7802:20:6;;;;;;;;:::i;14:257:8:-;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:31;235:5;210:31;:::i;276:665::-;362:6;370;423:2;411:9;402:7;398:23;394:32;391:2;;;444:6;436;429:22;391:2;489:9;476:23;518:18;559:2;551:6;548:14;545:2;;;580:6;572;565:22;545:2;623:6;612:9;608:22;598:32;;668:7;661:4;657:2;653:13;649:27;639:2;;695:6;687;680:22;639:2;740;727:16;766:2;758:6;755:14;752:2;;;787:6;779;772:22;752:2;845:7;840:2;830:6;827:1;823:14;819:2;815:23;811:32;808:45;805:2;;;871:6;863;856:22;805:2;907;899:11;;;;;929:6;;-1:-1:-1;381:560:8;;-1:-1:-1;;;;381:560:8:o;946:297::-;1013:6;1066:2;1054:9;1045:7;1041:23;1037:32;1034:2;;;1087:6;1079;1072:22;1034:2;1124:9;1118:16;1177:5;1170:13;1163:21;1156:5;1153:32;1143:2;;1204:6;1196;1189:22;1248:276;1333:6;1386:2;1374:9;1365:7;1361:23;1357:32;1354:2;;;1407:6;1399;1392:22;1354:2;1444:9;1438:16;1463:31;1488:5;1463:31;:::i;1807:190::-;1866:6;1919:2;1907:9;1898:7;1894:23;1890:32;1887:2;;;1940:6;1932;1925:22;1887:2;-1:-1:-1;1968:23:8;;1877:120;-1:-1:-1;1877:120:8:o;2002:194::-;2072:6;2125:2;2113:9;2104:7;2100:23;2096:32;2093:2;;;2146:6;2138;2131:22;2093:2;-1:-1:-1;2174:16:8;;2083:113;-1:-1:-1;2083:113:8:o;2201:325::-;2269:6;2277;2330:2;2318:9;2309:7;2305:23;2301:32;2298:2;;;2351:6;2343;2336:22;2298:2;2392:9;2379:23;2369:33;;2452:2;2441:9;2437:18;2424:32;2465:31;2490:5;2465:31;:::i;:::-;2515:5;2505:15;;;2288:238;;;;;:::o;2876:258::-;2944:6;2952;3005:2;2993:9;2984:7;2980:23;2976:32;2973:2;;;3026:6;3018;3011:22;2973:2;-1:-1:-1;;3054:23:8;;;3124:2;3109:18;;;3096:32;;-1:-1:-1;2963:171:8:o;3139:274::-;3268:3;3306:6;3300:13;3322:53;3368:6;3363:3;3356:4;3348:6;3344:17;3322:53;:::i;:::-;3391:16;;;;;3276:137;-1:-1:-1;;3276:137:8:o;5148:383::-;5297:2;5286:9;5279:21;5260:4;5329:6;5323:13;5372:6;5367:2;5356:9;5352:18;5345:34;5388:66;5447:6;5442:2;5431:9;5427:18;5422:2;5414:6;5410:15;5388:66;:::i;:::-;5515:2;5494:15;-1:-1:-1;;5490:29:8;5475:45;;;;5522:2;5471:54;;5269:262;-1:-1:-1;;5269:262:8:o;9216:356::-;9418:2;9400:21;;;9437:18;;;9430:30;9496:34;9491:2;9476:18;;9469:62;9563:2;9548:18;;9390:182::o;11993:267::-;12032:3;12060:11;;;12087:10;;-1:-1:-1;;;;;12106:27:8;;;12099:35;;12083:52;12080:2;;;12138:18;;:::i;:::-;-1:-1:-1;;;12185:19:8;;;12178:27;;12170:36;;12167:2;;;12209:18;;:::i;:::-;-1:-1:-1;;12245:9:8;;12040:220::o;12265:128::-;12305:3;12336:1;12332:6;12329:1;12326:13;12323:2;;;12342:18;;:::i;:::-;-1:-1:-1;12378:9:8;;12313:80::o;12398:217::-;12438:1;12464;12454:2;;-1:-1:-1;;;12489:31:8;;12543:4;12540:1;12533:15;12571:4;12496:1;12561:15;12454:2;-1:-1:-1;12600:9:8;;12444:171::o;12620:168::-;12660:7;12726:1;12722;12718:6;12714:14;12711:1;12708:21;12703:1;12696:9;12689:17;12685:45;12682:2;;;12733:18;;:::i;:::-;-1:-1:-1;12773:9:8;;12672:116::o;12793:270::-;12832:4;12861:12;;;12889:10;;-1:-1:-1;;;12908:19:8;;12901:27;;12885:44;12882:2;;;12932:18;;:::i;:::-;-1:-1:-1;;;;;12979:27:8;;12972:35;;12964:44;;12961:2;;;13011:18;;:::i;:::-;-1:-1:-1;;13048:9:8;;12841:222::o;13068:125::-;13108:4;13136:1;13133;13130:8;13127:2;;;13141:18;;:::i;:::-;-1:-1:-1;13178:9:8;;13117:76::o;13198:258::-;13270:1;13280:113;13294:6;13291:1;13288:13;13280:113;;;13370:11;;;13364:18;13351:11;;;13344:39;13316:2;13309:10;13280:113;;;13411:6;13408:1;13405:13;13402:2;;;-1:-1:-1;;13446:1:8;13428:16;;13421:27;13251:205::o;13461:135::-;13500:3;-1:-1:-1;;13521:17:8;;13518:2;;;13541:18;;:::i;:::-;-1:-1:-1;13588:1:8;13577:13;;13508:88::o;13601:127::-;13662:10;13657:3;13653:20;13650:1;13643:31;13693:4;13690:1;13683:15;13717:4;13714:1;13707:15;13733:131;-1:-1:-1;;;;;13808:31:8;;13798:42;;13788:2;;13854:1;13851;13844:12

Swarm Source

ipfs://bfbf5a6e9d408c26455f556100b07356a3d7690f6f06332fd2a74d82b58e27f8

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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.