Contract 0xECBb9E8fc8CAa4f01C7A44d4c8947143a470C352 9

 
Txn Hash Method
Block
From
To
Value
0x5e204d4d50edca09770b7f41b64b2f3049e86093eb6f8e22a1ed46dfd5abf26dDeposit129681772024-04-10 5:08:215 days 17 hrs ago0xa17d701db098dd4f8c9a4dabeb4f72a8820a695f IN  PlantBaseSwap : MasterChef0 ETH0.0000026189840.016154662
0x25e1e88a65177595d4011f7c995a49200320c406e3b3ea35d9f59e3a9db83b4fDeposit129681612024-04-10 5:07:495 days 17 hrs ago0xa17d701db098dd4f8c9a4dabeb4f72a8820a695f IN  PlantBaseSwap : MasterChef0 ETH0.0000022204520.016206553
0x205f7dd902b2e6ac2a10963a8b54913f609cecb3a2f5d7e741d2262acf92da9dWithdraw117932892024-03-14 0:25:2532 days 22 hrs ago0xd25f3ff4d63179800dce837dc5412dac1ba6133f IN  PlantBaseSwap : MasterChef0 ETH0.0000002606420.001
0x4c764cf7621508f3184cbdfd8117316b60879210d51a38034007c566b05c740aDeposit114961052024-03-07 3:19:1739 days 19 hrs ago0x0bd7443da81289ab84f8ec6123f9662e703e6548 IN  PlantBaseSwap : MasterChef0 ETH0.000134788790.110000289
0x1dd85b8699a408064b7e6008bd831935dc60dd6b02899675a667dac3834e4d4aDeposit114040792024-03-05 0:11:4541 days 22 hrs ago0x0bd7443da81289ab84f8ec6123f9662e703e6548 IN  PlantBaseSwap : MasterChef0 ETH0.0001439160050.110000264
0x744896a23002839380b5e3d1184e269d6b596536e3ee9b733edac969f8b3c92dDeposit112479342024-03-01 9:26:5545 days 13 hrs ago0xd25f3ff4d63179800dce837dc5412dac1ba6133f IN  PlantBaseSwap : MasterChef0 ETH0.0000731381950.001
0x80f283455e96cfa3cab1e9bab10510feaf4a3e4a119fd72c24421892e770ccbdDeposit112479162024-03-01 9:26:1945 days 13 hrs ago0xd25f3ff4d63179800dce837dc5412dac1ba6133f IN  PlantBaseSwap : MasterChef0 ETH0.0000703764890.001
0xe481d71bb1fdd63e323383442a1dd03b32409b7cdb167c65be1237ab2f424456Deposit106175172024-02-15 19:13:0160 days 3 hrs ago0xbf9c99804bfb59f87ed8a6b7b4eac30a25770a4f IN  PlantBaseSwap : MasterChef0 ETH0.000100595320.000091547
0x5afcfaed77c9aa876109a59c526c59d5994ad8a060265d3ed7637c5acac4fa92Withdraw104013182024-02-10 19:06:2365 days 3 hrs ago0x025b6cdfea375d62af8e0d31457b9cfcb15a49a3 IN  PlantBaseSwap : MasterChef0 ETH0.0000590394320.000097306
0x9b35ac4912ff07059c7211b7b2468b879724003a5b4e83e39e87e35bf86cfb93Deposit101633902024-02-05 6:55:2770 days 15 hrs ago0xd25f3ff4d63179800dce837dc5412dac1ba6133f IN  PlantBaseSwap : MasterChef0 ETH0.0000192516760.001
0x23ea1338d00dcd53647bfb09105ab4a65d3609f9f1cc95956a3c386249235451Deposit101633622024-02-05 6:54:3170 days 15 hrs ago0xd25f3ff4d63179800dce837dc5412dac1ba6133f IN  PlantBaseSwap : MasterChef0 ETH0.0000184758930.001
0x4d1340b336da2fd054dd0b6ccdc947987afcd780ef2a1f6e539c27ffb5095410Withdraw98336042024-01-28 15:42:3578 days 7 hrs ago0x659f3c2cb687aae4e7c89b4a8941fcf6948a6a8f IN  PlantBaseSwap : MasterChef0 ETH0.000027030620.000098033
0x2011143535d55427734098a34a9be1357c7c895a64927b909a682bc783e8e45aWithdraw97783782024-01-27 9:01:4379 days 13 hrs ago0x2f2e8c0b1c8546bf94c27630476fac165450e34e IN  PlantBaseSwap : MasterChef0 ETH0.0000393454160.110000279
0xe4f72d44d9d955107d2c1afcc729c524d4404688eb2c1e685bc983975dd4cc45Deposit97780202024-01-27 8:49:4779 days 13 hrs ago0x2f2e8c0b1c8546bf94c27630476fac165450e34e IN  PlantBaseSwap : MasterChef0 ETH0.000039381860.110000281
0x9ec88aac6b6babb85858d0b3b70de5fb2094867410c734c3a4049799c18bf930Deposit96662462024-01-24 18:43:5982 days 4 hrs ago0x659f3c2cb687aae4e7c89b4a8941fcf6948a6a8f IN  PlantBaseSwap : MasterChef0 ETH0.0000227133480.000044901
0x567c092cd5d111c93c4e2ffb9e3adbb49cf3455d19f76ff176491b8cbc31166dDeposit96605762024-01-24 15:34:5982 days 7 hrs ago0x0bd7443da81289ab84f8ec6123f9662e703e6548 IN  PlantBaseSwap : MasterChef0 ETH0.0000493459160.110000268
0x0b48a70b6cf9c233ae4610d0cd58192227be9d7c07d410a983199d4522a5a67fWithdraw96605352024-01-24 15:33:3782 days 7 hrs ago0x0bd7443da81289ab84f8ec6123f9662e703e6548 IN  PlantBaseSwap : MasterChef0 ETH0.0000473694090.110000262
0xd9a79183aecf652b2d0d18df567f8109ceb602fb563b0fe88c4454b2054fa250Deposit94642012024-01-20 2:29:0986 days 20 hrs ago0xf204e42a7c0ac37fdc3164554319792f189d27cd IN  PlantBaseSwap : MasterChef0 ETH0.000023039180.001214368
0x07eac2ebceeb8edad9426b404eba7f280aa23de3b52a9a7f542245a0180887e4Deposit93162982024-01-16 16:19:0390 days 6 hrs ago0x0bd7443da81289ab84f8ec6123f9662e703e6548 IN  PlantBaseSwap : MasterChef0 ETH0.0000877898060.110000254
0x3331779f463af794004379c9d071bdfd0ab8ca7e7cddccbe6db668ec9839bb36Deposit91564682024-01-12 23:31:2393 days 23 hrs ago0xa17d701db098dd4f8c9a4dabeb4f72a8820a695f IN  PlantBaseSwap : MasterChef0 ETH0.0000296540140.000008883
0x6fbb6f36e58f11e130395b5f955b6a665dbe019557b581cc5c3ae4730ba04c1dDeposit91564512024-01-12 23:30:4993 days 23 hrs ago0xa17d701db098dd4f8c9a4dabeb4f72a8820a695f IN  PlantBaseSwap : MasterChef0 ETH0.0000270339260.000009427
0x1102ad446672ccfcc0a601d413cb9ade235ecd01c6dd9ba8f62e952bab750d2bDeposit90550142024-01-10 15:09:3596 days 7 hrs ago0x0bd7443da81289ab84f8ec6123f9662e703e6548 IN  PlantBaseSwap : MasterChef0 ETH0.0000887238250.110000083
0x868d63f0bb02d8dedd170fe229fc7ff4f49174ea8c6c1dbaed9d5f0688744918Withdraw89952522024-01-09 5:57:3197 days 16 hrs ago0xd25f3ff4d63179800dce837dc5412dac1ba6133f IN  PlantBaseSwap : MasterChef0 ETH0.0000230034770.001
0x4c0cd4a3cb9afb2224b4991da00b957b7306ec492a9bceedcb288c11c1e498ceDeposit88452362024-01-05 18:36:59101 days 4 hrs ago0xd25f3ff4d63179800dce837dc5412dac1ba6133f IN  PlantBaseSwap : MasterChef0 ETH0.0000271477480.001
0x54f6cae67c85e58fa8cb9adf1cb82fd708f231e5d94bdda0d39563ae7ef29e96Deposit88452262024-01-05 18:36:39101 days 4 hrs ago0xd25f3ff4d63179800dce837dc5412dac1ba6133f IN  PlantBaseSwap : MasterChef0 ETH0.0000287845380.001
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion
File 1 of 12 : BoringERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

// solhint-disable avoid-low-level-calls

library BoringERC20 {
    bytes4 private constant SIG_SYMBOL = 0x95d89b41; // symbol()
    bytes4 private constant SIG_NAME = 0x06fdde03; // name()
    bytes4 private constant SIG_DECIMALS = 0x313ce567; // decimals()
    bytes4 private constant SIG_TRANSFER = 0xa9059cbb; // transfer(address,uint256)
    bytes4 private constant SIG_TRANSFER_FROM = 0x23b872dd; // transferFrom(address,address,uint256)

    function returnDataToString(bytes memory data) internal pure returns (string memory) {
        if (data.length >= 64) {
            return abi.decode(data, (string));
        } else if (data.length == 32) {
            uint8 i = 0;
            while (i < 32 && data[i] != 0) {
                i++;
            }
            bytes memory bytesArray = new bytes(i);
            for (i = 0; i < 32 && data[i] != 0; i++) {
                bytesArray[i] = data[i];
            }
            return string(bytesArray);
        } else {
            return "???";
        }
    }

    /// @notice Provides a safe ERC20.symbol version which returns '???' as fallback string.
    /// @param token The address of the ERC-20 token contract.
    /// @return (string) Token symbol.
    function safeSymbol(IERC20 token) internal view returns (string memory) {
        (bool success, bytes memory data) = address(token).staticcall(abi.encodeWithSelector(SIG_SYMBOL));
        return success ? returnDataToString(data) : "???";
    }

    /// @notice Provides a safe ERC20.name version which returns '???' as fallback string.
    /// @param token The address of the ERC-20 token contract.
    /// @return (string) Token name.
    function safeName(IERC20 token) internal view returns (string memory) {
        (bool success, bytes memory data) = address(token).staticcall(abi.encodeWithSelector(SIG_NAME));
        return success ? returnDataToString(data) : "???";
    }

    /// @notice Provides a safe ERC20.decimals version which returns '18' as fallback value.
    /// @param token The address of the ERC-20 token contract.
    /// @return (uint8) Token decimals.
    function safeDecimals(IERC20 token) internal view returns (uint8) {
        (bool success, bytes memory data) = address(token).staticcall(abi.encodeWithSelector(SIG_DECIMALS));
        return success && data.length == 32 ? abi.decode(data, (uint8)) : 18;
    }

    /// @notice Provides a safe ERC20.transfer version for different ERC-20 implementations.
    /// Reverts on a failed transfer.
    /// @param token The address of the ERC-20 token.
    /// @param to Transfer tokens to.
    /// @param amount The token amount.
    function safeTransfer(
        IERC20 token,
        address to,
        uint256 amount
    ) internal {
        (bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(SIG_TRANSFER, to, amount));
        require(success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: Transfer failed");
    }

    /// @notice Provides a safe ERC20.transferFrom version for different ERC-20 implementations.
    /// Reverts on a failed transfer.
    /// @param token The address of the ERC-20 token.
    /// @param from Transfer tokens from.
    /// @param to Transfer tokens to.
    /// @param amount The token amount.
    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        (bool success, bytes memory data) = address(token).call(
            abi.encodeWithSelector(SIG_TRANSFER_FROM, from, to, amount)
        );
        require(success && (data.length == 0 || abi.decode(data, (bool))), "BoringERC20: TransferFrom failed");
    }
}

