Contract 0x62ad8de6740314677f06723a7a07797ae5082dbb 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x25ef87bf522a06eb12a3265f1ddabb4a29bbe96ef00f2e21c7fff76efabec994Harvest477886332022-09-26 12:09:5612 mins ago0xba35e0dc08639ff7761c04d65b0781736b66481b IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.000450045
0x177bfe3bb078a0986d76c283b8047e56cfb7b42bc561577780140973af72160bHarvest477886312022-09-26 12:09:5312 mins ago0xba35e0dc08639ff7761c04d65b0781736b66481b IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.000404415
0x091186132b796da4503d57502bd860849179743859d58bd44188664d350c671fDeposit477885472022-09-26 12:08:1414 mins ago0x4815ee939fe2efec2f7bc415f0ce2282f6417fe9 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.00037957
0x750283dbb232f9189db640ff8934295e9d006cd012b4bad0b1cbbc1d9fce6840Deposit477885282022-09-26 12:07:5614 mins ago0x4815ee939fe2efec2f7bc415f0ce2282f6417fe9 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.000447865
0x4ce74a893b3359ff3d5e1e3f7d94e6655aee86a9b569fdaa914bbd6eb257db13Harvest477883542022-09-26 12:05:0117 mins ago0x4815ee939fe2efec2f7bc415f0ce2282f6417fe9 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.000361665
0x2ba913da29cba6b034ff1688089b5809f6279311f6f1e8814a8096c87bbdf1feHarvest477883362022-09-26 12:04:4317 mins ago0x4815ee939fe2efec2f7bc415f0ce2282f6417fe9 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.0004456325
0x166d01f71e24bb84f88b453c95fee9c25b1082d4ffeba137d405dd11b0da4cd3Deposit477880822022-09-26 11:59:3622 mins ago0x6547835644105f1313ffd5194f467720837b0c8c IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.002625422698
0xa290cb1b8c72eeb7e1fb9fbea37be0b6448515222a5bb1786e7eacc4483be67eHarvest477880332022-09-26 11:58:2724 mins ago0x6547835644105f1313ffd5194f467720837b0c8c IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.003049119944
0x697ab55e19830ca77b78a9818d4b8ce31f2f2d5a5756bbf8e514056584d10abeDeposit477879382022-09-26 11:56:0226 mins ago0x2b9ec7493e1bbbaa88c0a40c36963920d0a4e386 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.003480648068
0x984a07b9c13410481787485e8d42e0f91878d851ce77d426988ce7d66220ea01Harvest477877712022-09-26 11:52:0130 mins ago0x2b9ec7493e1bbbaa88c0a40c36963920d0a4e386 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.00346345579
0x7a85af18b38f1b98e756053f70b5829788583a81cb37e5b6800b8a7c336c8f00Harvest477877232022-09-26 11:50:5131 mins ago0x2b9ec7493e1bbbaa88c0a40c36963920d0a4e386 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.0003998925
0x4decff26ba6e0960fd5ac402e71abcf8f287f6707adf2f508d55746f0619667dDeposit477877122022-09-26 11:50:3931 mins ago0x2b9ec7493e1bbbaa88c0a40c36963920d0a4e386 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.00295001804
0xe03b0e9915e44e7672dc25f3f39f097bc80fd0c339c5046303591b6a11c9d70bHarvest477876922022-09-26 11:50:1132 mins ago0x2b9ec7493e1bbbaa88c0a40c36963920d0a4e386 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.00314311338
0x814b4ef8f2e54856dbf5b44956d57d35f0f121ba8ecb79880be94e5f03486902Deposit477876212022-09-26 11:48:2034 mins ago0xd2f1a5bbfcc1b4490ff5c3548bfbaff1f74af6a6 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.000447865
0x3f1b8558fc56185d18f4cc0366c606a8bc289b6b33436e09402d450d8923fb99Harvest477876012022-09-26 11:47:4934 mins ago0xd2f1a5bbfcc1b4490ff5c3548bfbaff1f74af6a6 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.003284325883
0x205df1f4c9a79ec41516c00596d9e79dad7a2adfa8e84ddb064fec6ae373d140Harvest477847052022-09-26 10:46:281 hr 36 mins ago0xdb2b9d473014d8c6a5e55da92205199457ba6624 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.000412854884
0x05cad8ddf6711c5ee6d13cb91d0625fe45532e64738874c356f5f069a22e19eeHarvest477843302022-09-26 10:38:021 hr 44 mins ago0x98ed1eae1836fa93a20fa389fc386ba75bd07d5b IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.009003629959
0x5918fffd0f08a3b3ed856d104cfa49b7f7a04125866c1219ed046d79e2ea2a95Deposit477834352022-09-26 10:17:422 hrs 4 mins ago0xb5e0c5a26ed9cd9c1684fbb1138d5952c53349f8 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.000399845157
0x86068ad632ecd3e2474a0f7dcce1f56046509383540619a59076812bfca03f7bHarvest477834052022-09-26 10:17:122 hrs 5 mins ago0xb5e0c5a26ed9cd9c1684fbb1138d5952c53349f8 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.000478037602
0x8494366dd293da8709ed6a042556ae77f624f62ab1cc96c2ff39242d5e9a41beDeposit477825442022-09-26 10:00:192 hrs 22 mins ago0xdb2b9d473014d8c6a5e55da92205199457ba6624 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.003356311588
0x36385af9c21129d3516b486fd4969eb8f915477e6a47d626a86448dd36e50c7bHarvest477825332022-09-26 10:00:032 hrs 22 mins ago0xdb2b9d473014d8c6a5e55da92205199457ba6624 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.003576001135
0x12fbb976baa55774abe3a03c0a39139330089a1417e82c1568efdce3ea558ec3Deposit477819282022-09-26 9:47:062 hrs 35 mins ago0x122c396f4ca9c47a25a4f8e1eea1181d54064416 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.000380664095
0x289587a11b9fdf23fcc155e494322ef815b50d5feb41d82f456285898dcc0122Harvest477819122022-09-26 9:46:442 hrs 35 mins ago0x122c396f4ca9c47a25a4f8e1eea1181d54064416 IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.00040558071
0x656b82b2a56fdb1604e0a4528cf4b993c91501882f5ce6e16f82a8ccaafde2adDeposit477818602022-09-26 9:45:472 hrs 36 mins ago0xacb17fc73cf202ebe532e107cec195d50dee61dd IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.00056342566
0x2dba91133f8fb68068f48637d55be5f38c360d0f65d2f8176d4583d1638b0778Harvest477817972022-09-26 9:44:062 hrs 38 mins ago0xacb17fc73cf202ebe532e107cec195d50dee61dd IN  0x62ad8de6740314677f06723a7a07797ae5082dbb0 FTM0.000671711991
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x466b592ae4dea3f14f9b9561ff8cec6fec6f850c4588cc3253fb858192d2ad99455904282022-08-24 15:03:3632 days 21 hrs ago 0xfe351f5ed699fd5ea80b906f89dfdad2f885a46c  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChefV2

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : MasterChefV2.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "./libraries/SignedSafeMath.sol";
import "./libraries/BoringMath.sol";
import "./interfaces/IRewarder.sol";

