Contract 0xb12FeFC21b12dF492609942172412d4b75CbC709 7

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x4b4a2ac442483d522d987b57af1132c76bbe5234d356bd196fefd34c21fc3e1cDeposit240765362022-01-23 19:29:081 hr 6 mins ago0xb2aaab43d7bf46ca3e2fe4b2ef334edfe4f07f4a IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.009430704347 53.694597621
0x5889fa8c69e74f23a5233ee2770f2a46bd3ec62b1a559e5c3721ff0950cda258Emergency Withdr...240659072022-01-23 12:45:417 hrs 49 mins ago0xdd3dfed3ee610c0ae01c5ba9b2268d205433e036 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.004280024466 59.328599084
0xbafec6ff9f602904a6c0e9d93ab6f582cfd109d4e24d78143fd43afbdef2406aDeposit240565502022-01-23 6:56:1313 hrs 38 mins ago0x9d08041132b98f7cffa6192b8d65d94787fe01d2 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.00540291 30
0x7299fab907e48abd3e0aea54a5f7d2afd3d9a7710e4920973c157b0cd773e46fWithdraw239815622022-01-21 9:24:502 days 11 hrs ago0x8718ac5077d2ccd76ff005151f34a1d92a77d480 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.00900329712943.456191106
0x5eff1f403413734eeb847094b7c1a864af9de98df6f13b07c32800dddf6c9df8Withdraw239797212022-01-21 8:21:012 days 12 hrs ago0xc4593543a144331f9a36962156c45893f3bfe88d IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.012065878578 65.274949437
0xc0169e1f2999ec070a22181959d793c4df8d6594c19ca5a9d65224ff85d8e875Deposit239796902022-01-21 8:19:552 days 12 hrs ago0xc4593543a144331f9a36962156c45893f3bfe88d IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.013090462037 74.531770464
0x578536949951cb45c09decbceb97d3617c1ec377e6677acb09aa6aea4555fe70Withdraw239181892022-01-19 19:37:524 days 57 mins ago0xd85129add551ba7c2f7349c4f065bfb6693c0fba IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.010308005806 49.504883283
0x5e7ecb76dd88958c2d1ae86dbbc228164bb554d1f9fa21a5b0a0f937c9a312c4Withdraw239055282022-01-19 11:50:154 days 8 hrs ago0xbc34142499a6e4e3d60df3c260c344031e57a5e2 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.096009060634519.363734711
0xe822199e173496c9616bb9f46a614e241ffac9b7f778f5810db91507464c4fd6Deposit239055232022-01-19 11:49:554 days 8 hrs ago0xbc34142499a6e4e3d60df3c260c344031e57a5e2 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.087394398559497.588185563
0xf028da02be8ec50bc1a29b7c545fc0cfd0036dfdcb2c6f3c09f28c329d4023baDeposit239055182022-01-19 11:49:354 days 8 hrs ago0xbc34142499a6e4e3d60df3c260c344031e57a5e2 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.089614139455497.588185563
0xe62091913dea4b17bf33f41d3bb962bca6a25cf70a158e5f0dd605d4f3f7954fWithdraw239018762022-01-19 9:41:534 days 10 hrs ago0x93531e0a2c5324574555feae2e698cda5d46d551 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.042163107358 228.09733108
0xe46a6d3589a6f2e809cb5422dcfd4a9697b1dc1746c37d279dc50a9b7a42cb2bDeposit238809902022-01-18 21:16:124 days 23 hrs ago0x48f15be32e417ef481fe4e6826dd90914408a1be IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.068738765254 360.026425047
0x4952500e90936f9d6ffdb43a041be61ca0d4d134f107bc360e682554525bc45eWithdraw238808622022-01-18 21:11:474 days 23 hrs ago0x48f15be32e417ef481fe4e6826dd90914408a1be IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.07881662817 341.801225414
0x2b7499f30ca913b6d828f5d6763e0682a010dcb28dc1bdb93e4290cedd89e3edDeposit238717862022-01-18 15:56:135 days 4 hrs ago0x9ae3821d2bcbbea3d9129abf1e9c017292f1c207 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.020768810052102.262056254
0x0bafb068165fc5d82b78c503df331c767da985294b0607e338c14f7010c71bb2Deposit238656582022-01-18 12:23:595 days 8 hrs ago0x6778d76b89cb8b17b71a066b156237808e3941fa IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.01499515363873.996425503
0x2d058bdd288b2562b082ae990d608a44d447aae4e5292b39c7b84e89ce1ddc16Withdraw238635612022-01-18 11:05:415 days 9 hrs ago0x8c80c32d59f5fd7a7bde16c922184a76bc2def34 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.01043042837246.291211568
0x47d0850af766acc479cd1bebc799a44a744e159a35dcc19fb4cc67c0b07e6876Withdraw238596402022-01-18 8:39:245 days 11 hrs ago0x59d3ad02f8dff435482544ec38ee43e68860f30f IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.018682813873 82.916066222
0xd8dc3375947dd060eed72d86547f47b4b31586e6ae0fabd6c501d3df847fafa2Deposit238519852022-01-18 4:00:435 days 16 hrs ago0x75e911ca001f5283ccd3c58645c676d092047ba0 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.01396066634163.530634508
0x94cc3e96e754fd334aec160fe69d1c56396702baedbb39a603378753dc69f962Deposit238518502022-01-18 3:56:055 days 16 hrs ago0x90eb1eb9b53d130d8f12879c4fa6c3952d277a87 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.01410575583162.13524023
0xbe6fc1c2e0460806511871357118441d06848a718ccb709e09b0f28fd8a8bf51Deposit238518232022-01-18 3:55:075 days 16 hrs ago0x90eb1eb9b53d130d8f12879c4fa6c3952d277a87 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.01288642257963.590492724
0x87fa69fa306944e0da2a1a4b4242240b5ae7de9ef47ea37640963c888eacbd6bDeposit238456572022-01-18 0:14:285 days 20 hrs ago0xe97cd764541325800410099011ecfd32d048c8f2 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.0054029130
0x02dcf46e991e25683c3c8d51c8bfc17dcc7ae80e8bca4039d0de72d09c9d4a69Deposit238402392022-01-17 20:59:405 days 23 hrs ago0xd4806886f7aafbcca31ab31f460a0f6460957594 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.0054029130.000000001
0x09313461a34959439b5d5b790e74cb5d730583f393b32258c94c13ccb08114bbWithdraw238388552022-01-17 20:12:086 days 23 mins ago0x36d28170ae6a282473cd1f4011170d00ebb4feb3 IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.00672460832
0x1410743f28c331a64c1937f4db722b5adbf4cf6214f742033930833dd4e1badfDeposit238357552022-01-17 18:21:166 days 2 hrs ago0xd4f71d7dae699398039f0652c324fa50732551dd IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.0014891265336.776550004
0xbac75e2e134b685907b08a598ccbd4dd27c2c1eb3ac1a9232e3e047ca1f650f9Withdraw238273042022-01-17 13:14:276 days 7 hrs ago0x76e454341f761c88ff26b2db2767837222f163bc IN  0xb12fefc21b12df492609942172412d4b75cbc7090 MATIC0.0056030730
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 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";



// File: contracts/MasterChef.sol

pragma solidity 0.6.12;