File 2 of 12 : MasterChef.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./libraries/BoringERC20.sol";
import "./PlantToken.sol";
import "./Rewards.sol";

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

    function pendingTokens(address user) external view returns (uint256 pending);

    function rewardToken() external view returns (IERC20);
}

contract MasterChef is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using BoringERC20 for IERC20;

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

    /// @notice Info of each pool.
    /// `lpToken` Address of LP token contract.
    /// `allocPoint` The amount of allocation points assigned to the pool.
    ///     Also known as the amount of PLANT to distribute per second.
    /// `lastRewardTimestamp` Last timestamp that PLANTs distribution occurs.
    /// `depositFeeBP` Fee in basis points
    /// `accPlantPerShare` Accumulated PLANTs per share.
    struct PoolInfo {
        IERC20 lpToken;
        uint256 allocPoint;
        uint256 lastRewardTimestamp;
        uint256 accPlantPerShare;        
        IRewarder rewarder;
        uint16 depositFeeBP;
    }

    /// @notice The PLANT TOKEN!
    PlantToken public plant;
    /// @notice Address to store PLANT token reward
    Rewards public plantRewardContract;
    /// @notice DEV address.
    address public devAddr;
    /// @notice Treasury address.
    address public treasuryAddr;
    /// @notice Fee address.
    address public feeAddr;
    /// @notice Investor address
    address public investorAddr;
    /// @notice PLANT tokens created per second.
    uint256 public plantPerSec;
    /// @notice Limit plant per sec
    uint256 public plantPerSecLimit;
    /// @notice Percentage of pool rewards that goto the devs.
    uint256 public devPercent;
    /// @notice Percentage of pool rewards that goes to the treasury.
    uint256 public treasuryPercent;
    /// @notice Percentage of pool rewards that goes to the investor.
    uint256 public investorPercent;

    /// @notice Info of each pool.
    PoolInfo[] public poolInfo;
    /// @notice Mapping to check which LP tokens have been added as pools.
    mapping(IERC20 => bool) public isPool;
    /// @notice Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    /// @notice Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint;
    /// @notice The timestamp when PLANT mining starts.
    uint256 public startTimestamp;
    uint256 public constant ACC_PLANT_PRECISION = 1e12;
    /// @notice Maximum deposit fee rate: 10%
    uint16 public constant MAXIMUM_DEPOSIT_FEE_RATE = 1000;

    event Add(uint256 indexed pid, uint256 allocPoint, IERC20 indexed lpToken, uint16 depositFeeBP, IRewarder indexed rewarder);
    event Set(uint256 indexed pid, uint256 allocPoint, uint16 depositFeeBP, IRewarder indexed rewarder, bool overwrite);
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event UpdatePool(uint256 indexed pid, uint256 lastRewardTimestamp, uint256 lpSupply, uint256 accPlantPerShare);
    event Harvest(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event SetDevAddress(address indexed oldAddress, address indexed newAddress);
    event UpdateEmissionRate(address indexed user, uint256 plantPerSec);

    constructor(
        PlantToken _plant,
        Rewards _plantRewardContract,
        address _devAddr,
        address _feeAddr,
        address _treasuryAddr,
        address _investorAddr,
        uint256 _plantPerSec,
        uint256 _devPercent,
        uint256 _treasuryPercent,
        uint256 _investorPercent
    ) public {
        require(0 <= _devPercent && _devPercent <= 300, "constructor: invalid dev percent value");
        require(0 <= _treasuryPercent && _treasuryPercent <= 300, "constructor: invalid treasury percent value");
        require(0 <= _investorPercent && _investorPercent <= 300, "constructor: invalid investor percent value");
        require(_devPercent + _treasuryPercent + _investorPercent <= 300, "constructor: total percent over max");
        plant = _plant;
        plantRewardContract = _plantRewardContract;
        devAddr = _devAddr;
        feeAddr = _feeAddr;
        treasuryAddr = _treasuryAddr;
        investorAddr = _investorAddr;
        plantPerSec = _plantPerSec;
        plantPerSecLimit = _plantPerSec;
        devPercent = _devPercent;
        treasuryPercent = _treasuryPercent;
        investorPercent = _investorPercent;
        totalAllocPoint = 0;

        //StartBlock always many years later from contract const ruct, will be set later in StartFarming function
        startTimestamp = block.timestamp + (60 * 60 * 24 * 365);
    }

    /// @notice Set farming start, can call only once
    function startFarming() public onlyOwner {
        require(block.timestamp < startTimestamp, "start farming: farm started already");

        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            PoolInfo storage pool = poolInfo[pid];
            pool.lastRewardTimestamp = block.timestamp;
        }

        startTimestamp = block.timestamp;
    }

    modifier validatePoolByPid(uint256 _pid) {
        require(_pid < poolInfo.length, "Pool does not exist");
        _;
    }

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

    /// @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.
    /// @param _depositFeeBP Deposit fee.
    /// @param _rewarder Address of the rewarder delegate.
    /// @param _withUpdate Whether call "massUpdatePools" operation.
    function add(
        uint256 _allocPoint,
        IERC20 _lpToken,
        uint16 _depositFeeBP,
        IRewarder _rewarder,
        bool _withUpdate
    ) external onlyOwner {
        require(!isPool[_lpToken], "add: LP already added");
        require(_depositFeeBP <= MAXIMUM_DEPOSIT_FEE_RATE, "add: deposit fee too high");
        // Sanity check to ensure _lpToken is an ERC20 token
        _lpToken.balanceOf(address(this));
        // Sanity check if we add a rewarder
        if (address(_rewarder) != address(0)) {
            _rewarder.onPlantReward(address(0), 0);
        }
        if (_withUpdate) {
            _massUpdatePools();
        }

        uint256 lastRewardTimestamp = block.timestamp > startTimestamp ? block.timestamp : startTimestamp;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);

        poolInfo.push(
            PoolInfo({
                lpToken: _lpToken,
                allocPoint: _allocPoint,
                lastRewardTimestamp: lastRewardTimestamp,
                accPlantPerShare: 0,                
                rewarder: _rewarder,
                depositFeeBP: _depositFeeBP
            })
        );
        isPool[_lpToken] = true;
        emit Add(poolInfo.length.sub(1), _allocPoint, _lpToken, _depositFeeBP, _rewarder);
    }

    /// @notice Update the given pool's PLANT 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.
    /// @param _depositFeeBP Deposit fee.
    /// @param _rewarder Address of the rewarder delegate.
    /// @param overwrite True if _rewarder should be `set`. Otherwise `_rewarder` is ignored.
    /// @param _withUpdate Whether call "_massUpdatePools" operation.
    function set(
        uint256 _pid,
        uint256 _allocPoint,
        uint16 _depositFeeBP,
        IRewarder _rewarder,
        bool overwrite,
        bool _withUpdate
    ) external onlyOwner validatePoolByPid(_pid) {
        require(_depositFeeBP <= MAXIMUM_DEPOSIT_FEE_RATE, "set: deposit fee too high");
        /// No matter _withUpdate is true or false, we need to execute updatePool once before set the pool parameters.
        _updatePool(_pid);

        if (_withUpdate) {
            _massUpdatePools();
        }

        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
        if (overwrite) {
            _rewarder.onPlantReward(address(0), 0); // sanity check
            poolInfo[_pid].rewarder = _rewarder;
        }
        emit Set(_pid, _allocPoint, _depositFeeBP, overwrite ? _rewarder : poolInfo[_pid].rewarder, overwrite);
    }

    /// @notice View function to see pending PLANT on frontend.
    /// @param _pid The index of the pool. See `poolInfo`.
    /// @param _user Address of user.
    /// @return pendingPlant PLANT reward for a given user.
    //          bonusTokenAddress The address of the bonus reward.
    //          bonusTokenSymbol The symbol of the bonus token.
    //          pendingBonusToken The amount of bonus rewards pending.
    function pendingTokens(
        uint256 _pid,
        address _user
    )
        external
        view
        returns (
            uint256 pendingPlant,
            address bonusTokenAddress,
            string memory bonusTokenSymbol,
            uint256 pendingBonusToken
        )
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accPlantPerShare = pool.accPlantPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTimestamp && lpSupply != 0) {
            uint256 timeElapsed = block.timestamp.sub(pool.lastRewardTimestamp);
            uint256 lpPercent = 1000 - devPercent - treasuryPercent - investorPercent;
            uint256 plantReward = timeElapsed
                .mul(plantPerSec)
                .mul(pool.allocPoint)
                .div(totalAllocPoint)
                .mul(lpPercent)
                .div(1000);
            accPlantPerShare = accPlantPerShare.add(plantReward.mul(ACC_PLANT_PRECISION).div(lpSupply));
        }
        pendingPlant = user.amount.mul(accPlantPerShare).div(ACC_PLANT_PRECISION).sub(user.rewardDebt);

        // If it's a double reward farm, we return info about the bonus token
        if (address(pool.rewarder) != address(0)) {
            bonusTokenAddress = address(pool.rewarder.rewardToken());
            bonusTokenSymbol = IERC20(pool.rewarder.rewardToken()).safeSymbol();
            pendingBonusToken = pool.rewarder.pendingTokens(_user);
        }
    }

    /// @notice Update plant reward for all the active pools. Be careful of gas spending!
    function massUpdatePools() external nonReentrant {
        _massUpdatePools();
    }

    /// @notice Internal method for massUpdatePools
    function _massUpdatePools() internal {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            PoolInfo storage pool = poolInfo[pid];
            if (pool.allocPoint != 0) {
                _updatePool(pid);
            }
        }
    }

    /// @notice Update reward variables of the given pool to be up-to-date.
    /// @param _pid The index of the pool. See `poolInfo`.
    function updatePool(uint256 _pid) external nonReentrant {
        _updatePool(_pid);
    }

    /// @notice Internal method for updatePool
    function _updatePool(uint256 _pid) internal validatePoolByPid(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.timestamp > pool.lastRewardTimestamp) {
            uint256 lpSupply = pool.lpToken.balanceOf(address(this));
            // gas opt and prevent div by 0
            if (lpSupply > 0 && totalAllocPoint > 0) {
                uint256 timeElapsed = block.timestamp.sub(pool.lastRewardTimestamp);
                uint256 plantReward = timeElapsed.mul(plantPerSec).mul(pool.allocPoint).div(totalAllocPoint);
                uint256 lpPercent = 1000 - devPercent - treasuryPercent - investorPercent;
                plant.mint(devAddr, plantReward.mul(devPercent).div(1000));
                plant.mint(treasuryAddr, plantReward.mul(treasuryPercent).div(1000));
                plant.mint(investorAddr, plantReward.mul(investorPercent).div(1000));
                plant.mint(address(plantRewardContract), plantReward.mul(lpPercent).div(1000));

                pool.accPlantPerShare = pool.accPlantPerShare.add(
                    plantReward.mul(ACC_PLANT_PRECISION).div(lpSupply).mul(lpPercent).div(1000)
                );
            }
            pool.lastRewardTimestamp = block.timestamp;
            emit UpdatePool(_pid, pool.lastRewardTimestamp, lpSupply, pool.accPlantPerShare);
        }
    }

    /// @notice Deposit LP tokens to MasterChef for Plant allocation.
    /// @param _pid The index of the pool. See `poolInfo`.
    /// @param _amount LP token amount to deposit.
    function deposit(uint256 _pid, uint256 _amount) external nonReentrant {
        _deposit(_pid, _amount);
    }

    /// @notice Internal method for deposit
    function _deposit(uint256 _pid, uint256 _amount) internal validatePoolByPid(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        _updatePool(_pid);

        if (user.amount > 0) {
            // Harvest PLANT
            uint256 pending = user.amount.mul(pool.accPlantPerShare).div(ACC_PLANT_PRECISION).sub(user.rewardDebt);
            if (pending > 0) {
                safePlantTransfer(msg.sender, pending);
                emit Harvest(msg.sender, _pid, pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = (_amount * pool.depositFeeBP) / 10000;
                pool.lpToken.safeTransfer(feeAddr, depositFee);

                _amount = _amount - depositFee;
            }
            user.amount = user.amount.add(_amount);
        }
        user.rewardDebt = user.amount.mul(pool.accPlantPerShare).div(ACC_PLANT_PRECISION);

        IRewarder rewarder = pool.rewarder;
        if (address(rewarder) != address(0)) {
            rewarder.onPlantReward(msg.sender, user.amount);
        }
        emit Deposit(msg.sender, _pid, _amount);
    }

    /// @notice Withdraw LP tokens from MasterChef.
    /// @param _pid The index of the pool. See `poolInfo`.
    /// @param _amount LP token amount to withdraw.
    function withdraw(uint256 _pid, uint256 _amount) external nonReentrant validatePoolByPid(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: Insufficient");

        _updatePool(_pid);

        // Harvest PLANT
        uint256 pending = user.amount.mul(pool.accPlantPerShare).div(ACC_PLANT_PRECISION).sub(user.rewardDebt);
        if (pending > 0) {
            safePlantTransfer(msg.sender, pending);
            emit Harvest(msg.sender, _pid, pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accPlantPerShare).div(ACC_PLANT_PRECISION);

        IRewarder rewarder = pool.rewarder;
        if (address(rewarder) != address(0)) {
            rewarder.onPlantReward(msg.sender, user.amount);
        }
        emit Withdraw(msg.sender, _pid, _amount);
    }

    /// @notice Withdraw without caring about rewards. EMERGENCY ONLY.
    /// @param _pid The index of the pool. See `poolInfo`.
    function emergencyWithdraw(uint256 _pid) external nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

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

        IRewarder rewarder = pool.rewarder;
        if (address(rewarder) != address(0)) {
            rewarder.onPlantReward(msg.sender, 0);
        }

        // Note: transfer can fail or succeed if `amount` is zero.
        pool.lpToken.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }

    /// @notice Function to harvest many pools in a single transaction
    function harvestMany(uint256[] calldata _pids) public nonReentrant {
        require(_pids.length <= 30, "harvest many: too many pool ids");
        for (uint256 index = 0; index < _pids.length; ++index) {
            _deposit(_pids[index], 0);
        }
    }

    /// @notice Safe plant transfer function, just in case if rounding error causes pool to not have enough PLANTs.
    function safePlantTransfer(address _to, uint256 _amount) internal {
        plantRewardContract.safePlantTransfer(_to, _amount);
    }

    /// @notice Update dev address by the previous dev.
    function dev(address _devAddr) external {
        require(msg.sender == devAddr, "dev: wut?");
        devAddr = _devAddr;
        emit SetDevAddress(msg.sender, _devAddr);
    }

    /// @notice Update Dev percent
    function setDevPercent(uint256 _newDevPercent) public onlyOwner {
        require(0 <= _newDevPercent && _newDevPercent <= 100, "setDevPercent: invalid percent value");
        require(treasuryPercent + _newDevPercent + investorPercent <= 300, "setDevPercent: total percent over max");
        devPercent = _newDevPercent;
    }

    /// @notice Update treasury address by the previous treasury.
    function setTreasuryAddr(address _treasuryAddr) public {
        require(msg.sender == treasuryAddr, "setTreasuryAddr: wut?");
        treasuryAddr = _treasuryAddr;
    }

    /// @notice Update treasury percent
    function setTreasuryPercent(uint256 _newTreasuryPercent) public onlyOwner {
        require(0 <= _newTreasuryPercent && _newTreasuryPercent <= 100, "setTreasuryPercent: invalid percent value");
        require(
            devPercent + _newTreasuryPercent + investorPercent <= 300,
            "setTreasuryPercent: total percent over max"
        );
        treasuryPercent = _newTreasuryPercent;
    }

    /// @notice Update the investor address by the previous investor.
    function setInvestorAddr(address _investorAddr) public {
        require(msg.sender == investorAddr, "setInvestorAddr: wut?");
        investorAddr = _investorAddr;
    }

    /// @notice Update investor percent
    function setInvestorPercent(uint256 _newInvestorPercent) public onlyOwner {
        require(0 <= _newInvestorPercent && _newInvestorPercent <= 100, "setInvestorPercent: invalid percent value");
        require(
            devPercent + _newInvestorPercent + treasuryPercent <= 300,
            "setInvestorPercent: total percent over max"
        );
        investorPercent = _newInvestorPercent;
    }

    /// @notice Update fee address by owner.
    function setFeeAddr(address _feeAddr) external onlyOwner {
        feeAddr = _feeAddr;
    }

    /// @notice Update plant per second
    function updateEmissionRate(uint256 _plantPerSec) external onlyOwner {
        require(_plantPerSec < plantPerSecLimit, "updateEmissionRate: cannot exceed plantPerSecLimit");
        _massUpdatePools();
        plantPerSec = _plantPerSec;
        emit UpdateEmissionRate(msg.sender, _plantPerSec);
    }
}

