Contract 0x8c7c3c72205459e4190d9d3b80a51921f2678383 4

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8715058555e7151593cd83f20a6003515b2ff8acf1530e1fb9e3ed7f63171dd5Deposit195813922021-10-20 10:38:061 min ago0x718ddaf9e38505ce9b8777cbcacc10979c5dc269 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.039617290108
0x005593e2c7eb92793abb8bf5d3f944ee8a28de5346a586d1bcf4fb50a65627ddWithdraw195813112021-10-20 10:36:532 mins ago0x0b4a3750a494ab46faf58e2abae4d89040bd0390 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.032591150159
0xa77efab848ac1b379df4ce03e8d6113f10be1295f9acd460edf30c88fc9710ccDeposit195809912021-10-20 10:31:497 mins ago0xcb520369111588d438bbf595985a4b9a27c46402 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.03836691399
0xe19c04615bdb3f16d96e9a5a4544c3ba722f4eb65aa48259785afc0e0daeb079Deposit195808362021-10-20 10:29:219 mins ago0xb2f8cfb139bd75d61d3ff1e47ccec1b2a8f91f7e IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.043201274581
0x5046fec9df83071a2e5f41569555e106190d705a4c6ec56ed811e43baf346f8aDeposit195808322021-10-20 10:29:1410 mins ago0x76ad6c78e2ccb1fe1f2f2dcc96024827ac3a6946 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.09792615
0x8bbd4336382766d9f237a3bd423f4e4adb830638eb0b7f67212f1f6bea5fc4eaWithdraw195807822021-10-20 10:27:5711 mins ago0x1116f79777e248439a793178b8c01825938bd859 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.03547757806
0x3907a0240f7f8457ab22c82f6cac8d3f6fbdb926adb66edc95fb0c6bd85c13f4Deposit195802952021-10-20 10:21:0318 mins ago0xe542d50768823623704b1b812fd140a26b978ed8 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.030196435504
0x4f91b05af927f2e6690ab7ac446668bff9db14b510242a35e0e27076e4fd4f0eDeposit195802602021-10-20 10:20:2918 mins ago0x1c29801b688e3a4625e3c215ac6ba3085ec05843 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.034666414342
0x9f7c649ecc32b189a5305eba7124e35e36b76e70c9ee70c72432fdbbd766995aDeposit195800432021-10-20 10:17:2721 mins ago0x8a6eeb9b64eeba8d3b4404bf67a7c262c555e25b IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.036723406038
0x7ada5f9c6bce86281e761fb42090632348946075fadc6ac580ae8129d1fb530aDeposit195799412021-10-20 10:15:5823 mins ago0x52c0fc3cf3fd255a83c678806f3f1ddefed2f73f IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.032342064875
0x867223e259dac95807e8b68a220790ec6005f68d7800d68a0dd7c0cedc55d243Deposit195798072021-10-20 10:13:5225 mins ago0x548430e8ffc1d7547508374f7db66bd0fa342227 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.039479619447
0xd7ad3131028d1f0db3d760a7e02109987fe4d80a854d8b40421ee4e6326969ffDeposit195797582021-10-20 10:12:5126 mins ago0x7188d9ff7f43fe80ffebbc9b2e3f3ba472049c1c IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.034709237271
0xdaf9178a0a054066e37c4e43e81a1d67c74f6b3b2ae31c5248f16e43ce81a45fDeposit195797422021-10-20 10:12:3626 mins ago0x8889c163774791ca3af1d02abb80cd095d329627 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.040623549232
0x18a4ed8a0144cc5507107b303ab7b3cf19a15ff0a86ba7d642ddf59822cb2e4aDeposit195796192021-10-20 10:10:3928 mins ago0xb97544f12c367f2cba13aef92d43a1cc8a9d25d3 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.041379144192
0x393dd24c2e917676c02e50bba7f399f10bcc5a5c88270329b7e48b5c41a0d14fDeposit195794322021-10-20 10:07:5231 mins ago0xb97544f12c367f2cba13aef92d43a1cc8a9d25d3 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.100157407812
0x06709ef58fdfffa3d44152d8136656e251083d16ebe6efca8fab2ec2fb7c2fb2Deposit195793762021-10-20 10:06:5532 mins ago0x62309a5fd817d6c6ecddd61000ba94a9564b9582 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.034896654895
0xfad27b427aefa875e4ea57b30caf0180346c21cc71ea252c41ce5c77ad9b5df6Deposit195792442021-10-20 10:04:1734 mins ago0xa2f8372aecaa3084a6b2463215c47f1658306607 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.037162441234
0x7bff2ab76f82416bfcab7207bda50305dc14b3ec13100e0ed16759abdd08a3f5Withdraw195792412021-10-20 10:04:1035 mins ago0x39e7f44aea61c5aad77590f41f97d5c06022055d IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.034411023806
0x941a2957369bc0830608f32a14bc8a4fac8e3205ffdad55657f1d98d667a1703Deposit195792262021-10-20 10:03:5235 mins ago0x93aef55cf06e8a0587c183c4c6b2313a750c07fb IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.037672791021
0x35196befc6cae7c03a413529dff87e153420d9cc552e74643e73ee0da115dd39Deposit195792052021-10-20 10:03:2635 mins ago0x5754ac025e57b961faf6f7fbea1c1cdb586e9a14 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.04241898461
0x21ccb49c5bdc79079e4b41b4d5c2fbb7b798dc7273df802bcc1cc8ff4e0435dfDeposit195791972021-10-20 10:03:0536 mins ago0x9f3f66da80bb8101f6c770f6cf5d9023d7819da4 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.033247532595
0x9f42a29d51dcf24ef4ac7417524493e2235f361d92f2d6f526fce04654ddceb4Deposit195791962021-10-20 10:03:0536 mins ago0x9f3f66da80bb8101f6c770f6cf5d9023d7819da4 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.03509807847
0xd136dff61cdb99528bc8b349aede9d1bb1f03ace2557c465832755754b4c8221Deposit195791912021-10-20 10:02:5736 mins ago0x5754ac025e57b961faf6f7fbea1c1cdb586e9a14 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.035905011497
0x2ea5629844f60fb9b8a34f6e2586e5bc601188164d12a134cdada84d9b9ce222Deposit195791472021-10-20 10:01:5137 mins ago0x1e52cf3cae262493e8b8f9a89118c39652879168 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.044836804249
0x6487f5289789d56858e8d223d3ef2bdb3a036d17c3d849fce31cbff55cb5320cDeposit195791002021-10-20 10:00:4138 mins ago0x1e52cf3cae262493e8b8f9a89118c39652879168 IN  0x8c7c3c72205459e4190d9d3b80a51921f26783830 FTM0.044985969146
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xcb43361470499820d044e02c302a79868631ac991124bb1a126a0540820229bb186751592021-10-09 13:35:1110 days 21 hrs ago 0xe2dca5be87a29dd426d9cfa38cc08681ff3a84e3  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

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

pragma solidity 0.6.12;

//  _ __   ___  __ _ _ __ ______ _ _ __  
// | '_ \ / _ \/ _` | '__|_  / _` | '_ \ 
// | |_) |  __/ (_| | |   / / (_| | |_) |
// | .__/ \___|\__,_|_|  /___\__,_| .__/ 
// | |                            | |    
// |_|                            |_|    

// https://pearzap.com/

import "./ReentrancyGuard.sol";
import "./Context.sol";
import "./Ownable.sol";
import "./IReferral.sol";
import "./ILocker.sol";
import "./Address.sol";
import "./SafeBEP20.sol";
import "./SafeMath.sol";
import "./BEP20.sol";
import "./PEARToken.sol";

