Contract 0xa0122e6c00151E42E6c8fC8568Cc38fFcc1Ac895

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x196ef9d6dcb1a7e438c4fd6d5eba653d031a8e2e80e22fb5d6a6fa103b04dd56Deposit198875872021-10-23 20:23:002 hrs 50 mins ago0x178d54c91d71536020b3082e2f89d1c86fd084f6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.188810755463
0xf3e2a05d7a7a2df6975d0f443d4afeb325765f336b38660067be8b1164bca676Deposit198838352021-10-23 19:30:223 hrs 42 mins ago0xd0d211f28f0116161abe9334476dc3fa32115fe6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.221851482406
0x16f4006520466657f30e2358fc288a7a62f4950d2c9dc53b040812a862384571Deposit198832862021-10-23 19:22:533 hrs 50 mins ago0xd0d211f28f0116161abe9334476dc3fa32115fe6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.211856273594
0x31e259e47fcd0e28e511125e5e3d6e4fef03c698ad5889b7153ca22ab31287ddDeposit198340342021-10-23 7:34:4815 hrs 38 mins ago0xb10fa96a70883fdc73aa195a11321c17ea96552c IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.158975269882
0xe29281a78b242e45bf623f6877ac613b626937c95a932a07049ea33f4db6209dDeposit198104822021-10-23 1:50:5621 hrs 22 mins ago0x178d54c91d71536020b3082e2f89d1c86fd084f6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.179076811483
0xbdc5179babc188fa3935d2f37c4e6725239682fe6f72892e8063525f9023748cDeposit197945742021-10-22 21:58:451 day 1 hr ago0xd0d211f28f0116161abe9334476dc3fa32115fe6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.073864101103
0xda1432eb780d07f150ab7ca69a4c8e028aa3e9fbc4a7228bd7b92756c4400a8bDeposit197944532021-10-22 21:57:041 day 1 hr ago0xd0d211f28f0116161abe9334476dc3fa32115fe6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.064535157236
0x9a2d267f48dbb900622f7b6fdfb1d75dc65b9b4f93c922e2cf234b258d00c1d3Deposit197943042021-10-22 21:54:581 day 1 hr ago0xd0d211f28f0116161abe9334476dc3fa32115fe6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.29876052649
0x8a7ce7ac923b9ae4d3fe230fc7d61cfd0a4af697cea94a834ff3e6d43e08b868Deposit197598972021-10-22 12:44:591 day 10 hrs ago0x178d54c91d71536020b3082e2f89d1c86fd084f6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.164516529345
0xc76fcc8d5d5cb09a6c46cf29dfa6927ae87942008b601baccc24fac28fc947cfWithdraw197322712021-10-22 4:21:331 day 18 hrs ago0xab4f08d36cdbf8c8bb27444386097195ca78124b IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.02489055
0x4cc9575d6e46409d9de065ccac443ef9f8b97f3d2572a86abd1646b7e1afca20Withdraw197315882021-10-22 4:08:111 day 19 hrs ago0xab4f08d36cdbf8c8bb27444386097195ca78124b IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.02120595
0x1b0284000b107ee5b85909eefd8bb1239b36aa24c45777ad9ee8ceacafb80217Withdraw197315452021-10-22 4:07:291 day 19 hrs ago0xab4f08d36cdbf8c8bb27444386097195ca78124b IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.0180924
0x3fa78a99766d6feb20ece5bb7ebf6dad5fe7ec4acb4bd4d75990da82b15eba03Deposit197232222021-10-22 1:47:311 day 21 hrs ago0x178d54c91d71536020b3082e2f89d1c86fd084f6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.108256117269
0xa5bd38d8dca54825e7ec7586e546abc88b0340a1cfdb0ef1c5afac3125c2018fDeposit196868012021-10-21 16:02:472 days 7 hrs ago0x178d54c91d71536020b3082e2f89d1c86fd084f6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.184460115165
0xde7b8f0592661acc04912e7db17acc8ea686e3cdaf7935635150b60559862f99Deposit196440322021-10-21 3:25:522 days 19 hrs ago0x178d54c91d71536020b3082e2f89d1c86fd084f6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.132998673475
0xc5c9385168c34a1ac17ebb0f70ef24360e95e6407c87a42705b196c6e1db784aDeposit196112622021-10-20 18:55:583 days 4 hrs ago0x2dc83507117292660e03cfb67556d6b15a8ae01f IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.0759465
0xe6a98f30c52e43d4d6e241a6f6ab5a36a33ed09d728eee7299b1e965fb0c5200Deposit196090162021-10-20 18:25:083 days 4 hrs ago0x178d54c91d71536020b3082e2f89d1c86fd084f6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.148814530557
0x261d75592fbf3505dfd4ca199aa87687d4949295904a1d44c15e04b1d5b0aec4Deposit196069072021-10-20 17:54:483 days 5 hrs ago0x9bdbdb4a8f7f816c87a67f5281484ed902c6b942 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.139190145254
0x94b5a6dd154267c426cff7eb30d5e5b10e02807b8af7331a5faad1ce9b79d01bDeposit196008552021-10-20 16:17:003 days 6 hrs ago0xe12facdf177f96a40d721ced5c308bd36588ee63 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.137525027808
0xf95d73c06331233d19773ed5fb9d2f8eb55a6c1a06036389d94ee2f2802c9281Deposit195874382021-10-20 12:18:343 days 10 hrs ago0xd0d211f28f0116161abe9334476dc3fa32115fe6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.127661271996
0x9e4e8aa981ee0a2e79d322428c532662ea9b8ab4b7cbc66db77b0cc40ae39b96Deposit195869772021-10-20 12:11:093 days 11 hrs ago0xd0d211f28f0116161abe9334476dc3fa32115fe6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.127778476572
0x5a6efb8ae1057491ebf41db9b80b8a87c70fd6d5d8e4888502846a82476d53fbDeposit195760712021-10-20 9:10:043 days 14 hrs ago0x178d54c91d71536020b3082e2f89d1c86fd084f6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.096581368053
0x1bdc7b1a467eb782504047eddf965e387a84d702c1e462b59960b620e2b08044Deposit195718312021-10-20 8:06:323 days 15 hrs ago0x68bc0327fc91e859da05eb6ba6e7a48dec566796 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.098717291942
0xa92f995e3a01c432f6f6ff516272f1f3fa697cc05d94338d07a3cb548569f4faDeposit195686242021-10-20 7:10:443 days 16 hrs ago0xab4f08d36cdbf8c8bb27444386097195ca78124b IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.0664549
0xd9e35c752cd95d8fa0e4e30cff0c59bcd11e91c5b786e69efe1f6173e18e1dc7Deposit195529012021-10-20 2:33:313 days 20 hrs ago0x178d54c91d71536020b3082e2f89d1c86fd084f6 IN  0xa0122e6c00151e42e6c8fc8568cc38ffcc1ac8950 FTM0.107707429357
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x8d5775b3808b086f7b964a8002f3c84ddb3a4b55a34d67b82cf842a229a23190189205392021-10-12 14:43:1411 days 8 hrs ago 0x6da0c30aa4ad95a483cdbe41cbecd9a6efa2b16e  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at FtmScan.com on 2021-10-12
*/