contract MasterChefV2 is AccessControl {
    using BoringMath for uint256;
    using BoringMath128 for uint128;
    using SafeERC20 for IERC20;
    using SignedSafeMath for int256;

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

    /// @notice Info of each MCV2 pool.
    /// `allocPoint` The amount of allocation points assigned to the pool.
    /// Also known as the amount of rewardToken to ditro per block.
    struct PoolInfo {
        uint128 accTokensPerShare;
        uint64 lastRewardTimestamp;
        uint64 allocPoint;
    }

    /// @notice Address of rewardToken contract.
    IERC20 public rewardToken;
    /// @notice Info of each MCV2 pool.
    PoolInfo[] public poolInfo;
    /// @notice Address of the LP token for each MCV2 pool.
    IERC20[] public lpToken;
    /// @notice Address of IRewarder cobtraact
    IRewarder public rewarder;

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

    bytes32 public constant APR_SETTER_ROLE = keccak256("APR_SETTER_ROLE");
    bytes32 public constant SETTER_ROLE = keccak256("SETTER_ROLE");

    event Deposit(
        address indexed user,
        uint256 indexed pid,
        uint256 amount,
        address indexed to
    );
    event Withdraw(
        address indexed user,
        uint256 indexed pid,
        uint256 amount,
        address indexed to
    );
    event EmergencyWithdraw(
        address indexed user,
        uint256 indexed pid,
        uint256 amount,
        address indexed to
    );
    event Harvest(address indexed user, uint256 indexed pid, uint256 amount);
    event LogPoolAddition(
        uint256 indexed pid,
        uint256 allocPoint,
        IERC20 indexed lpToken
    );
    event LogSetPool(uint256 indexed pid, uint256 allocPoint);
    event LogUpdatePool(
        uint256 indexed pid,
        uint64 lastRewardTimestamp,
        uint256 lpSupply,
        uint256 accTokensPerShare
    );
    event LogSetTokenPerSecond(uint256 oldValue, uint256 newValue);
    event LogInit();

    /// @param _rewardToken The rewardToken token contract address.
    /// @param _rewarder Address of Rewarder contract
    constructor(
        IERC20 _rewardToken,
        IRewarder _rewarder,
        uint256 _tokenPerSecond,
        address aprSetter,
        address setter,
        address admin
    ) public {
        rewardToken = _rewardToken;
        rewarder = _rewarder;
        tokenPerSecond = _tokenPerSecond;

        _setupRole(APR_SETTER_ROLE, aprSetter);
        _setupRole(SETTER_ROLE, setter);
        _setupRole(DEFAULT_ADMIN_ROLE, admin);
    }

    modifier onlyRole(bytes32 role) {
        require(
            hasRole(role, msg.sender),
            "AccessControl: account is mising role"
        );
        _;
    }

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

    function setRewarder(IRewarder _rewarder) external onlyRole(SETTER_ROLE) {
        rewarder = _rewarder;
    }

    function setTokenPerSecond(uint256 _tokenPerSecond)
        external
        onlyRole(APR_SETTER_ROLE)
    {
        for (uint256 i = 0; i < poolInfo.length; i++) {
            updatePool(i);
        }
        emit LogSetTokenPerSecond(tokenPerSecond, _tokenPerSecond);
        tokenPerSecond = _tokenPerSecond;
    }

    /// @notice Add a new LP to the pool. Can only be called by the owner.
    /// 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)
        public
        onlyRole(SETTER_ROLE)
    {
        uint256 lastRewardTimestamp = block.timestamp;
        totalAllocPoint = totalAllocPoint.add(allocPoint);
        lpToken.push(_lpToken);

        poolInfo.push(
            PoolInfo({
                allocPoint: allocPoint.to64(),
                lastRewardTimestamp: lastRewardTimestamp.to64(),
                accTokensPerShare: 0
            })
        );
        emit LogPoolAddition(lpToken.length.sub(1), allocPoint, _lpToken);
    }

    /// @notice Update the given pool's rewardToken allocation point and `IRewarder` contract. Can only be called by the owner.
    /// @param _pid The index of the pool. See `poolInfo`.
    /// @param _allocPoint New AP of the pool.
    function set(uint256 _pid, uint256 _allocPoint)
        public
        onlyRole(SETTER_ROLE)
    {
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(
            _allocPoint
        );
        poolInfo[_pid].allocPoint = _allocPoint.to64();
        emit LogSetPool(_pid, _allocPoint);
    }

    /// @notice View function to see pending rewardToken on frontend.
    /// @param _pid The index of the pool. See `poolInfo`.
    /// @param _user Address of user.
    /// @return pending rewardToken reward for a given user.
    function pendingTokens(uint256 _pid, address _user)
        external
        view
        returns (uint256 pending)
    {
        PoolInfo memory pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accTokensPerShare = pool.accTokensPerShare;
        uint256 lpSupply = lpToken[_pid].balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTimestamp && lpSupply != 0) {
            uint256 duration = block.timestamp.sub(pool.lastRewardTimestamp);
            uint256 tokenReward = duration.mul(tokenPerSecond).mul(
                pool.allocPoint
            ) / totalAllocPoint;
            accTokensPerShare = accTokensPerShare.add(
                tokenReward.mul(ACC_TOKEN_PRECISION) / lpSupply
            );
        }
        pending = int256(
            user.amount.mul(accTokensPerShare) / ACC_TOKEN_PRECISION
        ).sub(user.rewardDebt).toUInt256();
    }

    /// @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) {
        pool = poolInfo[pid];
        if (block.timestamp > pool.lastRewardTimestamp) {
            uint256 lpSupply = lpToken[pid].balanceOf(address(this));
            if (lpSupply > 0) {
                uint256 duration = block.timestamp.sub(
                    pool.lastRewardTimestamp
                );
                uint256 tokenReward = duration.mul(tokenPerSecond).mul(
                    pool.allocPoint
                ) / totalAllocPoint;
                pool.accTokensPerShare = pool.accTokensPerShare.add(
                    (tokenReward.mul(ACC_TOKEN_PRECISION) / lpSupply).to128()
                );
            }
            pool.lastRewardTimestamp = block.timestamp.to64();
            poolInfo[pid] = pool;
            emit LogUpdatePool(
                pid,
                pool.lastRewardTimestamp,
                lpSupply,
                pool.accTokensPerShare
            );
        }
    }

    /// @notice Deposit LP tokens to MCV2 for rewardToken allocation.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param amount LP token amount to deposit.
    /// @param to The receiver of `amount` deposit benefit.
    function deposit(
        uint256 pid,
        uint256 amount,
        address to
    ) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][to];

        // Effects
        user.amount = user.amount.add(amount);
        user.rewardDebt = user.rewardDebt.add(
            int256(amount.mul(pool.accTokensPerShare) / ACC_TOKEN_PRECISION)
        );

        // Interactions
        if (address(rewarder) != address(0)) {
            rewarder.onReward(pid, to, user.amount);
        }

        lpToken[pid].safeTransferFrom(msg.sender, address(this), amount);
        totalDepositedAmount[pid] += amount;

        emit Deposit(msg.sender, pid, amount, to);
    }

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

        // Effects
        user.rewardDebt = user.rewardDebt.sub(
            int256(amount.mul(pool.accTokensPerShare) / ACC_TOKEN_PRECISION)
        );
        user.amount = user.amount.sub(amount);

        // Interactions
        if (address(rewarder) != address(0)) {
            rewarder.onReward(pid, msg.sender, user.amount);
        }

        lpToken[pid].safeTransfer(to, amount);
        amount < totalDepositedAmount[pid]
            ? totalDepositedAmount[pid] -= amount
            : totalDepositedAmount[pid] = 0;

        emit Withdraw(msg.sender, pid, amount, to);
    }

    /// @notice Harvest proceeds for transaction sender to `to`.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param to Receiver of rewardToken rewards.
    function harvest(uint256 pid, address to) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][msg.sender];
        int256 accumulatedTokens = int256(
            user.amount.mul(pool.accTokensPerShare) / ACC_TOKEN_PRECISION
        );
        uint256 _pendingTokens = accumulatedTokens
            .sub(user.rewardDebt)
            .toUInt256();

        // Effects
        user.rewardDebt = accumulatedTokens;

        // Interactions
        if (_pendingTokens != 0) {
            rewardToken.safeTransfer(to, _pendingTokens);
        }

        if (address(rewarder) != address(0)) {
            rewarder.onReward(pid, msg.sender, user.amount);
        }

        emit Harvest(msg.sender, pid, _pendingTokens);
    }

    /// @notice Withdraw LP tokens from MCV2 and harvest proceeds for transaction sender to `to`.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param amount LP token amount to withdraw.
    /// @param to Receiver of the LP tokens and rewardToken rewards.
    function withdrawAndHarvest(
        uint256 pid,
        uint256 amount,
        address to
    ) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][msg.sender];
        int256 accumulatedTokens = int256(
            user.amount.mul(pool.accTokensPerShare) / ACC_TOKEN_PRECISION
        );
        uint256 _pendingTokens = accumulatedTokens
            .sub(user.rewardDebt)
            .toUInt256();

        // Effects
        user.rewardDebt = accumulatedTokens.sub(
            int256(amount.mul(pool.accTokensPerShare) / ACC_TOKEN_PRECISION)
        );
        user.amount = user.amount.sub(amount);

        // Interactions
        rewardToken.safeTransfer(msg.sender, _pendingTokens);

        if (address(rewarder) != address(0)) {
            rewarder.onReward(pid, msg.sender, user.amount);
        }

        lpToken[pid].safeTransfer(to, amount);
        amount < totalDepositedAmount[pid]
            ? totalDepositedAmount[pid] -= amount
            : totalDepositedAmount[pid] = 0;

        emit Withdraw(msg.sender, pid, amount, to);
        emit Harvest(msg.sender, pid, _pendingTokens);
    }

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

        if (address(rewarder) != address(0)) {
            rewarder.onReward(pid, msg.sender, 0);
        }

        // Note: transfer can fail or succeed if `amount` is zero.
        lpToken[pid].safeTransfer(to, amount);
        amount < totalDepositedAmount[pid]
            ? totalDepositedAmount[pid] -= amount
            : totalDepositedAmount[pid] = 0;

        emit EmergencyWithdraw(msg.sender, pid, amount, to);
    }
}