// MasterChef is the master of Pear. He can make Pear and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once PEAR is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract MasterChef is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

    // Info of each user.
    struct UserInfo {
        uint256 amount;         // How many LP tokens the user has provided.
        uint256 rewardDebt;     // Reward debt. See explanation below.
        uint256 rewardLockedUp;  // Reward locked up.
        uint256 nextHarvestUntil; // When can the user harvest again.
        uint256 noHarvestFeeAfter; //No harvest fee after this duration
        //
        // We do some fancy math here. Basically, any point in time, the amount of PEARs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accPearPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accPearPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    // Info of each pool.
    struct PoolInfo {
        IBEP20 lpToken;           // Address of LP token contract.
        uint256 allocPoint;       // How many allocation points assigned to this pool. PEARs to distribute per block.
        uint256 lastRewardBlock;  // Last block number that PEARs distribution occurs.
        uint256 accPearPerShare;   // Accumulated PEARs per share, times 1e18. See below.
        uint16 depositFeeBP;      // Deposit fee in basis points
        uint256 harvestInterval;  // Harvest interval in seconds
        uint256 harvestFeeInterval; // Harvest fee minimum interval in seconds
        uint256 harvestFeeBP; // Harvest fee in basis points when the harvest occurs before the minimum interval
    }

    // PEAR token
    PearToken public pear;
    // Dev address.
    address public devAddress;
    // Deposit Fee address
    address public feeAddress;
    // Deposit Charity address
    address public charityAddress;    
    // Lottery contract address : default address is the burn address and will be updated when lottery release
    address public lotteryAddress;
    // PEAR tokens created per block.
    uint256 public pearPerBlock;
    // Maximum emission rate : pearPerBlock can't be more than 50 per block
    uint256 public constant MAX_EMISSION_RATE = 50000000000000000000;
    // Max harvest interval: 14 days.
    uint256 public constant MAXIMUM_HARVEST_INTERVAL = 14 days;
    // Max harvest fee interval: 10 days.
    uint256 public constant MAXIMUM_HARVESTFEE_INTERVAL = 10 days;    
    // Max deposit fee : 10% (in basis point)
    uint256 public constant MAXIMUM_DEPOSIT_FEE = 1000;
    // Max harvest fee : 10% (in basis point)
    uint256 public constant MAXIMUM_HARVEST_FEE = 1000;   
    // Lottery mint rate : maximum 5% (in basis point) :  default rate is 0 and will be updated when lottery release
    uint16 public lotteryMintRate;
    // Burn address
    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;  
    // Charity fee is a part of deposit fee (in basis point)
    uint16 public charityFeeBP;
    // Locker interface
    ILocker public pearLocker;
    // Locker address
    address public pearLockerAddress;
    // Locker rate (in basis point) if = 0 locker desactivated
    uint16 public lockerRate;
    // Addresses that are excluded from locker - Used only for vault purposes during the launch locker period
    mapping(address => bool) private _excludedFromLocker;  
    

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when PEAR mining starts.
    uint256 public startBlock;
    // Total locked up rewards
    uint256 public totalLockedUpRewards;

    // Pear referral contract address.
    IReferral public pearReferral;
    // Referral commission rate in basis points.
    uint16 public referralCommissionRate = 100;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmissionRateUpdated(address indexed caller, uint256 previousAmount, uint256 newAmount);
    event ReferralCommissionPaid(address indexed user, address indexed referrer, uint256 newAmount);
    event RewardLockedUp(address indexed user, uint256 indexed pid, uint256 newAmount);
    event FeeAddressUpdated(address indexed user, address indexed newAddress);
    event CharityAddressUpdated(address indexed user, address indexed newAddress);
    event CharityFeeRateUpdated(address indexed user, uint256 previousAmount, uint16 newAmount);
    event DevAddressUpdated(address indexed user, address indexed newAddress);
    event PearReferralUpdated(address indexed user, IReferral newAddress);
    event PearLockerUpdated(address indexed user, address newAddress);
    event LockerRateUpdated(address indexed user, uint256 previousAmount, uint256 newAmount);
    event ReferralRateUpdated(address indexed user, uint256 previousAmount, uint256 newAmount);
    event LotteryAddressUpdated(address indexed user, address indexed newAddress);
    event LotteryMintRateUpdated(address indexed user, uint256 previousAmount, uint16 newAmount);
    event ExcludedFromLocker(address indexed exludedAddress, bool indexed excludedStatus);

    constructor(
        PearToken _pear,
        uint256 _startBlock,
        uint256 _pearPerBlock,
        address _pearLockerAddress
    ) public {
        pear = _pear;
        startBlock = _startBlock;
        pearPerBlock = _pearPerBlock;
        lotteryAddress = BURN_ADDRESS;
        lotteryMintRate = 0;
        charityFeeBP = 1000;
        lockerRate = 5000;

        devAddress = msg.sender;
        feeAddress = msg.sender;
        charityAddress = msg.sender;
        pearLockerAddress = _pearLockerAddress;
        pearLocker = ILocker(_pearLockerAddress);
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }
    
	// add a check for avoid duplicate lptoken
    mapping(IBEP20 => bool) public poolExistence;
    modifier nonDuplicated(IBEP20 _lpToken) {
        require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated");
        _;
    }    

    // Add a new lp to the pool. Can only be called by the owner.
    function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, uint256 _harvestInterval, uint256 _harvestFeeInterval, uint256 _harvestFeeBP, bool _withUpdate) public onlyOwner nonDuplicated(_lpToken) {
        // test if the lptoken address is a token contract
        require(_lpToken.balanceOf(address(_lpToken)) >=0, "add: try to add non token contract");
        // deposit fee can't excess more than 10%
        require(_depositFeeBP <= MAXIMUM_DEPOSIT_FEE, "add: invalid deposit fee basis points");
        // harvest fee can't excess more than 10%
        require(_harvestFeeBP <= MAXIMUM_HARVEST_FEE, "add: invalid deposit fee basis points");      
        require(_harvestInterval <= MAXIMUM_HARVEST_INTERVAL, "add: invalid harvest interval");
        require(_harvestFeeInterval <= MAXIMUM_HARVESTFEE_INTERVAL, "add: invalid harvest fee interval");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolExistence[_lpToken] = true;
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accPearPerShare: 0,
            depositFeeBP: _depositFeeBP,
            harvestInterval: _harvestInterval,
            harvestFeeInterval: _harvestFeeInterval,
            harvestFeeBP: _harvestFeeBP
        }));
    }

    // Update the given pool's PEAR allocation point and deposit fee. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, uint256 _harvestInterval, uint256 _harvestFeeInterval, uint256 _harvestFeeBP, bool _withUpdate) public onlyOwner {
        // deposit fee can't excess more than 10%
        require(_depositFeeBP <= MAXIMUM_DEPOSIT_FEE, "set: invalid deposit fee basis points");
        // withdrawal fee can't excess more than 10%
        require(_harvestFeeBP <= MAXIMUM_HARVEST_FEE, "add: invalid harvest fee basis points");         
        require(_harvestInterval <= MAXIMUM_HARVEST_INTERVAL, "set: invalid harvest interval");
		require(_harvestFeeInterval <= MAXIMUM_HARVESTFEE_INTERVAL, "add: invalid harvest fee interval");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
        poolInfo[_pid].harvestInterval = _harvestInterval;
        poolInfo[_pid].harvestFeeInterval = _harvestFeeInterval;
        poolInfo[_pid].harvestFeeBP = _harvestFeeBP;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) {
        return _to.sub(_from);
    }

    // View function to see pending PEARs on frontend.
    function pendingPear(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accPearPerShare = pool.accPearPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0  && totalAllocPoint > 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 pearReward = multiplier.mul(pearPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accPearPerShare = accPearPerShare.add(pearReward.mul(1e18).div(lpSupply));
        }
        uint256 pending = user.amount.mul(accPearPerShare).div(1e18).sub(user.rewardDebt);
        return pending.add(user.rewardLockedUp);
    }

    // View function to see if user can harvest PEARs.
    function canHarvest(uint256 _pid, address _user) public view returns (bool) {
        UserInfo storage user = userInfo[_pid][_user];
        return block.timestamp >= user.nextHarvestUntil;
    }
    
    // View function to see if user harvest fees apply to the harvest
    function noHarvestFee(uint256 _pid, address _user) public view returns (bool) {
        UserInfo storage user = userInfo[_pid][_user];
        return block.timestamp >= user.noHarvestFeeAfter;
    }    

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 pearReward = multiplier.mul(pearPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        pear.mint(devAddress, pearReward.mul(100).div(1000));
        // Automatically burn 2% of minted tokens
        pear.mint(BURN_ADDRESS, pearReward.mul(20).div(1000));
        // Automatically mint some PEAR for the lottery pot
        if (address(lotteryAddress) != address(0) && lotteryMintRate > 0) {
            pear.mint(lotteryAddress, pearReward.mul(lotteryMintRate).div(10000));
        }        
        pear.mint(address(this), pearReward);
        pool.accPearPerShare = pool.accPearPerShare.add(pearReward.mul(1e18).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for PEAR allocation.
    function deposit(uint256 _pid, uint256 _amount, address _referrer) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (_amount > 0 && address(pearReferral) != address(0) && address(pearReferral) != BURN_ADDRESS && _referrer != address(0) && _referrer != BURN_ADDRESS && _referrer != msg.sender) {
            pearReferral.recordReferral(msg.sender, _referrer);
        }
        payOrLockupPendingPear(_pid);
        if (_amount > 0) {

            // Handle any token with transfer tax
            uint256 balanceBefore = pool.lpToken.balanceOf(address(this));
            pool.lpToken.safeTransferFrom(msg.sender, address(this), _amount);
            _amount = pool.lpToken.balanceOf(address(this)).sub(balanceBefore);

            if (pool.depositFeeBP > 0) {
                if (charityFeeBP > 0) {
                    uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                    uint256 charityFee = depositFee.mul(charityFeeBP).div(10000);
                    user.amount = user.amount.add(_amount).sub(depositFee);
                    pool.lpToken.safeTransfer(feeAddress, depositFee.sub(charityFee));
                    pool.lpToken.safeTransfer(charityAddress, charityFee);                    
                } else {
                    uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                    user.amount = user.amount.add(_amount).sub(depositFee);
                    pool.lpToken.safeTransfer(feeAddress, depositFee);
                }  
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accPearPerShare).div(1e18);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        payOrLockupPendingPear(_pid);
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(msg.sender, _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accPearPerShare).div(1e18);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        user.rewardLockedUp = 0;
        user.nextHarvestUntil = 0;
        user.noHarvestFeeAfter = 0;
        pool.lpToken.safeTransfer(msg.sender, amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }


    // Pay or lockup pending PEARs.
    function payOrLockupPendingPear(uint256 _pid) internal {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        if (user.nextHarvestUntil == 0) {
            user.nextHarvestUntil = block.timestamp.add(pool.harvestInterval);
        }
        
        if (user.noHarvestFeeAfter == 0) {
            user.noHarvestFeeAfter = block.timestamp.add(pool.harvestFeeInterval);
        }        

        // pending reward for user
        uint256 pending = user.amount.mul(pool.accPearPerShare).div(1e18).sub(user.rewardDebt);

        if (canHarvest(_pid, msg.sender)) {
            // if user harvest before the interval, user get X% less of pending reward               
            if (noHarvestFee(_pid, msg.sender)==false && pending > 0) {
                uint256 pendingIncludeRewardLockedUp = pending.add(user.rewardLockedUp);
                uint256 harvestfeeamount = pendingIncludeRewardLockedUp.mul(pool.harvestFeeBP).div(10000);
                pending = pending.sub(harvestfeeamount);
                // tax on harvest is send to the burn address
                safePearTransfer(BURN_ADDRESS, harvestfeeamount);     
            }
            // reset timer at each harvest
            user.noHarvestFeeAfter = block.timestamp.add(pool.harvestFeeInterval);                

            if (pending > 0 || user.rewardLockedUp > 0) {
                uint256 totalRewards = pending.add(user.rewardLockedUp);

                // reset lockup
                totalLockedUpRewards = totalLockedUpRewards.sub(user.rewardLockedUp);
                user.rewardLockedUp = 0;
                user.nextHarvestUntil = block.timestamp.add(pool.harvestInterval);
                
                if (address(pearLocker) != address(0) && _excludedFromLocker[msg.sender] == false){
                    uint256 startReleaseBlock = ILocker(pearLocker).getStartReleaseBlock();
                    if (lockerRate > 0 && block.number < startReleaseBlock) {
                        uint256 _lockerAmount = totalRewards.mul(lockerRate).div(10000);
                        totalRewards = totalRewards.sub(_lockerAmount);
                        IBEP20(pear).safeIncreaseAllowance(address(pearLockerAddress), _lockerAmount);
                        ILocker(pearLocker).lock(msg.sender, _lockerAmount); 
                    }
                }

                // send rewards 
                safePearTransfer(msg.sender, totalRewards);
                payReferralCommission(msg.sender, totalRewards); // extra mint for referral
            }
        } else if (pending > 0) {
            user.rewardLockedUp = user.rewardLockedUp.add(pending);
            totalLockedUpRewards = totalLockedUpRewards.add(pending);
            emit RewardLockedUp(msg.sender, _pid, pending);
        }
    }

    // Safe pear transfer function, just in case if rounding error causes pool to not have enough PEARs.
    function safePearTransfer(address _to, uint256 _amount) internal {
        uint256 pearBal = pear.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > pearBal) {
            transferSuccess = pear.transfer(_to, pearBal);
        } else {
            transferSuccess = pear.transfer(_to, _amount);
        }
        require(transferSuccess, "safePearTransfer: transfer failed");
    }

    // Update dev address by the previous dev address
    function setDevAddress(address _devAddress) public {
        require(msg.sender == devAddress, "setDevAddress: FORBIDDEN");
        require(_devAddress != address(0), "setDevAddress: ZERO");
        devAddress = _devAddress;
        emit DevAddressUpdated(msg.sender, _devAddress);
    }

    //Update fee address by the previous fee address
    function setFeeAddress(address _feeAddress) public {
        require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN");
        require(_feeAddress != address(0), "setFeeAddress: ZERO");
        feeAddress = _feeAddress;
        emit FeeAddressUpdated(msg.sender, _feeAddress);
    }
    
    //Update charity address by the previous charity address
    function setCharityAddress(address _charityAddress) public {
        require(msg.sender == charityAddress, "setCharityAddress: FORBIDDEN");
        require(_charityAddress != address(0), "setCharityAddress: ZERO");
        charityAddress = _charityAddress;
        emit CharityAddressUpdated(msg.sender, _charityAddress);
    }    

    //Update lottery address by the owner
    function setLotteryAddress(address _lotteryAddress) public onlyOwner {
        require(_lotteryAddress != address(0), "setLotteryAddress: ZERO");
        lotteryAddress = _lotteryAddress;
        emit LotteryAddressUpdated(msg.sender, _lotteryAddress);
    }    

    // Update emission rate by the owner
    function updateEmissionRate(uint256 _pearPerBlock) public onlyOwner {
        require(_pearPerBlock <= MAX_EMISSION_RATE, "Too high");
        massUpdatePools();
        emit EmissionRateUpdated(msg.sender, pearPerBlock, _pearPerBlock);
        pearPerBlock = _pearPerBlock;
    }

    // Update the pear referral contract address by the owner
    function setPearReferral(IReferral _pearReferral) public onlyOwner {
        pearReferral = _pearReferral;
        emit PearReferralUpdated(msg.sender, _pearReferral);
    }

    // Update referral commission rate by the owner
    function setReferralCommissionRate(uint16 _referralCommissionRate) public onlyOwner {
        // Max referral commission rate: 10%.
        require(_referralCommissionRate <= 1000, "setReferralCommissionRate: invalid referral commission rate basis points");
        emit ReferralRateUpdated(msg.sender, referralCommissionRate, _referralCommissionRate);
        referralCommissionRate = _referralCommissionRate;

    }

    // Update lottery mint rate by the owner
    function setLotteryMintRate(uint16 _lotteryMintRate) public onlyOwner {
        // Max lottery mint rate: 5%.
        require(_lotteryMintRate <= 500, "setLotteryMintRate: invalid lottery mint rate basis points");
        emit LotteryMintRateUpdated(msg.sender, lotteryMintRate, _lotteryMintRate);
        lotteryMintRate = _lotteryMintRate;
    }  

    // Update charity fee rate by the owner
    function setCharityFeeRate(uint16 _charityFeeBP) public onlyOwner {
        // Max charity fee rate: 50%
        // charity fee is a part of deposit fee and not added fee
        require(_charityFeeBP <= 5000, "setCharityFeeRate: invalid charity fee rate basis points");
        emit CharityFeeRateUpdated(msg.sender, charityFeeBP, _charityFeeBP);
        charityFeeBP = _charityFeeBP;
    }     

    // Update the pear locker contract address by the owner
    function setPearLocker(address _pearLockerAddress) public onlyOwner {
        pearLocker = ILocker(_pearLockerAddress);
        pearLockerAddress = _pearLockerAddress;
        emit PearLockerUpdated(msg.sender, _pearLockerAddress);
    }   

    // Update locker rate by the owner
    function setLockerRate(uint16 _lockerRate) public onlyOwner {
        // Max locker rate: 50%.
        require(_lockerRate <= 5000, "setLockerRate: invalid locker rate basis points");
        emit LockerRateUpdated(msg.sender, lockerRate, _lockerRate);
        lockerRate = _lockerRate;
    }     
    

    // Pay referral commission to the referrer who referred this user.
    function payReferralCommission(address _user, uint256 _pending) internal {
        if (address(pearReferral) != address(0) && referralCommissionRate > 0) {
            address referrer = pearReferral.getReferrer(_user);
            uint256 commissionAmount = _pending.mul(referralCommissionRate).div(10000);

            if (referrer != address(0) && referrer != BURN_ADDRESS && commissionAmount > 0) {
                pear.mint(referrer, commissionAmount);
                pearReferral.recordReferralCommission(referrer, commissionAmount);
                emit ReferralCommissionPaid(_user, referrer, commissionAmount);
            }
        }
    }
    
    // Exclude or include an address from locker
    function setExcludedFromLocker(address _account, bool _excluded) public onlyOwner {
        _excludedFromLocker[_account] = _excluded;
        emit ExcludedFromLocker(_account, _excluded);
    }       
    
    // Returns the address is excluded from locker or not.
    function isExcludedFromLocker(address _account) public view returns (bool) {
        return _excludedFromLocker[_account];
    } 

    function updateStartBlock(uint256 _startBlock) external onlyOwner {
        require(startBlock > block.number, "Farm already started");
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            PoolInfo storage pool = poolInfo[pid];
            pool.lastRewardBlock = _startBlock;
        }
        startBlock = _startBlock;
    }    
}

File 2 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 3 of 12: BEP20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.4.0;

import "./Context.sol";
import "./IBEP20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
import "./Address.sol";




/**
 * @dev Implementation of the {IBEP20} 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 {BEP20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-BEP20-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 BEP20 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 {IBEP20-approve}.
 */