pragma solidity 0.7.6;
// https://github.com/CementDAO/Fixidity/blob/master/contracts/FixidityLib.sol
library FixidityLib {
    /**
     * @notice Number of positions that the comma is shifted to the right.
     */
    function digits() internal pure returns(uint8) {
        return 24;
    }
    
    /**
     * @notice This is 1 in the fixed point units used in this library.
     * @dev Test fixed1() equals 10^digits()
     * Hardcoded to 24 digits.
     */
    function fixed1() internal pure returns(int256) {
        return 1000000000000000000000000;
    }
    /**
     * @notice The amount of decimals lost on each multiplication operand.
     * @dev Test mulPrecision() equals sqrt(fixed1)
     * Hardcoded to 24 digits.
     */
    function mulPrecision() internal pure returns(int256) {
        return 1000000000000;
    }
    /**
     * @notice Maximum value that can be represented in an int256
     * @dev Test maxInt256() equals 2^255 -1
     */
    function maxInt256() internal pure returns(int256) {
        return 57896044618658097711785492504343953926634992332820282019728792003956564819967;
    }
    /**
     * @notice Minimum value that can be represented in an int256
     * @dev Test minInt256 equals (2^255) * (-1)
     */
    function minInt256() internal pure returns(int256) {
        return -57896044618658097711785492504343953926634992332820282019728792003956564819968;
    }
    /**
     * @notice Maximum value that can be converted to fixed point. Optimize for
     * @dev deployment. 
     * Test maxNewFixed() equals maxInt256() / fixed1()
     * Hardcoded to 24 digits.
     */
    function maxNewFixed() internal pure returns(int256) {
        return 57896044618658097711785492504343953926634992332820282;
    }
    /**
     * @notice Maximum value that can be converted to fixed point. Optimize for
     * deployment. 
     * @dev Test minNewFixed() equals -(maxInt256()) / fixed1()
     * Hardcoded to 24 digits.
     */
    function minNewFixed() internal pure returns(int256) {
        return -57896044618658097711785492504343953926634992332820282;
    }
    /**
     * @notice Maximum value that can be safely used as an addition operator.
     * @dev Test maxFixedAdd() equals maxInt256()-1 / 2
     * Test add(maxFixedAdd(),maxFixedAdd()) equals maxFixedAdd() + maxFixedAdd()
     * Test add(maxFixedAdd()+1,maxFixedAdd()) throws 
     * Test add(-maxFixedAdd(),-maxFixedAdd()) equals -maxFixedAdd() - maxFixedAdd()
     * Test add(-maxFixedAdd(),-maxFixedAdd()-1) throws 
     */
    function maxFixedAdd() internal pure returns(int256) {
        return 28948022309329048855892746252171976963317496166410141009864396001978282409983;
    }
    /**
     * @notice Maximum negative value that can be safely in a subtraction.
     * @dev Test maxFixedSub() equals minInt256() / 2
     */
    function maxFixedSub() internal pure returns(int256) {
        return -28948022309329048855892746252171976963317496166410141009864396001978282409984;
    }
    /**
     * @notice Maximum value that can be safely used as a multiplication operator.
     * @dev Calculated as sqrt(maxInt256()*fixed1()). 
     * Be careful with your sqrt() implementation. I couldn't find a calculator
     * that would give the exact square root of maxInt256*fixed1 so this number
     * is below the real number by no more than 3*10**28. It is safe to use as
     * a limit for your multiplications, although powers of two of numbers over
     * this value might still work.
     * Test multiply(maxFixedMul(),maxFixedMul()) equals maxFixedMul() * maxFixedMul()
     * Test multiply(maxFixedMul(),maxFixedMul()+1) throws 
     * Test multiply(-maxFixedMul(),maxFixedMul()) equals -maxFixedMul() * maxFixedMul()
     * Test multiply(-maxFixedMul(),maxFixedMul()+1) throws 
     * Hardcoded to 24 digits.
     */
    function maxFixedMul() internal pure returns(int256) {
        return 240615969168004498257251713877715648331380787511296;
    }
    /**
     * @notice Maximum value that can be safely used as a dividend.
     * @dev divide(maxFixedDiv,newFixedFraction(1,fixed1())) = maxInt256().
     * Test maxFixedDiv() equals maxInt256()/fixed1()
     * Test divide(maxFixedDiv(),multiply(mulPrecision(),mulPrecision())) = maxFixedDiv()*(10^digits())
     * Test divide(maxFixedDiv()+1,multiply(mulPrecision(),mulPrecision())) throws
     * Hardcoded to 24 digits.
     */
    function maxFixedDiv() internal pure returns(int256) {
        return 57896044618658097711785492504343953926634992332820282;
    }
    /**
     * @notice Maximum value that can be safely used as a divisor.
     * @dev Test maxFixedDivisor() equals fixed1()*fixed1() - Or 10**(digits()*2)
     * Test divide(10**(digits()*2 + 1),10**(digits()*2)) = returns 10*fixed1()
     * Test divide(10**(digits()*2 + 1),10**(digits()*2 + 1)) = throws
     * Hardcoded to 24 digits.
     */
    function maxFixedDivisor() internal pure returns(int256) {
        return 1000000000000000000000000000000000000000000000000;
    }
    /**
     * @notice Converts an int256 to fixed point units, equivalent to multiplying
     * by 10^digits().
     * @dev Test newFixed(0) returns 0
     * Test newFixed(1) returns fixed1()
     * Test newFixed(maxNewFixed()) returns maxNewFixed() * fixed1()
     * Test newFixed(maxNewFixed()+1) fails
     */
    function newFixed(int256 x)
        internal
        pure
        returns (int256)
    {
        assert(x <= maxNewFixed());
        assert(x >= minNewFixed());
        return x * fixed1();
    }
    /**
     * @notice Converts an int256 in the fixed point representation of this 
     * library to a non decimal. All decimal digits will be truncated.
     */
    function fromFixed(int256 x)
        internal
        pure
        returns (int256)
    {
        return x / fixed1();
    }
    /**
     * @notice Converts an int256 which is already in some fixed point 
     * representation to a different fixed precision representation.
     * Both the origin and destination precisions must be 38 or less digits.
     * Origin values with a precision higher than the destination precision
     * will be truncated accordingly.
     * @dev 
     * Test convertFixed(1,0,0) returns 1;
     * Test convertFixed(1,1,1) returns 1;
     * Test convertFixed(1,1,0) returns 0;
     * Test convertFixed(1,0,1) returns 10;
     * Test convertFixed(10,1,0) returns 1;
     * Test convertFixed(10,0,1) returns 100;
     * Test convertFixed(100,1,0) returns 10;
     * Test convertFixed(100,0,1) returns 1000;
     * Test convertFixed(1000,2,0) returns 10;
     * Test convertFixed(1000,0,2) returns 100000;
     * Test convertFixed(1000,2,1) returns 100;
     * Test convertFixed(1000,1,2) returns 10000;
     * Test convertFixed(maxInt256,1,0) returns maxInt256/10;
     * Test convertFixed(maxInt256,0,1) throws
     * Test convertFixed(maxInt256,38,0) returns maxInt256/(10**38);
     * Test convertFixed(1,0,38) returns 10**38;
     * Test convertFixed(maxInt256,39,0) throws
     * Test convertFixed(1,0,39) throws
     */
    function convertFixed(int256 x, uint8 _originDigits, uint8 _destinationDigits)
        internal
        pure
        returns (int256)
    {
        assert(_originDigits <= 38 && _destinationDigits <= 38);
        
        uint8 decimalDifference;
        if ( _originDigits > _destinationDigits ){
            decimalDifference = _originDigits - _destinationDigits;
            return x/(uint128(10)**uint128(decimalDifference));
        }
        else if ( _originDigits < _destinationDigits ){
            decimalDifference = _destinationDigits - _originDigits;
            // Cast uint8 -> uint128 is safe
            // Exponentiation is safe:
            //     _originDigits and _destinationDigits limited to 38 or less
            //     decimalDifference = abs(_destinationDigits - _originDigits)
            //     decimalDifference < 38
            //     10**38 < 2**128-1
            assert(x <= maxInt256()/uint128(10)**uint128(decimalDifference));
            assert(x >= minInt256()/uint128(10)**uint128(decimalDifference));
            return x*(uint128(10)**uint128(decimalDifference));
        }
        // _originDigits == digits()) 
        return x;
    }
    /**
     * @notice Converts an int256 which is already in some fixed point 
     * representation to that of this library. The _originDigits parameter is the
     * precision of x. Values with a precision higher than FixidityLib.digits()
     * will be truncated accordingly.
     */
    function newFixed(int256 x, uint8 _originDigits)
        internal
        pure
        returns (int256)
    {
        return convertFixed(x, _originDigits, digits());
    }
    /**
     * @notice Converts an int256 in the fixed point representation of this 
     * library to a different representation. The _destinationDigits parameter is the
     * precision of the output x. Values with a precision below than 
     * FixidityLib.digits() will be truncated accordingly.
     */
    function fromFixed(int256 x, uint8 _destinationDigits)
        public
        pure
        returns (int256)
    {
        return convertFixed(x, digits(), _destinationDigits);
    }
    /**
     * @notice Converts two int256 representing a fraction to fixed point units,
     * equivalent to multiplying dividend and divisor by 10^digits().
     * @dev 
     * Test newFixedFraction(maxFixedDiv()+1,1) fails
     * Test newFixedFraction(1,maxFixedDiv()+1) fails
     * Test newFixedFraction(1,0) fails     
     * Test newFixedFraction(0,1) returns 0
     * Test newFixedFraction(1,1) returns fixed1()
     * Test newFixedFraction(maxFixedDiv(),1) returns maxFixedDiv()*fixed1()
     * Test newFixedFraction(1,fixed1()) returns 1
     * Test newFixedFraction(1,fixed1()-1) returns 0
     */
    function newFixedFraction(
        int256 numerator, 
        int256 denominator
        )
        internal
        pure
        returns (int256)
    {
        assert(numerator <= maxNewFixed());
        assert(denominator <= maxNewFixed());
        assert(denominator != 0);
        int256 convertedNumerator = newFixed(numerator);
        int256 convertedDenominator = newFixed(denominator);
        return divide(convertedNumerator, convertedDenominator);
    }
    /**
     * @notice Returns the integer part of a fixed point number.
     * @dev 
     * Test integer(0) returns 0
     * Test integer(fixed1()) returns fixed1()
     * Test integer(newFixed(maxNewFixed())) returns maxNewFixed()*fixed1()
     * Test integer(-fixed1()) returns -fixed1()
     * Test integer(newFixed(-maxNewFixed())) returns -maxNewFixed()*fixed1()
     */
    function integer(int256 x) internal pure returns (int256) {
        return (x / fixed1()) * fixed1(); // Can't overflow
    }
    /**
     * @notice Returns the fractional part of a fixed point number. 
     * In the case of a negative number the fractional is also negative.
     * @dev 
     * Test fractional(0) returns 0
     * Test fractional(fixed1()) returns 0
     * Test fractional(fixed1()-1) returns 10^24-1
     * Test fractional(-fixed1()) returns 0
     * Test fractional(-fixed1()+1) returns -10^24-1
     */
    function fractional(int256 x) internal pure returns (int256) {
        return x - (x / fixed1()) * fixed1(); // Can't overflow
    }
    /**
     * @notice Converts to positive if negative.
     * Due to int256 having one more negative number than positive numbers 
     * abs(minInt256) reverts.
     * @dev 
     * Test abs(0) returns 0
     * Test abs(fixed1()) returns -fixed1()
     * Test abs(-fixed1()) returns fixed1()
     * Test abs(newFixed(maxNewFixed())) returns maxNewFixed()*fixed1()
     * Test abs(newFixed(minNewFixed())) returns -minNewFixed()*fixed1()
     */
    function abs(int256 x) internal pure returns (int256) {
        if (x >= 0) {
            return x;
        } else {
            int256 result = -x;
            assert (result > 0);
            return result;
        }
    }
    /**
     * @notice x+y. If any operator is higher than maxFixedAdd() it 
     * might overflow.
     * In solidity maxInt256 + 1 = minInt256 and viceversa.
     * @dev 
     * Test add(maxFixedAdd(),maxFixedAdd()) returns maxInt256()-1
     * Test add(maxFixedAdd()+1,maxFixedAdd()+1) fails
     * Test add(-maxFixedSub(),-maxFixedSub()) returns minInt256()
     * Test add(-maxFixedSub()-1,-maxFixedSub()-1) fails
     * Test add(maxInt256(),maxInt256()) fails
     * Test add(minInt256(),minInt256()) fails
     */
    function add(int256 x, int256 y) internal pure returns (int256) {
        int256 z = x + y;
        if (x > 0 && y > 0) assert(z > x && z > y);
        if (x < 0 && y < 0) assert(z < x && z < y);
        return z;
    }
    /**
     * @notice x-y. You can use add(x,-y) instead. 
     * @dev Tests covered by add(x,y)
     */
    function subtract(int256 x, int256 y) internal pure returns (int256) {
        return add(x,-y);
    }
    /**
     * @notice x*y. If any of the operators is higher than maxFixedMul() it 
     * might overflow.
     * @dev 
     * Test multiply(0,0) returns 0
     * Test multiply(maxFixedMul(),0) returns 0
     * Test multiply(0,maxFixedMul()) returns 0
     * Test multiply(maxFixedMul(),fixed1()) returns maxFixedMul()
     * Test multiply(fixed1(),maxFixedMul()) returns maxFixedMul()
     * Test all combinations of (2,-2), (2, 2.5), (2, -2.5) and (0.5, -0.5)
     * Test multiply(fixed1()/mulPrecision(),fixed1()*mulPrecision())
     * Test multiply(maxFixedMul()-1,maxFixedMul()) equals multiply(maxFixedMul(),maxFixedMul()-1)
     * Test multiply(maxFixedMul(),maxFixedMul()) returns maxInt256() // Probably not to the last digits
     * Test multiply(maxFixedMul()+1,maxFixedMul()) fails
     * Test multiply(maxFixedMul(),maxFixedMul()+1) fails
     */
    function multiply(int256 x, int256 y) internal pure returns (int256) {
        if (x == 0 || y == 0) return 0;
        if (y == fixed1()) return x;
        if (x == fixed1()) return y;
        // Separate into integer and fractional parts
        // x = x1 + x2, y = y1 + y2
        int256 x1 = integer(x) / fixed1();
        int256 x2 = fractional(x);
        int256 y1 = integer(y) / fixed1();
        int256 y2 = fractional(y);
        
        // (x1 + x2) * (y1 + y2) = (x1 * y1) + (x1 * y2) + (x2 * y1) + (x2 * y2)
        int256 x1y1 = x1 * y1;
        if (x1 != 0) assert(x1y1 / x1 == y1); // Overflow x1y1
        
        // x1y1 needs to be multiplied back by fixed1
        // solium-disable-next-line mixedcase
        int256 fixed_x1y1 = x1y1 * fixed1();
        if (x1y1 != 0) assert(fixed_x1y1 / x1y1 == fixed1()); // Overflow x1y1 * fixed1
        x1y1 = fixed_x1y1;
        int256 x2y1 = x2 * y1;
        if (x2 != 0) assert(x2y1 / x2 == y1); // Overflow x2y1
        int256 x1y2 = x1 * y2;
        if (x1 != 0) assert(x1y2 / x1 == y2); // Overflow x1y2
        x2 = x2 / mulPrecision();
        y2 = y2 / mulPrecision();
        int256 x2y2 = x2 * y2;
        if (x2 != 0) assert(x2y2 / x2 == y2); // Overflow x2y2
        // result = fixed1() * x1 * y1 + x1 * y2 + x2 * y1 + x2 * y2 / fixed1();
        int256 result = x1y1;
        result = add(result, x2y1); // Add checks for overflow
        result = add(result, x1y2); // Add checks for overflow
        result = add(result, x2y2); // Add checks for overflow
        return result;
    }
    
    /**
     * @notice 1/x
     * @dev 
     * Test reciprocal(0) fails
     * Test reciprocal(fixed1()) returns fixed1()
     * Test reciprocal(fixed1()*fixed1()) returns 1 // Testing how the fractional is truncated
     * Test reciprocal(2*fixed1()*fixed1()) returns 0 // Testing how the fractional is truncated
     */
    function reciprocal(int256 x) internal pure returns (int256) {
        assert(x != 0);
        return (fixed1()*fixed1()) / x; // Can't overflow
    }
    /**
     * @notice x/y. If the dividend is higher than maxFixedDiv() it 
     * might overflow. You can use multiply(x,reciprocal(y)) instead.
     * There is a loss of precision on division for the lower mulPrecision() decimals.
     * @dev 
     * Test divide(fixed1(),0) fails
     * Test divide(maxFixedDiv(),1) = maxFixedDiv()*(10^digits())
     * Test divide(maxFixedDiv()+1,1) throws
     * Test divide(maxFixedDiv(),maxFixedDiv()) returns fixed1()
     */
    function divide(int256 x, int256 y) internal pure returns (int256) {
        if (y == fixed1()) return x;
        assert(y != 0);
        assert(y <= maxFixedDivisor());
        return multiply(x, reciprocal(y));
    }
}
// File: @openzeppelin/contracts/math/SafeMath.sol
/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }
    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }
    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }
    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }
    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }
    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }
    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }
    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }
    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }
    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }
    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }
    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity 0.7.6;