File 3 of 12 : PlantToken.sol
pragma solidity 0.6.12;

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

contract PlantToken is ERC20("PlantBaseSwap Token", "PLANT"), Ownable {

    /// @notice Total number of tokens
    uint256 public constant maxSupply = 50_000_000e18; // 50_000_000 PLANT

    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyOwner {
        if(totalSupply().add(_amount) <= maxSupply){
            _mint(_to, _amount);
        }        
    }
}

File 4 of 12 : Rewards.sol
pragma solidity 0.6.12;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./PlantToken.sol";

contract Rewards is Ownable {
    /// @notice The PLANT TOKEN
    PlantToken public plant;

    constructor(
        PlantToken _plant
    ) public {
        plant = _plant;
    }

    /// @notice Safe plant transfer function, just in case if rounding error causes pool to not have enough PLANTs.
    function safePlantTransfer(address _to, uint256 _amount) public onlyOwner {
        uint256 plantBal = plant.balanceOf(address(this));
        if (_amount > plantBal) {
            plant.transfer(_to, plantBal);
        } else {
            plant.transfer(_to, _amount);
        }
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

File 6 of 12 : 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 7 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

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

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

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

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

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

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

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

File 8 of 12 : 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 9 of 12 : 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 10 of 12 : 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 11 of 12 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

File 12 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract PlantToken","name":"_plant","type":"address"},{"internalType":"contract Rewards","name":"_plantRewardContract","type":"address"},{"internalType":"address","name":"_devAddr","type":"address"},{"internalType":"address","name":"_feeAddr","type":"address"},{"internalType":"address","name":"_treasuryAddr","type":"address"},{"internalType":"address","name":"_investorAddr","type":"address"},{"internalType":"uint256","name":"_plantPerSec","type":"uint256"},{"internalType":"uint256","name":"_devPercent","type":"uint256"},{"internalType":"uint256","name":"_treasuryPercent","type":"uint256"},{"internalType":"uint256","name":"_investorPercent","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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"},{"indexed":false,"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"}],"name":"Add","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"},{"indexed":false,"internalType":"bool","name":"overwrite","type":"bool"}],"name":"Set","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetDevAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"plantPerSec","type":"uint256"}],"name":"UpdateEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lastRewardTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accPlantPerShare","type":"uint256"}],"name":"UpdatePool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ACC_PLANT_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_DEPOSIT_FEE_RATE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_pids","type":"uint256[]"}],"name":"harvestMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"investorAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"investorPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"isPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingTokens","outputs":[{"internalType":"uint256","name":"pendingPlant","type":"uint256"},{"internalType":"address","name":"bonusTokenAddress","type":"address"},{"internalType":"string","name":"bonusTokenSymbol","type":"string"},{"internalType":"uint256","name":"pendingBonusToken","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plant","outputs":[{"internalType":"contract PlantToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plantPerSec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plantPerSecLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plantRewardContract","outputs":[{"internalType":"contract Rewards","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTimestamp","type":"uint256"},{"internalType":"uint256","name":"accPlantPerShare","type":"uint256"},{"internalType":"contract IRewarder","name":"rewarder","type":"address"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"},{"internalType":"bool","name":"overwrite","type":"bool"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newDevPercent","type":"uint256"}],"name":"setDevPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddr","type":"address"}],"name":"setFeeAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_investorAddr","type":"address"}],"name":"setInvestorAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newInvestorPercent","type":"uint256"}],"name":"setInvestorPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryAddr","type":"address"}],"name":"setTreasuryAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newTreasuryPercent","type":"uint256"}],"name":"setTreasuryPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startFarming","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_plantPerSec","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200420f3803806200420f8339810160408190526200003491620001d0565b600062000040620001cc565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001805561012c831115620000bc5760405162461bcd60e51b8152600401620000b390620002d8565b60405180910390fd5b61012c821115620000e15760405162461bcd60e51b8152600401620000b3906200028d565b61012c811115620001065760405162461bcd60e51b8152600401620000b39062000361565b61012c818385010111156200012f5760405162461bcd60e51b8152600401620000b3906200031e565b600280546001600160a01b03199081166001600160a01b039c8d16179091556003805482169a8c169a909a17909955600480548a16988b1698909817909755600680548916968a1696909617909555600580548816948916949094179093556007805490961691909616179093556008849055600993909355600a91909155600b91909155600c556000601055426301e1338001601155620003c5565b3390565b6000806000806000806000806000806101408b8d031215620001f0578586fd5b8a51620001fd81620003ac565b60208c0151909a506200021081620003ac565b60408c01519099506200022381620003ac565b60608c01519098506200023681620003ac565b60808c01519097506200024981620003ac565b60a08c01519096506200025c81620003ac565b8095505060c08b0151935060e08b015192506101008b015191506101208b015190509295989b9194979a5092959850565b6020808252602b908201527f636f6e7374727563746f723a20696e76616c696420747265617375727920706560408201526a7263656e742076616c756560a81b606082015260800190565b60208082526026908201527f636f6e7374727563746f723a20696e76616c6964206465762070657263656e746040820152652076616c756560d01b606082015260800190565b60208082526023908201527f636f6e7374727563746f723a20746f74616c2070657263656e74206f766572206040820152620dac2f60eb1b606082015260800190565b6020808252602b908201527f636f6e7374727563746f723a20696e76616c696420696e766573746f7220706560408201526a7263656e742076616c756560a81b606082015260800190565b6001600160a01b0381168114620003c257600080fd5b50565b613e3a80620003d56000396000f3fe608060405234801561001057600080fd5b50600436106102c85760003560e01c8063876d3c9c1161017b578063b2855b4f116100d8578063e2bbb1581161008c578063f2fde38b11610071578063f2fde38b1461051a578063fc3c28af1461052d578063ffcd426314610535576102c8565b8063e2bbb158146104ff578063e6fd48bc14610512576102c8565b8063d50ed66b116100bd578063d50ed66b146104d1578063da09c72c146104e4578063dc640ac9146104ec576102c8565b8063b2855b4f146104b6578063c48547e6146104c9576102c8565b80639a09940f1161012f578063a7e05b9c11610114578063a7e05b9c14610493578063acc4cc50146104a6578063afbcfea1146104ae576102c8565b80639a09940f146104835780639eddb5c21461048b576102c8565b80638d88a90e116101605780638d88a90e146104475780638da5cb5b1461045a57806393f1a40b14610462576102c8565b8063876d3c9c1461042157806389a2bc2514610434576102c8565b8063441a3e70116102295780636eaddad2116101dd578063715018a6116101c2578063715018a6146103fc578063779b3c5c14610404578063812c64f11461040c576102c8565b80636eaddad2146103e15780637095f282146103f4576102c8565b80635312ea8e1161020e5780635312ea8e146103a65780635b16ebb7146103b9578063630b5ba1146103d9576102c8565b8063441a3e701461038057806351eb05a614610393576102c8565b80631526fe27116102805780632569c426116102655780632569c4261461035057806330d9a62a1461036357806339e7fddc14610378576102c8565b80631526fe271461032357806317caf6f114610348576102c8565b8063081e3eda116102b1578063081e3eda146102f35780630ba84cd2146102fb5780630f51f8ff14610310576102c8565b806304ef9d58146102cd5780630735b208146102eb575b600080fd5b6102d5610558565b6040516102e29190613cc9565b60405180910390f35b6102d561055e565b6102d5610564565b61030e61030936600461336e565b61056a565b005b61030e61031e3660046131f2565b61066b565b61033661033136600461336e565b610703565b6040516102e296959493929190613561565b6102d561077a565b61030e61035e366004613454565b610780565b61036b610aaf565b6040516102e291906134de565b61036b610acb565b61030e61038e366004613433565b610ae7565b61030e6103a136600461336e565b610dd8565b61030e6103b436600461336e565b610e2a565b6103cc6103c73660046131f2565b610fdd565b6040516102e29190613556565b61030e610ff2565b61030e6103ef36600461336e565b611042565b6102d5611139565b61030e61113f565b61036b611221565b61041461123d565b6040516102e29190613cba565b61030e61042f36600461336e565b611243565b61030e61044236600461336e565b61133a565b61030e6104553660046131f2565b611431565b61036b6114f3565b61047561047036600461339e565b61150f565b6040516102e2929190613d7d565b6102d5611533565b6102d561153c565b61030e6104a13660046131f2565b611542565b61036b6115da565b61030e6115f6565b61030e6104c43660046131f2565b6116e7565b61036b6117a1565b61030e6104df3660046133cd565b6117bd565b61036b611c8a565b61030e6104fa36600461320e565b611ca6565b61030e61050d366004613433565b611d5c565b6102d5611db0565b61030e6105283660046131f2565b611db6565b6102d5611f03565b61054861054336600461339e565b611f09565b6040516102e29493929190613cd2565b600b5481565b600c5481565b600d5490565b6105726122ff565b73ffffffffffffffffffffffffffffffffffffffff166105906114f3565b73ffffffffffffffffffffffffffffffffffffffff16146105e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b60405180910390fd5b6009548110610621576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613935565b610629612303565b600881905560405133907fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c405390610660908490613cc9565b60405180910390a250565b60075473ffffffffffffffffffffffffffffffffffffffff1633146106bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613b83565b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600d818154811061071057fe5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff93841695509193909290919081169074010000000000000000000000000000000000000000900461ffff1686565b60105481565b6107886122ff565b73ffffffffffffffffffffffffffffffffffffffff166107a66114f3565b73ffffffffffffffffffffffffffffffffffffffff16146107f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b600d5486908110610830576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613833565b6103e861ffff86161115610870576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906135ac565b61087987612352565b811561088757610887612303565b6108c4866108be600d8a8154811061089b57fe5b90600052602060002090600502016001015460105461278690919063ffffffff16565b906127cd565b60108190555085600d88815481106108d857fe5b90600052602060002090600502016001018190555084600d88815481106108fb57fe5b906000526020600020906005020160040160146101000a81548161ffff021916908361ffff1602179055508215610a11576040517fc70a55fd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063c70a55fd906109819060009081906004016134ff565b600060405180830381600087803b15801561099b57600080fd5b505af11580156109af573d6000803e3d6000fd5b5050505083600d88815481106109c157fe5b906000526020600020906005020160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b82610a5257600d8781548110610a2357fe5b600091825260209091206004600590920201015473ffffffffffffffffffffffffffffffffffffffff16610a54565b835b73ffffffffffffffffffffffffffffffffffffffff16877fe3d332865678aa27d0fd108fe710c43a7ea6ffd4bb3d595ff7ee9ad8ac7a3ae7888887604051610a9e93929190613d61565b60405180910390a350505050505050565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60026001541415610b24576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b6002600155600d5482908110610b66576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613833565b6000600d8481548110610b7557fe5b60009182526020808320878452600f825260408085203386529092529220805460059092029092019250841115610bd8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906139ef565b610be185612352565b6000610c1b8260010154610c1564e8d4a51000610c0f8760030154876000015461281390919063ffffffff16565b90612867565b90612786565b90508015610c7d57610c2d33826128b3565b853373ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495483604051610c749190613cc9565b60405180910390a35b8415610cb4578154610c8f9086612786565b82558254610cb49073ffffffffffffffffffffffffffffffffffffffff163387612941565b60038301548254610ccf9164e8d4a5100091610c0f91612813565b6001830155600483015473ffffffffffffffffffffffffffffffffffffffff168015610d7c5782546040517fc70a55fd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169163c70a55fd91610d499133916004016134ff565b600060405180830381600087803b158015610d6357600080fd5b505af1158015610d77573d6000803e3d6000fd5b505050505b863373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56888604051610dc39190613cc9565b60405180910390a35050600180555050505050565b60026001541415610e15576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b6002600155610e2381612352565b5060018055565b60026001541415610e67576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b60026001819055506000600d8281548110610e7e57fe5b60009182526020808320858452600f825260408085203386529092529083208054848255600182019490945560059290920201600481015490935090919073ffffffffffffffffffffffffffffffffffffffff168015610f60576040517fc70a55fd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063c70a55fd90610f2d9033906000906004016134ff565b600060405180830381600087803b158015610f4757600080fd5b505af1158015610f5b573d6000803e3d6000fd5b505050505b8354610f839073ffffffffffffffffffffffffffffffffffffffff163384612941565b843373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059584604051610fca9190613cc9565b60405180910390a3505060018055505050565b600e6020526000908152604090205460ff1681565b6002600154141561102f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b600260015561103c612303565b60018055565b61104a6122ff565b73ffffffffffffffffffffffffffffffffffffffff166110686114f3565b73ffffffffffffffffffffffffffffffffffffffff16146110b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b60648111156110f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c5d565b61012c600c5482600b5401011115611134576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613ac9565b600a55565b60085481565b6111476122ff565b73ffffffffffffffffffffffffffffffffffffffff166111656114f3565b73ffffffffffffffffffffffffffffffffffffffff16146111b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b6103e881565b61124b6122ff565b73ffffffffffffffffffffffffffffffffffffffff166112696114f3565b73ffffffffffffffffffffffffffffffffffffffff16146112b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b60648111156112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613b26565b61012c600b5482600a5401011115611335576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613677565b600c55565b6113426122ff565b73ffffffffffffffffffffffffffffffffffffffff166113606114f3565b73ffffffffffffffffffffffffffffffffffffffff16146113ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b60648111156113e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd9061379f565b61012c600c5482600a540101111561142c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906135e3565b600b55565b60045473ffffffffffffffffffffffffffffffffffffffff163314611482576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906138a1565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff831690811790915560405133907f618c54559e94f1499a808aad71ee8729f8e74e8c48e979616328ce493a1a52e790600090a350565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b600f6020908152600092835260408084209091529082529020805460019091015482565b64e8d4a5100081565b60095481565b60055473ffffffffffffffffffffffffffffffffffffffff163314611593576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a92565b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b6115fe6122ff565b73ffffffffffffffffffffffffffffffffffffffff1661161c6114f3565b73ffffffffffffffffffffffffffffffffffffffff1614611669576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b60115442106116a4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906138d8565b600d5460005b818110156116df576000600d82815481106116c157fe5b600091825260209091204260059092020160020155506001016116aa565b505042601155565b6116ef6122ff565b73ffffffffffffffffffffffffffffffffffffffff1661170d6114f3565b73ffffffffffffffffffffffffffffffffffffffff161461175a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b6117c56122ff565b73ffffffffffffffffffffffffffffffffffffffff166117e36114f3565b73ffffffffffffffffffffffffffffffffffffffff1614611830576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600e602052604090205460ff1615611890576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a26565b6103e861ffff841611156118d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613bef565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516906370a08231906119229030906004016134de565b60206040518083038186803b15801561193a57600080fd5b505afa15801561194e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119729190613386565b5073ffffffffffffffffffffffffffffffffffffffff821615611a17576040517fc70a55fd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169063c70a55fd906119e49060009081906004016134ff565b600060405180830381600087803b1580156119fe57600080fd5b505af1158015611a12573d6000803e3d6000fd5b505050505b8015611a2557611a25612303565b60006011544211611a3857601154611a3a565b425b601054909150611a4a90876127cd565b601081905550600d6040518060c001604052808773ffffffffffffffffffffffffffffffffffffffff168152602001888152602001838152602001600081526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018661ffff16815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a08201518160040160146101000a81548161ffff021916908361ffff16021790555050506001600e60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16611c496001600d8054905061278690919063ffffffff16565b7f2d25f63e438f851c57c06579bd365b404673e1f160544c778564c04a894d39448988604051611c7a929190613d4f565b60405180910390a4505050505050565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b60026001541415611ce3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b6002600155601e811115611d23576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613768565b60005b81811015611d5357611d4b838383818110611d3d57fe5b905060200201356000612aa9565b600101611d26565b50506001805550565b60026001541415611d99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b6002600155611da88282612aa9565b505060018055565b60115481565b611dbe6122ff565b73ffffffffffffffffffffffffffffffffffffffff16611ddc6114f3565b73ffffffffffffffffffffffffffffffffffffffff1614611e29576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b73ffffffffffffffffffffffffffffffffffffffff8116611e76576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906136d4565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600a5481565b6000806060600080600d8781548110611f1e57fe5b600091825260208083208a8452600f8252604080852073ffffffffffffffffffffffffffffffffffffffff808d16875293528085206003600590950290920193840154845491517f70a0823100000000000000000000000000000000000000000000000000000000815294965091949193919216906370a0823190611fa79030906004016134de565b60206040518083038186803b158015611fbf57600080fd5b505afa158015611fd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff79190613386565b905083600201544211801561200b57508015155b1561209857600061202985600201544261278690919063ffffffff16565b90506000600c54600b54600a546103e8030303905060006120736103e8610c0f8461206d601054610c0f8d6001015461206d6008548c61281390919063ffffffff16565b90612813565b905061209261208b85610c0f8464e8d4a51000612813565b86906127cd565b94505050505b6120c08360010154610c1564e8d4a51000610c0f86886000015461281390919063ffffffff16565b600485015490985073ffffffffffffffffffffffffffffffffffffffff16156122f257600480850154604080517ff7c618c1000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff9092169263f7c618c1928282019260209290829003018186803b15801561214d57600080fd5b505afa158015612161573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121859190613299565b96506122478460040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f7c618c16040518163ffffffff1660e01b815260040160206040518083038186803b1580156121f457600080fd5b505afa158015612208573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222c9190613299565b73ffffffffffffffffffffffffffffffffffffffff16612d9b565b6004808601546040517fc031a66f00000000000000000000000000000000000000000000000000000000815292985073ffffffffffffffffffffffffffffffffffffffff169163c031a66f9161229f918d91016134de565b60206040518083038186803b1580156122b757600080fd5b505afa1580156122cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ef9190613386565b94505b5050505092959194509250565b3390565b600d5460005b8181101561234e576000600d828154811061232057fe5b9060005260206000209060050201905080600101546000146123455761234582612352565b50600101612309565b5050565b600d548190811061238f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613833565b6000600d838154811061239e57fe5b9060005260206000209060050201905080600201544211156127815780546040517f70a0823100000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff16906370a08231906124109030906004016134de565b60206040518083038186803b15801561242857600080fd5b505afa15801561243c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124609190613386565b905060008111801561247457506000601054115b1561273757600061249283600201544261278690919063ffffffff16565b905060006124b9601054610c0f866001015461206d6008548761281390919063ffffffff16565b600c54600b54600a546002546004549495506103e882810393909303939093039373ffffffffffffffffffffffffffffffffffffffff938416936340c10f199391169161250c9190610c0f908890612813565b6040518363ffffffff1660e01b81526004016125299291906134ff565b600060405180830381600087803b15801561254357600080fd5b505af1158015612557573d6000803e3d6000fd5b5050600254600554600b5473ffffffffffffffffffffffffffffffffffffffff92831694506340c10f199350911690612599906103e890610c0f908890612813565b6040518363ffffffff1660e01b81526004016125b69291906134ff565b600060405180830381600087803b1580156125d057600080fd5b505af11580156125e4573d6000803e3d6000fd5b5050600254600754600c5473ffffffffffffffffffffffffffffffffffffffff92831694506340c10f199350911690612626906103e890610c0f908890612813565b6040518363ffffffff1660e01b81526004016126439291906134ff565b600060405180830381600087803b15801561265d57600080fd5b505af1158015612671573d6000803e3d6000fd5b505060025460035473ffffffffffffffffffffffffffffffffffffffff91821693506340c10f199250166126ab6103e8610c0f8787612813565b6040518363ffffffff1660e01b81526004016126c89291906134ff565b600060405180830381600087803b1580156126e257600080fd5b505af11580156126f6573d6000803e3d6000fd5b5050505061272e6127236103e8610c0f8461206d89610c0f64e8d4a510008a61281390919063ffffffff16565b6003870154906127cd565b60038601555050505b4260028301819055600383015460405186927f3be3541fc42237d611b30329040bfa4569541d156560acdbbae57640d20b8f469261277792869190613d8b565b60405180910390a2505b505050565b6000828211156127c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906137fc565b508082035b92915050565b60008282018381101561280c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613731565b9392505050565b600082612822575060006127c7565b8282028284828161282f57fe5b041461280c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613992565b60008082116128a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd9061386a565b8183816128ab57fe5b049392505050565b6003546040517f2fb754fa00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690632fb754fa9061290b90859085906004016134ff565b600060405180830381600087803b15801561292557600080fd5b505af1158015612939573d6000803e3d6000fd5b505050505050565b600060608473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b85856040516024016129779291906134ff565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051612a0091906134c2565b6000604051808303816000865af19150503d8060008114612a3d576040519150601f19603f3d011682016040523d82523d6000602084013e612a42565b606091505b5091509150818015612a6c575080511580612a6c575080806020019051810190612a6c919061327d565b612aa2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613640565b5050505050565b600d5482908110612ae6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613833565b6000600d8481548110612af557fe5b60009182526020808320878452600f82526040808520338652909252922060059091029091019150612b2685612352565b805415612bbf576000612b5b8260010154610c1564e8d4a51000610c0f8760030154876000015461281390919063ffffffff16565b90508015612bbd57612b6d33826128b3565b853373ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495483604051612bb49190613cc9565b60405180910390a35b505b8315612c7c578154612be99073ffffffffffffffffffffffffffffffffffffffff16333087612eb5565b600482015474010000000000000000000000000000000000000000900461ffff1615612c6d5760048201546000906127109074010000000000000000000000000000000000000000900461ffff1686026006548554929091049250612c689173ffffffffffffffffffffffffffffffffffffffff908116911683612941565b909303925b8054612c7990856127cd565b81555b60038201548154612c979164e8d4a5100091610c0f91612813565b6001820155600482015473ffffffffffffffffffffffffffffffffffffffff168015612d445781546040517fc70a55fd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169163c70a55fd91612d119133916004016134ff565b600060405180830381600087803b158015612d2b57600080fd5b505af1158015612d3f573d6000803e3d6000fd5b505050505b853373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1587604051612d8b9190613cc9565b60405180910390a3505050505050565b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f95d89b41000000000000000000000000000000000000000000000000000000001790529051606091600091839173ffffffffffffffffffffffffffffffffffffffff861691612e1d91906134c2565b600060405180830381855afa9150503d8060008114612e58576040519150601f19603f3d011682016040523d82523d6000602084013e612e5d565b606091505b509150915081612ea2576040518060400160405280600381526020017f3f3f3f0000000000000000000000000000000000000000000000000000000000815250612eab565b612eab81613018565b925050505b919050565b600060608573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b868686604051602401612eed93929190613525565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051612f7691906134c2565b6000604051808303816000865af19150503d8060008114612fb3576040519150601f19603f3d011682016040523d82523d6000602084013e612fb8565b606091505b5091509150818015612fe2575080511580612fe2575080806020019051810190612fe2919061327d565b612939576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613bba565b6060604082511061303e578180602001905181019061303791906132b5565b9050612eb0565b8151602014156131a65760005b60208160ff161080156130925750828160ff168151811061306857fe5b01602001517fff000000000000000000000000000000000000000000000000000000000000001615155b1561309f5760010161304b565b60608160ff1667ffffffffffffffff811180156130bb57600080fd5b506040519080825280601f01601f1916602001820160405280156130e6576020820181803683370190505b509050600091505b60208260ff161080156131355750838260ff168151811061310b57fe5b01602001517fff000000000000000000000000000000000000000000000000000000000000001615155b1561319d57838260ff168151811061314957fe5b602001015160f81c60f81b818360ff168151811061316357fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001909101906130ee565b9150612eb09050565b5060408051808201909152600381527f3f3f3f00000000000000000000000000000000000000000000000000000000006020820152612eb0565b803561ffff811681146127c757600080fd5b600060208284031215613203578081fd5b813561280c81613dd1565b60008060208385031215613220578081fd5b823567ffffffffffffffff80821115613237578283fd5b818501915085601f83011261324a578283fd5b813581811115613258578384fd5b866020808302850101111561326b578384fd5b60209290920196919550909350505050565b60006020828403121561328e578081fd5b815161280c81613df6565b6000602082840312156132aa578081fd5b815161280c81613dd1565b6000602082840312156132c6578081fd5b815167ffffffffffffffff808211156132dd578283fd5b818401915084601f8301126132f0578283fd5b8151818111156132fe578384fd5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116820101818110848211171561333c578586fd5b604052818152838201602001871015613353578485fd5b613364826020830160208701613da1565b9695505050505050565b60006020828403121561337f578081fd5b5035919050565b600060208284031215613397578081fd5b5051919050565b600080604083850312156133b0578182fd5b8235915060208301356133c281613dd1565b809150509250929050565b600080600080600060a086880312156133e4578081fd5b8535945060208601356133f681613dd1565b935061340587604088016131e0565b9250606086013561341581613dd1565b9150608086013561342581613df6565b809150509295509295909350565b60008060408385031215613445578182fd5b50508035926020909101359150565b60008060008060008060c0878903121561346c578081fd5b863595506020870135945061348488604089016131e0565b9350606087013561349481613dd1565b925060808701356134a481613df6565b915060a08701356134b481613df6565b809150509295509295509295565b600082516134d4818460208701613da1565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b901515815260200190565b73ffffffffffffffffffffffffffffffffffffffff9687168152602081019590955260408501939093526060840191909152909216608082015261ffff90911660a082015260c00190565b60208082526019908201527f7365743a206465706f7369742066656520746f6f206869676800000000000000604082015260600190565b6020808252602a908201527f736574547265617375727950657263656e743a20746f74616c2070657263656e60408201527f74206f766572206d617800000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f426f72696e6745524332303a205472616e73666572206661696c656400000000604082015260600190565b6020808252602a908201527f736574496e766573746f7250657263656e743a20746f74616c2070657263656e60408201527f74206f766572206d617800000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601f908201527f68617276657374206d616e793a20746f6f206d616e7920706f6f6c2069647300604082015260600190565b60208082526029908201527f736574547265617375727950657263656e743a20696e76616c6964207065726360408201527f656e742076616c75650000000000000000000000000000000000000000000000606082015260800190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b60208082526013908201527f506f6f6c20646f6573206e6f7420657869737400000000000000000000000000604082015260600190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b60208082526009908201527f6465763a207775743f0000000000000000000000000000000000000000000000604082015260600190565b60208082526023908201527f7374617274206661726d696e673a206661726d207374617274656420616c726560408201527f6164790000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f757064617465456d697373696f6e526174653a2063616e6e6f7420657863656560408201527f6420706c616e745065725365634c696d69740000000000000000000000000000606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f77697468647261773a20496e73756666696369656e7400000000000000000000604082015260600190565b60208082526015908201527f6164643a204c5020616c72656164792061646465640000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526015908201527f7365745472656173757279416464723a207775743f0000000000000000000000604082015260600190565b60208082526025908201527f73657444657650657263656e743a20746f74616c2070657263656e74206f766560408201527f72206d6178000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f736574496e766573746f7250657263656e743a20696e76616c6964207065726360408201527f656e742076616c75650000000000000000000000000000000000000000000000606082015260800190565b60208082526015908201527f736574496e766573746f72416464723a207775743f0000000000000000000000604082015260600190565b6020808252818101527f426f72696e6745524332303a205472616e7366657246726f6d206661696c6564604082015260600190565b60208082526019908201527f6164643a206465706f7369742066656520746f6f206869676800000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526024908201527f73657444657650657263656e743a20696e76616c69642070657263656e74207660408201527f616c756500000000000000000000000000000000000000000000000000000000606082015260800190565b61ffff91909116815260200190565b90815260200190565b600085825273ffffffffffffffffffffffffffffffffffffffff85166020830152608060408301528351806080840152613d138160a0850160208801613da1565b606083019390935250601f919091017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160160a0019392505050565b91825261ffff16602082015260400190565b92835261ffff9190911660208301521515604082015260600190565b918252602082015260400190565b9283526020830191909152604082015260600190565b60005b83811015613dbc578181015183820152602001613da4565b83811115613dcb576000848401525b50505050565b73ffffffffffffffffffffffffffffffffffffffff81168114613df357600080fd5b50565b8015158114613df357600080fdfea2646970667358221220316f8b2d26df40c25ace969d173dbc51e77eb64becdfd7216b327a7fa935877e64736f6c634300060c003300000000000000000000000023082dd85355b51bae42248c961e7f83486e76940000000000000000000000004ac6a34d8a2fc0d74a1249a5c6102eacec932832000000000000000000000000e38297e252f2e5ef52425f6cb382be22a0d76786000000000000000000000000e6658dbb58664e9ac359b6c59b5697741e28bc86000000000000000000000000e38297e252f2e5ef52425f6cb382be22a0d76786000000000000000000000000e38297e252f2e5ef52425f6cb382be22a0d76786000000000000000000000000000000000000000000000000058d15e176280000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102c85760003560e01c8063876d3c9c1161017b578063b2855b4f116100d8578063e2bbb1581161008c578063f2fde38b11610071578063f2fde38b1461051a578063fc3c28af1461052d578063ffcd426314610535576102c8565b8063e2bbb158146104ff578063e6fd48bc14610512576102c8565b8063d50ed66b116100bd578063d50ed66b146104d1578063da09c72c146104e4578063dc640ac9146104ec576102c8565b8063b2855b4f146104b6578063c48547e6146104c9576102c8565b80639a09940f1161012f578063a7e05b9c11610114578063a7e05b9c14610493578063acc4cc50146104a6578063afbcfea1146104ae576102c8565b80639a09940f146104835780639eddb5c21461048b576102c8565b80638d88a90e116101605780638d88a90e146104475780638da5cb5b1461045a57806393f1a40b14610462576102c8565b8063876d3c9c1461042157806389a2bc2514610434576102c8565b8063441a3e70116102295780636eaddad2116101dd578063715018a6116101c2578063715018a6146103fc578063779b3c5c14610404578063812c64f11461040c576102c8565b80636eaddad2146103e15780637095f282146103f4576102c8565b80635312ea8e1161020e5780635312ea8e146103a65780635b16ebb7146103b9578063630b5ba1146103d9576102c8565b8063441a3e701461038057806351eb05a614610393576102c8565b80631526fe27116102805780632569c426116102655780632569c4261461035057806330d9a62a1461036357806339e7fddc14610378576102c8565b80631526fe271461032357806317caf6f114610348576102c8565b8063081e3eda116102b1578063081e3eda146102f35780630ba84cd2146102fb5780630f51f8ff14610310576102c8565b806304ef9d58146102cd5780630735b208146102eb575b600080fd5b6102d5610558565b6040516102e29190613cc9565b60405180910390f35b6102d561055e565b6102d5610564565b61030e61030936600461336e565b61056a565b005b61030e61031e3660046131f2565b61066b565b61033661033136600461336e565b610703565b6040516102e296959493929190613561565b6102d561077a565b61030e61035e366004613454565b610780565b61036b610aaf565b6040516102e291906134de565b61036b610acb565b61030e61038e366004613433565b610ae7565b61030e6103a136600461336e565b610dd8565b61030e6103b436600461336e565b610e2a565b6103cc6103c73660046131f2565b610fdd565b6040516102e29190613556565b61030e610ff2565b61030e6103ef36600461336e565b611042565b6102d5611139565b61030e61113f565b61036b611221565b61041461123d565b6040516102e29190613cba565b61030e61042f36600461336e565b611243565b61030e61044236600461336e565b61133a565b61030e6104553660046131f2565b611431565b61036b6114f3565b61047561047036600461339e565b61150f565b6040516102e2929190613d7d565b6102d5611533565b6102d561153c565b61030e6104a13660046131f2565b611542565b61036b6115da565b61030e6115f6565b61030e6104c43660046131f2565b6116e7565b61036b6117a1565b61030e6104df3660046133cd565b6117bd565b61036b611c8a565b61030e6104fa36600461320e565b611ca6565b61030e61050d366004613433565b611d5c565b6102d5611db0565b61030e6105283660046131f2565b611db6565b6102d5611f03565b61054861054336600461339e565b611f09565b6040516102e29493929190613cd2565b600b5481565b600c5481565b600d5490565b6105726122ff565b73ffffffffffffffffffffffffffffffffffffffff166105906114f3565b73ffffffffffffffffffffffffffffffffffffffff16146105e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b60405180910390fd5b6009548110610621576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613935565b610629612303565b600881905560405133907fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c405390610660908490613cc9565b60405180910390a250565b60075473ffffffffffffffffffffffffffffffffffffffff1633146106bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613b83565b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600d818154811061071057fe5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff93841695509193909290919081169074010000000000000000000000000000000000000000900461ffff1686565b60105481565b6107886122ff565b73ffffffffffffffffffffffffffffffffffffffff166107a66114f3565b73ffffffffffffffffffffffffffffffffffffffff16146107f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b600d5486908110610830576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613833565b6103e861ffff86161115610870576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906135ac565b61087987612352565b811561088757610887612303565b6108c4866108be600d8a8154811061089b57fe5b90600052602060002090600502016001015460105461278690919063ffffffff16565b906127cd565b60108190555085600d88815481106108d857fe5b90600052602060002090600502016001018190555084600d88815481106108fb57fe5b906000526020600020906005020160040160146101000a81548161ffff021916908361ffff1602179055508215610a11576040517fc70a55fd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063c70a55fd906109819060009081906004016134ff565b600060405180830381600087803b15801561099b57600080fd5b505af11580156109af573d6000803e3d6000fd5b5050505083600d88815481106109c157fe5b906000526020600020906005020160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b82610a5257600d8781548110610a2357fe5b600091825260209091206004600590920201015473ffffffffffffffffffffffffffffffffffffffff16610a54565b835b73ffffffffffffffffffffffffffffffffffffffff16877fe3d332865678aa27d0fd108fe710c43a7ea6ffd4bb3d595ff7ee9ad8ac7a3ae7888887604051610a9e93929190613d61565b60405180910390a350505050505050565b60055473ffffffffffffffffffffffffffffffffffffffff1681565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b60026001541415610b24576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b6002600155600d5482908110610b66576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613833565b6000600d8481548110610b7557fe5b60009182526020808320878452600f825260408085203386529092529220805460059092029092019250841115610bd8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906139ef565b610be185612352565b6000610c1b8260010154610c1564e8d4a51000610c0f8760030154876000015461281390919063ffffffff16565b90612867565b90612786565b90508015610c7d57610c2d33826128b3565b853373ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495483604051610c749190613cc9565b60405180910390a35b8415610cb4578154610c8f9086612786565b82558254610cb49073ffffffffffffffffffffffffffffffffffffffff163387612941565b60038301548254610ccf9164e8d4a5100091610c0f91612813565b6001830155600483015473ffffffffffffffffffffffffffffffffffffffff168015610d7c5782546040517fc70a55fd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169163c70a55fd91610d499133916004016134ff565b600060405180830381600087803b158015610d6357600080fd5b505af1158015610d77573d6000803e3d6000fd5b505050505b863373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56888604051610dc39190613cc9565b60405180910390a35050600180555050505050565b60026001541415610e15576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b6002600155610e2381612352565b5060018055565b60026001541415610e67576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b60026001819055506000600d8281548110610e7e57fe5b60009182526020808320858452600f825260408085203386529092529083208054848255600182019490945560059290920201600481015490935090919073ffffffffffffffffffffffffffffffffffffffff168015610f60576040517fc70a55fd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063c70a55fd90610f2d9033906000906004016134ff565b600060405180830381600087803b158015610f4757600080fd5b505af1158015610f5b573d6000803e3d6000fd5b505050505b8354610f839073ffffffffffffffffffffffffffffffffffffffff163384612941565b843373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059584604051610fca9190613cc9565b60405180910390a3505060018055505050565b600e6020526000908152604090205460ff1681565b6002600154141561102f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b600260015561103c612303565b60018055565b61104a6122ff565b73ffffffffffffffffffffffffffffffffffffffff166110686114f3565b73ffffffffffffffffffffffffffffffffffffffff16146110b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b60648111156110f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c5d565b61012c600c5482600b5401011115611134576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613ac9565b600a55565b60085481565b6111476122ff565b73ffffffffffffffffffffffffffffffffffffffff166111656114f3565b73ffffffffffffffffffffffffffffffffffffffff16146111b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b6103e881565b61124b6122ff565b73ffffffffffffffffffffffffffffffffffffffff166112696114f3565b73ffffffffffffffffffffffffffffffffffffffff16146112b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b60648111156112f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613b26565b61012c600b5482600a5401011115611335576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613677565b600c55565b6113426122ff565b73ffffffffffffffffffffffffffffffffffffffff166113606114f3565b73ffffffffffffffffffffffffffffffffffffffff16146113ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b60648111156113e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd9061379f565b61012c600c5482600a540101111561142c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906135e3565b600b55565b60045473ffffffffffffffffffffffffffffffffffffffff163314611482576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906138a1565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff831690811790915560405133907f618c54559e94f1499a808aad71ee8729f8e74e8c48e979616328ce493a1a52e790600090a350565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b600f6020908152600092835260408084209091529082529020805460019091015482565b64e8d4a5100081565b60095481565b60055473ffffffffffffffffffffffffffffffffffffffff163314611593576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a92565b600580547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b6115fe6122ff565b73ffffffffffffffffffffffffffffffffffffffff1661161c6114f3565b73ffffffffffffffffffffffffffffffffffffffff1614611669576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b60115442106116a4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906138d8565b600d5460005b818110156116df576000600d82815481106116c157fe5b600091825260209091204260059092020160020155506001016116aa565b505042601155565b6116ef6122ff565b73ffffffffffffffffffffffffffffffffffffffff1661170d6114f3565b73ffffffffffffffffffffffffffffffffffffffff161461175a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b6117c56122ff565b73ffffffffffffffffffffffffffffffffffffffff166117e36114f3565b73ffffffffffffffffffffffffffffffffffffffff1614611830576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600e602052604090205460ff1615611890576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a26565b6103e861ffff841611156118d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613bef565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516906370a08231906119229030906004016134de565b60206040518083038186803b15801561193a57600080fd5b505afa15801561194e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119729190613386565b5073ffffffffffffffffffffffffffffffffffffffff821615611a17576040517fc70a55fd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169063c70a55fd906119e49060009081906004016134ff565b600060405180830381600087803b1580156119fe57600080fd5b505af1158015611a12573d6000803e3d6000fd5b505050505b8015611a2557611a25612303565b60006011544211611a3857601154611a3a565b425b601054909150611a4a90876127cd565b601081905550600d6040518060c001604052808773ffffffffffffffffffffffffffffffffffffffff168152602001888152602001838152602001600081526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018661ffff16815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a08201518160040160146101000a81548161ffff021916908361ffff16021790555050506001600e60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508273ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16611c496001600d8054905061278690919063ffffffff16565b7f2d25f63e438f851c57c06579bd365b404673e1f160544c778564c04a894d39448988604051611c7a929190613d4f565b60405180910390a4505050505050565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b60026001541415611ce3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b6002600155601e811115611d23576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613768565b60005b81811015611d5357611d4b838383818110611d3d57fe5b905060200201356000612aa9565b600101611d26565b50506001805550565b60026001541415611d99576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613c26565b6002600155611da88282612aa9565b505060018055565b60115481565b611dbe6122ff565b73ffffffffffffffffffffffffffffffffffffffff16611ddc6114f3565b73ffffffffffffffffffffffffffffffffffffffff1614611e29576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613a5d565b73ffffffffffffffffffffffffffffffffffffffff8116611e76576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906136d4565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600a5481565b6000806060600080600d8781548110611f1e57fe5b600091825260208083208a8452600f8252604080852073ffffffffffffffffffffffffffffffffffffffff808d16875293528085206003600590950290920193840154845491517f70a0823100000000000000000000000000000000000000000000000000000000815294965091949193919216906370a0823190611fa79030906004016134de565b60206040518083038186803b158015611fbf57600080fd5b505afa158015611fd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff79190613386565b905083600201544211801561200b57508015155b1561209857600061202985600201544261278690919063ffffffff16565b90506000600c54600b54600a546103e8030303905060006120736103e8610c0f8461206d601054610c0f8d6001015461206d6008548c61281390919063ffffffff16565b90612813565b905061209261208b85610c0f8464e8d4a51000612813565b86906127cd565b94505050505b6120c08360010154610c1564e8d4a51000610c0f86886000015461281390919063ffffffff16565b600485015490985073ffffffffffffffffffffffffffffffffffffffff16156122f257600480850154604080517ff7c618c1000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff9092169263f7c618c1928282019260209290829003018186803b15801561214d57600080fd5b505afa158015612161573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121859190613299565b96506122478460040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f7c618c16040518163ffffffff1660e01b815260040160206040518083038186803b1580156121f457600080fd5b505afa158015612208573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222c9190613299565b73ffffffffffffffffffffffffffffffffffffffff16612d9b565b6004808601546040517fc031a66f00000000000000000000000000000000000000000000000000000000815292985073ffffffffffffffffffffffffffffffffffffffff169163c031a66f9161229f918d91016134de565b60206040518083038186803b1580156122b757600080fd5b505afa1580156122cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ef9190613386565b94505b5050505092959194509250565b3390565b600d5460005b8181101561234e576000600d828154811061232057fe5b9060005260206000209060050201905080600101546000146123455761234582612352565b50600101612309565b5050565b600d548190811061238f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613833565b6000600d838154811061239e57fe5b9060005260206000209060050201905080600201544211156127815780546040517f70a0823100000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff16906370a08231906124109030906004016134de565b60206040518083038186803b15801561242857600080fd5b505afa15801561243c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124609190613386565b905060008111801561247457506000601054115b1561273757600061249283600201544261278690919063ffffffff16565b905060006124b9601054610c0f866001015461206d6008548761281390919063ffffffff16565b600c54600b54600a546002546004549495506103e882810393909303939093039373ffffffffffffffffffffffffffffffffffffffff938416936340c10f199391169161250c9190610c0f908890612813565b6040518363ffffffff1660e01b81526004016125299291906134ff565b600060405180830381600087803b15801561254357600080fd5b505af1158015612557573d6000803e3d6000fd5b5050600254600554600b5473ffffffffffffffffffffffffffffffffffffffff92831694506340c10f199350911690612599906103e890610c0f908890612813565b6040518363ffffffff1660e01b81526004016125b69291906134ff565b600060405180830381600087803b1580156125d057600080fd5b505af11580156125e4573d6000803e3d6000fd5b5050600254600754600c5473ffffffffffffffffffffffffffffffffffffffff92831694506340c10f199350911690612626906103e890610c0f908890612813565b6040518363ffffffff1660e01b81526004016126439291906134ff565b600060405180830381600087803b15801561265d57600080fd5b505af1158015612671573d6000803e3d6000fd5b505060025460035473ffffffffffffffffffffffffffffffffffffffff91821693506340c10f199250166126ab6103e8610c0f8787612813565b6040518363ffffffff1660e01b81526004016126c89291906134ff565b600060405180830381600087803b1580156126e257600080fd5b505af11580156126f6573d6000803e3d6000fd5b5050505061272e6127236103e8610c0f8461206d89610c0f64e8d4a510008a61281390919063ffffffff16565b6003870154906127cd565b60038601555050505b4260028301819055600383015460405186927f3be3541fc42237d611b30329040bfa4569541d156560acdbbae57640d20b8f469261277792869190613d8b565b60405180910390a2505b505050565b6000828211156127c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd906137fc565b508082035b92915050565b60008282018381101561280c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613731565b9392505050565b600082612822575060006127c7565b8282028284828161282f57fe5b041461280c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613992565b60008082116128a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd9061386a565b8183816128ab57fe5b049392505050565b6003546040517f2fb754fa00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690632fb754fa9061290b90859085906004016134ff565b600060405180830381600087803b15801561292557600080fd5b505af1158015612939573d6000803e3d6000fd5b505050505050565b600060608473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b85856040516024016129779291906134ff565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051612a0091906134c2565b6000604051808303816000865af19150503d8060008114612a3d576040519150601f19603f3d011682016040523d82523d6000602084013e612a42565b606091505b5091509150818015612a6c575080511580612a6c575080806020019051810190612a6c919061327d565b612aa2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613640565b5050505050565b600d5482908110612ae6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613833565b6000600d8481548110612af557fe5b60009182526020808320878452600f82526040808520338652909252922060059091029091019150612b2685612352565b805415612bbf576000612b5b8260010154610c1564e8d4a51000610c0f8760030154876000015461281390919063ffffffff16565b90508015612bbd57612b6d33826128b3565b853373ffffffffffffffffffffffffffffffffffffffff167f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae066092495483604051612bb49190613cc9565b60405180910390a35b505b8315612c7c578154612be99073ffffffffffffffffffffffffffffffffffffffff16333087612eb5565b600482015474010000000000000000000000000000000000000000900461ffff1615612c6d5760048201546000906127109074010000000000000000000000000000000000000000900461ffff1686026006548554929091049250612c689173ffffffffffffffffffffffffffffffffffffffff908116911683612941565b909303925b8054612c7990856127cd565b81555b60038201548154612c979164e8d4a5100091610c0f91612813565b6001820155600482015473ffffffffffffffffffffffffffffffffffffffff168015612d445781546040517fc70a55fd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83169163c70a55fd91612d119133916004016134ff565b600060405180830381600087803b158015612d2b57600080fd5b505af1158015612d3f573d6000803e3d6000fd5b505050505b853373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1587604051612d8b9190613cc9565b60405180910390a3505050505050565b60408051600481526024810182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f95d89b41000000000000000000000000000000000000000000000000000000001790529051606091600091839173ffffffffffffffffffffffffffffffffffffffff861691612e1d91906134c2565b600060405180830381855afa9150503d8060008114612e58576040519150601f19603f3d011682016040523d82523d6000602084013e612e5d565b606091505b509150915081612ea2576040518060400160405280600381526020017f3f3f3f0000000000000000000000000000000000000000000000000000000000815250612eab565b612eab81613018565b925050505b919050565b600060608573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b868686604051602401612eed93929190613525565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051612f7691906134c2565b6000604051808303816000865af19150503d8060008114612fb3576040519150601f19603f3d011682016040523d82523d6000602084013e612fb8565b606091505b5091509150818015612fe2575080511580612fe2575080806020019051810190612fe2919061327d565b612939576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105dd90613bba565b6060604082511061303e578180602001905181019061303791906132b5565b9050612eb0565b8151602014156131a65760005b60208160ff161080156130925750828160ff168151811061306857fe5b01602001517fff000000000000000000000000000000000000000000000000000000000000001615155b1561309f5760010161304b565b60608160ff1667ffffffffffffffff811180156130bb57600080fd5b506040519080825280601f01601f1916602001820160405280156130e6576020820181803683370190505b509050600091505b60208260ff161080156131355750838260ff168151811061310b57fe5b01602001517fff000000000000000000000000000000000000000000000000000000000000001615155b1561319d57838260ff168151811061314957fe5b602001015160f81c60f81b818360ff168151811061316357fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001909101906130ee565b9150612eb09050565b5060408051808201909152600381527f3f3f3f00000000000000000000000000000000000000000000000000000000006020820152612eb0565b803561ffff811681146127c757600080fd5b600060208284031215613203578081fd5b813561280c81613dd1565b60008060208385031215613220578081fd5b823567ffffffffffffffff80821115613237578283fd5b818501915085601f83011261324a578283fd5b813581811115613258578384fd5b866020808302850101111561326b578384fd5b60209290920196919550909350505050565b60006020828403121561328e578081fd5b815161280c81613df6565b6000602082840312156132aa578081fd5b815161280c81613dd1565b6000602082840312156132c6578081fd5b815167ffffffffffffffff808211156132dd578283fd5b818401915084601f8301126132f0578283fd5b8151818111156132fe578384fd5b60405160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116820101818110848211171561333c578586fd5b604052818152838201602001871015613353578485fd5b613364826020830160208701613da1565b9695505050505050565b60006020828403121561337f578081fd5b5035919050565b600060208284031215613397578081fd5b5051919050565b600080604083850312156133b0578182fd5b8235915060208301356133c281613dd1565b809150509250929050565b600080600080600060a086880312156133e4578081fd5b8535945060208601356133f681613dd1565b935061340587604088016131e0565b9250606086013561341581613dd1565b9150608086013561342581613df6565b809150509295509295909350565b60008060408385031215613445578182fd5b50508035926020909101359150565b60008060008060008060c0878903121561346c578081fd5b863595506020870135945061348488604089016131e0565b9350606087013561349481613dd1565b925060808701356134a481613df6565b915060a08701356134b481613df6565b809150509295509295509295565b600082516134d4818460208701613da1565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b901515815260200190565b73ffffffffffffffffffffffffffffffffffffffff9687168152602081019590955260408501939093526060840191909152909216608082015261ffff90911660a082015260c00190565b60208082526019908201527f7365743a206465706f7369742066656520746f6f206869676800000000000000604082015260600190565b6020808252602a908201527f736574547265617375727950657263656e743a20746f74616c2070657263656e60408201527f74206f766572206d617800000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f426f72696e6745524332303a205472616e73666572206661696c656400000000604082015260600190565b6020808252602a908201527f736574496e766573746f7250657263656e743a20746f74616c2070657263656e60408201527f74206f766572206d617800000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601f908201527f68617276657374206d616e793a20746f6f206d616e7920706f6f6c2069647300604082015260600190565b60208082526029908201527f736574547265617375727950657263656e743a20696e76616c6964207065726360408201527f656e742076616c75650000000000000000000000000000000000000000000000606082015260800190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b60208082526013908201527f506f6f6c20646f6573206e6f7420657869737400000000000000000000000000604082015260600190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b60208082526009908201527f6465763a207775743f0000000000000000000000000000000000000000000000604082015260600190565b60208082526023908201527f7374617274206661726d696e673a206661726d207374617274656420616c726560408201527f6164790000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f757064617465456d697373696f6e526174653a2063616e6e6f7420657863656560408201527f6420706c616e745065725365634c696d69740000000000000000000000000000606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f77697468647261773a20496e73756666696369656e7400000000000000000000604082015260600190565b60208082526015908201527f6164643a204c5020616c72656164792061646465640000000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526015908201527f7365745472656173757279416464723a207775743f0000000000000000000000604082015260600190565b60208082526025908201527f73657444657650657263656e743a20746f74616c2070657263656e74206f766560408201527f72206d6178000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f736574496e766573746f7250657263656e743a20696e76616c6964207065726360408201527f656e742076616c75650000000000000000000000000000000000000000000000606082015260800190565b60208082526015908201527f736574496e766573746f72416464723a207775743f0000000000000000000000604082015260600190565b6020808252818101527f426f72696e6745524332303a205472616e7366657246726f6d206661696c6564604082015260600190565b60208082526019908201527f6164643a206465706f7369742066656520746f6f206869676800000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526024908201527f73657444657650657263656e743a20696e76616c69642070657263656e74207660408201527f616c756500000000000000000000000000000000000000000000000000000000606082015260800190565b61ffff91909116815260200190565b90815260200190565b600085825273ffffffffffffffffffffffffffffffffffffffff85166020830152608060408301528351806080840152613d138160a0850160208801613da1565b606083019390935250601f919091017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0160160a0019392505050565b91825261ffff16602082015260400190565b92835261ffff9190911660208301521515604082015260600190565b918252602082015260400190565b9283526020830191909152604082015260600190565b60005b83811015613dbc578181015183820152602001613da4565b83811115613dcb576000848401525b50505050565b73ffffffffffffffffffffffffffffffffffffffff81168114613df357600080fd5b50565b8015158114613df357600080fdfea2646970667358221220316f8b2d26df40c25ace969d173dbc51e77eb64becdfd7216b327a7fa935877e64736f6c634300060c0033

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

00000000000000000000000023082dd85355b51bae42248c961e7f83486e76940000000000000000000000004ac6a34d8a2fc0d74a1249a5c6102eacec932832000000000000000000000000e38297e252f2e5ef52425f6cb382be22a0d76786000000000000000000000000e6658dbb58664e9ac359b6c59b5697741e28bc86000000000000000000000000e38297e252f2e5ef52425f6cb382be22a0d76786000000000000000000000000e38297e252f2e5ef52425f6cb382be22a0d76786000000000000000000000000000000000000000000000000058d15e176280000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _plant (address): 0x23082Dd85355b51BAe42248C961E7F83486e7694
Arg [1] : _plantRewardContract (address): 0x4ac6A34d8A2FC0D74a1249a5c6102EaCeC932832
Arg [2] : _devAddr (address): 0xE38297e252F2E5EF52425F6CB382BE22a0d76786
Arg [3] : _feeAddr (address): 0xe6658DBB58664E9aC359b6c59B5697741e28bc86
Arg [4] : _treasuryAddr (address): 0xE38297e252F2E5EF52425F6CB382BE22a0d76786
Arg [5] : _investorAddr (address): 0xE38297e252F2E5EF52425F6CB382BE22a0d76786
Arg [6] : _plantPerSec (uint256): 400000000000000000
Arg [7] : _devPercent (uint256): 100
Arg [8] : _treasuryPercent (uint256): 0
Arg [9] : _investorPercent (uint256): 0

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 00000000000000000000000023082dd85355b51bae42248c961e7f83486e7694
Arg [1] : 0000000000000000000000004ac6a34d8a2fc0d74a1249a5c6102eacec932832
Arg [2] : 000000000000000000000000e38297e252f2e5ef52425f6cb382be22a0d76786
Arg [3] : 000000000000000000000000e6658dbb58664e9ac359b6c59b5697741e28bc86
Arg [4] : 000000000000000000000000e38297e252f2e5ef52425f6cb382be22a0d76786
Arg [5] : 000000000000000000000000e38297e252f2e5ef52425f6cb382be22a0d76786
Arg [6] : 000000000000000000000000000000000000000000000000058d15e176280000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.