contract BEP20 is Context, IBEP20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    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 bep token owner.
     */
    function getOwner() external override view returns (address) {
        return owner();
    }

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

    /**
     * @dev Returns the token decimals.
     */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev Returns the token symbol.
     */
    function symbol() public override view returns (string memory) {
        return _symbol;
    }

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

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

    /**
     * @dev See {BEP20-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 override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

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

    /**
     * @dev See {BEP20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {BEP20};
     *
     * 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 override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(
            sender,
            _msgSender(),
            _allowances[sender][_msgSender()].sub(amount, "BEP20: 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 {BEP20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public 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 {BEP20-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 returns (bool) {
        _approve(
            _msgSender(),
            spender,
            _allowances[_msgSender()][spender].sub(subtractedValue, "BEP20: decreased allowance below zero")
        );
        return true;
    }

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        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), "BEP20: transfer from the zero address");
        require(recipient != address(0), "BEP20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount, "BEP20: 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 {
        require(account != address(0), "BEP20: mint to the zero address");

        _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 {
        require(account != address(0), "BEP20: burn from the zero address");

        _balances[account] = _balances[account].sub(amount, "BEP20: 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 is 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 {
        require(owner != address(0), "BEP20: approve from the zero address");
        require(spender != address(0), "BEP20: approve to the zero address");

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

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(
            account,
            _msgSender(),
            _allowances[account][_msgSender()].sub(amount, "BEP20: burn amount exceeds allowance")
        );
    }
}

File 4 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 5 of 12: IBEP20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.4.0;

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

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

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

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

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

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

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

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

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

pragma solidity 0.6.12;

interface ILocker {
    function totalLock() external view returns (uint256);

    function lockOf(address _account) external view returns (uint256);

    function released(address _account) external view returns (uint256);

    function canUnlockAmount(address _account) external view returns (uint256);

    function lock(address _account, uint256 _amount) external;

    function unlock() external;
    
    function getStartReleaseBlock() external view returns (uint256);
}

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

pragma solidity 0.6.12;

interface IReferral {
    /**
     * @dev Record referral.
     */
    function recordReferral(address user, address referrer) external;

    /**
     * @dev Record referral commission.
     */
    function recordReferralCommission(address referrer, uint256 commission) external;

    /**
     * @dev Get the referrer address that referred the user.
     */
    function getReferrer(address user) external view returns (address);
}

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

pragma solidity >=0.6.0 <0.8.0;


import "./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 9 of 12: PEARToken.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

//  _ __   ___  __ _ _ __ ______ _ _ __  
// | '_ \ / _ \/ _` | '__|_  / _` | '_ \ 
// | |_) |  __/ (_| | |   / / (_| | |_) |
// | .__/ \___|\__,_|_|  /___\__,_| .__/ 
// | |                            | |    
// |_|                            |_|    

// https://pearzap.com/

import "./BEP20.sol";