/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);
    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);
    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);
    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);
    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);
    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);
    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}
// File: @openzeppelin/contracts/utils/Address.sol
pragma solidity 0.7.6;
/**
 * @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: @openzeppelin/contracts/token/ERC20/SafeERC20.sol
pragma solidity 0.7.6;
/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }
    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }
    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.
        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity 0.7.6;
/*
 * @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 payable(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: @openzeppelin/contracts/access/Ownable.sol
pragma solidity 0.7.6;
/**
 * @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 () {
        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: @openzeppelin/contracts/utils/ReentrancyGuard.sol
pragma solidity 0.7.6;
/**
 * @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 () {
        _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: @openzeppelin/contracts/token/ERC20/ERC20.sol
pragma solidity 0.7.6;
/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;
    mapping (address => uint256) private _balances;
    mapping (address => mapping (address => uint256)) private _allowances;
    uint256 private _totalSupply;
    string private _name;
    string private _symbol;
    uint8 private _decimals;
    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }
    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }
    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }
    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }
    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }
    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }
    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }
    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }
    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }
    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }
    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }
    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }
    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        _beforeTokenTransfer(sender, recipient, amount);
        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }
    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");
        _beforeTokenTransfer(address(0), account, amount);
        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }
    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");
        _beforeTokenTransfer(account, address(0), amount);
        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }
    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }
    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }
    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}
// File: contracts/Neptune.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
contract Neptune is ERC20("Neptune", "NPT"), Ownable {
    
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
    }
    function burn(uint256 _amount) public {
        _burn(msg.sender, _amount);
    }
}
// file:contact/IFeeDynamic
pragma solidity 0.7.6;
interface IFeeDynamic {
  function getExactFarmDepositFeeBPForSpnHolder(uint16 _defaultFeeBP, address _holder) external view returns (uint depositFeeRate);
 
}
// file:contract/IHarvestDynamic
pragma solidity 0.7.6;
interface IHarvestDynamic {
    function getExactFarmMaxHarvestBpForSpnHolder(uint256 _defaultMaxharvestBp ,address _holder) external view returns (uint harvestRate);
}

pragma solidity 0.7.6;
interface IHarvestTimerDynamic {
    function getExactFarmHarvestIntervalBpForSpnHolder(uint256 _defaultHarvestIntervalBp ,address _holder) external view returns(uint harvestIntervalRate);
}

// File: contracts/MasterChef.sol
pragma solidity 0.7.6;
// MasterChef is the master of Neptune. He can make NPT 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 npt 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 SafeERC20 for IERC20;
    using FixidityLib for int256;
    // 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.
    
        //
        // We do some fancy math here. Basically, any point in time, the amount of npt
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accNptPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accNptPerShare` (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 {
        IERC20 lpToken;           // Address of LP token contract.
        uint256 allocPoint;       // How many allocation points assigned to this pool. NPT to distribute per block.
        uint256 lastRewardBlock;  // Last block number that NPT distribution occurs.
        uint256 accNptPerShare;   // Accumulated NPT per share, times 1e12. See below.
        uint16 depositFeeBP;      // Deposit fee in basis points
        uint256 harvestIntervalBp;  // Harvest interval in seconds	
        uint256 maxHarvestBp;// Harvest allowed in %
        
    }
    
    // The Neptune TOKEN!
    Neptune public neptune;
    
    // Addresses to link to price.
    IERC20 public busd;
    address public busdNptLP = address(0x0); 
    
    // Burn address.
    address public burnaddr;
    // NPT tokens created per block.
    uint256 public nptPerBlock = 100000000000000000;
    // Maximum emission rate
    uint256 public maxEmissionRate = 100000000000000000;
    // Bonus muliplier for early npt makers.
    uint256 public constant BONUS_MULTIPLIER = 1;
    // Deposit Fee address
    address public feeAddress;
    // Max harvest interval: 1 days.	
    uint256 public constant MAXIMUM_HARVEST_INTERVAL = 1 days;	
    // Max harvest % : 100% 	
    uint256 public constant MAXIMUM_HARVEST_BP = 10000;	
    // Min harvest % : 5%
    uint256 public constant MINIMUM_HARVEST_BP = 1000;
    // Total locked up rewards	
    uint256 public totalLockedUpRewards;
    // 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 npt mining starts.
    uint256 public startBlock;
    // Dyna fee duduction strategy address.
    IFeeDynamic public feeDynamic;
   
    //Dyna harvest stategy address.
    IHarvestDynamic public harvestDynamic;
   
    IHarvestTimerDynamic public harvestTimerDynamic;
  
    uint public topPrice  = 15; // 15$
    uint public bottomPrice = 1; // 0$
    uint public curveRate = 5;
    uint public lastBlockUpdate = 0;
    uint public emissionUpdateInterval = 400; 
    
    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 SetFeeAddress(address indexed user, address indexed newAddress);
    event UpdateEmissionRate(address indexed user, uint256 goosePerBlock);
    event RewardLockedUp(address indexed user, uint256 indexed pid, uint256 amountLockedUp);
    
    constructor(
         Neptune _npt,
        address _burnaddr,
        address _feeAddress,
        uint256 _nptPerBlock,
        uint256 _startBlock,
        address _feeDynamic,
        address _harvestDynamic,
        address _harvestTimerDynamic
    ) {
        neptune = _npt;
        burnaddr = _burnaddr;
        feeAddress = _feeAddress;
        nptPerBlock = _nptPerBlock;
        startBlock = _startBlock;
        feeDynamic = IFeeDynamic(_feeDynamic);
        harvestDynamic = IHarvestDynamic(_harvestDynamic);
        harvestTimerDynamic = IHarvestTimerDynamic(_harvestTimerDynamic);
    }
    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }
    mapping(IERC20 => bool) public poolExistence;
    modifier nonDuplicated(IERC20 _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, IERC20 _lpToken, uint16 _depositFeeBP,uint256 _harvestIntervalBp,	
        uint256 _maxHarvestBp, bool _withUpdate) public onlyOwner nonDuplicated(_lpToken) {
        require(_depositFeeBP <= 400, "add: NO more than 4% fees!");
        require(_harvestIntervalBp <= MAXIMUM_HARVEST_INTERVAL, "add: invalid harvest interval");	
        require(_maxHarvestBp <= MAXIMUM_HARVEST_BP, "set: invalid harvest percent");
        require(_maxHarvestBp >= MINIMUM_HARVEST_BP, "set: invalid harvest percent");
        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,
        accNptPerShare : 0,
        depositFeeBP : _depositFeeBP,
        harvestIntervalBp: _harvestIntervalBp,	
        maxHarvestBp:_maxHarvestBp
            
        }));
    }
    // Update the given pool's npt allocation point and deposit fee. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP,uint256 _harvestIntervalBp,	
        uint256 _maxHarvestBp,	bool _withUpdate) public onlyOwner {
        require(_depositFeeBP <= 400, "set: NO more than 4% fees.");
        require(_harvestIntervalBp <= MAXIMUM_HARVEST_INTERVAL, "add: invalid harvest interval");	
        require(_maxHarvestBp <= MAXIMUM_HARVEST_BP, "set: invalid harvest percent");	
        require(_maxHarvestBp >= MINIMUM_HARVEST_BP, "set: invalid harvest percent");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
        poolInfo[_pid].harvestIntervalBp = _harvestIntervalBp;	
        poolInfo[_pid].maxHarvestBp = _maxHarvestBp;
            
        }
    // 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 npt on frontend.
    function pendingNpt(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accNptPerShare = pool.accNptPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 nptReward = multiplier.mul(nptPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accNptPerShare = accNptPerShare.add(nptReward.mul(1e12).div(lpSupply));
        }
        uint256 pending =  user.amount.mul(accNptPerShare).div(1e12).sub(user.rewardDebt);
       
        return pending.add(user.rewardLockedUp);
    }
    // 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);
        }
    }
    // View function to see if user can harvest npt.	
    function canHarvest(uint256 _pid, address _user) public view returns (bool) {	
        UserInfo storage user = userInfo[_pid][_user];	
        return block.timestamp >= user.nextHarvestUntil;	
    }	
    // View function to see if user harvest until time.	
    function getHarvestUntil(uint256 _pid, address _user) public view returns (uint256) {	
        UserInfo storage user = userInfo[_pid][_user];	
        return user.nextHarvestUntil;	
    }
    // 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 nptReward = multiplier.mul(nptPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
       
        neptune.mint(burnaddr, nptReward.div(10));
        neptune.mint (address(this),nptReward);
        pool.accNptPerShare = pool.accNptPerShare.add(nptReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }
    // Deposit LP tokens to MasterChef for npt allocation.
    function deposit(uint256 _pid, uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
       payOrLockupPendingNpt(_pid);
        if (_amount > 0) {
            uint256 previousAmount = pool.lpToken.balanceOf(address(this));
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
             uint256 afterAmount =  pool.lpToken.balanceOf(address(this));	
            _amount = afterAmount.sub(previousAmount);
            if (pool.depositFeeBP > 0) {
                uint256 depositFeeRate = feeDynamic.getExactFarmDepositFeeBPForSpnHolder(pool.depositFeeBP, msg.sender);
                uint256 depositFee = _amount.mul(depositFeeRate).div(10000);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        
             //user.nextHarvestUntil = block.timestamp.add(pool.harvestIntervalBp);
        }
        user.rewardDebt = user.amount.mul(pool.accNptPerShare).div(1e12);
        updateEmissionIfNeeded();
        emit Deposit(msg.sender, _pid, _amount);
    }
    
    // Pay or lockup pending npt.	
    function payOrLockupPendingNpt(uint256 _pid) internal {	
        PoolInfo storage pool = poolInfo[_pid];	
        UserInfo storage user = userInfo[_pid][msg.sender];	
       
        if (user.nextHarvestUntil == 0) {	
            uint256 harvestIntervalRate = harvestTimerDynamic.getExactFarmHarvestIntervalBpForSpnHolder(pool.harvestIntervalBp, msg.sender);
            uint256 timerCut = harvestIntervalRate;
            user.nextHarvestUntil = block.timestamp.add(timerCut);	
        }
         uint256 pending = user.amount.mul(pool.accNptPerShare).div(1e12).sub(user.rewardDebt);	
        if (canHarvest(_pid, msg.sender)) {	
            if (pending > 0 || user.rewardLockedUp > 0) {	
                uint256 totalRewards = pending.add(user.rewardLockedUp);	
                uint256 harvestRate = harvestDynamic.getExactFarmMaxHarvestBpForSpnHolder(pool.maxHarvestBp, msg.sender);
                uint256 rewardCut = totalRewards.mul(harvestRate).div(10000);	
         uint256 harvestIntervalRate = harvestTimerDynamic.getExactFarmHarvestIntervalBpForSpnHolder(pool.harvestIntervalBp, msg.sender);
           uint256 timerCut = harvestIntervalRate;       
                // reset lockup	
                user.rewardLockedUp = totalRewards.sub(rewardCut);	
                user.nextHarvestUntil = block.timestamp.add(timerCut);	
                // send rewards	
                safeNptTransfer(msg.sender, rewardCut);	
            }	
        } else if (pending > 0) {	
            user.rewardLockedUp = user.rewardLockedUp.add(pending);	
            emit RewardLockedUp(msg.sender, _pid, pending);	
        }	
    }
    // 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);
        payOrLockupPendingNpt(_pid);
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accNptPerShare).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;
        pool.lpToken.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }
    // Safe npt transfer function, just in case if rounding error causes pool to not have enough npt.
    function safeNptTransfer(address _to, uint256 _amount) internal {
        uint256 nptBal = neptune.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > nptBal) {
            transferSuccess = neptune.transfer(_to, nptBal);
        } else {
            transferSuccess = neptune.transfer(_to, _amount);
        }
        require(transferSuccess, "safeNptTransfer: transfer failed");
    }
    function setFeeAddress(address _feeAddress) public onlyOwner {
        feeAddress = _feeAddress;
        emit SetFeeAddress(msg.sender, _feeAddress);
    }
   function updateEmissionIfNeeded() public {
        if (busdNptLP==address(0x0)){
            return; 
        }
    
        uint priceCents = bottomPrice * 100;
        if (block.number - lastBlockUpdate > emissionUpdateInterval) {
            lastBlockUpdate = block.number;
        
            uint nptBalance = neptune.balanceOf(busdNptLP);
          
            if (nptBalance > 0) {
           
                priceCents = busd.balanceOf(busdNptLP).mul(1e14).div(nptBalance);
            }
            // Update pools before changing the emission rate
            massUpdatePools();
            uint256 emissionRatePercent = getEmissionRatePercent(priceCents);
            nptPerBlock = maxEmissionRate.div(100).mul(emissionRatePercent);
        }
    }
    // for front end
    function getNptPriceCents() public view returns (uint256 spc){
         uint nptBalance = neptune.balanceOf(busdNptLP);
          if (nptBalance > 0) {
            uint256 priceCents = busd.balanceOf(busdNptLP).mul(1e14).div(nptBalance);
            return priceCents;
          }
          return 0;
    }
    function getEmissionRatePercent(uint256 nptPriceCents) public view returns (uint256 epr) {
        
       if (nptPriceCents>=topPrice*100){return (1);}
       if (nptPriceCents<=bottomPrice*100){return (100);}
       uint256 nptPricePercentOfTop = nptPriceCents.mul(100).div(topPrice*100);
       int256 curveCoefficient = FixidityLib.reciprocal(int256(curveRate));
       uint256 f1 = uint256(100).sub(nptPricePercentOfTop);
       int256 p1 = FixidityLib.fromFixed(FixidityLib.multiply(curveCoefficient,int256(f1)));
       int256 p2 = FixidityLib.fromFixed(FixidityLib.divide(100,int256(nptPricePercentOfTop)));
       
        return uint256(p1+p2);
    }
    function updateEmissionParameters(uint _topPrice, uint _bottomPrice, uint _emissionUpdateInterval, uint _curveRate) public onlyOwner {
        topPrice = _topPrice;
        bottomPrice = _bottomPrice;
        emissionUpdateInterval = _emissionUpdateInterval;
        curveRate = _curveRate;
    }
    //Update emission rate
    function updateEmissionRate(uint256 _nptPerBlock) public onlyOwner {
        massUpdatePools();
        nptPerBlock = _nptPerBlock;
        emit UpdateEmissionRate(msg.sender, _nptPerBlock);
    }
    //Only update before start of farm
    function updateStartBlock(uint256 _startBlock) public onlyOwner {
        startBlock = _startBlock;
    }
   
    // For checking prices to link emission rate
    function setBUSDAddress(address _address) public onlyOwner {
        require (_address!=address(0));
        busd = IERC20(_address);
    }
    // For checking prices to link emission rate
    function setBusdNptLPAddress(address _address) public onlyOwner {
        busdNptLP = _address;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract Neptune","name":"_npt","type":"address"},{"internalType":"address","name":"_burnaddr","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint256","name":"_nptPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"address","name":"_feeDynamic","type":"address"},{"internalType":"address","name":"_harvestDynamic","type":"address"},{"internalType":"address","name":"_harvestTimerDynamic","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountLockedUp","type":"uint256"}],"name":"RewardLockedUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetFeeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"goosePerBlock","type":"uint256"}],"name":"UpdateEmissionRate","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":"MAXIMUM_HARVEST_BP","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":"MINIMUM_HARVEST_BP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"_harvestIntervalBp","type":"uint256"},{"internalType":"uint256","name":"_maxHarvestBp","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bottomPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"busd","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"busdNptLP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"curveRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emissionUpdateInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDynamic","outputs":[{"internalType":"contract IFeeDynamic","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nptPriceCents","type":"uint256"}],"name":"getEmissionRatePercent","outputs":[{"internalType":"uint256","name":"epr","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"getHarvestUntil","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"getNptPriceCents","outputs":[{"internalType":"uint256","name":"spc","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestDynamic","outputs":[{"internalType":"contract IHarvestDynamic","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestTimerDynamic","outputs":[{"internalType":"contract IHarvestTimerDynamic","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastBlockUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxEmissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"neptune","outputs":[{"internalType":"contract Neptune","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nptPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingNpt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","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 IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accNptPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"harvestIntervalBp","type":"uint256"},{"internalType":"uint256","name":"maxHarvestBp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"_harvestIntervalBp","type":"uint256"},{"internalType":"uint256","name":"_maxHarvestBp","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setBUSDAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setBusdNptLPAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"topPrice","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":[],"name":"updateEmissionIfNeeded","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_topPrice","type":"uint256"},{"internalType":"uint256","name":"_bottomPrice","type":"uint256"},{"internalType":"uint256","name":"_emissionUpdateInterval","type":"uint256"},{"internalType":"uint256","name":"_curveRate","type":"uint256"}],"name":"updateEmissionParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nptPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"name":"updateStartBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"rewardLockedUp","type":"uint256"},{"internalType":"uint256","name":"nextHarvestUntil","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555067016345785d8a000060065567016345785d8a00006007556000600c55600f6011556001601255600560135560006014556101906015553480156200008a57600080fd5b5060405162004e6638038062004e668339818101604052610100811015620000b157600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919050505060006200011a6200036160201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001808190555087600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508460068190555083600d8190555082600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505062000369565b600033905090565b614aed80620003796000396000f3fe608060405234801561001057600080fd5b50600436106102bb5760003560e01c806368df3f8411610182578063cbd258b5116100e9578063d3ac55e6116100a2578063eace12b61161007c578063eace12b614610c2b578063f2fde38b14610c5f578063f9163e7514610ca3578063fac2b9ba14610cd7576102bb565b8063d3ac55e614610b73578063de73149d14610bd5578063e2bbb15814610bf3576102bb565b8063cbd258b5146109f7578063cc19773214610a51578063ce9bf3f514610ab7578063cf14a07d14610aeb578063d0240e8e14610b09578063d0e887d414610b55576102bb565b80638da5cb5b1161013b5780638da5cb5b1461086a5780638dbb1e3a1461089e5780638e46f4ad146108ea57806393f1a40b1461091e5780639a6a8d8514610995578063bbfa2795146109b3576102bb565b806368df3f84146107745780636e7686ef1461077e5780636ec5ab121461079c578063715018a6146107fe5780638705fcd4146108085780638aa285501461084c576102bb565b80633ca5b234116102265780635312ea8e116101df5780635312ea8e1461069e578063575014fa146106cc5780635ae7b2b7146106ea578063630b5ba1146107085780636454fa5314610712578063687eaa5714610730576102bb565b80633ca5b2341461059457806341275358146105c8578063441a3e70146105fc578063474fa6301461063457806348cd4cb11461065257806351eb05a614610670576102bb565b80631526fe27116102785780631526fe271461039a57806317caf6f1146104205780631ba641071461043e5780632cd373d0146104805780632e6c998d146104b4578063330ae00314610518576102bb565b8063029206c3146102c0578063081e3eda146102f4578063082ed05c146103125780630ba84cd2146103305780631287b1fc1461035e578063142fc5821461037c575b600080fd5b6102c8610d05565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102fc610d2b565b6040518082815260200191505060405180910390f35b61031a610d38565b6040518082815260200191505060405180910390f35b61035c6004803603602081101561034657600080fd5b8101908080359060200190929190505050610d3e565b005b610366610e4d565b6040518082815260200191505060405180910390f35b610384611068565b6040518082815260200191505060405180910390f35b6103c6600480360360208110156103b057600080fd5b810190808035906020019092919050505061106e565b604051808873ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018681526020018581526020018461ffff16815260200183815260200182815260200197505050505050505060405180910390f35b6104286110ee565b6040518082815260200191505060405180910390f35b61046a6004803603602081101561045457600080fd5b81019080803590602001909291905050506110f4565b6040518082815260200191505060405180910390f35b6104886111b3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610500600480360360408110156104ca57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111d9565b60405180821515815260200191505060405180910390f35b610592600480360360c081101561052e57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803561ffff169060200190929190803590602001909291908035906020019092919080351515906020019092919050505061123f565b005b61059c611754565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105d061177a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6106326004803603604081101561061257600080fd5b8101908080359060200190929190803590602001909291905050506117a0565b005b61063c611a2e565b6040518082815260200191505060405180910390f35b61065a611a34565b6040518082815260200191505060405180910390f35b61069c6004803603602081101561068657600080fd5b8101908080359060200190929190505050611a3a565b005b6106ca600480360360208110156106b457600080fd5b8101908080359060200190929190505050611d95565b005b6106d4611f65565b6040518082815260200191505060405180910390f35b6106f2611f6b565b6040518082815260200191505060405180910390f35b610710611f71565b005b61071a611f9e565b6040518082815260200191505060405180910390f35b6107726004803603602081101561074657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611fa4565b005b61077c612097565b005b610786612362565b6040518082815260200191505060405180910390f35b6107e8600480360360408110156107b257600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612368565b6040518082815260200191505060405180910390f35b6108066123cb565b005b61084a6004803603602081101561081e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612538565b005b610854612685565b6040518082815260200191505060405180910390f35b61087261268a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108d4600480360360408110156108b457600080fd5b8101908080359060200190929190803590602001909291905050506126b3565b6040518082815260200191505060405180910390f35b6108f26126e3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61096a6004803603604081101561093457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612709565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b61099d612746565b6040518082815260200191505060405180910390f35b6109f5600480360360208110156109c957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061274c565b005b610a3960048036036020811015610a0d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612879565b60405180821515815260200191505060405180910390f35b610ab5600480360360c0811015610a6757600080fd5b810190808035906020019092919080359060200190929190803561ffff1690602001909291908035906020019092919080359060200190929190803515159060200190929190505050612899565b005b610abf612c31565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610af3612c57565b6040518082815260200191505060405180910390f35b610b5360048036036080811015610b1f57600080fd5b8101908080359060200190929190803590602001909291908035906020019092919080359060200190929190505050612c5d565b005b610b5d612d2e565b6040518082815260200191505060405180910390f35b610bbf60048036036040811015610b8957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612d34565b6040518082815260200191505060405180910390f35b610bdd612f96565b6040518082815260200191505060405180910390f35b610c2960048036036040811015610c0957600080fd5b810190808035906020019092919080359060200190929190505050612f9d565b005b610c33613540565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610ca160048036036020811015610c7557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613566565b005b610cab613758565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610d0360048036036020811015610ced57600080fd5b810190808035906020019092919050505061377e565b005b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600a80549050905090565b60145481565b610d46613837565b73ffffffffffffffffffffffffffffffffffffffff16610d6461268a565b73ffffffffffffffffffffffffffffffffffffffff1614610ded576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b610df5611f71565b806006819055503373ffffffffffffffffffffffffffffffffffffffff167fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c4053826040518082815260200191505060405180910390a250565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610efb57600080fd5b505afa158015610f0f573d6000803e3d6000fd5b505050506040513d6020811015610f2557600080fd5b81019080805190602001909291905050509050600081111561105f57600061105382611045655af3107a4000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610ffc57600080fd5b505afa158015611010573d6000803e3d6000fd5b505050506040513d602081101561102657600080fd5b810190808051906020019092919050505061383f90919063ffffffff16565b6138c590919063ffffffff16565b90508092505050611065565b60009150505b90565b60075481565b600a818154811061107e57600080fd5b90600052602060002090600702016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900461ffff16908060050154908060060154905087565b600c5481565b6000606460115402821061110b57600190506111ae565b606460125402821161112057606490506111ae565b600061114d60646011540261113f60648661383f90919063ffffffff16565b6138c590919063ffffffff16565b9050600061115c60135461394e565b9050600061117483606461397b90919063ffffffff16565b9050600061118a61118584846139fe565b613bbc565b905060006111a161119c606487613bd6565b613bbc565b9050808201955050505050505b919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600b600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806003015442101591505092915050565b611247613837565b73ffffffffffffffffffffffffffffffffffffffff1661126561268a565b73ffffffffffffffffffffffffffffffffffffffff16146112ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8460001515601660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146113b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f6e6f6e4475706c6963617465643a206475706c6963617465640000000000000081525060200191505060405180910390fd5b6101908561ffff161115611431576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f6164643a204e4f206d6f7265207468616e20342520666565732100000000000081525060200191505060405180910390fd5b620151808411156114aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f6164643a20696e76616c6964206861727665737420696e74657276616c00000081525060200191505060405180910390fd5b612710831115611522576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f7365743a20696e76616c696420686172766573742070657263656e740000000081525060200191505060405180910390fd5b6103e883101561159a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f7365743a20696e76616c696420686172766573742070657263656e740000000081525060200191505060405180910390fd5b81156115a9576115a8611f71565b5b6000600d5443116115bc57600d546115be565b435b90506115d588600c54613c2690919063ffffffff16565b600c819055506001601660008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600a6040518060e001604052808973ffffffffffffffffffffffffffffffffffffffff1681526020018a8152602001838152602001600081526020018861ffff16815260200187815260200186815250908060018154018082558091505060019003906000526020600020906007020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548161ffff021916908361ffff16021790555060a0820151816005015560c0820151816006015550505050505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026001541415611819576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600a838154811061183057fe5b906000526020600020906007020190506000600b600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050828160000154101561190e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f77697468647261773a206e6f7420676f6f64000000000000000000000000000081525060200191505060405180910390fd5b61191784611a3a565b61192084613cae565b60008311156119985761194083826000015461397b90919063ffffffff16565b816000018190555061199733848460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166141559092919063ffffffff16565b5b6119ca64e8d4a510006119bc8460030154846000015461383f90919063ffffffff16565b6138c590919063ffffffff16565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568856040518082815260200191505060405180910390a35050600180819055505050565b60095481565b600d5481565b6000600a8281548110611a4957fe5b9060005260206000209060070201905080600201544311611a6a5750611d92565b60008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015611af757600080fd5b505afa158015611b0b573d6000803e3d6000fd5b505050506040513d6020811015611b2157600080fd5b810190808051906020019092919050505090506000811480611b47575060008260010154145b15611b5c574382600201819055505050611d92565b6000611b6c8360020154436126b3565b90506000611baf600c54611ba18660010154611b936006548761383f90919063ffffffff16565b61383f90919063ffffffff16565b6138c590919063ffffffff16565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f19600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611c26600a856138c590919063ffffffff16565b6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015611c7957600080fd5b505af1158015611c8d573d6000803e3d6000fd5b50505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b158015611d2457600080fd5b505af1158015611d38573d6000803e3d6000fd5b50505050611d7c611d6984611d5b64e8d4a510008561383f90919063ffffffff16565b6138c590919063ffffffff16565b8560030154613c2690919063ffffffff16565b8460030181905550438460020181905550505050505b50565b60026001541415611e0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600a8281548110611e2557fe5b906000526020600020906007020190506000600b600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060008260000181905550600082600101819055506000826002018190555060008260030181905550611f0933828560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166141559092919063ffffffff16565b833373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040518082815260200191505060405180910390a35050506001808190555050565b60155481565b60065481565b6000600a80549050905060005b81811015611f9a57611f8f81611a3a565b806001019050611f7e565b5050565b6103e881565b611fac613837565b73ffffffffffffffffffffffffffffffffffffffff16611fca61268a565b73ffffffffffffffffffffffffffffffffffffffff1614612053576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156120f357612360565b600060646012540290506015546014544303111561235e57436014819055506000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156121bf57600080fd5b505afa1580156121d3573d6000803e3d6000fd5b505050506040513d60208110156121e957600080fd5b8101908080519060200190929190505050905060008111156123185761231581612307655af3107a4000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156122be57600080fd5b505afa1580156122d2573d6000803e3d6000fd5b505050506040513d60208110156122e857600080fd5b810190808051906020019092919050505061383f90919063ffffffff16565b6138c590919063ffffffff16565b91505b612320611f71565b600061232b836110f4565b90506123558161234760646007546138c590919063ffffffff16565b61383f90919063ffffffff16565b60068190555050505b505b565b60135481565b600080600b600085815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806003015491505092915050565b6123d3613837565b73ffffffffffffffffffffffffffffffffffffffff166123f161268a565b73ffffffffffffffffffffffffffffffffffffffff161461247a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b612540613837565b73ffffffffffffffffffffffffffffffffffffffff1661255e61268a565b73ffffffffffffffffffffffffffffffffffffffff16146125e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fd44190acf9d04bdb5d3a1aafff7e6dee8b40b93dfb8c5d3f0eea4b9f4539c3f760405160405180910390a350565b600181565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006126db60016126cd858561397b90919063ffffffff16565b61383f90919063ffffffff16565b905092915050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b602052816000526040600020602052806000526040600020600091509150508060000154908060010154908060020154908060030154905084565b60125481565b612754613837565b73ffffffffffffffffffffffffffffffffffffffff1661277261268a565b73ffffffffffffffffffffffffffffffffffffffff16146127fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561283557600080fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60166020528060005260406000206000915054906101000a900460ff1681565b6128a1613837565b73ffffffffffffffffffffffffffffffffffffffff166128bf61268a565b73ffffffffffffffffffffffffffffffffffffffff1614612948576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6101908461ffff1611156129c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f7365743a204e4f206d6f7265207468616e20342520666565732e00000000000081525060200191505060405180910390fd5b62015180831115612a3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f6164643a20696e76616c6964206861727665737420696e74657276616c00000081525060200191505060405180910390fd5b612710821115612ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f7365743a20696e76616c696420686172766573742070657263656e740000000081525060200191505060405180910390fd5b6103e8821015612b2d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f7365743a20696e76616c696420686172766573742070657263656e740000000081525060200191505060405180910390fd5b8015612b3c57612b3b611f71565b5b612b8185612b73600a8981548110612b5057fe5b906000526020600020906007020160010154600c5461397b90919063ffffffff16565b613c2690919063ffffffff16565b600c8190555084600a8781548110612b9557fe5b90600052602060002090600702016001018190555083600a8781548110612bb857fe5b906000526020600020906007020160040160006101000a81548161ffff021916908361ffff16021790555082600a8781548110612bf157fe5b90600052602060002090600702016005018190555081600a8781548110612c1457fe5b906000526020600020906007020160060181905550505050505050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61271081565b612c65613837565b73ffffffffffffffffffffffffffffffffffffffff16612c8361268a565b73ffffffffffffffffffffffffffffffffffffffff1614612d0c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8360118190555082601281905550816015819055508060138190555050505050565b60115481565b600080600a8481548110612d4457fe5b906000526020600020906007020190506000600b600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612e3e57600080fd5b505afa158015612e52573d6000803e3d6000fd5b505050506040513d6020811015612e6857600080fd5b81019080805190602001909291905050509050836002015443118015612e8f575060008114155b15612f2a576000612ea48560020154436126b3565b90506000612ee7600c54612ed98860010154612ecb6006548761383f90919063ffffffff16565b61383f90919063ffffffff16565b6138c590919063ffffffff16565b9050612f25612f1684612f0864e8d4a510008561383f90919063ffffffff16565b6138c590919063ffffffff16565b85613c2690919063ffffffff16565b935050505b6000612f708460010154612f6264e8d4a51000612f5487896000015461383f90919063ffffffff16565b6138c590919063ffffffff16565b61397b90919063ffffffff16565b9050612f89846002015482613c2690919063ffffffff16565b9550505050505092915050565b6201518081565b60026001541415613016576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600a838154811061302d57fe5b906000526020600020906007020190506000600b600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061309a84611a3a565b6130a384613cae565b60008311156134a25760008260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561313957600080fd5b505afa15801561314d573d6000803e3d6000fd5b505050506040513d602081101561316357600080fd5b810190808051906020019092919050505090506131c73330868660000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166141f7909392919063ffffffff16565b60008360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561325457600080fd5b505afa158015613268573d6000803e3d6000fd5b505050506040513d602081101561327e57600080fd5b810190808051906020019092919050505090506132a4828261397b90919063ffffffff16565b945060008460040160009054906101000a900461ffff1661ffff16111561347f576000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c246b68660040160009054906101000a900461ffff16336040518363ffffffff1660e01b8152600401808361ffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561336e57600080fd5b505afa158015613382573d6000803e3d6000fd5b505050506040513d602081101561339857600080fd5b8101908080519060200190929190505050905060006133d46127106133c6848a61383f90919063ffffffff16565b6138c590919063ffffffff16565b9050613447600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828860000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166141559092919063ffffffff16565b61347081613462898860000154613c2690919063ffffffff16565b61397b90919063ffffffff16565b8560000181905550505061349f565b613496858460000154613c2690919063ffffffff16565b83600001819055505b50505b6134d464e8d4a510006134c68460030154846000015461383f90919063ffffffff16565b6138c590919063ffffffff16565b81600101819055506134e4612097565b833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040518082815260200191505060405180910390a35050600180819055505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61356e613837565b73ffffffffffffffffffffffffffffffffffffffff1661358c61268a565b73ffffffffffffffffffffffffffffffffffffffff1614613615576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561369b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180614a216026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b613786613837565b73ffffffffffffffffffffffffffffffffffffffff166137a461268a565b73ffffffffffffffffffffffffffffffffffffffff161461382d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600d8190555050565b600033905090565b60008083141561385257600090506138bf565b600082840290508284828161386357fe5b04146138ba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180614a6d6021913960400191505060405180910390fd5b809150505b92915050565b600080821161393c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161394557fe5b04905092915050565b60008082141561395a57fe5b816139636142b8565b61396b6142b8565b028161397357fe5b059050919050565b6000828211156139f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b600080831480613a0e5750600082145b15613a1c5760009050613bb6565b613a246142b8565b821415613a3357829050613bb6565b613a3b6142b8565b831415613a4a57819050613bb6565b6000613a546142b8565b613a5d856142ca565b81613a6457fe5b0590506000613a72856142ed565b90506000613a7e6142b8565b613a87866142ca565b81613a8e57fe5b0590506000613a9c866142ed565b90506000828502905060008514613ac05782858281613ab757fe5b0514613abf57fe5b5b6000613aca6142b8565b8202905060008214613af057613ade6142b8565b828281613ae757fe5b0514613aef57fe5b5b8091506000848602905060008614613b155784868281613b0c57fe5b0514613b1457fe5b5b6000848802905060008814613b375784888281613b2e57fe5b0514613b3657fe5b5b613b3f614312565b8781613b4757fe5b059650613b52614312565b8581613b5a57fe5b0594506000858802905060008814613b7f5785888281613b7657fe5b0514613b7e57fe5b5b6000859050613b8e818561431f565b9050613b9a818461431f565b9050613ba6818361431f565b9050809a50505050505050505050505b92915050565b6000613bc66142b8565b8281613bce57fe5b059050919050565b6000613be06142b8565b821415613bef57829050613c20565b6000821415613bfa57fe5b613c02614385565b821315613c0b57fe5b613c1d83613c188461394e565b6139fe565b90505b92915050565b600080828401905083811015613ca4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000600a8281548110613cbd57fe5b906000526020600020906007020190506000600b600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600301541415613e25576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663550b48c38460050154336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b158015613dc557600080fd5b505afa158015613dd9573d6000803e3d6000fd5b505050506040513d6020811015613def57600080fd5b810190808051906020019092919050505090506000819050613e1a8142613c2690919063ffffffff16565b836003018190555050505b6000613e6f8260010154613e6164e8d4a51000613e538760030154876000015461383f90919063ffffffff16565b6138c590919063ffffffff16565b61397b90919063ffffffff16565b9050613e7b84336111d9565b156140d6576000811180613e93575060008260020154115b156140d1576000613eb1836002015483613c2690919063ffffffff16565b90506000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c76438048660060154336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b158015613f4a57600080fd5b505afa158015613f5e573d6000803e3d6000fd5b505050506040513d6020811015613f7457600080fd5b810190808051906020019092919050505090506000613fb0612710613fa2848661383f90919063ffffffff16565b6138c590919063ffffffff16565b90506000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663550b48c38860050154336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561404957600080fd5b505afa15801561405d573d6000803e3d6000fd5b505050506040513d602081101561407357600080fd5b81019080805190602001909291905050509050600081905061409e838661397b90919063ffffffff16565b87600201819055506140b98142613c2690919063ffffffff16565b87600301819055506140cb33846143a1565b50505050505b61414f565b600081111561414e576140f6818360020154613c2690919063ffffffff16565b8260020181905550833373ffffffffffffffffffffffffffffffffffffffff167fee470483107f579a55c754fa00613c45a9a3b617a418b39cb0be97e5381ba7c1836040518082815260200191505060405180910390a35b5b50505050565b6141f28363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614692565b505050565b6142b2846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614692565b50505050565b600069d3c21bcecceda1000000905090565b60006142d46142b8565b6142dc6142b8565b83816142e457fe5b05029050919050565b60006142f76142b8565b6142ff6142b8565b838161430757fe5b050282039050919050565b600064e8d4a51000905090565b60008082840190506000841380156143375750600083135b1561435157838113801561434a57508281135b61435057fe5b5b6000841280156143615750600083125b1561437b57838112801561437457508281125b61437a57fe5b5b8091505092915050565b600073af298d050e4395d69670b12b7f41000000000000905090565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561442c57600080fd5b505afa158015614440573d6000803e3d6000fd5b505050506040513d602081101561445657600080fd5b8101908080519060200190929190505050905060008183111561454857600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561450657600080fd5b505af115801561451a573d6000803e3d6000fd5b505050506040513d602081101561453057600080fd5b81019080805190602001909291905050509050614619565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156145db57600080fd5b505af11580156145ef573d6000803e3d6000fd5b505050506040513d602081101561460557600080fd5b810190808051906020019092919050505090505b8061468c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f736166654e70745472616e736665723a207472616e73666572206661696c656481525060200191505060405180910390fd5b50505050565b60006146f4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166147819092919063ffffffff16565b905060008151111561477c5780806020019051602081101561471557600080fd5b810190808051906020019092919050505061477b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180614a8e602a913960400191505060405180910390fd5b5b505050565b60606147908484600085614799565b90509392505050565b6060824710156147f4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180614a476026913960400191505060405180910390fd5b6147fd85614941565b61486f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106148be578051825260208201915060208101905060208303925061489b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614920576040519150601f19603f3d011682016040523d82523d6000602084013e614925565b606091505b5091509150614935828286614954565b92505050949350505050565b600080823b905060008111915050919050565b6060831561496457829050614a19565b6000835111156149775782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156149de5780820151818401526020810190506149c3565b50505050905090810190601f168015614a0b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122045b0617f2c87be8030b85a1ae52d54562e0698e45ce9a9725890c90f244dd75f64736f6c634300070600330000000000000000000000006936c85d78fb61f2bd8219005a3c9f04eb2265a1000000000000000000000000000000000000000000000000000000000000dead000000000000000000000000b074ac04de463cb7fe1a454be23f14aed3c9480a000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000122cb56000000000000000000000000075279e7db269f420a3ea150be4dbe66a562d48100000000000000000000000030ee201fa20b78c2f6ebb4d24e548e93ca7fb70b000000000000000000000000d5671333dfa8be913045ecaf7d00671965e9891e

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

0000000000000000000000006936c85d78fb61f2bd8219005a3c9f04eb2265a1000000000000000000000000000000000000000000000000000000000000dead000000000000000000000000b074ac04de463cb7fe1a454be23f14aed3c9480a000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000122cb56000000000000000000000000075279e7db269f420a3ea150be4dbe66a562d48100000000000000000000000030ee201fa20b78c2f6ebb4d24e548e93ca7fb70b000000000000000000000000d5671333dfa8be913045ecaf7d00671965e9891e

-----Decoded View---------------
Arg [0] : _npt (address): 0x6936c85d78fb61f2bd8219005a3c9f04eb2265a1
Arg [1] : _burnaddr (address): 0x000000000000000000000000000000000000dead
Arg [2] : _feeAddress (address): 0xb074ac04de463cb7fe1a454be23f14aed3c9480a
Arg [3] : _nptPerBlock (uint256): 100000000000000000
Arg [4] : _startBlock (uint256): 19057494
Arg [5] : _feeDynamic (address): 0x075279e7db269f420a3ea150be4dbe66a562d481
Arg [6] : _harvestDynamic (address): 0x30ee201fa20b78c2f6ebb4d24e548e93ca7fb70b
Arg [7] : _harvestTimerDynamic (address): 0xd5671333dfa8be913045ecaf7d00671965e9891e

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000006936c85d78fb61f2bd8219005a3c9f04eb2265a1
Arg [1] : 000000000000000000000000000000000000000000000000000000000000dead
Arg [2] : 000000000000000000000000b074ac04de463cb7fe1a454be23f14aed3c9480a
Arg [3] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [4] : 000000000000000000000000000000000000000000000000000000000122cb56
Arg [5] : 000000000000000000000000075279e7db269f420a3ea150be4dbe66a562d481
Arg [6] : 00000000000000000000000030ee201fa20b78c2f6ebb4d24e548e93ca7fb70b
Arg [7] : 000000000000000000000000d5671333dfa8be913045ecaf7d00671965e9891e


Deployed ByteCode Sourcemap

57114:17737:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59054:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;61721:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;60504:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;74133:200;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;72802:313;;;:::i;:::-;;;;;;;;;;;;;;;;;;;59206:51;;;:::i;:::-;;;;;;;;;;;;;;;;;;;59799:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60040:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;73121:671;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;58883:22;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;65668:201;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;62087:1130;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;58954:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;59389:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;70143:604;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;59730:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;60130:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;66198:814;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;70816:469;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;60542:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;59122:47;;;:::i;:::-;;;;;;;;;;;;;;;;;;;65427:180;;;:::i;:::-;;59641:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;74745:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71992:782;;;:::i;:::-;;60472:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;65934:190;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41503:148;;;:::i;:::-;;71829:158;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;59310:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;40856:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;64322:143;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;60285:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;59881:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60432:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;74547:142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;61822:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;63326:922;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;60207:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;59556:50;;;:::i;:::-;;;;;;;;;;;;;;;;;;;73798:301;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;60392:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;;64525:821;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;59460:57;;;:::i;:::-;;;;;;;;;;;;;;;;;;;67078:1320;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;58979:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;41804:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;60334:47;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;74379:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;59054:23;;;;;;;;;;;;;:::o;61721:95::-;61766:7;61793:8;:15;;;;61786:22;;61721:95;:::o;60504:31::-;;;;:::o;74133:200::-;41085:12;:10;:12::i;:::-;41074:23;;:7;:5;:7::i;:::-;:23;;;41066:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74211:17:::1;:15;:17::i;:::-;74253:12;74239:11;:26;;;;74300:10;74281:44;;;74312:12;74281:44;;;;;;;;;;;;;;;;;;74133:200:::0;:::o;72802:313::-;72851:11;72875:15;72893:7;;;;;;;;;;;:17;;;72911:9;;;;;;;;;;;72893:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72875:46;;72951:1;72938:10;:14;72934:153;;;72969:18;72990:51;73030:10;72990:35;73020:4;72990;;;;;;;;;;;:14;;;73005:9;;;;;;;;;;;72990:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:29;;:35;;;;:::i;:::-;:39;;:51;;;;:::i;:::-;72969:72;;73063:10;73056:17;;;;;;72934:153;73106:1;73099:8;;;72802:313;;:::o;59206:51::-;;;;:::o;59799:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;60040:34::-;;;;:::o;73121:671::-;73197:11;73258:3;73249:8;;:12;73234:13;:27;73230:45;;73271:1;73263:10;;;;73230:45;73315:3;73303:11;;:15;73288:13;:30;73284:50;;73328:3;73320:12;;;;73284:50;73343:28;73374:40;73410:3;73401:8;;:12;73374:22;73392:3;73374:13;:17;;:22;;;;:::i;:::-;:26;;:40;;;;:::i;:::-;73343:71;;73424:23;73450:41;73480:9;;73450:22;:41::i;:::-;73424:67;;73501:10;73514:38;73531:20;73522:3;73514:16;;:38;;;;:::i;:::-;73501:51;;73562:9;73574:72;73596:49;73617:16;73641:2;73596:20;:49::i;:::-;73574:21;:72::i;:::-;73562:84;;73656:9;73668:75;73690:52;73709:3;73720:20;73690:18;:52::i;:::-;73668:21;:75::i;:::-;73656:87;;73781:2;73778;:5;73763:21;;;;;;;73121:671;;;;:::o;58883:22::-;;;;;;;;;;;;;:::o;65668:201::-;65738:4;65756:21;65780:8;:14;65789:4;65780:14;;;;;;;;;;;:21;65795:5;65780:21;;;;;;;;;;;;;;;65756:45;;65839:4;:21;;;65820:15;:40;;65813:47;;;65668:201;;;;:::o;62087:1130::-;41085:12;:10;:12::i;:::-;41074:23;;:7;:5;:7::i;:::-;:23;;;41066:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62269:8:::1;61959:5;61932:32;;:13;:23;61946:8;61932:23;;;;;;;;;;;;;;;;;;;;;;;;;:32;;;61924:70;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;62315:3:::2;62298:13;:20;;;;62290:59;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;59511:6;62368:18;:46;;62360:88;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;59601:5;62468:13;:35;;62460:76;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;59686:4;62555:13;:35;;62547:76;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;62638:11;62634:61;;;62666:17;:15;:17::i;:::-;62634:61;62705:23;62746:10;;62731:12;:25;:53;;62774:10;;62731:53;;;62759:12;62731:53;62705:79;;62813:32;62833:11;62813:15;;:19;;:32;;;;:::i;:::-;62795:15;:50;;;;62882:4;62856:13;:23;62870:8;62856:23;;;;;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;62897:8;62911:297;;;;;;;;62941:8;62911:297;;;;;;62973:11;62911:297;;;;63013:15;62911:297;;;;63056:1;62911:297;;;;63083:13;62911:297;;;;;;63126:18;62911:297;;;;63169:13;62911:297;;::::0;62897:312:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62005:1;41145::::1;62087:1130:::0;;;;;;:::o;58954:18::-;;;;;;;;;;;;;:::o;59389:25::-;;;;;;;;;;;;;:::o;70143:604::-;43786:1;44377:7;;:19;;44369:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43786:1;44508:7;:18;;;;70223:21:::1;70247:8;70256:4;70247:14;;;;;;;;;;;;;;;;;;70223:38;;70272:21;70296:8;:14;70305:4;70296:14;;;;;;;;;;;:26;70311:10;70296:26;;;;;;;;;;;;;;;70272:50;;70356:7;70341:4;:11;;;:22;;70333:53;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;70397:16;70408:4;70397:10;:16::i;:::-;70424:27;70446:4;70424:21;:27::i;:::-;70476:1;70466:7;:11;70462:152;;;70508:24;70524:7;70508:4;:11;;;:15;;:24;;;;:::i;:::-;70494:4;:11;;:38;;;;70547:55;70581:10;70594:7;70547:4;:12;;;;;;;;;;;;:25;;;;:55;;;;;:::i;:::-;70462:152;70642:46;70683:4;70642:36;70658:4;:19;;;70642:4;:11;;;:15;;:36;;;;:::i;:::-;:40;;:46;;;;:::i;:::-;70624:4;:15;;:64;;;;70725:4;70713:10;70704:35;;;70731:7;70704:35;;;;;;;;;;;;;;;;;;44537:1;;43742::::0;44683:7;:22;;;;70143:604;;:::o;59730:35::-;;;;:::o;60130:25::-;;;;:::o;66198:814::-;66250:21;66274:8;66283:4;66274:14;;;;;;;;;;;;;;;;;;66250:38;;66319:4;:20;;;66303:12;:36;66299:75;;66356:7;;;66299:75;66384:16;66403:4;:12;;;;;;;;;;;;:22;;;66434:4;66403:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66384:56;;66467:1;66455:8;:13;:37;;;;66491:1;66472:4;:15;;;:20;66455:37;66451:126;;;66532:12;66509:4;:20;;:35;;;;66559:7;;;;66451:126;66587:18;66608:49;66622:4;:20;;;66644:12;66608:13;:49::i;:::-;66587:70;;66668:17;66688:69;66741:15;;66688:48;66720:4;:15;;;66688:27;66703:11;;66688:10;:14;;:27;;;;:::i;:::-;:31;;:48;;;;:::i;:::-;:52;;:69;;;;:::i;:::-;66668:89;;66777:7;;;;;;;;;;;:12;;;66790:8;;;;;;;;;;;66800:17;66814:2;66800:9;:13;;:17;;;;:::i;:::-;66777:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66829:7;;;;;;;;;;;:12;;;66851:4;66857:9;66829:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66900:58;66924:33;66948:8;66924:19;66938:4;66924:9;:13;;:19;;;;:::i;:::-;:23;;:33;;;;:::i;:::-;66900:4;:19;;;:23;;:58;;;;:::i;:::-;66878:4;:19;;:80;;;;66992:12;66969:4;:20;;:35;;;;66198:814;;;;;;:::o;70816:469::-;43786:1;44377:7;;:19;;44369:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43786:1;44508:7;:18;;;;70888:21:::1;70912:8;70921:4;70912:14;;;;;;;;;;;;;;;;;;70888:38;;70937:21;70961:8;:14;70970:4;70961:14;;;;;;;;;;;:26;70976:10;70961:26;;;;;;;;;;;;;;;70937:50;;70998:14;71015:4;:11;;;70998:28;;71051:1;71037:4;:11;;:15;;;;71081:1;71063:4;:15;;:19;;;;71115:1;71093:4;:19;;:23;;;;71152:1;71128:4;:21;;:25;;;;71164:54;71198:10;71211:6;71164:4;:12;;;;;;;;;;;;:25;;;;:54;;;;;:::i;:::-;71264:4;71252:10;71234:43;;;71270:6;71234:43;;;;;;;;;;;;;;;;;;44537:1;;;43742::::0;44683:7;:22;;;;70816:469;:::o;60542:40::-;;;;:::o;59122:47::-;;;;:::o;65427:180::-;65472:14;65489:8;:15;;;;65472:32;;65520:11;65515:85;65543:6;65537:3;:12;65515:85;;;65573:15;65584:3;65573:10;:15::i;:::-;65551:5;;;;;65515:85;;;;65427:180;:::o;59641:49::-;59686:4;59641:49;:::o;74745:103::-;41085:12;:10;:12::i;:::-;41074:23;;:7;:5;:7::i;:::-;:23;;;41066:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74832:8:::1;74820:9;;:20;;;;;;;;;;;;;;;;;;74745:103:::0;:::o;71992:782::-;72067:3;72048:23;;:9;;;;;;;;;;;:23;;;72044:62;;;72087:7;;72044:62;72122:15;72154:3;72140:11;;:17;72122:35;;72205:22;;72187:15;;72172:12;:30;:55;72168:599;;;72262:12;72244:15;:30;;;;72299:15;72317:7;;;;;;;;;;;:17;;;72335:9;;;;;;;;;;;72317:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72299:46;;72389:1;72376:10;:14;72372:132;;;72437:51;72477:10;72437:35;72467:4;72437;;;;;;;;;;;:14;;;72452:9;;;;;;;;;;;72437:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:29;;:35;;;;:::i;:::-;:39;;:51;;;;:::i;:::-;72424:64;;72372:132;72581:17;:15;:17::i;:::-;72613:27;72643:34;72666:10;72643:22;:34::i;:::-;72613:64;;72706:49;72735:19;72706:24;72726:3;72706:15;;:19;;:24;;;;:::i;:::-;:28;;:49;;;;:::i;:::-;72692:11;:63;;;;72168:599;;;71992:782;;:::o;60472:25::-;;;;:::o;65934:190::-;66009:7;66030:21;66054:8;:14;66063:4;66054:14;;;;;;;;;;;:21;66069:5;66054:21;;;;;;;;;;;;;;;66030:45;;66094:4;:21;;;66087:28;;;65934:190;;;;:::o;41503:148::-;41085:12;:10;:12::i;:::-;41074:23;;:7;:5;:7::i;:::-;:23;;;41066:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41610:1:::1;41573:40;;41594:6;::::0;::::1;;;;;;;;41573:40;;;;;;;;;;;;41641:1;41624:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;41503:148::o:0;71829:158::-;41085:12;:10;:12::i;:::-;41074:23;;:7;:5;:7::i;:::-;:23;;;41066:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71914:11:::1;71901:10;;:24;;;;;;;;;;;;;;;;;;71967:11;71941:38;;71955:10;71941:38;;;;;;;;;;;;71829:158:::0;:::o;59310:44::-;59353:1;59310:44;:::o;40856:87::-;40902:7;40929:6;;;;;;;;;;;40922:13;;40856:87;:::o;64322:143::-;64394:7;64421:36;59353:1;64421:14;64429:5;64421:3;:7;;:14;;;;:::i;:::-;:18;;:36;;;;:::i;:::-;64414:43;;64322:143;;;;:::o;60285:37::-;;;;;;;;;;;;;:::o;59881:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;60432:27::-;;;;:::o;74547:142::-;41085:12;:10;:12::i;:::-;41074:23;;:7;:5;:7::i;:::-;:23;;;41066:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74644:1:::1;74626:20;;:8;:20;;;;74617:30;;;::::0;::::1;;74672:8;74658:4;;:23;;;;;;;;;;;;;;;;;;74547:142:::0;:::o;61822:44::-;;;;;;;;;;;;;;;;;;;;;;:::o;63326:922::-;41085:12;:10;:12::i;:::-;41074:23;;:7;:5;:7::i;:::-;:23;;;41066:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63527:3:::1;63510:13;:20;;;;63502:59;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;59511:6;63580:18;:46;;63572:88;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;59601:5;63680:13;:35;;63672:76;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;59686:4;63768:13;:35;;63760:76;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;63851:11;63847:61;;;63879:17;:15;:17::i;:::-;63847:61;63936:63;63987:11;63936:46;63956:8;63965:4;63956:14;;;;;;;;;;;;;;;;;;:25;;;63936:15;;:19;;:46;;;;:::i;:::-;:50;;:63;;;;:::i;:::-;63918:15;:81;;;;64038:11;64010:8;64019:4;64010:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;64090:13;64060:8;64069:4;64060:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;64149:18;64114:8;64123:4;64114:14;;;;;;;;;;;;;;;;;;:32;;:53;;;;64209:13;64179:8;64188:4;64179:14;;;;;;;;;;;;;;;;;;:27;;:43;;;;63326:922:::0;;;;;;:::o;60207:29::-;;;;;;;;;;;;;:::o;59556:50::-;59601:5;59556:50;:::o;73798:301::-;41085:12;:10;:12::i;:::-;41074:23;;:7;:5;:7::i;:::-;:23;;;41066:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73953:9:::1;73942:8;:20;;;;73987:12;73973:11;:26;;;;74035:23;74010:22;:48;;;;74081:10;74069:9;:22;;;;73798:301:::0;;;;:::o;60392:26::-;;;;:::o;64525:821::-;64597:7;64617:21;64641:8;64650:4;64641:14;;;;;;;;;;;;;;;;;;64617:38;;64666:21;64690:8;:14;64699:4;64690:14;;;;;;;;;;;:21;64705:5;64690:21;;;;;;;;;;;;;;;64666:45;;64722:22;64747:4;:19;;;64722:44;;64777:16;64796:4;:12;;;;;;;;;;;;:22;;;64827:4;64796:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64777:56;;64863:4;:20;;;64848:12;:35;:52;;;;;64899:1;64887:8;:13;;64848:52;64844:344;;;64917:18;64938:49;64952:4;:20;;;64974:12;64938:13;:49::i;:::-;64917:70;;65002:17;65022:69;65075:15;;65022:48;65054:4;:15;;;65022:27;65037:11;;65022:10;:14;;:27;;;;:::i;:::-;:31;;:48;;;;:::i;:::-;:52;;:69;;;;:::i;:::-;65002:89;;65123:53;65142:33;65166:8;65142:19;65156:4;65142:9;:13;;:19;;;;:::i;:::-;:23;;:33;;;;:::i;:::-;65123:14;:18;;:53;;;;:::i;:::-;65106:70;;64844:344;;;65198:15;65217:62;65263:4;:15;;;65217:41;65253:4;65217:31;65233:14;65217:4;:11;;;:15;;:31;;;;:::i;:::-;:35;;:41;;;;:::i;:::-;:45;;:62;;;;:::i;:::-;65198:81;;65306:32;65318:4;:19;;;65306:7;:11;;:32;;;;:::i;:::-;65299:39;;;;;;;64525:821;;;;:::o;59460:57::-;59511:6;59460:57;:::o;67078:1320::-;43786:1;44377:7;;:19;;44369:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43786:1;44508:7;:18;;;;67157:21:::1;67181:8;67190:4;67181:14;;;;;;;;;;;;;;;;;;67157:38;;67206:21;67230:8;:14;67239:4;67230:14;;;;;;;;;;;:26;67245:10;67230:26;;;;;;;;;;;;;;;67206:50;;67267:16;67278:4;67267:10;:16::i;:::-;67293:27;67315:4;67293:21;:27::i;:::-;67345:1;67335:7;:11;67331:900;;;67363:22;67388:4;:12;;;;;;;;;;;;:22;;;67419:4;67388:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;67363:62;;67440:74;67478:10;67499:4;67506:7;67440:4;:12;;;;;;;;;;;;:29;;;;:74;;;;;;:::i;:::-;67530:19;67553:4;:12;;;;;;;;;;;;:22;;;67584:4;67553:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;67530:60;;67616:31;67632:14;67616:11;:15;;:31;;;;:::i;:::-;67606:41;;67686:1;67666:4;:17;;;;;;;;;;;;:21;;;67662:463;;;67708:22;67733:10;;;;;;;;;;;:47;;;67781:4;:17;;;;;;;;;;;;67800:10;67733:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;67708:103;;67830:18;67851:38;67883:5;67851:27;67863:14;67851:7;:11;;:27;;;;:::i;:::-;:31;;:38;;;;:::i;:::-;67830:59;;67908:49;67934:10;;;;;;;;;;;67946;67908:4;:12;;;;;;;;;;;;:25;;;;:49;;;;;:::i;:::-;67990:40;68019:10;67990:24;68006:7;67990:4;:11;;;:15;;:24;;;;:::i;:::-;:28;;:40;;;;:::i;:::-;67976:4;:11;;:54;;;;67662:463;;;;;68085:24;68101:7;68085:4;:11;;;:15;;:24;;;;:::i;:::-;68071:4;:11;;:38;;;;67662:463;67331:900;;;68259:46;68300:4;68259:36;68275:4;:19;;;68259:4;:11;;;:15;;:36;;;;:::i;:::-;:40;;:46;;;;:::i;:::-;68241:4;:15;;:64;;;;68316:24;:22;:24::i;:::-;68376:4;68364:10;68356:34;;;68382:7;68356:34;;;;;;;;;;;;;;;;;;44537:1;;43742::::0;44683:7;:22;;;;67078:1320;;:::o;58979:39::-;;;;;;;;;;;;;:::o;41804:244::-;41085:12;:10;:12::i;:::-;41074:23;;:7;:5;:7::i;:::-;:23;;;41066:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41913:1:::1;41893:22;;:8;:22;;;;41885:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42003:8;41974:38;;41995:6;::::0;::::1;;;;;;;;41974:38;;;;;;;;;;;;42032:8;42023:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;41804:244:::0;:::o;60334:47::-;;;;;;;;;;;;;:::o;74379:107::-;41085:12;:10;:12::i;:::-;41074:23;;:7;:5;:7::i;:::-;:23;;;41066:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74467:11:::1;74454:10;:24;;;;74379:107:::0;:::o;39418:115::-;39471:15;39514:10;39499:26;;39418:115;:::o;20563:220::-;20621:7;20650:1;20645;:6;20641:20;;;20660:1;20653:8;;;;20641:20;20672:9;20688:1;20684;:5;20672:17;;20717:1;20712;20708;:5;;;;;;:10;20700:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20774:1;20767:8;;;20563:220;;;;;:::o;21259:153::-;21317:7;21349:1;21345;:5;21337:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21403:1;21399;:5;;;;;;21392:12;;21259:153;;;;:::o;16077:::-;16130:6;16161:1;16156;:6;;16149:14;;;;16203:1;16191:8;:6;:8::i;:::-;16182;:6;:8::i;:::-;:17;16181:23;;;;;;16174:30;;16077:153;;;:::o;20148:158::-;20206:7;20239:1;20234;:6;;20226:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20297:1;20293;:5;20286:12;;20148:158;;;;:::o;14139:1596::-;14200:6;14228:1;14223;:6;:16;;;;14238:1;14233;:6;14223:16;14219:30;;;14248:1;14241:8;;;;14219:30;14269:8;:6;:8::i;:::-;14264:1;:13;14260:27;;;14286:1;14279:8;;;;14260:27;14307:8;:6;:8::i;:::-;14302:1;:13;14298:27;;;14324:1;14317:8;;;;14298:27;14428:9;14453:8;:6;:8::i;:::-;14440:10;14448:1;14440:7;:10::i;:::-;:21;;;;;;14428:33;;14472:9;14484:13;14495:1;14484:10;:13::i;:::-;14472:25;;14508:9;14533:8;:6;:8::i;:::-;14520:10;14528:1;14520:7;:10::i;:::-;:21;;;;;;14508:33;;14552:9;14564:13;14575:1;14564:10;:13::i;:::-;14552:25;;14680:11;14699:2;14694;:7;14680:21;;14722:1;14716:2;:7;14712:36;;14745:2;14739;14732:4;:9;;;;;;:15;14725:23;;;;14712:36;14888:17;14915:8;:6;:8::i;:::-;14908:4;:15;14888:35;;14946:1;14938:4;:9;14934:52;;14977:8;:6;:8::i;:::-;14969:4;14956:10;:17;;;;;;:29;14949:37;;;;14934:52;15030:10;15023:17;;15051:11;15070:2;15065;:7;15051:21;;15093:1;15087:2;:7;15083:36;;15116:2;15110;15103:4;:9;;;;;;:15;15096:23;;;;15083:36;15147:11;15166:2;15161;:7;15147:21;;15189:1;15183:2;:7;15179:36;;15212:2;15206;15199:4;:9;;;;;;:15;15192:23;;;;15179:36;15253:14;:12;:14::i;:::-;15248:2;:19;;;;;;15243:24;;15288:14;:12;:14::i;:::-;15283:2;:19;;;;;;15278:24;;15313:11;15332:2;15327;:7;15313:21;;15355:1;15349:2;:7;15345:36;;15378:2;15372;15365:4;:9;;;;;;:15;15358:23;;;;15345:36;15491:13;15507:4;15491:20;;15531:17;15535:6;15543:4;15531:3;:17::i;:::-;15522:26;;15595:17;15599:6;15607:4;15595:3;:17::i;:::-;15586:26;;15659:17;15663:6;15671:4;15659:3;:17::i;:::-;15650:26;;15721:6;15714:13;;;;;;;;;;;;14139:1596;;;;;:::o;5826:130::-;5905:6;5940:8;:6;:8::i;:::-;5936:1;:12;;;;;;5929:19;;5826:130;;;:::o;16714:223::-;16773:6;16801:8;:6;:8::i;:::-;16796:1;:13;16792:27;;;16818:1;16811:8;;;;16792:27;16842:1;16837;:6;;16830:14;;;;16867:17;:15;:17::i;:::-;16862:1;:22;;16855:30;;;;16903:26;16912:1;16915:13;16926:1;16915:10;:13::i;:::-;16903:8;:26::i;:::-;16896:33;;16714:223;;;;;:::o;19688:179::-;19746:7;19766:9;19782:1;19778;:5;19766:17;;19807:1;19802;:6;;19794:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19858:1;19851:8;;;19688:179;;;;:::o;68446:1647::-;68512:21;68536:8;68545:4;68536:14;;;;;;;;;;;;;;;;;;68512:38;;68562:21;68586:8;:14;68595:4;68586:14;;;;;;;;;;;:26;68601:10;68586:26;;;;;;;;;;;;;;;68562:50;;68662:1;68637:4;:21;;;:26;68633:309;;;68681:27;68711:19;;;;;;;;;;;:61;;;68773:4;:22;;;68797:10;68711:97;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68681:127;;68823:16;68842:19;68823:38;;68900:29;68920:8;68900:15;:19;;:29;;;;:::i;:::-;68876:4;:21;;:53;;;;68633:309;;;68953:15;68971:67;69022:4;:15;;;68971:46;69012:4;68971:36;68987:4;:19;;;68971:4;:11;;;:15;;:36;;;;:::i;:::-;:40;;:46;;;;:::i;:::-;:50;;:67;;;;:::i;:::-;68953:85;;69054:28;69065:4;69071:10;69054;:28::i;:::-;69050:1035;;;69114:1;69104:7;:11;:38;;;;69141:1;69119:4;:19;;;:23;69104:38;69100:805;;;69164:20;69187:32;69199:4;:19;;;69187:7;:11;;:32;;;;:::i;:::-;69164:55;;69239:19;69261:14;;;;;;;;;;;:51;;;69313:4;:17;;;69332:10;69261:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69239:104;;69362:17;69382:40;69416:5;69382:29;69399:11;69382:12;:16;;:29;;;;:::i;:::-;:33;;:40;;;;:::i;:::-;69362:60;;69435:27;69465:19;;;;;;;;;;;:61;;;69527:4;:22;;;69551:10;69465:97;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69435:127;;69576:16;69595:19;69576:38;;69696:27;69713:9;69696:12;:16;;:27;;;;:::i;:::-;69674:4;:19;;:49;;;;69767:29;69787:8;69767:15;:19;;:29;;;;:::i;:::-;69743:4;:21;;:53;;;;69850:38;69866:10;69878:9;69850:15;:38::i;:::-;69100:805;;;;;;69050:1035;;;69937:1;69927:7;:11;69923:162;;;69978:32;70002:7;69978:4;:19;;;:23;;:32;;;;:::i;:::-;69956:4;:19;;:54;;;;70058:4;70046:10;70031:41;;;70064:7;70031:41;;;;;;;;;;;;;;;;;;69923:162;69050:1035;68446:1647;;;;:::o;35740:177::-;35823:86;35843:5;35873:23;;;35898:2;35902:5;35850:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35823:19;:86::i;:::-;35740:177;;;:::o;35923:205::-;36024:96;36044:5;36074:27;;;36103:4;36109:2;36113:5;36051:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36024:19;:96::i;:::-;35923:205;;;;:::o;481:99::-;521:6;547:25;540:32;;481:99;:::o;10902:127::-;10952:6;10995:8;:6;:8::i;:::-;10983;:6;:8::i;:::-;10979:1;:12;;;;;;10978:25;10971:32;;10902:127;;;:::o;11443:134::-;11496:6;11543:8;:6;:8::i;:::-;11531;:6;:8::i;:::-;11527:1;:12;;;;;;11526:25;11522:1;:29;11515:36;;11443:134;;;:::o;765:93::-;811:6;837:13;830:20;;765:93;:::o;12812:224::-;12868:6;12887:8;12902:1;12898;:5;12887:16;;12922:1;12918;:5;:14;;;;;12931:1;12927;:5;12918:14;12914:42;;;12945:1;12941;:5;:14;;;;;12954:1;12950;:5;12941:14;12934:22;;;;12914:42;12975:1;12971;:5;:14;;;;;12984:1;12980;:5;12971:14;12967:42;;;12998:1;12994;:5;:14;;;;;13007:1;13003;:5;12994:14;12987:22;;;;12967:42;13027:1;13020:8;;;12812:224;;;;:::o;4989:132::-;5038:6;5064:49;5057:56;;4989:132;:::o;71394:429::-;71469:14;71486:7;;;;;;;;;;;:17;;;71512:4;71486:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71469:49;;71529:20;71582:6;71572:7;:16;71568:177;;;71623:7;;;;;;;;;;;:16;;;71640:3;71645:6;71623:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71605:47;;71568:177;;;71703:7;;;;;;;;;;;:16;;;71720:3;71725:7;71703:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71685:48;;71568:177;71763:15;71755:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71394:429;;;;:::o;38035:759::-;38457:23;38483:69;38511:4;38483:69;;;;;;;;;;;;;;;;;38491:5;38483:27;;;;:69;;;;;:::i;:::-;38457:95;;38587:1;38567:10;:17;:21;38563:224;;;38709:10;38698:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38690:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38563:224;38035:759;;;:::o;30782:195::-;30885:12;30917:52;30939:6;30947:4;30953:1;30956:12;30917:21;:52::i;:::-;30910:59;;30782:195;;;;;:::o;31830:528::-;31957:12;32015:5;31990:21;:30;;31982:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32082:18;32093:6;32082:10;:18::i;:::-;32074:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32206:12;32220:23;32247:6;:11;;32267:5;32275:4;32247:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32205:75;;;;32298:52;32316:7;32325:10;32337:12;32298:17;:52::i;:::-;32291:59;;;;31830:528;;;;;;:::o;27874:420::-;27934:4;28140:12;28251:7;28239:20;28231:28;;28285:1;28278:4;:8;28271:15;;;27874:420;;;:::o;34354:740::-;34469:12;34498:7;34494:593;;;34529:10;34522:17;;;;34494:593;34663:1;34643:10;:17;:21;34639:437;;;34904:10;34898:17;34965:15;34952:10;34948:2;34944:19;34937:44;34852:148;35047:12;35040:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34354:740;;;;;;:::o

Swarm Source

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

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

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