// 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 noWithdrawalFeeAfter; //No withdrawal 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 1e12. See below.
        uint16 depositFeeBP;      // Deposit fee in basis points
        uint256 harvestInterval;  // Harvest interval in seconds
        uint256 withdrawalFeeInterval; // Withdrawal fee minimum interval in seconds
        uint256 withdrawalFeeBP; // Withdrawal fee in basis points when the withdrawal 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;
    // Bonus muliplier for early pear makers.
    uint256 public constant BONUS_MULTIPLIER = 1;
    // Max harvest interval: 14 days.
    uint256 public constant MAXIMUM_HARVEST_INTERVAL = 14 days;
    // Max harvest interval: 14 days.
    uint256 public constant MAXIMUM_WITHDRAWFEE_INTERVAL = 5 days;    
    // Max deposit fee : 10% (in basis point)
    uint256 public constant MAXIMUM_DEPOSIT_FEE = 1000;
    // Max withdrawal fee : 10% (in basis point)
    uint256 public constant MAXIMUM_WITHDRAWAL_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 pearLocker;
    // Locker adresse
    address public pearLockerAddress;
    // Locker rate (in basis point) if = 0 locker desactivated
    uint16 public lockerRate;
    

    // 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, ILocker 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);

    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 _withdrawalFeeInterval, uint256 _withdrawalFeeBP, bool _withUpdate) public onlyOwner nonDuplicated(_lpToken) {
        // deposit fee can't excess more than 10%
        require(_depositFeeBP <= MAXIMUM_DEPOSIT_FEE, "add: invalid deposit fee basis points");
        // withdrawal fee can't excess more than 10%
        require(_withdrawalFeeBP <= MAXIMUM_WITHDRAWAL_FEE, "add: invalid deposit fee basis points");      
        require(_harvestInterval <= MAXIMUM_HARVEST_INTERVAL, "add: invalid harvest interval");
        require(_withdrawalFeeInterval <= MAXIMUM_WITHDRAWFEE_INTERVAL, "add: invalid withdrawal 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,
            withdrawalFeeInterval: _withdrawalFeeInterval,
            withdrawalFeeBP: _withdrawalFeeBP
        }));
    }

    // 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 _withdrawalFeeInterval, uint256 _withdrawalFeeBP, 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(_withdrawalFeeBP <= MAXIMUM_WITHDRAWAL_FEE, "add: invalid deposit fee basis points");         
        require(_harvestInterval <= MAXIMUM_HARVEST_INTERVAL, "set: invalid harvest 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].withdrawalFeeInterval = _withdrawalFeeInterval;
        poolInfo[_pid].withdrawalFeeBP = _withdrawalFeeBP;
    }

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

    // 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) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 pearReward = multiplier.mul(pearPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accPearPerShare = accPearPerShare.add(pearReward.mul(1e12).div(lpSupply));
        }
        uint256 pending = user.amount.mul(accPearPerShare).div(1e12).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 withdrawal fees apply to the harvest
    function noWithdrawFee(uint256 _pid, address _user) public view returns (bool) {
        UserInfo storage user = userInfo[_pid][_user];
        return block.timestamp >= user.noWithdrawalFeeAfter;
    }    

    // 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(1e12).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,false);
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            if (address(pool.lpToken) == address(pear)) {
                uint256 burnTax = _amount.mul(pear.burnRateTax()).div(10000);
                _amount = _amount.sub(burnTax);
            }
            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(1e12);
        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,true);
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accPearPerShare).div(1e12);
        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.noWithdrawalFeeAfter = 0;
        pool.lpToken.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }


    // Pay or lockup pending PEARs.
    function payOrLockupPendingPear(uint256 _pid, bool _isWithdrawal) 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.noWithdrawalFeeAfter == 0) {
            user.noWithdrawalFeeAfter = block.timestamp.add(pool.withdrawalFeeInterval);
        }        

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

        if (_isWithdrawal) {
             // if user withdrawal before the interval, user get X% less of pending reward               
            if (noWithdrawFee(_pid, msg.sender)==false) {
                uint256 withdrawalfeeamount = pending.mul(pool.withdrawalFeeBP).div(10000);
                pending = pending.sub(withdrawalfeeamount);
                // tax on withdrawal is send to the burn address
                safePearTransfer(BURN_ADDRESS, withdrawalfeeamount);     
            }
            // reset timer at each withdrawal
            user.noWithdrawalFeeAfter = block.timestamp.add(pool.withdrawalFeeInterval);                
        }        
        
        if (canHarvest(_pid, msg.sender)) {
            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)){
                    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 {
        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(ILocker _pearLocker) public onlyOwner {
        pearLocker = _pearLocker;
        emit PearLockerUpdated(msg.sender, _pearLocker);
    }   

    // 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);
            }
        }
    }
}

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;
    // The super operator can only update the owner adresse : This acces is protected by a 15 days timelock : Super operator address can't be change in anyway
    address private _superOperator;

    

    // 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(0)] = 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) {
        return totalSupply().mul(maxTransferAmountRate).div(10000);
    }

    /**
     * @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 the maximum rate.");
        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) public onlyOperator {
        IBEP20(_token).transfer(msg.sender, _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":"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":"contract ILocker","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":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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_HARVEST_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_WITHDRAWAL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_WITHDRAWFEE_INTERVAL","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":"_withdrawalFeeInterval","type":"uint256"},{"internalType":"uint256","name":"_withdrawalFeeBP","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":[],"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":"noWithdrawFee","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":"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":"withdrawalFeeInterval","type":"uint256"},{"internalType":"uint256","name":"withdrawalFeeBP","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":"_withdrawalFeeInterval","type":"uint256"},{"internalType":"uint256","name":"_withdrawalFeeBP","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":"_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":"contract ILocker","name":"_pearLocker","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":"","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":"noWithdrawalFeeAfter","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"}]

60806040526000600c55600f805461ffff60a01b1916601960a21b1790553480156200002a57600080fd5b50604051620039e3380380620039e3833981810160405260808110156200005057600080fd5b508051602082015160408301516060909301519192909160006200007362000170565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b03199081166001600160a01b0396871617909155600d939093556007919091556006805461dead90841617905560088054600980546003805433908816811790915560048054881682179055600580548816909117905561ffff60a01b191661027160a31b179094169290941691821790925563ffffffff199092166303e8000017600160201b600160c01b03191664010000000090920291909117905562000174565b3390565b61385f80620001846000396000f3fe608060405234801561001057600080fd5b50600436106102d65760003560e01c80638705fcd411610182578063b397b6b9116100e9578063d30ef61b116100a2578063eea519101161007c578063eea51910146107d6578063f1b43ac014610802578063f2fde38b14610828578063fccc28131461084e576102d6565b8063d30ef61b146107a5578063d425731e146107ad578063de73149d146107ce576102d6565b8063b397b6b914610699578063b64fc8cf146106ba578063b85617ab146106c2578063c4fb288914610712578063cbd258b514610759578063d0d41fe11461077f576102d6565b806393f1a40b1161013b57806393f1a40b146105e5578063981bd7b81461063c5780639aca95ec14610342578063aba7715e14610668578063ad23c77914610689578063afcf2fc414610691576102d6565b80638705fcd4146105525780638aa28550146105785780638d71831b146105805780638da5cb5b146105885780638dbb1e3a146105905780638dbdbe6d146105b3576102d6565b8063441a3e70116102415780635667e1fb116101fa578063715018a6116101d4578063715018a61461051457806376144aec1461051c5780637adb44091461052457806381b9e4591461052c576102d6565b80635667e1fb146104e5578063630b5ba11461050457806368b22f811461050c576102d6565b8063441a3e7014610457578063474fa6301461047a57806348cd4cb11461048257806351eb05a61461048a5780635312ea8e146104a757806355dbc826146104c4576102d6565b806317caf6f11161029357806317caf6f1146103b55780632a332b2a146103bd5780632e6c998d146103e35780633ad10ef6146104235780633beedf6d14610447578063412753581461044f576102d6565b8063081e3eda146102db5780630ba84cd2146102f55780630c9be46d146103145780630ef6095f1461033a5780630f10a15d146103425780631526fe271461034a575b600080fd5b6102e3610856565b60408051918252519081900360200190f35b6103126004803603602081101561030b57600080fd5b503561085c565b005b6103126004803603602081101561032a57600080fd5b50356001600160a01b0316610909565b6102e3610a0f565b6102e3610a16565b6103676004803603602081101561036057600080fd5b5035610a1c565b604080516001600160a01b039099168952602089019790975287870195909552606087019390935261ffff909116608086015260a085015260c084015260e083015251908190036101000190f35b6102e3610a7e565b610312600480360360208110156103d357600080fd5b50356001600160a01b0316610a84565b61040f600480360360408110156103f957600080fd5b50803590602001356001600160a01b0316610b8d565b604080519115158252519081900360200190f35b61042b610bbd565b604080516001600160a01b039092168252519081900360200190f35b61042b610bcc565b61042b610bdb565b6103126004803603604081101561046d57600080fd5b5080359060200135610bea565b6102e3610d71565b6102e3610d77565b610312600480360360208110156104a057600080fd5b5035610d7d565b610312600480360360208110156104bd57600080fd5b50356110f6565b610312600480360360208110156104da57600080fd5b503561ffff1661120b565b6104ed61131f565b6040805161ffff9092168252519081900360200190f35b610312611330565b61042b611353565b610312611362565b61042b61140e565b6104ed61141d565b6103126004803603602081101561054257600080fd5b50356001600160a01b0316611427565b6103126004803603602081101561056857600080fd5b50356001600160a01b03166114e0565b6102e36115dc565b6102e36115e1565b61042b6115e7565b6102e3600480360360408110156105a657600080fd5b50803590602001356115f6565b610312600480360360608110156105c957600080fd5b50803590602081013590604001356001600160a01b031661160e565b610611600480360360408110156105fb57600080fd5b50803590602001356001600160a01b0316611a0e565b6040805195865260208601949094528484019290925260608401526080830152519081900360a00190f35b6102e36004803603604081101561065257600080fd5b50803590602001356001600160a01b0316611a48565b6103126004803603602081101561067e57600080fd5b503561ffff16611bc2565b61042b611cc5565b61042b611cd4565b610312600480360360208110156106af57600080fd5b503561ffff16611ce3565b6104ed611df7565b610312600480360360e08110156106d857600080fd5b508035906001600160a01b036020820135169061ffff6040820135169060608101359060808101359060a08101359060c001351515611e07565b610312600480360360e081101561072857600080fd5b5080359060208101359061ffff6040820135169060608101359060808101359060a08101359060c0013515156121ff565b61040f6004803603602081101561076f57600080fd5b50356001600160a01b031661245e565b6103126004803603602081101561079557600080fd5b50356001600160a01b0316612473565b6104ed61256f565b610312600480360360208110156107c357600080fd5b503561ffff16612580565b6102e3612691565b61040f600480360360408110156107ec57600080fd5b50803590602001356001600160a01b0316612698565b6103126004803603602081101561081857600080fd5b50356001600160a01b03166126c6565b6103126004803603602081101561083e57600080fd5b50356001600160a01b031661278d565b61042b61288f565b600a5490565b610864612895565b6001600160a01b03166108756115e7565b6001600160a01b0316146108be576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b6108c6611330565b6007546040805191825260208201839052805133927feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d951192908290030190a2600755565b6005546001600160a01b03163314610968576040805162461bcd60e51b815260206004820152601c60248201527f73657443686172697479416464726573733a20464f5242494444454e00000000604482015290519081900360640190fd5b6001600160a01b0381166109c3576040805162461bcd60e51b815260206004820152601760248201527f73657443686172697479416464726573733a205a45524f000000000000000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03831690811790915560405133907fd824bede52134285982c2dbbfb23840eeda8d21c2ea774a50f74495d6147439290600090a350565b6206978081565b6103e881565b600a8181548110610a2957fe5b6000918252602090912060089091020180546001820154600283015460038401546004850154600586015460068701546007909701546001600160a01b03909616975093959294919361ffff90911692909188565b600c5481565b610a8c612895565b6001600160a01b0316610a9d6115e7565b6001600160a01b031614610ae6576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b6001600160a01b038116610b41576040805162461bcd60e51b815260206004820152601760248201527f7365744c6f7474657279416464726573733a205a45524f000000000000000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03831690811790915560405133907f68c87b03f82aaba19686d337ccf1e7437df993c5099f23bbe773211079042a1d90600090a350565b6000828152600b602090815260408083206001600160a01b03851684529091529020600301544210155b92915050565b6003546001600160a01b031681565b6006546001600160a01b031681565b6004546001600160a01b031681565b60026001541415610c42576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506000600a8381548110610c5957fe5b60009182526020808320868452600b825260408085203386529092529220805460089092029092019250831115610ccc576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610cd584610d7d565b610ce0846001612899565b8215610d0a578054610cf29084612c1f565b81558154610d0a906001600160a01b03163385612c7c565b60038201548154610d2b9164e8d4a5100091610d2591612cd3565b90612d2c565b6001820155604080518481529051859133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050600180555050565b600e5481565b600d5481565b6000600a8281548110610d8c57fe5b9060005260206000209060080201905080600201544311610dad57506110f3565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610df757600080fd5b505afa158015610e0b573d6000803e3d6000fd5b505050506040513d6020811015610e2157600080fd5b50519050801580610e3457506001820154155b15610e465750436002909101556110f3565b6000610e568360020154436115f6565b90506000610e83600c54610d258660010154610e7d60075487612cd390919063ffffffff16565b90612cd3565b6002546003549192506001600160a01b03908116916340c10f199116610eb06103e8610d25866064612cd3565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610ef657600080fd5b505af1158015610f0a573d6000803e3d6000fd5b50506002546001600160a01b031691506340c10f19905061dead610f356103e8610d25866014612cd3565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610f7b57600080fd5b505af1158015610f8f573d6000803e3d6000fd5b50506006546001600160a01b031615801592509050610fb3575060085461ffff1615155b1561104b576002546006546008546001600160a01b03928316926340c10f19921690610fec9061271090610d2590879061ffff16612cd3565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561103257600080fd5b505af1158015611046573d6000803e3d6000fd5b505050505b600254604080516340c10f1960e01b81523060048201526024810184905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b15801561109e57600080fd5b505af11580156110b2573d6000803e3d6000fd5b505050506110e06110d584610d2564e8d4a5100085612cd390919063ffffffff16565b600386015490612d93565b6003850155505043600290920191909155505b50565b6002600154141561114e576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506000600a828154811061116557fe5b60009182526020808320858452600b8252604080852033808752935284208054858255600182018690556002820186905560038201869055600482019590955560089093020180549094509192916111ca916001600160a01b03919091169083612c7c565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a35050600180555050565b611213612895565b6001600160a01b03166112246115e7565b6001600160a01b03161461126d576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b6103e88161ffff1611156112b25760405162461bcd60e51b815260040180806020018281038252604881526020018061365a6048913960600191505060405180910390fd5b600f546040805161ffff600160a01b909304831681529183166020830152805133927fb5e94d2c884c9803a63d58f2591a3d5eb358fe8d2a580ebefa85ca1f6b5d8a2192908290030190a2600f805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b600954600160a01b900461ffff1681565b600a5460005b8181101561134f5761134781610d7d565b600101611336565b5050565b6009546001600160a01b031681565b61136a612895565b6001600160a01b031661137b6115e7565b6001600160a01b0316146113c4576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600f546001600160a01b031681565b60085461ffff1681565b61142f612895565b6001600160a01b03166114406115e7565b6001600160a01b031614611489576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b600f80546001600160a01b0383166001600160a01b03199091168117909155604080519182525133917f3b01849ab2e81e47f3126b2bcc7a695519da5d1425a8840fa8467af16e0ee91e919081900360200190a250565b6004546001600160a01b0316331461153f576040805162461bcd60e51b815260206004820152601860248201527f736574466565416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b6001600160a01b038116611590576040805162461bcd60e51b8152602060048201526013602482015272736574466565416464726573733a205a45524f60681b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b03831690811790915560405133907f11f35a22548bcd4c3788ab4a7e4fba427a2014f02e5d5e2da9af62212c03183f90600090a350565b600181565b60075481565b6000546001600160a01b031690565b60006116076001610e7d8486612c1f565b9392505050565b60026001541415611666576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506000600a848154811061167d57fe5b60009182526020808320878452600b825260408085203386529092529220600890910290910191506116ae85610d7d565b6000841180156116c85750600f546001600160a01b031615155b80156116e15750600f546001600160a01b031661dead14155b80156116f557506001600160a01b03831615155b801561170c57506001600160a01b03831661dead14155b801561172157506001600160a01b0383163314155b1561179357600f5460408051630c7f7b6b60e01b81523360048201526001600160a01b03868116602483015291519190921691630c7f7b6b91604480830192600092919082900301818387803b15801561177a57600080fd5b505af115801561178e573d6000803e3d6000fd5b505050505b61179e856000612899565b83156119ac5781546117bb906001600160a01b0316333087612ded565b60025482546001600160a01b0390811691161415611873576000611863612710610d25600260009054906101000a90046001600160a01b03166001600160a01b0316630aa80f4b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561182c57600080fd5b505afa158015611840573d6000803e3d6000fd5b505050506040513d602081101561185657600080fd5b5051889061ffff16612cd3565b905061186f8582612c1f565b9450505b600482015461ffff161561199d5760085462010000900461ffff16156119445760048201546000906118b29061271090610d2590889061ffff16612cd3565b6008549091506000906118d89061271090610d2590859062010000900461ffff16612cd3565b83549091506118f39083906118ed9089612d93565b90612c1f565b8355600454611921906001600160a01b031661190f8484612c1f565b86546001600160a01b03169190612c7c565b600554845461193d916001600160a01b03918216911683612c7c565b5050611998565b60048201546000906119639061271090610d2590889061ffff16612cd3565b82549091506119789082906118ed9088612d93565b82556004548354611996916001600160a01b03918216911683612c7c565b505b6119ac565b80546119a99085612d93565b81555b600382015481546119c79164e8d4a5100091610d2591612cd3565b6001820155604080518581529051869133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505060018055505050565b600b602090815260009283526040808420909152908252902080546001820154600283015460038401546004909401549293919290919085565b600080600a8481548110611a5857fe5b60009182526020808320878452600b825260408085206001600160a01b0389811687529084528186206008959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b158015611ad257600080fd5b505afa158015611ae6573d6000803e3d6000fd5b505050506040513d6020811015611afc57600080fd5b5051600285015490915043118015611b1357508015155b15611b73576000611b288560020154436115f6565b90506000611b4f600c54610d258860010154610e7d60075487612cd390919063ffffffff16565b9050611b6e611b6784610d258464e8d4a51000612cd3565b8590612d93565b935050505b6000611b9d84600101546118ed64e8d4a51000610d25878960000154612cd390919063ffffffff16565b9050611bb6846002015482612d9390919063ffffffff16565b98975050505050505050565b611bca612895565b6001600160a01b0316611bdb6115e7565b6001600160a01b031614611c24576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b6101f48161ffff161115611c695760405162461bcd60e51b815260040180806020018281038252603a8152602001806135fb603a913960400191505060405180910390fd5b6008546040805161ffff92831681529183166020830152805133927f748fdd14ad1298e969c7be6d56e4dd504a27221597c7664057693ec85e67c4a292908290030190a26008805461ffff191661ffff92909216919091179055565b6002546001600160a01b031681565b6005546001600160a01b031681565b611ceb612895565b6001600160a01b0316611cfc6115e7565b6001600160a01b031614611d45576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b6113888161ffff161115611d8a5760405162461bcd60e51b815260040180806020018281038252602f815260200180613739602f913960400191505060405180910390fd5b6009546040805161ffff600160a01b909304831681529183166020830152805133927f1548b249eefe462db64b14d40928822585247ac8a57a5380f02b730116fde82792908290030190a26009805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b60085462010000900461ffff1681565b611e0f612895565b6001600160a01b0316611e206115e7565b6001600160a01b031614611e69576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b6001600160a01b038616600090815260106020526040902054869060ff1615611ed9576040805162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000604482015290519081900360640190fd5b6103e88661ffff161115611f1e5760405162461bcd60e51b81526004018080602001828103825260258152602001806136356025913960400191505060405180910390fd5b6103e8831115611f5f5760405162461bcd60e51b81526004018080602001828103825260258152602001806136356025913960400191505060405180910390fd5b62127500851115611fb7576040805162461bcd60e51b815260206004820152601d60248201527f6164643a20696e76616c6964206861727665737420696e74657276616c000000604482015290519081900360640190fd5b62069780841115611ff95760405162461bcd60e51b81526004018080602001828103825260248152602001806138066024913960400191505060405180910390fd5b811561200757612007611330565b6000600d54431161201a57600d5461201c565b435b600c5490915061202c908a612d93565b600c556001600160a01b0397881660008181526010602090815260408083208054600160ff1990911681179091558151610100810183529485529184019c8d5283019384526060830182815261ffff9a8b166080850190815260a085019a8b5260c08501998a5260e08501988952600a8054938401815590935292517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8600890920291820180546001600160a01b03191691909c1617909a5599517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a98a015590517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2aa890155517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ab880155505094517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ac8501805461ffff19169190941617909255517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ad830155517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2ae82015590517fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2af90910155565b612207612895565b6001600160a01b03166122186115e7565b6001600160a01b031614612261576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b6103e88561ffff1611156122a65760405162461bcd60e51b81526004018080602001828103825260258152602001806137686025913960400191505060405180910390fd5b6103e88211156122e75760405162461bcd60e51b81526004018080602001828103825260258152602001806136356025913960400191505060405180910390fd5b6212750084111561233f576040805162461bcd60e51b815260206004820152601d60248201527f7365743a20696e76616c6964206861727665737420696e74657276616c000000604482015290519081900360640190fd5b801561234d5761234d611330565b61238a86612384600a8a8154811061236157fe5b906000526020600020906008020160010154600c54612c1f90919063ffffffff16565b90612d93565b600c8190555085600a888154811061239e57fe5b90600052602060002090600802016001018190555084600a88815481106123c157fe5b906000526020600020906008020160040160006101000a81548161ffff021916908361ffff16021790555083600a88815481106123fa57fe5b90600052602060002090600802016005018190555082600a888154811061241d57fe5b90600052602060002090600802016006018190555081600a888154811061244057fe5b90600052602060002090600802016007018190555050505050505050565b60106020526000908152604090205460ff1681565b6003546001600160a01b031633146124d2576040805162461bcd60e51b815260206004820152601860248201527f736574446576416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b6001600160a01b038116612523576040805162461bcd60e51b8152602060048201526013602482015272736574446576416464726573733a205a45524f60681b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b03831690811790915560405133907f52882fe9c8937a186eb2653e68b33629cf58f0c3e09b567f0d1db958d3a6c3f090600090a350565b600f54600160a01b900461ffff1681565b612588612895565b6001600160a01b03166125996115e7565b6001600160a01b0316146125e2576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b6113888161ffff1611156126275760405162461bcd60e51b81526004018080602001828103825260388152602001806137ad6038913960400191505060405180910390fd5b6008546040805161ffff62010000909304831681529183166020830152805133927f712cff9e9d4367fdd0cb5cfca6fcbdee82c284f94c92b3652436ff979d4a701f92908290030190a26008805461ffff909216620100000263ffff000019909216919091179055565b6212750081565b6000918252600b602090815260408084206001600160a01b0393909316845291905290206004015442101590565b6126ce612895565b6001600160a01b03166126df6115e7565b6001600160a01b031614612728576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b600880546001600160a01b0383166401000000008102640100000000600160c01b031990921691909117909155604080519182525133917fe351369c58d13c6542f004dedef85093e29e03a02f953ca92ead0176bac2f881919081900360200190a250565b612795612895565b6001600160a01b03166127a66115e7565b6001600160a01b0316146127ef576040805162461bcd60e51b8152602060048201819052602482015260008051602061378d833981519152604482015290519081900360640190fd5b6001600160a01b0381166128345760405162461bcd60e51b81526004018080602001828103825260268152602001806136cc6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b61dead81565b3390565b6000600a83815481106128a857fe5b60009182526020808320868452600b8252604080852033865290925292206003810154600890920290920192506128ef5760058201546128e9904290612d93565b60038201555b600481015461290e576006820154612908904290612d93565b60048201555b600061293c82600101546118ed64e8d4a51000610d2587600301548760000154612cd390919063ffffffff16565b905083156129a35761294e8533612698565b61298d576000612971612710610d25866007015485612cd390919063ffffffff16565b905061297d8282612c1f565b915061298b61dead82612e4d565b505b600683015461299d904290612d93565b60048301555b6129ad8533610b8d565b15612bb65760008111806129c5575060008260020154115b15612bb15760006129e3836002015483612d9390919063ffffffff16565b90506129fe8360020154600e54612c1f90919063ffffffff16565b600e55600060028401556005840154612a18904290612d93565b600384015560085464010000000090046001600160a01b031615612b9b576000600860049054906101000a90046001600160a01b03166001600160a01b031663463dd61c6040518163ffffffff1660e01b815260040160206040518083038186803b158015612a8657600080fd5b505afa158015612a9a573d6000803e3d6000fd5b505050506040513d6020811015612ab057600080fd5b5051600954909150600160a01b900461ffff1615801590612ad057508043105b15612b9957600954600090612af99061271090610d25908690600160a01b900461ffff16612cd3565b9050612b058382612c1f565b600954600254919450612b25916001600160a01b0390811691168361301a565b6008546040805163282d3fdf60e01b81523360048201526024810184905290516401000000009092046001600160a01b03169163282d3fdf9160448082019260009290919082900301818387803b158015612b7f57600080fd5b505af1158015612b93573d6000803e3d6000fd5b50505050505b505b612ba53382612e4d565b612baf3382613105565b505b612c18565b8015612c18576002820154612bcb9082612d93565b6002830155600e54612bdd9082612d93565b600e55604080518281529051869133917fee470483107f579a55c754fa00613c45a9a3b617a418b39cb0be97e5381ba7c19181900360200190a35b5050505050565b600082821115612c76576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612cce90849061332c565b505050565b600082612ce257506000610bb7565b82820282848281612cef57fe5b04146116075760405162461bcd60e51b81526004018080602001828103825260218152602001806137186021913960400191505060405180910390fd5b6000808211612d82576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381612d8b57fe5b049392505050565b600082820183811015611607576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612e4790859061332c565b50505050565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015612e9857600080fd5b505afa158015612eac573d6000803e3d6000fd5b505050506040513d6020811015612ec257600080fd5b50519050600081831115612f59576002546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015612f2657600080fd5b505af1158015612f3a573d6000803e3d6000fd5b505050506040513d6020811015612f5057600080fd5b50519050612fde565b6002546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015612faf57600080fd5b505af1158015612fc3573d6000803e3d6000fd5b505050506040513d6020811015612fd957600080fd5b505190505b80612e475760405162461bcd60e51b81526004018080602001828103825260218152602001806137e56021913960400191505060405180910390fd5b60006130b082856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561307e57600080fd5b505afa158015613092573d6000803e3d6000fd5b505050506040513d60208110156130a857600080fd5b505190612d93565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052909150612e4790859061332c565b600f546001600160a01b03161580159061312b5750600f54600160a01b900461ffff1615155b1561134f57600f5460408051634a9fefc760e01b81526001600160a01b03858116600483015291516000939290921691634a9fefc791602480820192602092909190829003018186803b15801561318157600080fd5b505afa158015613195573d6000803e3d6000fd5b505050506040513d60208110156131ab57600080fd5b5051600f549091506000906131d49061271090610d25908690600160a01b900461ffff16612cd3565b90506001600160a01b038216158015906131f957506001600160a01b03821661dead14155b80156132055750600081115b15612e4757600254604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b15801561325f57600080fd5b505af1158015613273573d6000803e3d6000fd5b5050600f5460408051631b82d29760e31b81526001600160a01b03878116600483015260248201879052915191909216935063dc1694b89250604480830192600092919082900301818387803b1580156132cc57600080fd5b505af11580156132e0573d6000803e3d6000fd5b50506040805184815290516001600160a01b038087169450881692507f86ddab457291316e0f5496737e5ca67c4037234c32c3be04c48ae96186893a7b9181900360200190a350505050565b6060613381826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166133dd9092919063ffffffff16565b805190915015612cce578080602001905160208110156133a057600080fd5b5051612cce5760405162461bcd60e51b815260040180806020018281038252602a8152602001806136a2602a913960400191505060405180910390fd5b60606133ec84846000856133f4565b949350505050565b6060824710156134355760405162461bcd60e51b81526004018080602001828103825260268152602001806136f26026913960400191505060405180910390fd5b61343e85613550565b61348f576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106134ce5780518252601f1990920191602091820191016134af565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613530576040519150601f19603f3d011682016040523d82523d6000602084013e613535565b606091505b5091509150613545828286613556565b979650505050505050565b3b151590565b60608315613565575081611607565b8251156135755782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156135bf5781810151838201526020016135a7565b50505050905090810190601f1680156135ec5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe7365744c6f74746572794d696e74526174653a20696e76616c6964206c6f7474657279206d696e74207261746520626173697320706f696e74736164643a20696e76616c6964206465706f7369742066656520626173697320706f696e7473736574526566657272616c436f6d6d697373696f6e526174653a20696e76616c696420726566657272616c20636f6d6d697373696f6e207261746520626173697320706f696e74735361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365744c6f636b6572526174653a20696e76616c6964206c6f636b6572207261746520626173697320706f696e74737365743a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657273657443686172697479466565526174653a20696e76616c6964206368617269747920666565207261746520626173697320706f696e747373616665506561725472616e736665723a207472616e73666572206661696c65646164643a20696e76616c6964207769746864726177616c2066656520696e74657276616ca2646970667358221220882ecabe77ba09b9abb611687315eb62e5c28e961fa26515354ede6979f9411f64736f6c634300060c0033000000000000000000000000c8bcb58caef1be972c0b638b1dd8b0748fdc8a4400000000000000000000000000000000000000000000000000000000010468100000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000049ff89bdd5cd388bb8519b34e0b5971a2508efb8

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

000000000000000000000000c8bcb58caef1be972c0b638b1dd8b0748fdc8a4400000000000000000000000000000000000000000000000000000000010468100000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000049ff89bdd5cd388bb8519b34e0b5971a2508efb8

-----Decoded View---------------
Arg [0] : _pear (address): 0xc8bcb58caef1be972c0b638b1dd8b0748fdc8a44
Arg [1] : _startBlock (uint256): 17066000
Arg [2] : _pearPerBlock (uint256): 4000000000000000000
Arg [3] : _pearLockerAddress (address): 0x49ff89bdd5cd388bb8519b34e0b5971a2508efb8

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000c8bcb58caef1be972c0b638b1dd8b0748fdc8a44
Arg [1] : 0000000000000000000000000000000000000000000000000000000001046810
Arg [2] : 0000000000000000000000000000000000000000000000003782dace9d900000
Arg [3] : 00000000000000000000000049ff89bdd5cd388bb8519b34e0b5971a2508efb8


Deployed ByteCode Sourcemap

1014:23111:6:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7027:93;;;:::i;:::-;;;;;;;;;;;;;;;;21044:215;;;;;;;;;;;;;;;;-1:-1:-1;21044:215:6;;:::i;:::-;;20356:327;;;;;;;;;;;;;;;;-1:-1:-1;20356:327:6;-1:-1:-1;;;;;20356:327:6;;:::i;3587:61::-;;;:::i;3809:53::-;;;:::i;4458:26::-;;;;;;;;;;;;;;;;-1:-1:-1;4458:26:6;;:::i;:::-;;;;-1:-1:-1;;;;;4458:26:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4695:34;;;:::i;20735:258::-;;;;;;;;;;;;;;;;-1:-1:-1;20735:258:6;-1:-1:-1;;;;;20735:258:6;;:::i;11124:195::-;;;;;;;;;;;;;;;;-1:-1:-1;11124:195:6;;;;;;-1:-1:-1;;;;;11124:195:6;;:::i;:::-;;;;;;;;;;;;;;;;;;2975:25;;;:::i;:::-;;;;-1:-1:-1;;;;;2975:25:6;;;;;;;;;;;;;;3245:29;;;:::i;3033:25::-;;;:::i;15059:599::-;;;;;;;;;;;;;;;;-1:-1:-1;15059:599:6;;;;;;;:::i;4846:35::-;;;:::i;4784:25::-;;;:::i;11936:1153::-;;;;;;;;;;;;;;;;-1:-1:-1;11936:1153:6;;:::i;15726:497::-;;;;;;;;;;;;;;;;-1:-1:-1;15726:497:6;;:::i;21558:417::-;;;;;;;;;;;;;;;;-1:-1:-1;21558:417:6;;;;:::i;4396:24::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;11688:175;;;:::i;4295:32::-;;;:::i;1713:145:7:-;;;:::i;4927:29:6:-;;;:::i;3988:::-;;;:::i;21327:173::-;;;;;;;;;;;;;;;;-1:-1:-1;21327:173:6;-1:-1:-1;;;;;21327:173:6;;:::i;19998:287::-;;;;;;;;;;;;;;;;-1:-1:-1;19998:287:6;-1:-1:-1;;;;;19998:287:6;;:::i;3397:44::-;;;:::i;3318:27::-;;;:::i;1081:85:7:-;;;:::i;10053:141:6:-;;;;;;;;;;;;;;;;-1:-1:-1;10053:141:6;;;;;;;:::i;13155:1855::-;;;;;;;;;;;;;;;;-1:-1:-1;13155:1855:6;;;;;;;;;;;-1:-1:-1;;;;;13155:1855:6;;:::i;4538:64::-;;;;;;;;;;;;;;;;-1:-1:-1;4538:64:6;;;;;;-1:-1:-1;;;;;4538:64:6;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10255:808;;;;;;;;;;;;;;;;-1:-1:-1;10255:808:6;;;;;;-1:-1:-1;;;;;10255:808:6;;:::i;22026:347::-;;;;;;;;;;;;;;;;-1:-1:-1;22026:347:6;;;;:::i;2928:21::-;;;:::i;3095:29::-;;;:::i;23094:292::-;;;;;;;;;;;;;;;;-1:-1:-1;23094:292:6;;;;:::i;4193:26::-;;;:::i;7438:1381::-;;;;;;;;;;;;;;;;-1:-1:-1;7438:1381:6;;;-1:-1:-1;;;;;7438:1381:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;8928:1052::-;;;;;;;;;;;;;;;;-1:-1:-1;8928:1052:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;7174:44::-;;;;;;;;;;;;;;;;-1:-1:-1;7174:44:6;-1:-1:-1;;;;;7174:44:6;;:::i;19652:287::-;;;;;;;;;;;;;;;;-1:-1:-1;19652:287:6;-1:-1:-1;;;;;19652:287:6;;:::i;5011:42::-;;;:::i;22425:391::-;;;;;;;;;;;;;;;;-1:-1:-1;22425:391:6;;;;:::i;3485:58::-;;;:::i;11402:202::-;;;;;;;;;;;;;;;;-1:-1:-1;11402:202:6;;;;;;-1:-1:-1;;;;;11402:202:6;;:::i;22887:159::-;;;;;;;;;;;;;;;;-1:-1:-1;22887:159:6;-1:-1:-1;;;;;22887:159:6;;:::i;2007:240:7:-;;;;;;;;;;;;;;;;-1:-1:-1;2007:240:7;-1:-1:-1;;;;;2007:240:7;;:::i;4043:81:6:-;;;:::i;7027:93::-;7098:8;:15;7027:93;:::o;21044:215::-;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;;;;;;;;;;;;;;;21122:17:6::1;:15;:17::i;:::-;21186:12;::::0;21154:60:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;21174:10:::1;::::0;21154:60:::1;::::0;;;;;;;::::1;21224:12;:28:::0;21044:215::o;20356:327::-;20447:14;;-1:-1:-1;;;;;20447:14:6;20433:10;:28;20425:69;;;;;-1:-1:-1;;;20425:69:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20512:29:6;;20504:65;;;;;-1:-1:-1;;;20504:65:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;20579:14;:32;;-1:-1:-1;;;;;;20579:32:6;-1:-1:-1;;;;;20579:32:6;;;;;;;;20626:50;;20648:10;;20626:50;;-1:-1:-1;;20626:50:6;20356:327;:::o;3587:61::-;3642:6;3587:61;:::o;3809:53::-;3858:4;3809:53;:::o;4458:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4458:26:6;;;;-1:-1:-1;4458:26:6;;;;;;;;;;;;;;:::o;4695:34::-;;;;:::o;20735:258::-;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;;;;;20822:29:6;::::1;20814:65;;;::::0;;-1:-1:-1;;;20814:65:6;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;20889:14;:32:::0;;-1:-1:-1;;;;;;20889:32:6::1;-1:-1:-1::0;;;;;20889:32:6;::::1;::::0;;::::1;::::0;;;20936:50:::1;::::0;20958:10:::1;::::0;20936:50:::1;::::0;-1:-1:-1;;20936:50:6::1;20735:258:::0;:::o;11124:195::-;11194:4;11234:14;;;:8;:14;;;;;;;;-1:-1:-1;;;;;11234:21:6;;;;;;;;;11291;;;11272:15;:40;;11124:195;;;;;:::o;2975:25::-;;;-1:-1:-1;;;;;2975:25:6;;:::o;3245:29::-;;;-1:-1:-1;;;;;3245:29:6;;:::o;3033:25::-;;;-1:-1:-1;;;;;3033:25:6;;:::o;15059:599::-;1688:1:9;2277:7;;:19;;2269:63;;;;;-1:-1:-1;;;2269:63:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;1688:1;2407:7;:18;;;;15138:21:6::1;15162:8;15171:4;15162:14;;;;;;;;;::::0;;;::::1;::::0;;;15210;;;:8:::1;:14:::0;;;;;;15225:10:::1;15210:26:::0;;;;;;;15254:11;;15162:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;15254:22:6;-1:-1:-1;15254:22:6::1;15246:53;;;::::0;;-1:-1:-1;;;15246:53:6;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;15246:53:6;;;;;;;;;;;;;::::1;;15309:16;15320:4;15309:10;:16::i;:::-;15335:33;15358:4;15363;15335:22;:33::i;:::-;15382:11:::0;;15378:149:::1;;15423:11:::0;;:24:::1;::::0;15439:7;15423:15:::1;:24::i;:::-;15409:38:::0;;15461:12;;:55:::1;::::0;-1:-1:-1;;;;;15461:12:6::1;15495:10;15508:7:::0;15461:25:::1;:55::i;:::-;15570:20;::::0;::::1;::::0;15554:11;;:47:::1;::::0;15596:4:::1;::::0;15554:37:::1;::::0;:15:::1;:37::i;:::-;:41:::0;::::1;:47::i;:::-;15536:15;::::0;::::1;:65:::0;15616:35:::1;::::0;;;;;;;15637:4;;15625:10:::1;::::0;15616:35:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1645:1:9;2580:22;;-1:-1:-1;;15059:599:6:o;4846:35::-;;;;:::o;4784:25::-;;;;:::o;11936:1153::-;11987:21;12011:8;12020:4;12011:14;;;;;;;;;;;;;;;;;;11987:38;;12055:4;:20;;;12039:12;:36;12035:73;;12091:7;;;12035:73;12136:12;;:37;;;-1:-1:-1;;;12136:37:6;;12167:4;12136:37;;;;;;12117:16;;-1:-1:-1;;;;;12136:12:6;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12136:37:6;;-1:-1:-1;12187:13:6;;;:37;;-1:-1:-1;12204:15:6;;;;:20;12187:37;12183:123;;;-1:-1:-1;12263:12:6;12240:20;;;;:35;12289:7;;12183:123;12315:18;12336:49;12350:4;:20;;;12372:12;12336:13;:49::i;:::-;12315:70;;12395:18;12416:70;12470:15;;12416:49;12449:4;:15;;;12416:28;12431:12;;12416:10;:14;;:28;;;;:::i;:::-;:32;;:49::i;:70::-;12496:4;;12506:10;;12395:91;;-1:-1:-1;;;;;;12496:4:6;;;;:9;;12506:10;12518:29;12542:4;12518:19;12395:91;12533:3;12518:14;:19::i;:29::-;12496:52;;;;;;;;;;;;;-1:-1:-1;;;;;12496:52:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;12608:4:6;;-1:-1:-1;;;;;12608:4:6;;-1:-1:-1;12608:9:6;;-1:-1:-1;4082:42:6;12632:28;12655:4;12632:18;:10;12647:2;12632:14;:18::i;:28::-;12608:53;;;;;;;;;;;;;-1:-1:-1;;;;;12608:53:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;12743:14:6;;-1:-1:-1;;;;;12743:14:6;12735:37;;;;-1:-1:-1;12735:37:6;-1:-1:-1;12735:60:6;;-1:-1:-1;12776:15:6;;;;:19;;12735:60;12731:160;;;12811:4;;12821:14;;12852:15;;-1:-1:-1;;;;;12811:4:6;;;;:9;;12821:14;;12837:42;;12873:5;;12837:31;;:10;;12852:15;;12837:14;:31::i;:42::-;12811:69;;;;;;;;;;;;;-1:-1:-1;;;;;12811:69:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12731:160;12908:4;;:36;;;-1:-1:-1;;;12908:36:6;;12926:4;12908:36;;;;;;;;;;;;-1:-1:-1;;;;;12908:4:6;;;;:9;;:36;;;;;:4;;:36;;;;;;;;:4;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12977:60;13002:34;13027:8;13002:20;13017:4;13002:10;:14;;:20;;;;:::i;:34::-;12977:20;;;;;:24;:60::i;:::-;12954:20;;;:83;-1:-1:-1;;13070:12:6;13047:20;;;;:35;;;;-1:-1:-1;11936:1153:6;;:::o;15726:497::-;1688:1:9;2277:7;;:19;;2269:63;;;;;-1:-1:-1;;;2269:63:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;1688:1;2407:7;:18;;;;15797:21:6::1;15821:8;15830:4;15821:14;;;;;;;;;::::0;;;::::1;::::0;;;15869;;;:8:::1;:14:::0;;;;;;15884:10:::1;15869:26:::0;;;;;;;15922:11;;15943:15;;;-1:-1:-1;15968:15:6;::::1;:19:::0;;;15997::::1;::::0;::::1;:23:::0;;;16030:21:::1;::::0;::::1;:25:::0;;;16065::::1;::::0;::::1;:29:::0;;;;15821:14:::1;::::0;;::::1;;16104:12:::0;;15821:14;;-1:-1:-1;15869:26:6;;15922:11;16104:54:::1;::::0;-1:-1:-1;;;;;16104:12:6;;;::::1;::::0;15922:11;16104:25:::1;:54::i;:::-;16173:43;::::0;;;;;;;16203:4;;16191:10:::1;::::0;16173:43:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1645:1:9;2580:22;;-1:-1:-1;;15726:497:6:o;21558:417::-;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;;;;;;;;;;;;;;;21733:4:6::1;21706:23;:31;;;;21698:116;;;;-1:-1:-1::0;;;21698:116:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21861:22;::::0;21829:80:::1;::::0;;21861:22:::1;-1:-1:-1::0;;;21861:22:6;;::::1;::::0;::::1;21829:80:::0;;;;::::1;;::::0;::::1;::::0;;;21849:10:::1;::::0;21829:80:::1;::::0;;;;;;;::::1;21919:22;:48:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;21919:48:6::1;-1:-1:-1::0;;;;21919:48:6;;::::1;::::0;;;::::1;::::0;;21558:417::o;4396:24::-;;;-1:-1:-1;;;4396:24:6;;;;;:::o;11688:175::-;11749:8;:15;11732:14;11774:83;11802:6;11796:3;:12;11774:83;;;11831:15;11842:3;11831:10;:15::i;:::-;11810:5;;11774:83;;;;11688:175;:::o;4295:32::-;;;-1:-1:-1;;;;;4295:32: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;4927:29:6:-;;;-1:-1:-1;;;;;4927:29:6;;:::o;3988:::-;;;;;;:::o;21327:173::-;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;;;;;;;;;;;;;;;21404:12:6::1;:28:::0;;-1:-1:-1;;;;;21404:28:6;::::1;-1:-1:-1::0;;;;;;21404:28:6;;::::1;::::0;::::1;::::0;;;21447:46:::1;::::0;;;;;;21467:10:::1;::::0;21447:46:::1;::::0;;;;;::::1;::::0;;::::1;21327:173:::0;:::o;19998:287::-;20081:10;;-1:-1:-1;;;;;20081:10:6;20067;:24;20059:61;;;;;-1:-1:-1;;;20059:61:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20138:25:6;;20130:57;;;;;-1:-1:-1;;;20130:57:6;;;;;;;;;;;;-1:-1:-1;;;20130:57:6;;;;;;;;;;;;;;;20197:10;:24;;-1:-1:-1;;;;;;20197:24:6;-1:-1:-1;;;;;20197:24:6;;;;;;;;20236:42;;20254:10;;20236:42;;-1:-1:-1;;20236:42:6;19998:287;:::o;3397:44::-;3440:1;3397:44;:::o;3318:27::-;;;;:::o;1081:85:7:-;1127:7;1153:6;-1:-1:-1;;;;;1153:6:7;1081:85;:::o;10053:141:6:-;10125:7;10151:36;3440:1;10151:14;:3;10159:5;10151:7;:14::i;:36::-;10144:43;10053:141;-1:-1:-1;;;10053:141:6:o;13155:1855::-;1688:1:9;2277:7;;:19;;2269:63;;;;;-1:-1:-1;;;2269:63:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;1688:1;2407:7;:18;;;;13252:21:6::1;13276:8;13285:4;13276:14;;;;;;;;;::::0;;;::::1;::::0;;;13324;;;:8:::1;:14:::0;;;;;;13339:10:::1;13324:26:::0;;;;;;;13276:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;13360:16:6::1;13333:4:::0;13360:10:::1;:16::i;:::-;13400:1;13390:7;:11;:50;;;;-1:-1:-1::0;13413:12:6::1;::::0;-1:-1:-1;;;;;13413:12:6::1;13405:35:::0;::::1;13390:50;:91;;;;-1:-1:-1::0;13452:12:6::1;::::0;-1:-1:-1;;;;;13452:12:6::1;4082:42;13444:37;;13390:91;:118;;;;-1:-1:-1::0;;;;;;13485:23:6;::::1;::::0;::::1;13390:118;:147;;;;-1:-1:-1::0;;;;;;13512:25:6;::::1;4082:42;13512:25;;13390:147;:174;;;;-1:-1:-1::0;;;;;;13541:23:6;::::1;13554:10;13541:23;;13390:174;13386:255;;;13580:12;::::0;:50:::1;::::0;;-1:-1:-1;;;13580:50:6;;13608:10:::1;13580:50;::::0;::::1;::::0;-1:-1:-1;;;;;13580:50:6;;::::1;::::0;;;;;;:12;;;::::1;::::0;:27:::1;::::0;:50;;;;;:12:::1;::::0;:50;;;;;;;:12;;:50;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;13386:255;13650:34;13673:4;13678:5;13650:22;:34::i;:::-;13698:11:::0;;13694:1186:::1;;13725:12:::0;;:74:::1;::::0;-1:-1:-1;;;;;13725:12:6::1;13763:10;13784:4;13791:7:::0;13725:29:::1;:74::i;:::-;13850:4;::::0;13825:12;;-1:-1:-1;;;;;13825:12:6;;::::1;13850:4:::0;::::1;13817:38;13813:185;;;13875:15;13893:42;13929:5;13893:31;13905:4;;;;;;;;;-1:-1:-1::0;;;;;13905:4:6::1;-1:-1:-1::0;;;;;13905:16:6::1;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;13905:18:6;13893:7;;:31:::1;;:11;:31::i;:42::-;13875:60:::0;-1:-1:-1;13963:20:6::1;:7:::0;13875:60;13963:11:::1;:20::i;:::-;13953:30;;13813:185;;14015:17;::::0;::::1;::::0;::::1;;:21:::0;14011:859:::1;;14060:12;::::0;;;::::1;;;:16:::0;14056:721:::1;;14133:17;::::0;::::1;::::0;14100:18:::1;::::0;14121:41:::1;::::0;14156:5:::1;::::0;14121:30:::1;::::0;:7;;14133:17:::1;;14121:11;:30::i;:41::-;14220:12;::::0;14100:62;;-1:-1:-1;14184:18:6::1;::::0;14205:39:::1;::::0;14238:5:::1;::::0;14205:28:::1;::::0;14100:62;;14220:12;;::::1;;;14205:14;:28::i;:39::-;14280:11:::0;;14184:60;;-1:-1:-1;14280:40:6::1;::::0;14309:10;;14280:24:::1;::::0;14296:7;14280:15:::1;:24::i;:::-;:28:::0;::::1;:40::i;:::-;14266:54:::0;;14368:10:::1;::::0;14342:65:::1;::::0;-1:-1:-1;;;;;14368:10:6::1;14380:26;:10:::0;14395;14380:14:::1;:26::i;:::-;14342:12:::0;;-1:-1:-1;;;;;14342:12:6::1;::::0;:65;:25:::1;:65::i;:::-;14455:14;::::0;14429:12;;:53:::1;::::0;-1:-1:-1;;;;;14429:12:6;;::::1;::::0;14455:14:::1;14471:10:::0;14429:25:::1;:53::i;:::-;14056:721;;;;;14582:17;::::0;::::1;::::0;14549:18:::1;::::0;14570:41:::1;::::0;14605:5:::1;::::0;14570:30:::1;::::0;:7;;14582:17:::1;;14570:11;:30::i;:41::-;14647:11:::0;;14549:62;;-1:-1:-1;14647:40:6::1;::::0;14549:62;;14647:24:::1;::::0;14663:7;14647:15:::1;:24::i;:40::-;14633:54:::0;;14735:10:::1;::::0;14709:12;;:49:::1;::::0;-1:-1:-1;;;;;14709:12:6;;::::1;::::0;14735:10:::1;14747::::0;14709:25:::1;:49::i;:::-;14056:721;;14011:859;;;14831:11:::0;;:24:::1;::::0;14847:7;14831:15:::1;:24::i;:::-;14817:38:::0;;14011:859:::1;14923:20;::::0;::::1;::::0;14907:11;;:47:::1;::::0;14949:4:::1;::::0;14907:37:::1;::::0;:15:::1;:37::i;:47::-;14889:15;::::0;::::1;:65:::0;14969:34:::1;::::0;;;;;;;14989:4;;14977:10:::1;::::0;14969:34:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;1645:1:9;2580:22;;-1:-1:-1;;;13155:1855:6:o;4538:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;10255:808::-;10328:7;10347:21;10371:8;10380:4;10371:14;;;;;;;;;;;;;;;;10419;;;:8;:14;;;;;;-1:-1:-1;;;;;10419:21:6;;;;;;;;;;;10371:14;;;;;;;;10476:20;;;;10525:12;;:37;;-1:-1:-1;;;10525:37:6;;10556:4;10525:37;;;;;;10371:14;;-1:-1:-1;10419:21:6;;10476:20;;10371:14;;10525:12;;;:22;;:37;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10525:37:6;10591:20;;;;10525:37;;-1:-1:-1;10576:12:6;:35;:52;;;;-1:-1:-1;10615:13:6;;;10576:52;10572:345;;;10644:18;10665:49;10679:4;:20;;;10701:12;10665:13;:49::i;:::-;10644:70;;10728:18;10749:70;10803:15;;10749:49;10782:4;:15;;;10749:28;10764:12;;10749:10;:14;;:28;;;;:::i;:70::-;10728:91;-1:-1:-1;10851:55:6;10871:34;10896:8;10871:20;10728:91;10886:4;10871:14;:20::i;:34::-;10851:15;;:19;:55::i;:::-;10833:73;;10572:345;;;10926:15;10944:63;10991:4;:15;;;10944:42;10981:4;10944:32;10960:15;10944:4;:11;;;:15;;:32;;;;:::i;:63::-;10926:81;;11024:32;11036:4;:19;;;11024:7;:11;;:32;;;;:::i;:::-;11017:39;10255:808;-1:-1:-1;;;;;;;;10255:808:6:o;22026:347::-;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;;;;;;;;;;;;;;;22172:3:6::1;22152:16;:23;;;;22144:94;;;;-1:-1:-1::0;;;22144:94:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22288:15;::::0;22253:69:::1;::::0;;22288:15:::1;::::0;;::::1;22253:69:::0;;;;::::1;;::::0;::::1;::::0;;;22276:10:::1;::::0;22253:69:::1;::::0;;;;;;;::::1;22332:15;:34:::0;;-1:-1:-1;;22332:34:6::1;;::::0;;;::::1;::::0;;;::::1;::::0;;22026:347::o;2928:21::-;;;-1:-1:-1;;;;;2928:21:6;;:::o;3095:29::-;;;-1:-1:-1;;;;;3095:29:6;;:::o;23094:292::-;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;;;;;;;;;;;;;;;23220:4:6::1;23205:11;:19;;;;23197:79;;;;-1:-1:-1::0;;;23197:79:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23321:10;::::0;23291:54:::1;::::0;;23321:10:::1;-1:-1:-1::0;;;23321:10:6;;::::1;::::0;::::1;23291:54:::0;;;;::::1;;::::0;::::1;::::0;;;23309:10:::1;::::0;23291:54:::1;::::0;;;;;;;::::1;23355:10;:24:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;23355:24:6::1;-1:-1:-1::0;;;;23355:24:6;;::::1;::::0;;;::::1;::::0;;23094:292::o;4193:26::-;;;;;;;;;:::o;7438:1381::-;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;;;;;7282:23:6;::::1;;::::0;;;:13:::1;:23;::::0;;;;;7644:8;;7282:23:::1;;:32;7274:70;;;::::0;;-1:-1:-1;;;7274:70:6;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;3750:4:::2;7722:13;:36;;;;7714:86;;;;-1:-1:-1::0;;;7714:86:6::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3858:4;7871:16;:42;;7863:92;;;;-1:-1:-1::0;;;7863:92:6::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3536:7;7979:16;:44;;7971:86;;;::::0;;-1:-1:-1;;;7971:86:6;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;::::2;::::0;;;;;;;;;;;;;::::2;;3642:6;8075:22;:54;;8067:103;;;;-1:-1:-1::0;;;8067:103:6::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8184:11;8180:59;;;8211:17;:15;:17::i;:::-;8248:23;8289:10;;8274:12;:25;:53;;8317:10;;8274:53;;;8302:12;8274:53;8355:15;::::0;8248:79;;-1:-1:-1;8355:32:6::2;::::0;8375:11;8355:19:::2;:32::i;:::-;8337:15;:50:::0;-1:-1:-1;;;;;8397:23:6;;::::2;;::::0;;;:13:::2;:23;::::0;;;;;;;:30;;8423:4:::2;-1:-1:-1::0;;8397:30:6;;::::2;::::0;::::2;::::0;;;8451:360;;8397:30:::2;8451:360:::0;::::2;::::0;;;;;;;::::2;::::0;;;;;;;;;;;;;;::::2;::::0;;::::2;::::0;;;;;;;;;;;;;;;;;;;;;;;;8437:8:::2;:375:::0;;;;::::2;::::0;;;;;;;;::::2;::::0;;::::2;::::0;;::::2;::::0;;-1:-1:-1;;;;;;8437:375:6::2;::::0;;;::::2;;::::0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;8437:375:6;;;;;;;-1:-1:-1;;8437:375:6::2;::::0;;;::::2;;::::0;;;;;;;;;;;;;;;;;;;;7438:1381::o;8928:1052::-;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;;;;;;;;;;;;;;;3750:4:6::1;9185:13;:36;;;;9177:86;;;;-1:-1:-1::0;;;9177:86:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3858:4;9334:16;:42;;9326:92;;;;-1:-1:-1::0;;;9326:92:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3536:7;9445:16;:44;;9437:86;;;::::0;;-1:-1:-1;;;9437:86:6;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;9537:11;9533:59;;;9564:17;:15;:17::i;:::-;9619:63;9670:11;9619:46;9639:8;9648:4;9639:14;;;;;;;;;;;;;;;;;;:25;;;9619:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;9601:15;:81;;;;9720:11;9692:8;9701:4;9692:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;9771:13;9741:8;9750:4;9741:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;9827:16;9794:8;9803:4;9794:14;;;;;;;;;;;;;;;;;;:30;;:49;;;;9892:22;9853:8;9862:4;9853:14;;;;;;;;;;;;;;;;;;:36;;:61;;;;9957:16;9924:8;9933:4;9924:14;;;;;;;;;;;;;;;;;;:30;;:49;;;;8928:1052:::0;;;;;;;:::o;7174:44::-;;;;;;;;;;;;;;;:::o;19652:287::-;19735:10;;-1:-1:-1;;;;;19735:10:6;19721;:24;19713:61;;;;;-1:-1:-1;;;19713:61:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19792:25:6;;19784:57;;;;;-1:-1:-1;;;19784:57:6;;;;;;;;;;;;-1:-1:-1;;;19784:57:6;;;;;;;;;;;;;;;19851:10;:24;;-1:-1:-1;;;;;;19851:24:6;-1:-1:-1;;;;;19851:24:6;;;;;;;;19890:42;;19908:10;;19890:42;;-1:-1:-1;;19890:42:6;19652:287;:::o;5011:42::-;;;-1:-1:-1;;;5011:42:6;;;;;:::o;22425:391::-;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;;;;;;;;;;;;;;;22629:4:6::1;22612:13;:21;;;;22604:90;;;;-1:-1:-1::0;;;22604:90:6::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22743:12;::::0;22709:62:::1;::::0;;22743:12:::1;::::0;;;::::1;::::0;::::1;22709:62:::0;;;;::::1;;::::0;::::1;::::0;;;22731:10:::1;::::0;22709:62:::1;::::0;;;;;;;::::1;22781:12;:28:::0;;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;22781:28:6;;::::1;::::0;;;::::1;::::0;;22425:391::o;3485:58::-;3536:7;3485:58;:::o;11402:202::-;11475:4;11515:14;;;:8;:14;;;;;;;;-1:-1:-1;;;;;11515:21:6;;;;;;;;;;;11572:25;;;11553:15;:44;;;11402:202::o;22887:159::-;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;;;;;;;;;;;;;;;22958:10:6::1;:24:::0;;-1:-1:-1;;;;;22958:24:6;::::1;::::0;;::::1;-1:-1:-1::0;;;;;;22958:24:6;;::::1;::::0;;;::::1;::::0;;;22997:42:::1;::::0;;;;;;23015:10:::1;::::0;22997:42:::1;::::0;;;;;::::1;::::0;;::::1;22887:159:::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;4043:81:6:-;4082:42;4043:81;:::o;598:104:2:-;685:10;598:104;:::o;16266:2799:6:-;16351:21;16375:8;16384:4;16375:14;;;;;;;;;;;;;;;;16423;;;:8;:14;;;;;;16438:10;16423:26;;;;;;;16464:21;;;;16375:14;;;;;;;;-1:-1:-1;16460:122:6;;16550:20;;;;16530:41;;:15;;:19;:41::i;:::-;16506:21;;;:65;16460:122;16604:25;;;;16600:136;;16698:26;;;;16678:47;;:15;;:19;:47::i;:::-;16650:25;;;:75;16600:136;16789:15;16807:68;16859:4;:15;;;16807:47;16849:4;16807:37;16823:4;:20;;;16807:4;:11;;;:15;;:37;;;;:::i;:68::-;16789:86;;16890:13;16886:650;;;17029:31;17043:4;17049:10;17029:13;:31::i;:::-;17025:350;;17087:27;17117:44;17155:5;17117:33;17129:4;:20;;;17117:7;:11;;:33;;;;:::i;:44::-;17087:74;-1:-1:-1;17189:32:6;:7;17087:74;17189:11;:32::i;:::-;17179:42;;17304:51;4082:42;17335:19;17304:16;:51::i;:::-;17025:350;;17482:26;;;;17462:47;;:15;;:19;:47::i;:::-;17434:25;;;:75;16886:650;17566:28;17577:4;17583:10;17566;:28::i;:::-;17562:1497;;;17624:1;17614:7;:11;:38;;;;17651:1;17629:4;:19;;;:23;17614:38;17610:1207;;;17672:20;17695:32;17707:4;:19;;;17695:7;:11;;:32;;;;:::i;:::-;17672:55;;17801:45;17826:4;:19;;;17801:20;;:24;;:45;;;;:::i;:::-;17778:20;:68;17886:1;17864:19;;;:23;17949:20;;;;17929:41;;:15;;:19;:41::i;:::-;17905:21;;;:65;18017:10;;;;;-1:-1:-1;;;;;18017:10:6;18009:33;18005:591;;18065:25;18101:10;;;;;;;;;-1:-1:-1;;;;;18101:10:6;-1:-1:-1;;;;;18093:40:6;;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18093:42:6;18161:10;;18093:42;;-1:-1:-1;;;;18161:10:6;;;;:14;;;;:50;;;18194:17;18179:12;:32;18161:50;18157:421;;;18280:10;;18239:21;;18263:39;;18296:5;;18263:28;;:12;;-1:-1:-1;;;18280:10:6;;;;18263:16;:28::i;:39::-;18239:63;-1:-1:-1;18343:31:6;:12;18239:63;18343:16;:31::i;:::-;18443:17;;18407:4;;18328:46;;-1:-1:-1;18400:77:6;;-1:-1:-1;;;;;18407:4:6;;;;18443:17;18463:13;18400:34;:77::i;:::-;18511:10;;18503:51;;;-1:-1:-1;;;18503:51:6;;18528:10;18511;18503:51;;;;;;;;;;;18511:10;;;;-1:-1:-1;;;;;18511:10:6;;18503:24;;:51;;;;;-1:-1:-1;;18503:51:6;;;;;;;;-1:-1:-1;18511:10:6;18503:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18157:421;;18005:591;;18668:42;18685:10;18697:12;18668:16;:42::i;:::-;18728:47;18750:10;18762:12;18728:21;:47::i;:::-;17610:1207;;17562:1497;;;18837:11;;18833:226;;18886:19;;;;:32;;18910:7;18886:23;:32::i;:::-;18864:19;;;:54;18955:20;;:33;;18980:7;18955:24;:33::i;:::-;18932:20;:56;19007:41;;;;;;;;19034:4;;19022:10;;19007:41;;;;;;;;;18833:226;16266:2799;;;;;:::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;:::-;889:241;;;;:::o;19176:416:6:-;19269:4;;:29;;;-1:-1:-1;;;19269:29:6;;19292:4;19269:29;;;;;;19251:15;;-1:-1:-1;;;;;19269:4:6;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19269:29:6;;-1:-1:-1;19308:20:6;19350:17;;;19346:169;;;19401:4;;:27;;;-1:-1:-1;;;19401:27:6;;-1:-1:-1;;;;;19401:27:6;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19401:27:6;;-1:-1:-1;19346:169:6;;;19477:4;;:27;;;-1:-1:-1;;;19477:27:6;;-1:-1:-1;;;;;19477:27:6;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19477:27:6;;-1:-1:-1;19346:169:6;19532:15;19524:61;;;;-1:-1:-1;;;19524: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;23473:650:6:-;23568:12;;-1:-1:-1;;;;;23568:12:6;23560:35;;;;:65;;-1:-1:-1;23599:22:6;;-1:-1:-1;;;23599:22:6;;;;:26;;23560:65;23556:561;;;23660:12;;:31;;;-1:-1:-1;;;23660:31:6;;-1:-1:-1;;;;;23660:31:6;;;;;;;;;23641:16;;23660:12;;;;;:24;;:31;;;;;;;;;;;;;;;:12;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23660:31:6;23745:22;;23660:31;;-1:-1:-1;23705:24:6;;23732:47;;23773:5;;23732:36;;:8;;-1:-1:-1;;;23745:22:6;;;;23732:12;:36::i;:47::-;23705:74;-1:-1:-1;;;;;;23798:22:6;;;;;;:50;;-1:-1:-1;;;;;;23824:24:6;;4082:42;23824:24;;23798:50;:74;;;;;23871:1;23852:16;:20;23798:74;23794:313;;;23892:4;;:37;;;-1:-1:-1;;;23892:37:6;;-1:-1:-1;;;;;23892:37:6;;;;;;;;;;;;;;;:4;;;;;:9;;:37;;;;;:4;;:37;;;;;;;:4;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23947:12:6;;:65;;;-1:-1:-1;;;23947:65:6;;-1:-1:-1;;;;;23947:65:6;;;;;;;;;;;;;;;:12;;;;;-1:-1:-1;23947:37:6;;-1:-1:-1;23947:65:6;;;;;:12;;:65;;;;;;;:12;;:65;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;24035:57:6;;;;;;;;-1:-1:-1;;;;;24035:57:6;;;;-1:-1:-1;24035:57:6;;;-1:-1:-1;24035:57:6;;;;;;;;;23556:561;;23473:650;;:::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://882ecabe77ba09b9abb611687315eb62e5c28e961fa26515354ede6979f9411f
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.