// PearToken with Governance.
contract PearToken is BEP20 {
    
    // Burn tax rate in basis points. (defaut 2%, max 2%)
    uint16 public burnRateTax = 200;
    
    // Burn address
    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    // Max transfer amount rate in basis points. (default is 1% of total supply)
    uint16 public maxTransferAmountRate = 100;
    // Addresses that are excluded from antiWhale
    mapping(address => bool) private _excludedFromAntiWhale;
    // Addresses that are excluded from transfert tax
    mapping(address => bool) private _excludedFromTrsfTax;    
    
    // The operator can only update the transfer burn tax rate & update maxTransferAmountRate & add address to antiWhale and transfer tax whitelist & change operator adresse
    address private _operator;

    // Events
    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);
    event OwnerTransferred(address indexed previousOwner, address indexed newOwner);
    event BurnRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate);
    event MaxTransferAmountRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate);
    event PearSwapRouterUpdated(address indexed operator, address indexed router, address indexed pair);
    event ExcludedFromAntiWhale(address indexed exludedAdresse, bool indexed excludedStatut);
    event ExcludedFromTrsfTax(address indexed exludedAdresse, bool indexed excludedStatut);
    
    // Modifiers
    modifier onlyOperator() {
        require(_operator == msg.sender, "operator: caller is not the operator");
        _;
    }
    
    modifier antiWhale(address sender, address recipient, uint256 amount) {
        if (maxTransferAmount() > 0) {
            if (
                _excludedFromAntiWhale[sender] == false
                && _excludedFromAntiWhale[recipient] == false
            ) {
                require(amount <= maxTransferAmount(), "PEAR::antiWhale: Transfer amount exceeds the maxTransferAmount");
            }
        }
        _;
    }


    /**
     * @notice Constructs the PearToken contract.
     */
    constructor() public BEP20("Pear Token", "PEAR") {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);

        _excludedFromAntiWhale[msg.sender] = true;
        _excludedFromAntiWhale[address(this)] = true;
        _excludedFromAntiWhale[BURN_ADDRESS] = true;
    }

    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

    /// @dev overrides transfer BEP20 function to meet tokenomics of PEAR
    function _transfer(address sender, address recipient, uint256 amount) internal virtual override antiWhale(sender, recipient, amount) {
        
        if (recipient == BURN_ADDRESS || _excludedFromTrsfTax[sender] == true || _excludedFromTrsfTax[recipient] == true) {            
            super._transfer(sender, recipient, amount);
            _moveDelegates(_delegates[sender], _delegates[recipient], amount);
        } else {
            
            // default burn tax is 2% by default of every transfer
            uint256 burnAmount = amount.mul(burnRateTax).div(10000);

            // default 98% of transfer sent to recipient
            uint256 sendAmount = amount.sub(burnAmount);
            
            require(amount == sendAmount + burnAmount, "PEAR::transfer: Burn value invalid");

            super._transfer(sender, BURN_ADDRESS, burnAmount);
            _moveDelegates(_delegates[sender], _delegates[BURN_ADDRESS], burnAmount);
            super._transfer(sender, recipient, sendAmount);
            _moveDelegates(_delegates[sender], _delegates[recipient], sendAmount);
            amount = sendAmount;   
        }
    }
    

    /**
     * @dev Returns the max transfer amount.
     */
    function maxTransferAmount() public view returns (uint256) {
        uint256 maxTxAmount;
        maxTxAmount = totalSupply().mul(maxTransferAmountRate).div(10000);
        // if antiwhale maxTransferAmountRate is set too low, a minimum of 5000 PEAR is applied
        if (maxTxAmount < 5000000000000000000000) {
            maxTxAmount = 5000000000000000000000;
        }
        return maxTxAmount;
        
    }

    /**
     * @dev Returns the address is excluded from antiWhale or not.
     */
    function isExcludedFromAntiWhale(address _account) public view returns (bool) {
        return _excludedFromAntiWhale[_account];
    }
    
    /**
     * @dev Returns the address is excluded from transfert tax or not.
     */
    function isExcludedFromTrsfTax(address _account) public view returns (bool) {
        return _excludedFromTrsfTax[_account];
    }    

    /**
     * @dev Update the burn rate.
     * Can only be called by the current operator.
     */
    function updateBurnRate(uint16 _burnRateTax) public onlyOperator {
        require(_burnRateTax <= 200, "PEAR::updateBurnRate: Burn rate must not exceed the maximum rate.");
        emit BurnRateUpdated(msg.sender, burnRateTax, _burnRateTax);
        burnRateTax = _burnRateTax;
    }

    /**
     * @dev Update the max transfer amount rate.
     * Can only be called by the current operator.
     */
    function updateMaxTransferAmountRate(uint16 _maxTransferAmountRate) public onlyOperator {
        require(_maxTransferAmountRate <= 10000, "PEAR::updateMaxTransferAmountRate: Max transfer amount rate must not exceed 100 percents.");
        require(_maxTransferAmountRate >= 1, "PEAR::updateMaxTransferAmountRate: Max transfer amount rate must not be less than 0.01 percents.");
        
        emit MaxTransferAmountRateUpdated(msg.sender, maxTransferAmountRate, _maxTransferAmountRate);
        maxTransferAmountRate = _maxTransferAmountRate;
    }

    /**
     * @dev Exclude or include an address from antiWhale.
     * Can only be called by the current operator.
     */
    function setExcludedFromAntiWhale(address _account, bool _excluded) public onlyOperator {
        _excludedFromAntiWhale[_account] = _excluded;
        emit ExcludedFromAntiWhale(_account, _excluded);
    }
    
    /**
     * @dev Exclude or include an address from antiWhale.
     * Can only be called by the current operator.
     */
    function setExcludedFromTrsfTax(address _account, bool _excluded) public onlyOperator {
        _excludedFromTrsfTax[_account] = _excluded;
        emit ExcludedFromTrsfTax(_account, _excluded);
    }    

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

    /**
     * @dev Transfers operator of the contract to a new account (`newOperator`).
     * Can only be called by the current operator.
     */
    function transferOperator(address newOperator) public onlyOperator {
        require(newOperator != address(0), "PEAR::transferOperator: new operator is the zero address");
        emit OperatorTransferred(_operator, newOperator);
        _operator = newOperator;
    }
    
    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

    /// @dev A record of each accounts delegate
    mapping (address => address) internal _delegates;

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

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

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

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

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

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

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

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

    /**
     * @notice Delegate votes from `msg.sender` to `delegatee`
     * @param delegator The address to get delegatee for
     */
    function delegates(address delegator)
        external
        view
        returns (address)
    {
        return _delegates[delegator];
    }

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

    /**
     * @notice Delegates votes from signatory to `delegatee`
     * @param delegatee The address to delegate votes to
     * @param nonce The contract state required to match the signature
     * @param expiry The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function delegateBySig(
        address delegatee,
        uint nonce,
        uint expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
        external
    {
        bytes32 domainSeparator = keccak256(
            abi.encode(
                DOMAIN_TYPEHASH,
                keccak256(bytes(name())),
                getChainId(),
                address(this)
            )
        );

        bytes32 structHash = keccak256(
            abi.encode(
                DELEGATION_TYPEHASH,
                delegatee,
                nonce,
                expiry
            )
        );

        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                structHash
            )
        );

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "PEAR::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "PEAR::delegateBySig: invalid nonce");
        require(now <= expiry, "PEAR::delegateBySig: signature expired");
        return _delegate(signatory, delegatee);
    }

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

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

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

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

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

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

    function _delegate(address delegator, address delegatee)
        internal
    {
        address currentDelegate = _delegates[delegator];
        uint256 delegatorBalance = balanceOf(delegator); // balance of underlying PEARs (not scaled);
        _delegates[delegator] = delegatee;

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

    function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal {
        if (srcRep != dstRep && amount > 0) {
            if (srcRep != address(0)) {
                // decrease old representative
                uint32 srcRepNum = numCheckpoints[srcRep];
                uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
                uint256 srcRepNew = srcRepOld.sub(amount);
                _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
            }

            if (dstRep != address(0)) {
                // increase new representative
                uint32 dstRepNum = numCheckpoints[dstRep];
                uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
                uint256 dstRepNew = dstRepOld.add(amount);
                _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
            }
        }
    }

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

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

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

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

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
    
    //a way to get back other BEP20 tokens sended by error into the PEAR token contract
    function inCaseTokensGetStuck(address _token, uint256 _amount,address _receiver) public onlyOperator {
        IBEP20(_token).transfer(_receiver, _amount);
    }    

}

File 10 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;
    }
}

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

pragma solidity ^0.6.0;


import "./SafeMath.sol";
import "./Address.sol";
import "./IBEP20.sol";

/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

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

    function safeTransferFrom(
        IBEP20 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
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IBEP20 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),
            "SafeBEP20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IBEP20 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(
        IBEP20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(
            value,
            "SafeBEP20: 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(IBEP20 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, "SafeBEP20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed");
        }
    }
}

File 12 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;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract PearToken","name":"_pear","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_pearPerBlock","type":"uint256"},{"internalType":"address","name":"_pearLockerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"CharityAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"newAmount","type":"uint16"}],"name":"CharityFeeRateUpdated","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":"address","name":"newAddress","type":"address"}],"name":"DevAddressUpdated","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":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"EmissionRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"exludedAddress","type":"address"},{"indexed":true,"internalType":"bool","name":"excludedStatus","type":"bool"}],"name":"ExcludedFromLocker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"FeeAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"LockerRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"LotteryAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"newAmount","type":"uint16"}],"name":"LotteryMintRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"PearLockerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"contract IReferral","name":"newAddress","type":"address"}],"name":"PearReferralUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"ReferralCommissionPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"ReferralRateUpdated","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":"newAmount","type":"uint256"}],"name":"RewardLockedUp","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":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_DEPOSIT_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_HARVESTFEE_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_HARVEST_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_HARVEST_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_EMISSION_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"_harvestInterval","type":"uint256"},{"internalType":"uint256","name":"_harvestFeeInterval","type":"uint256"},{"internalType":"uint256","name":"_harvestFeeBP","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"canHarvest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"charityAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"charityFeeBP","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isExcludedFromLocker","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockerRate","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lotteryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lotteryMintRate","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"noHarvestFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pear","outputs":[{"internalType":"contract PearToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pearLocker","outputs":[{"internalType":"contract ILocker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pearLockerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pearPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pearReferral","outputs":[{"internalType":"contract IReferral","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingPear","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accPearPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"harvestInterval","type":"uint256"},{"internalType":"uint256","name":"harvestFeeInterval","type":"uint256"},{"internalType":"uint256","name":"harvestFeeBP","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referralCommissionRate","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"uint256","name":"_harvestInterval","type":"uint256"},{"internalType":"uint256","name":"_harvestFeeInterval","type":"uint256"},{"internalType":"uint256","name":"_harvestFeeBP","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_charityAddress","type":"address"}],"name":"setCharityAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_charityFeeBP","type":"uint16"}],"name":"setCharityFeeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddress","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_excluded","type":"bool"}],"name":"setExcludedFromLocker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_lockerRate","type":"uint16"}],"name":"setLockerRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_lotteryAddress","type":"address"}],"name":"setLotteryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_lotteryMintRate","type":"uint16"}],"name":"setLotteryMintRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pearLockerAddress","type":"address"}],"name":"setPearLocker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IReferral","name":"_pearReferral","type":"address"}],"name":"setPearReferral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_referralCommissionRate","type":"uint16"}],"name":"setReferralCommissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLockedUpRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pearPerBlock","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":"_startBlock","type":"uint256"}],"name":"updateStartBlock","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"},{"internalType":"uint256","name":"rewardLockedUp","type":"uint256"},{"internalType":"uint256","name":"nextHarvestUntil","type":"uint256"},{"internalType":"uint256","name":"noHarvestFeeAfter","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"}]

60806040526000600d556010805461ffff60a01b1916601960a21b1790553480156200002a57600080fd5b5060405162003ede38038062003ede833981810160405260808110156200005057600080fd5b508051602082015160408301516060909301519192909160006200007362000170565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b03199081166001600160a01b0396871617909155600e939093556007919091556006805461dead90841617905560088054600980546003805433908816811790915560048054881682179055600580548816909117905561ffff60a01b191661027160a31b179094169290941691821790925563ffffffff199092166303e8000017600160201b600160c01b03191664010000000090920291909117905562000174565b3390565b613d5a80620001846000396000f3fe608060405234801561001057600080fd5b50600436106103425760003560e01c806381b9e459116101b8578063afcf2fc411610104578063d30ef61b116100a2578063f1b43ac01161007c578063f1b43ac0146108ca578063f2fde38b146108f0578063fac2b9ba14610916578063fccc28131461093357610342565b8063d30ef61b14610899578063d425731e146108a1578063de73149d146108c257610342565b8063b85617ab116100de578063b85617ab146107b6578063c4fb288914610806578063cbd258b51461084d578063d0d41fe11461087357610342565b8063afcf2fc414610785578063b397b6b91461078d578063b64fc8cf146107ae57610342565b80638dbdbe6d116101715780639aca95ec1161014b5780639aca95ec146105c2578063a523fda014610736578063aba7715e1461075c578063ad23c7791461077d57610342565b80638dbdbe6d1461068157806393f1a40b146106b3578063981bd7b81461070a57610342565b806381b9e459146105fa5780638705fcd4146106205780638b4de71a146106465780638d71831b1461064e5780638da5cb5b146106565780638dbb1e3a1461065e57610342565b8063474fa63011610292578063577e5db21161023057806370e73bc51161020a57806370e73bc5146105da578063715018a6146105e257806376144aec146105ea5780637adb4409146105f257610342565b8063577e5db2146105c2578063630b5ba1146105ca57806368b22f81146105d257610342565b806351eb05a61161026c57806351eb05a6146105485780635312ea8e1461056557806355dbc826146105825780635667e1fb146105a357610342565b8063474fa6301461050a57806348cd4cb1146105125780634f51669b1461051a57610342565b80632a332b2a116102ff5780633beedf6d116102d95780633beedf6d146104cf57806341275358146104d7578063436cc3d6146104df578063441a3e70146104e757610342565b80632a332b2a146104595780632e6c998d1461047f5780633ad10ef6146104ab57610342565b8063081e3eda146103475780630ba84cd2146103615780630c9be46d146103805780631526fe27146103a657806317caf6f11461041157806327444b7114610419575b600080fd5b61034f61093b565b60408051918252519081900360200190f35b61037e6004803603602081101561037757600080fd5b5035610941565b005b61037e6004803603602081101561039657600080fd5b50356001600160a01b0316610a37565b6103c3600480360360208110156103bc57600080fd5b5035610b3d565b604080516001600160a01b039099168952602089019790975287870195909552606087019390935261ffff909116608086015260a085015260c084015260e083015251908190036101000190f35b61034f610b9f565b6104456004803603604081101561042f57600080fd5b50803590602001356001600160a01b0316610ba5565b604080519115158252519081900360200190f35b61037e6004803603602081101561046f57600080fd5b50356001600160a01b0316610bd5565b6104456004803603604081101561049557600080fd5b50803590602001356001600160a01b0316610cde565b6104b3610d0c565b604080516001600160a01b039092168252519081900360200190f35b6104b3610d1b565b6104b3610d2a565b61034f610d39565b61037e600480360360408110156104fd57600080fd5b5080359060200135610d46565b61034f610ece565b61034f610ed4565b61037e6004803603604081101561053057600080fd5b506001600160a01b0381351690602001351515610eda565b61037e6004803603602081101561055e57600080fd5b5035610f90565b61037e6004803603602081101561057b57600080fd5b503561130c565b61037e6004803603602081101561059857600080fd5b503561ffff16611421565b6105ab611535565b6040805161ffff9092168252519081900360200190f35b61034f611546565b61037e61154c565b6104b361156f565b6104b361157e565b61037e611595565b6104b3611641565b6105ab611650565b61037e6004803603602081101561061057600080fd5b50356001600160a01b031661165a565b61037e6004803603602081101561063657600080fd5b50356001600160a01b0316611713565b61034f61180f565b61034f611816565b6104b361181c565b61034f6004803603604081101561067457600080fd5b508035906020013561182b565b61037e6004803603606081101561069757600080fd5b50803590602081013590604001356001600160a01b031661183e565b6106df600480360360408110156106c957600080fd5b50803590602001356001600160a01b0316611c87565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b61034f6004803603604081101561072057600080fd5b50803590602001356001600160a01b0316611cc1565b6104456004803603602081101561074c57600080fd5b50356001600160a01b0316611e4f565b61037e6004803603602081101561077257600080fd5b503561ffff16611e6d565b6104b3611f70565b6104b3611f7f565b61037e600480360360208110156107a357600080fd5b503561ffff16611f8e565b6105ab6120a2565b61037e600480360360e08110156107cc57600080fd5b508035906001600160a01b036020820135169061ffff6040820135169060608101359060808101359060a08101359060c0013515156120b2565b61037e600480360360e081101561081c57600080fd5b5080359060208101359061ffff6040820135169060608101359060808101359060a08101359060c001351515612562565b6104456004803603602081101561086357600080fd5b50356001600160a01b0316612803565b61037e6004803603602081101561088957600080fd5b50356001600160a01b0316612818565b6105ab612914565b61037e600480360360208110156108b757600080fd5b503561ffff16612925565b61034f612a36565b61037e600480360360208110156108e057600080fd5b50356001600160a01b0316612a3d565b61037e6004803603602081101561090657600080fd5b50356001600160a01b0316612b16565b61037e6004803603602081101561092c57600080fd5b5035612c18565b6104b3612d0a565b600b5490565b610949612d10565b6001600160a01b031661095a61181c565b6001600160a01b0316146109a3576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b6802b5e3af16b18800008111156109ec576040805162461bcd60e51b81526020600482015260086024820152670a8dede40d0d2ced60c31b604482015290519081900360640190fd5b6109f461154c565b6007546040805191825260208201839052805133927feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d951192908290030190a2600755565b6005546001600160a01b03163314610a96576040805162461bcd60e51b815260206004820152601c60248201527f73657443686172697479416464726573733a20464f5242494444454e00000000604482015290519081900360640190fd5b6001600160a01b038116610af1576040805162461bcd60e51b815260206004820152601760248201527f73657443686172697479416464726573733a205a45524f000000000000000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03831690811790915560405133907fd824bede52134285982c2dbbfb23840eeda8d21c2ea774a50f74495d6147439290600090a350565b600b8181548110610b4a57fe5b6000918252602090912060089091020180546001820154600283015460038401546004850154600586015460068701546007909701546001600160a01b03909616975093959294919361ffff90911692909188565b600d5481565b6000828152600c602090815260408083206001600160a01b03851684529091529020600401544210155b92915050565b610bdd612d10565b6001600160a01b0316610bee61181c565b6001600160a01b031614610c37576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b6001600160a01b038116610c92576040805162461bcd60e51b815260206004820152601760248201527f7365744c6f7474657279416464726573733a205a45524f000000000000000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03831690811790915560405133907f68c87b03f82aaba19686d337ccf1e7437df993c5099f23bbe773211079042a1d90600090a350565b6000918252600c602090815260408084206001600160a01b0393909316845291905290206003015442101590565b6003546001600160a01b031681565b6006546001600160a01b031681565b6004546001600160a01b031681565b6802b5e3af16b188000081565b60026001541415610d9e576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506000600b8381548110610db557fe5b60009182526020808320868452600c825260408085203386529092529220805460089092029092019250831115610e28576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610e3184610f90565b610e3a84612d14565b8215610e64578054610e4c90846130dc565b81558154610e64906001600160a01b03163385613139565b60038201548154610e8891670de0b6b3a764000091610e8291613190565b906131e9565b6001820155604080518481529051859133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050600180555050565b600f5481565b600e5481565b610ee2612d10565b6001600160a01b0316610ef361181c565b6001600160a01b031614610f3c576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b6001600160a01b0382166000818152600a6020526040808220805460ff191685151590811790915590519092917f2eb42148202b5050f60c185612a6f034f6b0cd776b8e4a841b5a1f7859cf8c9d91a35050565b6000600b8281548110610f9f57fe5b9060005260206000209060080201905080600201544311610fc05750611309565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561100a57600080fd5b505afa15801561101e573d6000803e3d6000fd5b505050506040513d602081101561103457600080fd5b5051905080158061104757506001820154155b15611059575043600290910155611309565b600061106983600201544361182b565b90506000611096600d54610e8286600101546110906007548761319090919063ffffffff16565b90613190565b6002546003549192506001600160a01b03908116916340c10f1991166110c36103e8610e82866064613190565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561110957600080fd5b505af115801561111d573d6000803e3d6000fd5b50506002546001600160a01b031691506340c10f19905061dead6111486103e8610e82866014613190565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561118e57600080fd5b505af11580156111a2573d6000803e3d6000fd5b50506006546001600160a01b0316158015925090506111c6575060085461ffff1615155b1561125e576002546006546008546001600160a01b03928316926340c10f199216906111ff9061271090610e8290879061ffff16613190565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561124557600080fd5b505af1158015611259573d6000803e3d6000fd5b505050505b600254604080516340c10f1960e01b81523060048201526024810184905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b1580156112b157600080fd5b505af11580156112c5573d6000803e3d6000fd5b505050506112f66112eb84610e82670de0b6b3a76400008561319090919063ffffffff16565b600386015490613250565b6003850155505043600290920191909155505b50565b60026001541415611364576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506000600b828154811061137b57fe5b60009182526020808320858452600c8252604080852033808752935284208054858255600182018690556002820186905560038201869055600482019590955560089093020180549094509192916113e0916001600160a01b03919091169083613139565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a35050600180555050565b611429612d10565b6001600160a01b031661143a61181c565b6001600160a01b031614611483576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b6103e88161ffff1611156114c85760405162461bcd60e51b8152600401808060200182810382526048815260200180613b116048913960600191505060405180910390fd5b6010546040805161ffff600160a01b909304831681529183166020830152805133927fb5e94d2c884c9803a63d58f2591a3d5eb358fe8d2a580ebefa85ca1f6b5d8a2192908290030190a26010805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b600954600160a01b900461ffff1681565b6103e881565b600b5460005b8181101561156b5761156381610f90565b600101611552565b5050565b6009546001600160a01b031681565b60085464010000000090046001600160a01b031681565b61159d612d10565b6001600160a01b03166115ae61181c565b6001600160a01b0316146115f7576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6010546001600160a01b031681565b60085461ffff1681565b611662612d10565b6001600160a01b031661167361181c565b6001600160a01b0316146116bc576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b601080546001600160a01b0383166001600160a01b03199091168117909155604080519182525133917f3b01849ab2e81e47f3126b2bcc7a695519da5d1425a8840fa8467af16e0ee91e919081900360200190a250565b6004546001600160a01b03163314611772576040805162461bcd60e51b815260206004820152601860248201527f736574466565416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b6001600160a01b0381166117c3576040805162461bcd60e51b8152602060048201526013602482015272736574466565416464726573733a205a45524f60681b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b03831690811790915560405133907f11f35a22548bcd4c3788ab4a7e4fba427a2014f02e5d5e2da9af62212c03183f90600090a350565b620d2f0081565b60075481565b6000546001600160a01b031690565b600061183782846130dc565b9392505050565b60026001541415611896576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506000600b84815481106118ad57fe5b60009182526020808320878452600c825260408085203386529092529220600890910290910191506118de85610f90565b6000841180156118f857506010546001600160a01b031615155b801561191157506010546001600160a01b031661dead14155b801561192557506001600160a01b03831615155b801561193c57506001600160a01b03831661dead14155b801561195157506001600160a01b0383163314155b156119c35760105460408051630c7f7b6b60e01b81523360048201526001600160a01b03868116602483015291519190921691630c7f7b6b91604480830192600092919082900301818387803b1580156119aa57600080fd5b505af11580156119be573d6000803e3d6000fd5b505050505b6119cc85612d14565b8315611c22578154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611a1c57600080fd5b505afa158015611a30573d6000803e3d6000fd5b505050506040513d6020811015611a4657600080fd5b50518354909150611a62906001600160a01b03163330886132aa565b8254604080516370a0823160e01b81523060048201529051611ae49284926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015611ab257600080fd5b505afa158015611ac6573d6000803e3d6000fd5b505050506040513d6020811015611adc57600080fd5b5051906130dc565b600484015490955061ffff1615611c115760085462010000900461ffff1615611bb8576004830154600090611b269061271090610e8290899061ffff16613190565b600854909150600090611b4c9061271090610e8290859062010000900461ffff16613190565b8454909150611b67908390611b61908a613250565b906130dc565b8455600454611b95906001600160a01b0316611b8384846130dc565b87546001600160a01b03169190613139565b6005548554611bb1916001600160a01b03918216911683613139565b5050611c0c565b6004830154600090611bd79061271090610e8290899061ffff16613190565b8354909150611bec908290611b619089613250565b83556004548454611c0a916001600160a01b03918216911683613139565b505b611c20565b8154611c1d9086613250565b82555b505b60038201548154611c4091670de0b6b3a764000091610e8291613190565b6001820155604080518581529051869133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505060018055505050565b600c602090815260009283526040808420909152908252902080546001820154600283015460038401546004909401549293919290919085565b600080600b8481548110611cd157fe5b60009182526020808320878452600c825260408085206001600160a01b0389811687529084528186206008959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b158015611d4b57600080fd5b505afa158015611d5f573d6000803e3d6000fd5b505050506040513d6020811015611d7557600080fd5b5051600285015490915043118015611d8c57508015155b8015611d9a57506000600d54115b15611dfd576000611daf85600201544361182b565b90506000611dd6600d54610e8288600101546110906007548761319090919063ffffffff16565b9050611df8611df184610e8284670de0b6b3a7640000613190565b8590613250565b935050505b6000611e2a8460010154611b61670de0b6b3a7640000610e8287896000015461319090919063ffffffff16565b9050611e4384600201548261325090919063ffffffff16565b98975050505050505050565b6001600160a01b03166000908152600a602052604090205460ff1690565b611e75612d10565b6001600160a01b0316611e8661181c565b6001600160a01b031614611ecf576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b6101f48161ffff161115611f145760405162461bcd60e51b815260040180806020018281038252603a815260200180613ab2603a913960400191505060405180910390fd5b6008546040805161ffff92831681529183166020830152805133927f748fdd14ad1298e969c7be6d56e4dd504a27221597c7664057693ec85e67c4a292908290030190a26008805461ffff191661ffff92909216919091179055565b6002546001600160a01b031681565b6005546001600160a01b031681565b611f96612d10565b6001600160a01b0316611fa761181c565b6001600160a01b031614611ff0576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b6113888161ffff1611156120355760405162461bcd60e51b815260040180806020018281038252602f815260200180613c12602f913960400191505060405180910390fd5b6009546040805161ffff600160a01b909304831681529183166020830152805133927f1548b249eefe462db64b14d40928822585247ac8a57a5380f02b730116fde82792908290030190a26009805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b60085462010000900461ffff1681565b6120ba612d10565b6001600160a01b03166120cb61181c565b6001600160a01b031614612114576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b6001600160a01b038616600090815260116020526040902054869060ff1615612184576040805162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000604482015290519081900360640190fd5b6000876001600160a01b03166370a08231896040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156121d357600080fd5b505afa1580156121e7573d6000803e3d6000fd5b505050506040513d60208110156121fd57600080fd5b5051101561223c5760405162461bcd60e51b8152600401808060200182810382526022815260200180613b596022913960400191505060405180910390fd5b6103e88661ffff1611156122815760405162461bcd60e51b8152600401808060200182810382526025815260200180613aec6025913960400191505060405180910390fd5b6103e88311156122c25760405162461bcd60e51b8152600401808060200182810382526025815260200180613aec6025913960400191505060405180910390fd5b6212750085111561231a576040805162461bcd60e51b815260206004820152601d60248201527f6164643a20696e76616c6964206861727665737420696e74657276616c000000604482015290519081900360640190fd5b620d2f0084111561235c5760405162461bcd60e51b8152600401808060200182810382526021815260200180613d046021913960400191505060405180910390fd5b811561236a5761236a61154c565b6000600e54431161237d57600e5461237f565b435b600d5490915061238f908a613250565b600d556001600160a01b0397881660008181526011602090815260408083208054600160ff1990911681179091558151610100810183529485529184019c8d5283019384526060830182815261ffff9a8b166080850190815260a085019a8b5260c08501998a5260e08501988952600b8054938401815590935292517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9600890920291820180546001600160a01b03191691909c1617909a5599517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba8a015590517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb890155517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbc880155505094517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbd8501805461ffff19169190941617909255517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbe830155517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbf82015590517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dc090910155565b61256a612d10565b6001600160a01b031661257b61181c565b6001600160a01b0316146125c4576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b6103e88561ffff1611156126095760405162461bcd60e51b8152600401808060200182810382526025815260200180613c416025913960400191505060405180910390fd5b6103e882111561264a5760405162461bcd60e51b8152600401808060200182810382526025815260200180613cbe6025913960400191505060405180910390fd5b621275008411156126a2576040805162461bcd60e51b815260206004820152601d60248201527f7365743a20696e76616c6964206861727665737420696e74657276616c000000604482015290519081900360640190fd5b620d2f008311156126e45760405162461bcd60e51b8152600401808060200182810382526021815260200180613d046021913960400191505060405180910390fd5b80156126f2576126f261154c565b61272f86612729600b8a8154811061270657fe5b906000526020600020906008020160010154600d546130dc90919063ffffffff16565b90613250565b600d8190555085600b888154811061274357fe5b90600052602060002090600802016001018190555084600b888154811061276657fe5b906000526020600020906008020160040160006101000a81548161ffff021916908361ffff16021790555083600b888154811061279f57fe5b90600052602060002090600802016005018190555082600b88815481106127c257fe5b90600052602060002090600802016006018190555081600b88815481106127e557fe5b90600052602060002090600802016007018190555050505050505050565b60116020526000908152604090205460ff1681565b6003546001600160a01b03163314612877576040805162461bcd60e51b815260206004820152601860248201527f736574446576416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b6001600160a01b0381166128c8576040805162461bcd60e51b8152602060048201526013602482015272736574446576416464726573733a205a45524f60681b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b03831690811790915560405133907f52882fe9c8937a186eb2653e68b33629cf58f0c3e09b567f0d1db958d3a6c3f090600090a350565b601054600160a01b900461ffff1681565b61292d612d10565b6001600160a01b031661293e61181c565b6001600160a01b031614612987576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b6113888161ffff1611156129cc5760405162461bcd60e51b8152600401808060200182810382526038815260200180613c866038913960400191505060405180910390fd5b6008546040805161ffff62010000909304831681529183166020830152805133927f712cff9e9d4367fdd0cb5cfca6fcbdee82c284f94c92b3652436ff979d4a701f92908290030190a26008805461ffff909216620100000263ffff000019909216919091179055565b6212750081565b612a45612d10565b6001600160a01b0316612a5661181c565b6001600160a01b031614612a9f576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b600880546001600160a01b0383166401000000008102640100000000600160c01b031990921691909117909155600980546001600160a01b03191682179055604080519182525133917fe351369c58d13c6542f004dedef85093e29e03a02f953ca92ead0176bac2f881919081900360200190a250565b612b1e612d10565b6001600160a01b0316612b2f61181c565b6001600160a01b031614612b78576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b6001600160a01b038116612bbd5760405162461bcd60e51b8152600401808060200182810382526026815260200180613ba56026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b612c20612d10565b6001600160a01b0316612c3161181c565b6001600160a01b031614612c7a576040805162461bcd60e51b81526020600482018190526024820152600080516020613c66833981519152604482015290519081900360640190fd5b43600e5411612cc7576040805162461bcd60e51b815260206004820152601460248201527311985c9b48185b1c9958591e481cdd185c9d195960621b604482015290519081900360640190fd5b600b5460005b81811015612d03576000600b8281548110612ce457fe5b6000918252602090912060026008909202010184905550600101612ccd565b5050600e55565b61dead81565b3390565b6000600b8281548110612d2357fe5b60009182526020808320858452600c825260408085203386529092529220600381015460089092029092019250612d6a576005820154612d64904290613250565b60038201555b6004810154612d89576006820154612d83904290613250565b60048201555b6000612dba8260010154611b61670de0b6b3a7640000610e828760030154876000015461319090919063ffffffff16565b9050612dc68433610cde565b1561307457612dd58433610ba5565b158015612de25750600081115b15612e3e576000612e0083600201548361325090919063ffffffff16565b90506000612e21612710610e8287600701548561319090919063ffffffff16565b9050612e2d83826130dc565b9250612e3b61dead82613304565b50505b6006830154612e4e904290613250565b600483015580151580612e65575060008260020154115b1561306f576000612e8383600201548361325090919063ffffffff16565b9050612e9e8360020154600f546130dc90919063ffffffff16565b600f55600060028401556005840154612eb8904290613250565b600384015560085464010000000090046001600160a01b031615801590612eef5750336000908152600a602052604090205460ff16155b15613059576000600860049054906101000a90046001600160a01b03166001600160a01b031663463dd61c6040518163ffffffff1660e01b815260040160206040518083038186803b158015612f4457600080fd5b505afa158015612f58573d6000803e3d6000fd5b505050506040513d6020811015612f6e57600080fd5b5051600954909150600160a01b900461ffff1615801590612f8e57508043105b1561305757600954600090612fb79061271090610e82908690600160a01b900461ffff16613190565b9050612fc383826130dc565b600954600254919450612fe3916001600160a01b039081169116836134d1565b6008546040805163282d3fdf60e01b81523360048201526024810184905290516401000000009092046001600160a01b03169163282d3fdf9160448082019260009290919082900301818387803b15801561303d57600080fd5b505af1158015613051573d6000803e3d6000fd5b50505050505b505b6130633382613304565b61306d33826135bc565b505b6130d6565b80156130d65760028201546130899082613250565b6002830155600f5461309b9082613250565b600f55604080518281529051859133917fee470483107f579a55c754fa00613c45a9a3b617a418b39cb0be97e5381ba7c19181900360200190a35b50505050565b600082821115613133576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261318b9084906137e3565b505050565b60008261319f57506000610bcf565b828202828482816131ac57fe5b04146118375760405162461bcd60e51b8152600401808060200182810382526021815260200180613bf16021913960400191505060405180910390fd5b600080821161323f576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161324857fe5b049392505050565b600082820183811015611837576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526130d69085906137e3565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561334f57600080fd5b505afa158015613363573d6000803e3d6000fd5b505050506040513d602081101561337957600080fd5b50519050600081831115613410576002546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156133dd57600080fd5b505af11580156133f1573d6000803e3d6000fd5b505050506040513d602081101561340757600080fd5b50519050613495565b6002546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561346657600080fd5b505af115801561347a573d6000803e3d6000fd5b505050506040513d602081101561349057600080fd5b505190505b806130d65760405162461bcd60e51b8152600401808060200182810382526021815260200180613ce36021913960400191505060405180910390fd5b600061356782856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561353557600080fd5b505afa158015613549573d6000803e3d6000fd5b505050506040513d602081101561355f57600080fd5b505190613250565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790529091506130d69085906137e3565b6010546001600160a01b0316158015906135e25750601054600160a01b900461ffff1615155b1561156b5760105460408051634a9fefc760e01b81526001600160a01b03858116600483015291516000939290921691634a9fefc791602480820192602092909190829003018186803b15801561363857600080fd5b505afa15801561364c573d6000803e3d6000fd5b505050506040513d602081101561366257600080fd5b505160105490915060009061368b9061271090610e82908690600160a01b900461ffff16613190565b90506001600160a01b038216158015906136b057506001600160a01b03821661dead14155b80156136bc5750600081115b156130d657600254604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b15801561371657600080fd5b505af115801561372a573d6000803e3d6000fd5b505060105460408051631b82d29760e31b81526001600160a01b03878116600483015260248201879052915191909216935063dc1694b89250604480830192600092919082900301818387803b15801561378357600080fd5b505af1158015613797573d6000803e3d6000fd5b50506040805184815290516001600160a01b038087169450881692507f86ddab457291316e0f5496737e5ca67c4037234c32c3be04c48ae96186893a7b9181900360200190a350505050565b6060613838826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166138949092919063ffffffff16565b80519091501561318b5780806020019051602081101561385757600080fd5b505161318b5760405162461bcd60e51b815260040180806020018281038252602a815260200180613b7b602a913960400191505060405180910390fd5b60606138a384846000856138ab565b949350505050565b6060824710156138ec5760405162461bcd60e51b8152600401808060200182810382526026815260200180613bcb6026913960400191505060405180910390fd5b6138f585613a07565b613946576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106139855780518252601f199092019160209182019101613966565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146139e7576040519150601f19603f3d011682016040523d82523d6000602084013e6139ec565b606091505b50915091506139fc828286613a0d565b979650505050505050565b3b151590565b60608315613a1c575081611837565b825115613a2c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613a76578181015183820152602001613a5e565b50505050905090810190601f168015613aa35780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe7365744c6f74746572794d696e74526174653a20696e76616c6964206c6f7474657279206d696e74207261746520626173697320706f696e74736164643a20696e76616c6964206465706f7369742066656520626173697320706f696e7473736574526566657272616c436f6d6d697373696f6e526174653a20696e76616c696420726566657272616c20636f6d6d697373696f6e207261746520626173697320706f696e74736164643a2074727920746f20616464206e6f6e20746f6b656e20636f6e74726163745361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365744c6f636b6572526174653a20696e76616c6964206c6f636b6572207261746520626173697320706f696e74737365743a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657273657443686172697479466565526174653a20696e76616c6964206368617269747920666565207261746520626173697320706f696e74736164643a20696e76616c696420686172766573742066656520626173697320706f696e747373616665506561725472616e736665723a207472616e73666572206661696c65646164643a20696e76616c696420686172766573742066656520696e74657276616ca2646970667358221220124bb12d38b732964ccd8c150b5dd683d2ee7c3ed8920d23d3a03405d4bbfb0164736f6c634300060c00330000000000000000000000007c10108d4b7f4bd659ee57a53b30df928244b354000000000000000000000000000000000000000000000000000000000135c0e00000000000000000000000000000000000000000000000003782dace9d900000000000000000000000000000d4b42f9f835e73840ec4e55e0e88eac71e9547f7

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

0000000000000000000000007c10108d4b7f4bd659ee57a53b30df928244b354000000000000000000000000000000000000000000000000000000000135c0e00000000000000000000000000000000000000000000000003782dace9d900000000000000000000000000000d4b42f9f835e73840ec4e55e0e88eac71e9547f7

-----Decoded View---------------
Arg [0] : _pear (address): 0x7c10108d4b7f4bd659ee57a53b30df928244b354
Arg [1] : _startBlock (uint256): 20300000
Arg [2] : _pearPerBlock (uint256): 4000000000000000000
Arg [3] : _pearLockerAddress (address): 0xd4b42f9f835e73840ec4e55e0e88eac71e9547f7

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000007c10108d4b7f4bd659ee57a53b30df928244b354
Arg [1] : 000000000000000000000000000000000000000000000000000000000135c0e0
Arg [2] : 0000000000000000000000000000000000000000000000003782dace9d900000
Arg [3] : 000000000000000000000000d4b42f9f835e73840ec4e55e0e88eac71e9547f7


Deployed ByteCode Sourcemap

982:25101:6:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7419:95;;;:::i;:::-;;;;;;;;;;;;;;;;21923:285;;;;;;;;;;;;;;;;-1:-1:-1;21923:285:6;;:::i;:::-;;21220:332;;;;;;;;;;;;;;;;-1:-1:-1;21220:332:6;-1:-1:-1;;;;;21220:332:6;;:::i;4705:26::-;;;;;;;;;;;;;;;;-1:-1:-1;4705:26:6;;:::i;:::-;;;;-1:-1:-1;;;;;4705:26:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4946:34;;;:::i;12077:201::-;;;;;;;;;;;;;;;;-1:-1:-1;12077:201:6;;;;;;-1:-1:-1;;;;;12077:201:6;;:::i;:::-;;;;;;;;;;;;;;;;;;21607:262;;;;;;;;;;;;;;;;-1:-1:-1;21607:262:6;-1:-1:-1;;;;;21607:262:6;;:::i;11796:198::-;;;;;;;;;;;;;;;;-1:-1:-1;11796:198:6;;;;;;-1:-1:-1;;;;;11796:198:6;;:::i;2961:25::-;;;:::i;:::-;;;;-1:-1:-1;;;;;2961:25:6;;;;;;;;;;;;;;3237:29;;;:::i;3021:25::-;;;:::i;3423:64::-;;;:::i;15799:597::-;;;;;;;;;;;;;;;;-1:-1:-1;15799:597:6;;;;;;;:::i;5101:35::-;;;:::i;5037:25::-;;;:::i;25274:197::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25274:197:6;;;;;;;;;;:::i;12621:1175::-;;;;;;;;;;;;;;;;-1:-1:-1;12621:1175:6;;:::i;16467:496::-;;;;;;;;;;;;;;;;-1:-1:-1;16467:496:6;;:::i;22516:423::-;;;;;;;;;;;;;;;;-1:-1:-1;22516:423:6;;;;:::i;4467:24::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;3864:50;;;:::i;12365:180::-;;;:::i;4364:32::-;;;:::i;4309:25::-;;;:::i;1713:145:7:-;;;:::i;5185:29:6:-;;;:::i;4042:::-;;;:::i;22279:176::-;;;;;;;;;;;;;;;;-1:-1:-1;22279:176:6;-1:-1:-1;;;;;22279:176:6;;:::i;20854:292::-;;;;;;;;;;;;;;;;-1:-1:-1;20854:292:6;-1:-1:-1;;;;;20854:292:6;;:::i;3641:61::-;;;:::i;3312:27::-;;;:::i;1081:85:7:-;;;:::i;10703:121:6:-;;;;;;;;;;;;;;;;-1:-1:-1;10703:121:6;;;;;;;:::i;13865:1882::-;;;;;;;;;;;;;;;;-1:-1:-1;13865:1882:6;;;;;;;;;;;-1:-1:-1;;;;;13865:1882:6;;:::i;4787:64::-;;;;;;;;;;;;;;;;-1:-1:-1;4787:64:6;;;;;;-1:-1:-1;;;;;4787:64:6;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10888:844;;;;;;;;;;;;;;;;-1:-1:-1;10888:844:6;;;;;;-1:-1:-1;;;;;10888:844:6;;:::i;25550:130::-;;;;;;;;;;;;;;;;-1:-1:-1;25550:130:6;-1:-1:-1;;;;;25550:130:6;;:::i;22993:352::-;;;;;;;;;;;;;;;;-1:-1:-1;22993:352:6;;;;:::i;2912:21::-;;;:::i;3085:29::-;;;:::i;24163:297::-;;;;;;;;;;;;;;;;-1:-1:-1;24163:297:6;;;;:::i;4251:26::-;;;:::i;7842:1529::-;;;;;;;;;;;;;;;;-1:-1:-1;7842:1529:6;;;-1:-1:-1;;;;;7842:1529:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;9483:1144::-;;;;;;;;;;;;;;;;-1:-1:-1;9483:1144:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;7571:44::-;;;;;;;;;;;;;;;;-1:-1:-1;7571:44:6;-1:-1:-1;;;;;7571:44:6;;:::i;20500:292::-;;;;;;;;;;;;;;;;-1:-1:-1;20500:292:6;-1:-1:-1;;;;;20500:292:6;;:::i;5271:42::-;;;:::i;23400:397::-;;;;;;;;;;;;;;;;-1:-1:-1;23400:397:6;;;;:::i;3533:58::-;;;:::i;23871:241::-;;;;;;;;;;;;;;;;-1:-1:-1;23871:241:6;-1:-1:-1;;;;;23871:241:6;;:::i;2007:240:7:-;;;;;;;;;;;;;;;;-1:-1:-1;2007:240:7;-1:-1:-1;;;;;2007:240:7;;:::i;25689:387:6:-;;;;;;;;;;;;;;;;-1:-1:-1;25689:387:6;;:::i;4099:81::-;;;:::i;7419:95::-;7491:8;:15;7419:95;:::o;21923:285::-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;3467:20:6::1;22010:13;:34;;22002:55;;;::::0;;-1:-1:-1;;;22002:55:6;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;22002:55:6;;;;;;;;;;;;;::::1;;22068:17;:15;:17::i;:::-;22133:12;::::0;22101:60:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;22121:10:::1;::::0;22101:60:::1;::::0;;;;;;;::::1;22172:12;:28:::0;21923:285::o;21220:332::-;21312:14;;-1:-1:-1;;;;;21312:14:6;21298:10;:28;21290:69;;;;;-1:-1:-1;;;21290:69:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21378:29:6;;21370:65;;;;;-1:-1:-1;;;21370:65:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;21446:14;:32;;-1:-1:-1;;;;;;21446:32:6;-1:-1:-1;;;;;21446:32:6;;;;;;;;21494:50;;21516:10;;21494:50;;-1:-1:-1;;21494:50:6;21220:332;:::o;4705:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4705:26:6;;;;-1:-1:-1;4705:26:6;;;;;;;;;;;;;;:::o;4946:34::-;;;;:::o;12077:201::-;12149:4;12190:14;;;:8;:14;;;;;;;;-1:-1:-1;;;;;12190:21:6;;;;;;;;;12248:22;;;12229:15;:41;;12077:201;;;;;:::o;21607:262::-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;-1:-1:-1;;;;;21695:29:6;::::1;21687:65;;;::::0;;-1:-1:-1;;;21687:65:6;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;21763:14;:32:::0;;-1:-1:-1;;;;;;21763:32:6::1;-1:-1:-1::0;;;;;21763:32:6;::::1;::::0;;::::1;::::0;;;21811:50:::1;::::0;21833:10:::1;::::0;21811:50:::1;::::0;-1:-1:-1;;21811:50:6::1;21607:262:::0;:::o;11796:198::-;11866:4;11907:14;;;:8;:14;;;;;;;;-1:-1:-1;;;;;11907:21:6;;;;;;;;;;;11965;;;11946:15;:40;;;11796:198::o;2961:25::-;;;-1:-1:-1;;;;;2961:25:6;;:::o;3237:29::-;;;-1:-1:-1;;;;;3237:29:6;;:::o;3021:25::-;;;-1:-1:-1;;;;;3021:25:6;;:::o;3423:64::-;3467:20;3423:64;:::o;15799:597::-;1688:1:9;2277:7;;:19;;2269:63;;;;;-1:-1:-1;;;2269:63:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;1688:1;2407:7;:18;;;;15879:21:6::1;15903:8;15912:4;15903:14;;;;;;;;;::::0;;;::::1;::::0;;;15952;;;:8:::1;:14:::0;;;;;;15967:10:::1;15952:26:::0;;;;;;;15997:11;;15903:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;15997:22:6;-1:-1:-1;15997:22:6::1;15989:53;;;::::0;;-1:-1:-1;;;15989:53:6;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;15989:53:6;;;;;;;;;;;;;::::1;;16053:16;16064:4;16053:10;:16::i;:::-;16080:28;16103:4;16080:22;:28::i;:::-;16123:11:::0;;16119:143:::1;;16165:11:::0;;:24:::1;::::0;16181:7;16165:15:::1;:24::i;:::-;16151:38:::0;;16204:12;;:46:::1;::::0;-1:-1:-1;;;;;16204:12:6::1;16230:10;16242:7:::0;16204:25:::1;:46::i;:::-;16306:20;::::0;::::1;::::0;16290:11;;:47:::1;::::0;16332:4:::1;::::0;16290:37:::1;::::0;:15:::1;:37::i;:::-;:41:::0;::::1;:47::i;:::-;16272:15;::::0;::::1;:65:::0;16353:35:::1;::::0;;;;;;;16374:4;;16362:10:::1;::::0;16353:35:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1645:1:9;2580:22;;-1:-1:-1;;15799:597:6:o;5101:35::-;;;;:::o;5037:25::-;;;;:::o;25274:197::-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;-1:-1:-1;;;;;25367:29:6;::::1;;::::0;;;:19:::1;:29;::::0;;;;;:41;;-1:-1:-1;;25367:41:6::1;::::0;::::1;;::::0;;::::1;::::0;;;25424:39;;25367:41;;:29;25424:39:::1;::::0;::::1;25274:197:::0;;:::o;12621:1175::-;12673:21;12697:8;12706:4;12697:14;;;;;;;;;;;;;;;;;;12673:38;;12742:4;:20;;;12726:12;:36;12722:75;;12779:7;;;12722:75;12826:12;;:37;;;-1:-1:-1;;;12826:37:6;;12857:4;12826:37;;;;;;12807:16;;-1:-1:-1;;;;;12826:12:6;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12826:37:6;;-1:-1:-1;12878:13:6;;;:37;;-1:-1:-1;12895:15:6;;;;:20;12878:37;12874:126;;;-1:-1:-1;12955:12:6;12932:20;;;;:35;12982:7;;12874:126;13010:18;13031:49;13045:4;:20;;;13067:12;13031:13;:49::i;:::-;13010:70;;13091:18;13112:70;13166:15;;13112:49;13145:4;:15;;;13112:28;13127:12;;13112:10;:14;;:28;;;;:::i;:::-;:32;;:49::i;:70::-;13193:4;;13203:10;;13091:91;;-1:-1:-1;;;;;;13193:4:6;;;;:9;;13203:10;13215:29;13239:4;13215:19;13091:91;13230:3;13215:14;:19::i;:29::-;13193:52;;;;;;;;;;;;;-1:-1:-1;;;;;13193:52:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13307:4:6;;-1:-1:-1;;;;;13307:4:6;;-1:-1:-1;13307:9:6;;-1:-1:-1;4138:42:6;13331:28;13354:4;13331:18;:10;13346:2;13331:14;:18::i;:28::-;13307:53;;;;;;;;;;;;;-1:-1:-1;;;;;13307:53:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13444:14:6;;-1:-1:-1;;;;;13444:14:6;13436:37;;;;-1:-1:-1;13436:37:6;-1:-1:-1;13436:60:6;;-1:-1:-1;13477:15:6;;;;:19;;13436:60;13432:162;;;13513:4;;13523:14;;13554:15;;-1:-1:-1;;;;;13513:4:6;;;;:9;;13523:14;;13539:42;;13575:5;;13539:31;;:10;;13554:15;;13539:14;:31::i;:42::-;13513:69;;;;;;;;;;;;;-1:-1:-1;;;;;13513:69:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13432:162;13612:4;;:36;;;-1:-1:-1;;;13612:36:6;;13630:4;13612:36;;;;;;;;;;;;-1:-1:-1;;;;;13612:4:6;;;;:9;;:36;;;;;:4;;:36;;;;;;;;:4;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13682:60;13707:34;13732:8;13707:20;13722:4;13707:10;:14;;:20;;;;:::i;:34::-;13682:20;;;;;:24;:60::i;:::-;13659:20;;;:83;-1:-1:-1;;13776:12:6;13753:20;;;;:35;;;;-1:-1:-1;12621:1175:6;;:::o;16467:496::-;1688:1:9;2277:7;;:19;;2269:63;;;;;-1:-1:-1;;;2269:63:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;1688:1;2407:7;:18;;;;16539:21:6::1;16563:8;16572:4;16563:14;;;;;;;;;::::0;;;::::1;::::0;;;16612;;;:8:::1;:14:::0;;;;;;16627:10:::1;16612:26:::0;;;;;;;16666:11;;16688:15;;;-1:-1:-1;16714:15:6;::::1;:19:::0;;;16744::::1;::::0;::::1;:23:::0;;;16778:21:::1;::::0;::::1;:25:::0;;;16814:22:::1;::::0;::::1;:26:::0;;;;16563:14:::1;::::0;;::::1;;16851:12:::0;;16563:14;;-1:-1:-1;16612:26:6;;16666:11;16851:45:::1;::::0;-1:-1:-1;;;;;16851:12:6;;;::::1;::::0;16666:11;16851:25:::1;:45::i;:::-;16912:43;::::0;;;;;;;16942:4;;16930:10:::1;::::0;16912:43:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1645:1:9;2580:22;;-1:-1:-1;;16467:496:6:o;22516:423::-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;22693:4:6::1;22666:23;:31;;;;22658:116;;;;-1:-1:-1::0;;;22658:116:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22822:22;::::0;22790:80:::1;::::0;;22822:22:::1;-1:-1:-1::0;;;22822:22:6;;::::1;::::0;::::1;22790:80:::0;;;;::::1;;::::0;::::1;::::0;;;22810:10:::1;::::0;22790:80:::1;::::0;;;;;;;::::1;22881:22;:48:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;22881:48:6::1;-1:-1:-1::0;;;;22881:48:6;;::::1;::::0;;;::::1;::::0;;22516:423::o;4467:24::-;;;-1:-1:-1;;;4467:24:6;;;;;:::o;3864:50::-;3910:4;3864:50;:::o;12365:180::-;12427:8;:15;12410:14;12453:85;12481:6;12475:3;:12;12453:85;;;12511:15;12522:3;12511:10;:15::i;:::-;12489:5;;12453:85;;;;12365:180;:::o;4364:32::-;;;-1:-1:-1;;;;;4364:32:6;;:::o;4309:25::-;;;;;;-1:-1:-1;;;;;4309:25:6;;:::o;1713:145:7:-;1304:12;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;1819:1:::1;1803:6:::0;;1782:40:::1;::::0;-1:-1:-1;;;;;1803:6:7;;::::1;::::0;1782:40:::1;::::0;1819:1;;1782:40:::1;1849:1;1832:19:::0;;-1:-1:-1;;;;;;1832:19:7::1;::::0;;1713:145::o;5185:29:6:-;;;-1:-1:-1;;;;;5185:29:6;;:::o;4042:::-;;;;;;:::o;22279:176::-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;22357:12:6::1;:28:::0;;-1:-1:-1;;;;;22357:28:6;::::1;-1:-1:-1::0;;;;;;22357:28:6;;::::1;::::0;::::1;::::0;;;22401:46:::1;::::0;;;;;;22421:10:::1;::::0;22401:46:::1;::::0;;;;;::::1;::::0;;::::1;22279:176:::0;:::o;20854:292::-;20938:10;;-1:-1:-1;;;;;20938:10:6;20924;:24;20916:61;;;;;-1:-1:-1;;;20916:61:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20996:25:6;;20988:57;;;;;-1:-1:-1;;;20988:57:6;;;;;;;;;;;;-1:-1:-1;;;20988:57:6;;;;;;;;;;;;;;;21056:10;:24;;-1:-1:-1;;;;;;21056:24:6;-1:-1:-1;;;;;21056:24:6;;;;;;;;21096:42;;21114:10;;21096:42;;-1:-1:-1;;21096:42:6;20854:292;:::o;3641:61::-;3695:7;3641:61;:::o;3312:27::-;;;;:::o;1081:85:7:-;1127:7;1153:6;-1:-1:-1;;;;;1153:6:7;1081:85;:::o;10703:121:6:-;10775:7;10802:14;:3;10810:5;10802:7;:14::i;:::-;10795:21;10703:121;-1:-1:-1;;;10703:121:6:o;13865:1882::-;1688:1:9;2277:7;;:19;;2269:63;;;;;-1:-1:-1;;;2269:63:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;1688:1;2407:7;:18;;;;13963:21:6::1;13987:8;13996:4;13987:14;;;;;;;;;::::0;;;::::1;::::0;;;14036;;;:8:::1;:14:::0;;;;;;14051:10:::1;14036:26:::0;;;;;;;13987:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;14073:16:6::1;14045:4:::0;14073:10:::1;:16::i;:::-;14114:1;14104:7;:11;:50;;;;-1:-1:-1::0;14127:12:6::1;::::0;-1:-1:-1;;;;;14127:12:6::1;14119:35:::0;::::1;14104:50;:91;;;;-1:-1:-1::0;14166:12:6::1;::::0;-1:-1:-1;;;;;14166:12:6::1;4138:42;14158:37;;14104:91;:118;;;;-1:-1:-1::0;;;;;;14199:23:6;::::1;::::0;::::1;14104:118;:147;;;;-1:-1:-1::0;;;;;;14226:25:6;::::1;4138:42;14226:25;;14104:147;:174;;;;-1:-1:-1::0;;;;;;14255:23:6;::::1;14268:10;14255:23;;14104:174;14100:257;;;14295:12;::::0;:50:::1;::::0;;-1:-1:-1;;;14295:50:6;;14323:10:::1;14295:50;::::0;::::1;::::0;-1:-1:-1;;;;;14295:50:6;;::::1;::::0;;;;;;:12;;;::::1;::::0;:27:::1;::::0;:50;;;;;:12:::1;::::0;:50;;;;;;;:12;;:50;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;14100:257;14367:28;14390:4;14367:22;:28::i;:::-;14410:11:::0;;14406:1208:::1;;14515:12:::0;;:37:::1;::::0;;-1:-1:-1;;;14515:37:6;;14546:4:::1;14515:37;::::0;::::1;::::0;;;14491:21:::1;::::0;-1:-1:-1;;;;;14515:12:6::1;::::0;:22:::1;::::0;:37;;;;;::::1;::::0;;;;;;;;:12;:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;14515:37:6;14567:12;;14515:37;;-1:-1:-1;14567:65:6::1;::::0;-1:-1:-1;;;;;14567:12:6::1;14597:10;14617:4;14624:7:::0;14567:29:::1;:65::i;:::-;14657:12:::0;;:37:::1;::::0;;-1:-1:-1;;;14657:37:6;;14688:4:::1;14657:37;::::0;::::1;::::0;;;:56:::1;::::0;14699:13;;-1:-1:-1;;;;;14657:12:6;;::::1;::::0;:22:::1;::::0;:37;;;;;::::1;::::0;;;;;;;;;:12;:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;14657:37:6;;:41:::1;:56::i;:::-;14734:17;::::0;::::1;::::0;14647:66;;-1:-1:-1;14734:17:6::1;;:21:::0;14730:873:::1;;14780:12;::::0;;;::::1;;;:16:::0;14776:731:::1;;14854:17;::::0;::::1;::::0;14821:18:::1;::::0;14842:41:::1;::::0;14877:5:::1;::::0;14842:30:::1;::::0;:7;;14854:17:::1;;14842:11;:30::i;:41::-;14942:12;::::0;14821:62;;-1:-1:-1;14906:18:6::1;::::0;14927:39:::1;::::0;14960:5:::1;::::0;14927:28:::1;::::0;14821:62;;14942:12;;::::1;;;14927:14;:28::i;:39::-;15003:11:::0;;14906:60;;-1:-1:-1;15003:40:6::1;::::0;15032:10;;15003:24:::1;::::0;15019:7;15003:15:::1;:24::i;:::-;:28:::0;::::1;:40::i;:::-;14989:54:::0;;15092:10:::1;::::0;15066:65:::1;::::0;-1:-1:-1;;;;;15092:10:6::1;15104:26;:10:::0;15119;15104:14:::1;:26::i;:::-;15066:12:::0;;-1:-1:-1;;;;;15066:12:6::1;::::0;:65;:25:::1;:65::i;:::-;15180:14;::::0;15154:12;;:53:::1;::::0;-1:-1:-1;;;;;15154:12:6;;::::1;::::0;15180:14:::1;15196:10:::0;15154:25:::1;:53::i;:::-;14776:731;;;;;15309:17;::::0;::::1;::::0;15276:18:::1;::::0;15297:41:::1;::::0;15332:5:::1;::::0;15297:30:::1;::::0;:7;;15309:17:::1;;15297:11;:30::i;:41::-;15375:11:::0;;15276:62;;-1:-1:-1;15375:40:6::1;::::0;15276:62;;15375:24:::1;::::0;15391:7;15375:15:::1;:24::i;:40::-;15361:54:::0;;15464:10:::1;::::0;15438:12;;:49:::1;::::0;-1:-1:-1;;;;;15438:12:6;;::::1;::::0;15464:10:::1;15476::::0;15438:25:::1;:49::i;:::-;14776:731;;14730:873;;;15563:11:::0;;:24:::1;::::0;15579:7;15563:15:::1;:24::i;:::-;15549:38:::0;;14730:873:::1;14406:1208;;15658:20;::::0;::::1;::::0;15642:11;;:47:::1;::::0;15684:4:::1;::::0;15642:37:::1;::::0;:15:::1;:37::i;:47::-;15624:15;::::0;::::1;:65:::0;15705:34:::1;::::0;;;;;;;15725:4;;15713:10:::1;::::0;15705:34:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1645:1:9;2580:22;;-1:-1:-1;;;13865:1882:6:o;4787:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;10888:844::-;10961:7;10981:21;11005:8;11014:4;11005:14;;;;;;;;;;;;;;;;11054;;;:8;:14;;;;;;-1:-1:-1;;;;;11054:21:6;;;;;;;;;;;11005:14;;;;;;;;11112:20;;;;11162:12;;:37;;-1:-1:-1;;;11162:37:6;;11193:4;11162:37;;;;;;11005:14;;-1:-1:-1;11054:21:6;;11112:20;;11005:14;;11162:12;;;:22;;:37;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11162:37:6;11229:20;;;;11162:37;;-1:-1:-1;11214:12:6;:35;:52;;;;-1:-1:-1;11253:13:6;;;11214:52;:76;;;;;11289:1;11271:15;;:19;11214:76;11210:373;;;11307:18;11328:49;11342:4;:20;;;11364:12;11328:13;:49::i;:::-;11307:70;;11392:18;11413:70;11467:15;;11413:49;11446:4;:15;;;11413:28;11428:12;;11413:10;:14;;:28;;;;:::i;:70::-;11392:91;-1:-1:-1;11516:55:6;11536:34;11561:8;11536:20;11392:91;11551:4;11536:14;:20::i;:34::-;11516:15;;:19;:55::i;:::-;11498:73;;11210:373;;;11593:15;11611:63;11658:4;:15;;;11611:42;11648:4;11611:32;11627:15;11611:4;:11;;;:15;;:32;;;;:::i;:63::-;11593:81;;11692:32;11704:4;:19;;;11692:7;:11;;:32;;;;:::i;:::-;11685:39;10888:844;-1:-1:-1;;;;;;;;10888:844:6:o;25550:130::-;-1:-1:-1;;;;;25643:29:6;25619:4;25643:29;;;:19;:29;;;;;;;;;25550:130::o;22993:352::-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;23141:3:6::1;23121:16;:23;;;;23113:94;;;;-1:-1:-1::0;;;23113:94:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23258:15;::::0;23223:69:::1;::::0;;23258:15:::1;::::0;;::::1;23223:69:::0;;;;::::1;;::::0;::::1;::::0;;;23246:10:::1;::::0;23223:69:::1;::::0;;;;;;;::::1;23303:15;:34:::0;;-1:-1:-1;;23303:34:6::1;;::::0;;;::::1;::::0;;;::::1;::::0;;22993:352::o;2912:21::-;;;-1:-1:-1;;;;;2912:21:6;;:::o;3085:29::-;;;-1:-1:-1;;;;;3085:29:6;;:::o;24163:297::-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;24291:4:6::1;24276:11;:19;;;;24268:79;;;;-1:-1:-1::0;;;24268:79:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24393:10;::::0;24363:54:::1;::::0;;24393:10:::1;-1:-1:-1::0;;;24393:10:6;;::::1;::::0;::::1;24363:54:::0;;;;::::1;;::::0;::::1;::::0;;;24381:10:::1;::::0;24363:54:::1;::::0;;;;;;;::::1;24428:10;:24:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;24428:24:6::1;-1:-1:-1::0;;;;24428:24:6;;::::1;::::0;;;::::1;::::0;;24163:297::o;4251:26::-;;;;;;;;;:::o;7842:1529::-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;-1:-1:-1;;;;;7681:23:6;::::1;;::::0;;;:13:::1;:23;::::0;;;;;8042:8;;7681:23:::1;;:32;7673:70;;;::::0;;-1:-1:-1;;;7673:70:6;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;8171:1:::2;8131:8;-1:-1:-1::0;;;;;8131:18:6::2;;8158:8;8131:37;;;;;;;;;;;;;-1:-1:-1::0;;;;;8131:37:6::2;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;8131:37:6;:41:::2;;8123:88;;;;-1:-1:-1::0;;;8123:88:6::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3806:4;8281:13;:36;;;;8273:86;;;;-1:-1:-1::0;;;8273:86:6::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3910:4;8429:13;:36;;8421:86;;;;-1:-1:-1::0;;;8421:86:6::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3584:7;8532:16;:44;;8524:86;;;::::0;;-1:-1:-1;;;8524:86:6;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;3695:7;8629:19;:50;;8621:96;;;;-1:-1:-1::0;;;8621:96:6::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8732:11;8728:61;;;8760:17;:15;:17::i;:::-;8799:23;8840:10;;8825:12;:25;:53;;8868:10;;8825:53;;;8853:12;8825:53;8907:15;::::0;8799:79;;-1:-1:-1;8907:32:6::2;::::0;8927:11;8907:19:::2;:32::i;:::-;8889:15;:50:::0;-1:-1:-1;;;;;8950:23:6;;::::2;;::::0;;;:13:::2;:23;::::0;;;;;;;:30;;8976:4:::2;-1:-1:-1::0;;8950:30:6;;::::2;::::0;::::2;::::0;;;9005:357;;8950:30:::2;9005:357:::0;::::2;::::0;;;;;;;::::2;::::0;;;;;;;;;;;;;;::::2;::::0;;::::2;::::0;;;;;;;;;;;;;;;;;;;;;;;;8991:8:::2;:372:::0;;;;::::2;::::0;;;;;;;;::::2;::::0;;::::2;::::0;;::::2;::::0;;-1:-1:-1;;;;;;8991:372:6::2;::::0;;;::::2;;::::0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;8991:372:6;;;;;;;-1:-1:-1;;8991:372:6::2;::::0;;;::::2;;::::0;;;;;;;;;;;;;;;;;;;;7842:1529::o;9483:1144::-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;3806:4:6::1;9736:13;:36;;;;9728:86;;;;-1:-1:-1::0;;;9728:86:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3910:4;9887:13;:36;;9879:86;;;;-1:-1:-1::0;;;9879:86:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3584:7;9993:16;:44;;9985:86;;;::::0;;-1:-1:-1;;;9985:86:6;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;3695:7;10084:19;:50;;10076:96;;;;-1:-1:-1::0;;;10076:96:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10187:11;10183:61;;;10215:17;:15;:17::i;:::-;10272:63;10323:11;10272:46;10292:8;10301:4;10292:14;;;;;;;;;;;;;;;;;;:25;;;10272:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;10254:15;:81;;;;10374:11;10346:8;10355:4;10346:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;10426:13;10396:8;10405:4;10396:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;10483:16;10450:8;10459:4;10450:14;;;;;;;;;;;;;;;;;;:30;;:49;;;;10546:19;10510:8;10519:4;10510:14;;;;;;;;;;;;;;;;;;:33;;:55;;;;10606:13;10576:8;10585:4;10576:14;;;;;;;;;;;;;;;;;;:27;;:43;;;;9483:1144:::0;;;;;;;:::o;7571:44::-;;;;;;;;;;;;;;;:::o;20500:292::-;20584:10;;-1:-1:-1;;;;;20584:10:6;20570;:24;20562:61;;;;;-1:-1:-1;;;20562:61:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20642:25:6;;20634:57;;;;;-1:-1:-1;;;20634:57:6;;;;;;;;;;;;-1:-1:-1;;;20634:57:6;;;;;;;;;;;;;;;20702:10;:24;;-1:-1:-1;;;;;;20702:24:6;-1:-1:-1;;;;;20702:24:6;;;;;;;;20742:42;;20760:10;;20742:42;;-1:-1:-1;;20742:42:6;20500:292;:::o;5271:42::-;;;-1:-1:-1;;;5271:42:6;;;;;:::o;23400:397::-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;23607:4:6::1;23590:13;:21;;;;23582:90;;;;-1:-1:-1::0;;;23582:90:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23722:12;::::0;23688:62:::1;::::0;;23722:12:::1;::::0;;;::::1;::::0;::::1;23688:62:::0;;;;::::1;;::::0;::::1;::::0;;;23710:10:::1;::::0;23688:62:::1;::::0;;;;;;;::::1;23761:12;:28:::0;;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;23761:28:6;;::::1;::::0;;;::::1;::::0;;23400:397::o;3533:58::-;3584:7;3533:58;:::o;23871:241::-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;23950:10:6::1;:40:::0;;-1:-1:-1;;;;;23950:40:6;::::1;::::0;;::::1;-1:-1:-1::0;;;;;;23950:40:6;;::::1;::::0;;;::::1;::::0;;;24001:17:::1;:38:::0;;-1:-1:-1;;;;;;24001:38:6::1;::::0;::::1;::::0;;24055:49:::1;::::0;;;;;;24073:10:::1;::::0;24055:49:::1;::::0;;;;;::::1;::::0;;::::1;23871:241:::0;:::o;2007:240:7:-;1304:12;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;-1:-1:-1;;;;;2095:22:7;::::1;2087:73;;;;-1:-1:-1::0;;;2087:73:7::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2196:6;::::0;;2175:38:::1;::::0;-1:-1:-1;;;;;2175:38:7;;::::1;::::0;2196:6;::::1;::::0;2175:38:::1;::::0;::::1;2223:6;:17:::0;;-1:-1:-1;;;;;;2223:17:7::1;-1:-1:-1::0;;;;;2223:17:7;;;::::1;::::0;;;::::1;::::0;;2007:240::o;25689:387:6:-;1304:12:7;:10;:12::i;:::-;-1:-1:-1;;;;;1293:23:7;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1293:23:7;;1285:68;;;;;-1:-1:-1;;;1285:68:7;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1285:68:7;;;;;;;;;;;;;;;25787:12:6::1;25774:10;;:25;25766:58;;;::::0;;-1:-1:-1;;;25766:58:6;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;25766:58:6;;;;;;;;;;;;;::::1;;25852:8;:15:::0;25835:14:::1;25878:156;25906:6;25900:3;:12;25878:156;;;25936:21;25960:8;25969:3;25960:13;;;;;;;;;::::0;;;::::1;::::0;;;25988:20:::1;25960:13;::::0;;::::1;;25988:20;:34:::0;;;-1:-1:-1;25914:5:6::1;;25878:156;;;-1:-1:-1::0;;26044:10:6::1;:24:::0;25689:387::o;4099:81::-;4138:42;4099:81;:::o;598:104:2:-;685:10;598:104;:::o;17010:2888:6:-;17076:21;17100:8;17109:4;17100:14;;;;;;;;;;;;;;;;17149;;;:8;:14;;;;;;17164:10;17149:26;;;;;;;17192:21;;;;17100:14;;;;;;;;-1:-1:-1;17188:124:6;;17279:20;;;;17259:41;;:15;;:19;:41::i;:::-;17235:21;;;:65;17188:124;17336:22;;;;17332:129;;17425:23;;;;17405:44;;:15;;:19;:44::i;:::-;17380:22;;;:69;17332:129;17517:15;17535:68;17587:4;:15;;;17535:47;17577:4;17535:37;17551:4;:20;;;17535:4;:11;;;:15;;:37;;;;:::i;:68::-;17517:86;;17620:28;17631:4;17637:10;17620;:28::i;:::-;17616:2275;;;17772:30;17785:4;17791:10;17772:12;:30::i;:::-;:37;;;:52;;;17823:1;17813:7;:11;17772:52;17768:465;;;17845:36;17884:32;17896:4;:19;;;17884:7;:11;;:32;;;;:::i;:::-;17845:71;;17935:24;17962:62;18018:5;17962:51;17995:4;:17;;;17962:28;:32;;:51;;;;:::i;:62::-;17935:89;-1:-1:-1;18053:29:6;:7;17935:89;18053:11;:29::i;:::-;18043:39;;18164:48;4138:42;18195:16;18164;:48::i;:::-;17768:465;;;18336:23;;;;18316:44;;:15;;:19;:44::i;:::-;18291:22;;;:69;18397:11;;;;:38;;;18434:1;18412:4;:19;;;:23;18397:38;18393:1251;;;18456:20;18479:32;18491:4;:19;;;18479:7;:11;;:32;;;;:::i;:::-;18456:55;;18588:45;18613:4;:19;;;18588:20;;:24;;:45;;;;:::i;:::-;18565:20;:68;18674:1;18652:19;;;:23;18738:20;;;;18718:41;;:15;;:19;:41::i;:::-;18694:21;;;:65;18808:10;;;;;-1:-1:-1;;;;;18808:10:6;18800:33;;;;:77;;-1:-1:-1;18857:10:6;18837:31;;;;:19;:31;;;;;;;;:40;18800:77;18796:643;;;18901:25;18937:10;;;;;;;;;-1:-1:-1;;;;;18937:10:6;-1:-1:-1;;;;;18929:40:6;;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18929:42:6;18998:10;;18929:42;;-1:-1:-1;;;;18998:10:6;;;;:14;;;;:50;;;19031:17;19016:12;:32;18998:50;18994:426;;;19118:10;;19077:21;;19101:39;;19134:5;;19101:28;;:12;;-1:-1:-1;;;19118:10:6;;;;19101:16;:28::i;:39::-;19077:63;-1:-1:-1;19182:31:6;:12;19077:63;19182:16;:31::i;:::-;19283:17;;19247:4;;19167:46;;-1:-1:-1;19240:77:6;;-1:-1:-1;;;;;19247:4:6;;;;19283:17;19303:13;19240:34;:77::i;:::-;19352:10;;19344:51;;;-1:-1:-1;;;19344:51:6;;19369:10;19352;19344:51;;;;;;;;;;;19352:10;;;;-1:-1:-1;;;;;19352:10:6;;19344:24;;:51;;;;;-1:-1:-1;;19344:51:6;;;;;;;;-1:-1:-1;19352:10:6;19344:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18994:426;;18796:643;;19493:42;19510:10;19522:12;19493:16;:42::i;:::-;19554:47;19576:10;19588:12;19554:21;:47::i;:::-;18393:1251;;17616:2275;;;19665:11;;19661:230;;19715:19;;;;:32;;19739:7;19715:23;:32::i;:::-;19693:19;;;:54;19785:20;;:33;;19810:7;19785:24;:33::i;:::-;19762:20;:56;19838:41;;;;;;;;19865:4;;19853:10;;19838:41;;;;;;;;;19661:230;17010:2888;;;;:::o;3136:155:11:-;3194:7;3226:1;3221;:6;;3213:49;;;;;-1:-1:-1;;;3213:49:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3279:5:11;;;3136:155::o;678:205:10:-;817:58;;;-1:-1:-1;;;;;817:58:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;817:58:10;-1:-1:-1;;;817:58:10;;;790:86;;810:5;;790:19;:86::i;:::-;678:205;;;:::o;3538:215:11:-;3596:7;3619:6;3615:20;;-1:-1:-1;3634:1:11;3627:8;;3615:20;3657:5;;;3661:1;3657;:5;:1;3680:5;;;;;:10;3672:56;;;;-1:-1:-1;;;3672:56:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4217:150;4275:7;4306:1;4302;:5;4294:44;;;;;-1:-1:-1;;;4294:44:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;4359:1;4355;:5;;;;;;;4217:150;-1:-1:-1;;;4217:150:11:o;2690:175::-;2748:7;2779:5;;;2802:6;;;;2794:46;;;;;-1:-1:-1;;;2794:46:11;;;;;;;;;;;;;;;;;;;;;;;;;;;889:241:10;1054:68;;;-1:-1:-1;;;;;1054:68:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1054:68:10;-1:-1:-1;;;1054:68:10;;;1027:96;;1047:5;;1027:19;:96::i;20012:425:6:-;20106:4;;:29;;;-1:-1:-1;;;20106:29:6;;20129:4;20106:29;;;;;;20088:15;;-1:-1:-1;;;;;20106:4:6;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20106:29:6;;-1:-1:-1;20146:20:6;20189:17;;;20185:173;;;20241:4;;:27;;;-1:-1:-1;;;20241:27:6;;-1:-1:-1;;;;;20241:27:6;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20241:27:6;;-1:-1:-1;20185:173:6;;;20319:4;;:27;;;-1:-1:-1;;;20319:27:6;;-1:-1:-1;;;;;20319:27:6;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20319:27:6;;-1:-1:-1;20185:173:6;20376:15;20368:61;;;;-1:-1:-1;;;20368:61:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2052:313:10;2178:20;2201:50;2245:5;2201;-1:-1:-1;;;;;2201:15:10;;2225:4;2232:7;2201:39;;;;;;;;;;;;;-1:-1:-1;;;;;2201:39:10;;;;;;-1:-1:-1;;;;;2201:39:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2201:39:10;;:43;:50::i;:::-;2288:69;;;-1:-1:-1;;;;;2288:69:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2288:69:10;-1:-1:-1;;;2288:69:10;;;2178:73;;-1:-1:-1;2261:97:10;;2281:5;;2261:19;:97::i;24551:661:6:-;24647:12;;-1:-1:-1;;;;;24647:12:6;24639:35;;;;:65;;-1:-1:-1;24678:22:6;;-1:-1:-1;;;24678:22:6;;;;:26;;24639:65;24635:570;;;24740:12;;:31;;;-1:-1:-1;;;24740:31:6;;-1:-1:-1;;;;;24740:31:6;;;;;;;;;24721:16;;24740:12;;;;;:24;;:31;;;;;;;;;;;;;;;:12;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24740:31:6;24826:22;;24740:31;;-1:-1:-1;24786:24:6;;24813:47;;24854:5;;24813:36;;:8;;-1:-1:-1;;;24826:22:6;;;;24813:12;:36::i;:47::-;24786:74;-1:-1:-1;;;;;;24881:22:6;;;;;;:50;;-1:-1:-1;;;;;;24907:24:6;;4138:42;24907:24;;24881:50;:74;;;;;24954:1;24935:16;:20;24881:74;24877:317;;;24976:4;;:37;;;-1:-1:-1;;;24976:37:6;;-1:-1:-1;;;;;24976:37:6;;;;;;;;;;;;;;;:4;;;;;:9;;:37;;;;;:4;;:37;;;;;;;:4;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25032:12:6;;:65;;;-1:-1:-1;;;25032:65:6;;-1:-1:-1;;;;;25032:65:6;;;;;;;;;;;;;;;:12;;;;;-1:-1:-1;25032:37:6;;-1:-1:-1;25032:65:6;;;;;:12;;:65;;;;;;;:12;;:65;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25121:57:6;;;;;;;;-1:-1:-1;;;;;25121:57:6;;;;-1:-1:-1;25121:57:6;;;-1:-1:-1;25121:57:6;;;;;;;;;24635:570;;24551:661;;:::o;3146:763:10:-;3565:23;3591:69;3619:4;3591:69;;;;;;;;;;;;;;;;;3599:5;-1:-1:-1;;;;;3591:27:10;;;:69;;;;;:::i;:::-;3674:17;;3565:95;;-1:-1:-1;3674:21:10;3670:233;;3826:10;3815:30;;;;;;;;;;;;;;;-1:-1:-1;3815:30:10;3807:85;;;;-1:-1:-1;;;3807:85:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3581:193:0;3684:12;3715:52;3737:6;3745:4;3751:1;3754:12;3715:21;:52::i;:::-;3708:59;3581:193;-1:-1:-1;;;;3581:193:0:o;4608:523::-;4735:12;4792:5;4767:21;:30;;4759:81;;;;-1:-1:-1;;;4759:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4858:18;4869:6;4858:10;:18::i;:::-;4850:60;;;;;-1:-1:-1;;;4850:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4981:12;4995:23;5022:6;-1:-1:-1;;;;;5022:11:0;5042:5;5050:4;5022:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5022:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4980:75;;;;5072:52;5090:7;5099:10;5111:12;5072:17;:52::i;:::-;5065:59;4608:523;-1:-1:-1;;;;;;;4608:523:0:o;726:413::-;1086:20;1124:8;;;726:413::o;7091:725::-;7206:12;7234:7;7230:580;;;-1:-1:-1;7264:10:0;7257:17;;7230:580;7375:17;;:21;7371:429;;7633:10;7627:17;7693:15;7680:10;7676:2;7672:19;7665:44;7582:145;7772:12;7765:20;;-1:-1:-1;;;7765:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

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

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

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