File 2 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 11 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 4 of 11 : SignedSafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

library SignedSafeMath {
    int256 constant private _INT256_MIN = -2**255;

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

        require(!(a == -1 && b == _INT256_MIN), "SignedSafeMath: multiplication overflow");

        int256 c = a * b;
        require(c / a == b, "SignedSafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two signed integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(int256 a, int256 b) internal pure returns (int256) {
        require(b != 0, "SignedSafeMath: division by zero");
        require(!(b == -1 && a == _INT256_MIN), "SignedSafeMath: division overflow");

        int256 c = a / b;

        return c;
    }

    /**
     * @dev Returns the subtraction of two signed integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a), "SignedSafeMath: subtraction overflow");

        return c;
    }

    /**
     * @dev Returns the addition of two signed integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a), "SignedSafeMath: addition overflow");

        return c;
    }

    function toUInt256(int256 a) internal pure returns (uint256) {
        require(a >= 0, "Integer < 0");
        return uint256(a);
    }
}

File 5 of 11 : BoringMath.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;

// a library for performing overflow-safe math, updated with awesomeness from of DappHub (https://github.com/dapphub/ds-math)
library BoringMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
        require((c = a + b) >= b, "BoringMath: Add Overflow");
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
        require((c = a - b) <= a, "BoringMath: Underflow");
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        require(b == 0 || (c = a * b) / b == a, "BoringMath: Mul Overflow");
    }

    function to128(uint256 a) internal pure returns (uint128 c) {
        require(a <= uint128(-1), "BoringMath: uint128 Overflow");
        c = uint128(a);
    }

    function to64(uint256 a) internal pure returns (uint64 c) {
        require(a <= uint64(-1), "BoringMath: uint64 Overflow");
        c = uint64(a);
    }

    function to32(uint256 a) internal pure returns (uint32 c) {
        require(a <= uint32(-1), "BoringMath: uint32 Overflow");
        c = uint32(a);
    }
}

library BoringMath128 {
    function add(uint128 a, uint128 b) internal pure returns (uint128 c) {
        require((c = a + b) >= b, "BoringMath: Add Overflow");
    }

    function sub(uint128 a, uint128 b) internal pure returns (uint128 c) {
        require((c = a - b) <= a, "BoringMath: Underflow");
    }
}

library BoringMath64 {
    function add(uint64 a, uint64 b) internal pure returns (uint64 c) {
        require((c = a + b) >= b, "BoringMath: Add Overflow");
    }

    function sub(uint64 a, uint64 b) internal pure returns (uint64 c) {
        require((c = a - b) <= a, "BoringMath: Underflow");
    }
}

library BoringMath32 {
    function add(uint32 a, uint32 b) internal pure returns (uint32 c) {
        require((c = a + b) >= b, "BoringMath: Add Overflow");
    }

    function sub(uint32 a, uint32 b) internal pure returns (uint32 c) {
        require((c = a - b) <= a, "BoringMath: Underflow");
    }
}

File 6 of 11 : IRewarder.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IRewarder {
  function onReward(
    uint256 pid,
    address user,
    uint256 newLpAmount
  ) external;

  function poolExists(uint256 pid) external view returns (bool);
}

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"},{"internalType":"uint256","name":"_tokenPerSecond","type":"uint256"},{"internalType":"address","name":"aprSetter","type":"address"},{"internalType":"address","name":"setter","type":"address"},{"internalType":"address","name":"admin","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"EmergencyWithdraw","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":"Harvest","type":"event"},{"anonymous":false,"inputs":[],"name":"LogInit","type":"event"},{"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":"LogPoolAddition","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":false,"internalType":"uint256","name":"oldValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"LogSetTokenPerSecond","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"lastRewardTimestamp","type":"uint64"},{"indexed":false,"internalType":"uint256","name":"lpSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accTokensPerShare","type":"uint256"}],"name":"LogUpdatePool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"APR_SETTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SETTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"pids","type":"uint256[]"}],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingTokens","outputs":[{"internalType":"uint256","name":"pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint128","name":"accTokensPerShare","type":"uint128"},{"internalType":"uint64","name":"lastRewardTimestamp","type":"uint64"},{"internalType":"uint64","name":"allocPoint","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"pools","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewarder","outputs":[{"internalType":"contract IRewarder","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IRewarder","name":"_rewarder","type":"address"}],"name":"setRewarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPerSecond","type":"uint256"}],"name":"setTokenPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalDepositedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"updatePool","outputs":[{"components":[{"internalType":"uint128","name":"accTokensPerShare","type":"uint128"},{"internalType":"uint64","name":"lastRewardTimestamp","type":"uint64"},{"internalType":"uint64","name":"allocPoint","type":"uint64"}],"internalType":"struct MasterChefV2.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":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawAndHarvest","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003042380380620030428339810160408190526200003491620001ee565b600180546001600160a01b038089166001600160a01b03199283161790925560048054928816929091169190911790556008849055620000957f04ed9fae86d7417236b4e2608e62e6c7a80aa7b786285a6f1a6b8dce5d8f637484620000da565b620000c17f61c92169ef077349011ff0b1383c894d86c5f0b41d986366b58a6cf31e93beda83620000da565b620000ce600082620000da565b5050505050506200028e565b620000e68282620000ea565b5050565b6000828152602081815260409091206200010f91839062001c3362000163821b17901c565b15620000e6576200011f62000183565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006200017a836001600160a01b03841662000187565b90505b92915050565b3390565b6000620001958383620001d6565b620001cd575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200017d565b5060006200017d565b60009081526001919091016020526040902054151590565b60008060008060008060c0878903121562000207578182fd5b8651620002148162000275565b6020880151909650620002278162000275565b604088015160608901519196509450620002418162000275565b6080880151909350620002548162000275565b60a0880151909250620002678162000275565b809150509295509295509295565b6001600160a01b03811681146200028b57600080fd5b50565b612da4806200029e6000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c80635fa7b83f1161010f578063a217fddf116100a2578063d547741f11610071578063d547741f14610405578063dcc3e06e14610418578063f7c618c114610420578063ffcd426314610428576101e5565b8063a217fddf146103cf578063c4003fdb146103d7578063ca15c873146103df578063d1abb907146103f2576101e5565b80639010d07c116100de5780639010d07c1461037357806391d148541461038657806393f1a40b146103a6578063a2011b3f146103c7576101e5565b80635fa7b83f146103255780636efcc16d1461032d57806378ed5d1f146103405780638dbdbe6d14610360576101e5565b80632b8bbbe8116101875780633a6462e4116101565780633a6462e4146102cc578063451c9eb0146102df57806351eb05a6146102f257806357a5b58c14610312576101e5565b80632b8bbbe8146102805780632f2ff15d146102935780632f940c70146102a657806336568abe146102b9576101e5565b806317caf6f1116101c357806317caf6f11461023f57806318fccc76146102475780631ab06ee51461025a578063248a9ca31461026d576101e5565b8063081e3eda146101ea5780630ad58d2f146102085780631526fe271461021d575b600080fd5b6101f261043b565b6040516101ff9190612718565b60405180910390f35b61021b610216366004612641565b610441565b005b61023061022b3660046125a5565b610656565b6040516101ff93929190612c7b565b6101f26106c4565b61021b6102553660046125bd565b6106ca565b61021b6102683660046125ec565b61087f565b6101f261027b3660046125a5565b6109c7565b61021b61028e3660046125bd565b6109df565b61021b6102a13660046125bd565b610c45565b61021b6102b43660046125bd565b610ca7565b61021b6102c73660046125bd565b610e3d565b61021b6102da36600461260d565b610eb3565b61021b6102ed3660046125a5565b610f5c565b6103056103003660046125a5565b61101e565b6040516101ff9190612c38565b61021b610320366004612516565b611377565b6101f26113ad565b6101f261033b3660046125a5565b6113b3565b61035361034e3660046125a5565b6113c5565b6040516101ff9190612695565b61021b61036e366004612641565b6113f9565b6103536103813660046125ec565b6115d5565b6103996103943660046125bd565b6115f6565b6040516101ff919061270d565b6103b96103b43660046125bd565b61160e565b6040516101ff929190612cdb565b6101f2611632565b6101f2611656565b6101f261165b565b6101f26103ed3660046125a5565b61167f565b61021b610400366004612641565b611696565b61021b6104133660046125bd565b61194b565b61035361199f565b6103536119bb565b6101f26104363660046125bd565b6119d7565b60025490565b6104496124f6565b6104528461101e565b600085815260056020908152604080832033845290915290208151919250906104ad9064e8d4a51000906104999087906fffffffffffffffffffffffffffffffff16611c55565b816104a057fe5b6001840154919004611ca6565b600182015580546104be9085611d06565b815560045473ffffffffffffffffffffffffffffffffffffffff161561056a576004805482546040517f7a5f11fa00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90921692637a5f11fa92610537928a92339201612caf565b600060405180830381600087803b15801561055157600080fd5b505af1158015610565573d6000803e3d6000fd5b505050505b6105a583856003888154811061057c57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169190611d43565b60008581526006602052604090205484106105d05760008581526006602052604081208190556105e8565b60008581526006602052604090208054859003908190555b508273ffffffffffffffffffffffffffffffffffffffff16853373ffffffffffffffffffffffffffffffffffffffff167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132876040516106479190612718565b60405180910390a45050505050565b6002818154811061066357fe5b6000918252602090912001546fffffffffffffffffffffffffffffffff8116915067ffffffffffffffff7001000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b60075481565b6106d26124f6565b6106db8361101e565b6000848152600560209081526040808320338452909152812082518154939450909264e8d4a510009161072091906fffffffffffffffffffffffffffffffff16611c55565b8161072757fe5b049050600061074b610746846001015484611ca690919063ffffffff16565b611de9565b600184018390559050801561077e5760015461077e9073ffffffffffffffffffffffffffffffffffffffff168683611d43565b60045473ffffffffffffffffffffffffffffffffffffffff1615610828576004805484546040517f7a5f11fa00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90921692637a5f11fa926107f5928b92339201612caf565b600060405180830381600087803b15801561080f57600080fd5b505af1158015610823573d6000803e3d6000fd5b505050505b853373ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249548360405161086f9190612718565b60405180910390a3505050505050565b7f61c92169ef077349011ff0b1383c894d86c5f0b41d986366b58a6cf31e93beda6108aa81336115f6565b6108e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612a1f565b60405180910390fd5b61093e82610938600286815481106108fd57fe5b600091825260209091200154600754907801000000000000000000000000000000000000000000000000900467ffffffffffffffff16611d06565b90611e29565b60075561094a82611e66565b6002848154811061095757fe5b9060005260206000200160000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550827f942cc7e17a17c164bd977f32ab8c54265d5b9d481e4e352bf874f1e568874e7c836040516109ba9190612718565b60405180910390a2505050565b6000818152602081905260409020600201545b919050565b7f61c92169ef077349011ff0b1383c894d86c5f0b41d986366b58a6cf31e93beda610a0a81336115f6565b610a40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612a1f565b6007544290610a4f9085611e29565b6007556003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8616179055604080516060810190915290815260029060208101610adf84611e66565b67ffffffffffffffff168152602001610af787611e66565b67ffffffffffffffff908116909152825460018181018555600094855260209485902084519201805495850151604090950151841678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff95909416700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff6fffffffffffffffffffffffffffffffff9094167fffffffffffffffffffffffffffffffff000000000000000000000000000000009097169690961792909216949094179290921617905560035473ffffffffffffffffffffffffffffffffffffffff851691610c089190611d06565b7f4710feb78e3bce8d2e3ca2989a8eb2f8bcd32a6a55b4535942c180fc4d2e295286604051610c379190612718565b60405180910390a350505050565b600082815260208190526040902060020154610c6390610394611eaa565b610c99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e09061283d565b610ca38282611eae565b5050565b600082815260056020908152604080832033845290915281208054828255600182019290925560045490919073ffffffffffffffffffffffffffffffffffffffff1615610d7b57600480546040517f7a5f11fa00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911691637a5f11fa91610d48918891339160009101612caf565b600060405180830381600087803b158015610d6257600080fd5b505af1158015610d76573d6000803e3d6000fd5b505050505b610d8d83826003878154811061057c57fe5b6000848152600660205260409020548110610db8576000848152600660205260408120819055610dd0565b60008481526006602052604090208054829003908190555b508273ffffffffffffffffffffffffffffffffffffffff16843373ffffffffffffffffffffffffffffffffffffffff167f2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b84604051610e2f9190612718565b60405180910390a450505050565b610e45611eaa565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ea9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612bdb565b610ca38282611f31565b7f61c92169ef077349011ff0b1383c894d86c5f0b41d986366b58a6cf31e93beda610ede81336115f6565b610f14576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612a1f565b50600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b7f04ed9fae86d7417236b4e2608e62e6c7a80aa7b786285a6f1a6b8dce5d8f6374610f8781336115f6565b610fbd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612a1f565b60005b600254811015610fdc57610fd38161101e565b50600101610fc0565b507f1af5c340f4e2b387d883c2ea6e7dafa06595aecdbd0761bc79cf068d1061c30e60085483604051611010929190612cdb565b60405180910390a150600855565b6110266124f6565b6002828154811061103357fe5b60009182526020918290206040805160608101825292909101546fffffffffffffffffffffffffffffffff8116835267ffffffffffffffff700100000000000000000000000000000000820481169484018590527801000000000000000000000000000000000000000000000000909104169082015291504211156109da576000600383815481106110c157fe5b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190611120903090600401612695565b60206040518083038186803b15801561113857600080fd5b505afa15801561114c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111709190612629565b9050801561122d57600061119b836020015167ffffffffffffffff1642611d0690919063ffffffff16565b905060006007546111cf856040015167ffffffffffffffff166111c960085486611c5590919063ffffffff16565b90611c55565b816111d657fe5b0490506112166111fc846111ef8464e8d4a51000611c55565b816111f657fe5b04611fb4565b85516fffffffffffffffffffffffffffffffff1690612000565b6fffffffffffffffffffffffffffffffff16845250505b61123642611e66565b67ffffffffffffffff166020830152600280548391908590811061125657fe5b6000918252602091829020835191018054848401516040958601517fffffffffffffffffffffffffffffffff000000000000000000000000000000009092166fffffffffffffffffffffffffffffffff909416939093177fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff1670010000000000000000000000000000000067ffffffffffffffff948516021777ffffffffffffffffffffffffffffffffffffffffffffffff16780100000000000000000000000000000000000000000000000093909116929092029190911790558301518351915185927f0fc9545022a542541ad085d091fb09a2ab36fee366a4576ab63714ea907ad353926113699290918691612ce9565b60405180910390a250919050565b8060005b818110156113a75761139e84848381811061139257fe5b9050602002013561101e565b5060010161137b565b50505050565b60085481565b60066020526000908152604090205481565b600381815481106113d257fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b6114016124f6565b61140a8461101e565b600085815260056020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915290208054919250906114499085611e29565b815581516114899064e8d4a51000906114759087906fffffffffffffffffffffffffffffffff16611c55565b8161147c57fe5b6001840154919004612052565b600182015560045473ffffffffffffffffffffffffffffffffffffffff1615611538576004805482546040517f7a5f11fa00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90921692637a5f11fa92611505928a92899201612caf565b600060405180830381600087803b15801561151f57600080fd5b505af1158015611533573d6000803e3d6000fd5b505050505b6115753330866003898154811061154b57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169291906120b2565b600085815260066020526040908190208054860190555173ffffffffffffffffffffffffffffffffffffffff841690869033907f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b4790610647908990612718565b60008281526020819052604081206115ed90836120d3565b90505b92915050565b60008281526020819052604081206115ed90836120df565b60056020908152600092835260408084209091529082529020805460019091015482565b7f61c92169ef077349011ff0b1383c894d86c5f0b41d986366b58a6cf31e93beda81565b600081565b7f04ed9fae86d7417236b4e2608e62e6c7a80aa7b786285a6f1a6b8dce5d8f637481565b60008181526020819052604081206115f090612101565b61169e6124f6565b6116a78461101e565b6000858152600560209081526040808320338452909152812082518154939450909264e8d4a51000916116ec91906fffffffffffffffffffffffffffffffff16611c55565b816116f357fe5b0490506000611712610746846001015484611ca690919063ffffffff16565b905061175664e8d4a5100061174686600001516fffffffffffffffffffffffffffffffff1689611c5590919063ffffffff16565b8161174d57fe5b84919004611ca6565b600184015582546117679087611d06565b835560015461178d9073ffffffffffffffffffffffffffffffffffffffff163383611d43565b60045473ffffffffffffffffffffffffffffffffffffffff1615611837576004805484546040517f7a5f11fa00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90921692637a5f11fa92611804928c92339201612caf565b600060405180830381600087803b15801561181e57600080fd5b505af1158015611832573d6000803e3d6000fd5b505050505b611849858760038a8154811061057c57fe5b600087815260066020526040902054861061187457600087815260066020526040812081905561188c565b60008781526006602052604090208054879003908190555b508473ffffffffffffffffffffffffffffffffffffffff16873373ffffffffffffffffffffffffffffffffffffffff167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132896040516118eb9190612718565b60405180910390a4863373ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249548360405161193a9190612718565b60405180910390a350505050505050565b60008281526020819052604090206002015461196990610394611eaa565b610ea9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e09061298b565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60006119e16124f6565b600284815481106119ee57fe5b600091825260208083206040805160608101825291909301546fffffffffffffffffffffffffffffffff808216835267ffffffffffffffff70010000000000000000000000000000000083048116848601527801000000000000000000000000000000000000000000000000909204909116828501528885526005835283852073ffffffffffffffffffffffffffffffffffffffff89168652909252918320825160038054949650919492169288908110611aa557fe5b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190611b04903090600401612695565b60206040518083038186803b158015611b1c57600080fd5b505afa158015611b30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b549190612629565b9050836020015167ffffffffffffffff1642118015611b7257508015155b15611bfa576000611b9a856020015167ffffffffffffffff1642611d0690919063ffffffff16565b90506000600754611bc8876040015167ffffffffffffffff166111c960085486611c5590919063ffffffff16565b81611bcf57fe5b049050611bf583611be58364e8d4a51000611c55565b81611bec57fe5b86919004611e29565b935050505b60018301548354611c28916107469164e8d4a5100090611c1a9087611c55565b81611c2157fe5b0490611ca6565b979650505050505050565b60006115ed8373ffffffffffffffffffffffffffffffffffffffff841661210c565b6000811580611c7057505080820282828281611c6d57fe5b04145b6115f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612ba4565b6000818303818312801590611cbb5750838113155b80611cd05750600083128015611cd057508381135b6115ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612aea565b808203828111156115f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612772565b611de48363a9059cbb60e01b8484604051602401611d629291906126e7565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152612156565b505050565b600080821215611e25576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612806565b5090565b818101818110156115f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e0906129e8565b600067ffffffffffffffff821115611e25576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612a7c565b3390565b6000828152602081905260409020611ec69082611c33565b15610ca357611ed3611eaa565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081905260409020611f49908261220c565b15610ca357611f56611eaa565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006fffffffffffffffffffffffffffffffff821115611e25576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612954565b8181016fffffffffffffffffffffffffffffffff80831690821610156115f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e0906129e8565b60008282018183128015906120675750838112155b8061207c575060008312801561207c57508381125b6115ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e09061289a565b6113a7846323b872dd60e01b858585604051602401611d62939291906126b6565b60006115ed838361222e565b60006115ed8373ffffffffffffffffffffffffffffffffffffffff841661228d565b60006115f0826122a5565b6000612118838361228d565b61214e575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556115f0565b5060006115f0565b60606121b8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166122a99092919063ffffffff16565b805190915015611de457808060200190518101906121d69190612585565b611de4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612b47565b60006115ed8373ffffffffffffffffffffffffffffffffffffffff84166122c2565b8154600090821061226b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e0906127a9565b82600001828154811061227a57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60606122b884846000856123a6565b90505b9392505050565b6000818152600183016020526040812054801561239c5783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff808301919081019060009087908390811061231357fe5b906000526020600020015490508087600001848154811061233057fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061236057fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506115f0565b60009150506115f0565b6060824710156123e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e0906128f7565b6123eb8561249d565b612421576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e090612ab3565b600060608673ffffffffffffffffffffffffffffffffffffffff16858760405161244b9190612679565b60006040518083038185875af1925050503d8060008114612488576040519150601f19603f3d011682016040523d82523d6000602084013e61248d565b606091505b5091509150611c288282866124a3565b3b151590565b606083156124b25750816122bb565b8251156124c25782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108e09190612721565b604080516060810182526000808252602082018190529181019190915290565b60008060208385031215612528578182fd5b823567ffffffffffffffff8082111561253f578384fd5b818501915085601f830112612552578384fd5b813581811115612560578485fd5b8660208083028501011115612573578485fd5b60209290920196919550909350505050565b600060208284031215612596578081fd5b815180151581146115ed578182fd5b6000602082840312156125b6578081fd5b5035919050565b600080604083850312156125cf578182fd5b8235915060208301356125e181612d49565b809150509250929050565b600080604083850312156125fe578182fd5b50508035926020909101359150565b60006020828403121561261e578081fd5b81356115ed81612d49565b60006020828403121561263a578081fd5b5051919050565b600080600060608486031215612655578081fd5b8335925060208401359150604084013561266e81612d49565b809150509250925092565b6000825161268b818460208701612d1d565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b901515815260200190565b90815260200190565b6000602082528251806020840152612740816040850160208701612d1d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60208082526015908201527f426f72696e674d6174683a20556e646572666c6f770000000000000000000000604082015260600190565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600b908201527f496e7465676572203c2030000000000000000000000000000000000000000000604082015260600190565b6020808252602f908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201527f2061646d696e20746f206772616e740000000000000000000000000000000000606082015260800190565b60208082526021908201527f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f426f72696e674d6174683a2075696e74313238204f766572666c6f7700000000604082015260600190565b60208082526030908201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60408201527f2061646d696e20746f207265766f6b6500000000000000000000000000000000606082015260800190565b60208082526018908201527f426f72696e674d6174683a20416464204f766572666c6f770000000000000000604082015260600190565b60208082526025908201527f416363657373436f6e74726f6c3a206163636f756e74206973206d6973696e6760408201527f20726f6c65000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f426f72696e674d6174683a2075696e743634204f766572666c6f770000000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526024908201527f5369676e6564536166654d6174683a207375627472616374696f6e206f76657260408201527f666c6f7700000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60408201527f6f74207375636365656400000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f426f72696e674d6174683a204d756c204f766572666c6f770000000000000000604082015260600190565b6020808252602f908201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560408201527f20726f6c657320666f722073656c660000000000000000000000000000000000606082015260800190565b81516fffffffffffffffffffffffffffffffff16815260208083015167ffffffffffffffff90811691830191909152604092830151169181019190915260600190565b6fffffffffffffffffffffffffffffffff93909316835267ffffffffffffffff918216602084015216604082015260600190565b92835273ffffffffffffffffffffffffffffffffffffffff919091166020830152604082015260600190565b918252602082015260400190565b67ffffffffffffffff93909316835260208301919091526fffffffffffffffffffffffffffffffff16604082015260600190565b60005b83811015612d38578181015183820152602001612d20565b838111156113a75750506000910152565b73ffffffffffffffffffffffffffffffffffffffff81168114612d6b57600080fd5b5056fea2646970667358221220af07b1a7c133a0c9d317bfeee913da6c42e0725a281e7eb967f02a013becea3164736f6c634300060c0033000000000000000000000000953cd009a490176fceb3a26b9753e6f01645ff28000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e5227f141575dce74721f4a9be2d7d636f923044000000000000000000000000e5227f141575dce74721f4a9be2d7d636f923044

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

000000000000000000000000953cd009a490176fceb3a26b9753e6f01645ff28000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e5227f141575dce74721f4a9be2d7d636f923044000000000000000000000000e5227f141575dce74721f4a9be2d7d636f923044

-----Decoded View---------------
Arg [0] : _rewardToken (address): 0x953cd009a490176fceb3a26b9753e6f01645ff28
Arg [1] : _rewarder (address): 0x0000000000000000000000000000000000000000
Arg [2] : _tokenPerSecond (uint256): 0
Arg [3] : aprSetter (address): 0x0000000000000000000000000000000000000000
Arg [4] : setter (address): 0xe5227f141575dce74721f4a9be2d7d636f923044
Arg [5] : admin (address): 0xe5227f141575dce74721f4a9be2d7d636f923044

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000953cd009a490176fceb3a26b9753e6f01645ff28
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 000000000000000000000000e5227f141575dce74721f4a9be2d7d636f923044
Arg [5] : 000000000000000000000000e5227f141575dce74721f4a9be2d7d636f923044


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.