Contract 0x27e401d5264049d076e53b0cc3572346a97fbe68 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x61ad9a2d1c56640c4f4f31a2f9eb49736741685d367129927e27e0b4eb26a90eWithdraw107074342021-09-07 12:47:5114 days 21 hrs ago0x1d900608c195f76f746e793cea49394913400168 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.000512545
0x8f525c38ca5271e0fb6b0fb71160ac254f87256472b4d258fcf94834acb3e083Deposit107074152021-09-07 12:46:5414 days 21 hrs ago0x1d900608c195f76f746e793cea49394913400168 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.00107728
0x36b5e2aff30f040d4375a4bce0d4aace5f242b56602066328e448aec9a45210cWithdraw106845272021-09-06 17:28:2315 days 16 hrs ago0x5da0834f5dbec360675a2e32377e2346a01b7c12 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.001153825
0xb338bf94c25aabf5818843622aa27bbdbd22c8ea0f6c40bad03f78f7e88cd59bDeposit106320602021-09-04 21:37:4217 days 12 hrs ago0x330a94448a8bb7cebc9cf760a2021333dd6a1d71 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.000541425
0xa259980db26539fcb3c1da81d45a9aa058fe449f40ca8104b2fecf7ff371f29fDeposit106320582021-09-04 21:37:3617 days 12 hrs ago0x330a94448a8bb7cebc9cf760a2021333dd6a1d71 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.000541425
0x826323be3de39e6316a97ee511037751480ca20cb0ba88774332f9757940a616Deposit106320582021-09-04 21:37:3617 days 12 hrs ago0x330a94448a8bb7cebc9cf760a2021333dd6a1d71 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.00115228
0x267622be26dcbb4daba1146b35d8f20f172da26ab507e21a71e9fb686da35340Deposit106205632021-09-04 11:56:5017 days 22 hrs ago0xd657d64eaf9387ad3829163e93b0caa98d29f826 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.00115234
0x99c0ec146437746ef147bb051fa4c29195419b7dd1a03ccfc4af6e8716990ba3Deposit103320132021-08-25 8:21:5428 days 2 hrs ago0x62b4265f8f66abc1c78b2c33bbaa7b8d38835716 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.002305085
0xd842159d2afba8d52c05eaaf3bbfcd161cf1523ce16aa725582e5966c667eb62Deposit103319092021-08-25 8:16:4228 days 2 hrs ago0x62b4265f8f66abc1c78b2c33bbaa7b8d38835716 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.000541425
0x679aeb85454288ef1506016a5e72293760b31474626f1f6ff646db75c697c5e6Deposit103319042021-08-25 8:16:2728 days 2 hrs ago0x62b4265f8f66abc1c78b2c33bbaa7b8d38835716 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.000541425
0xafebf27dcb1f80f4b310c7a1f321c6e286a619303c691d71f394ee32fa4488a8Deposit103319042021-08-25 8:16:2728 days 2 hrs ago0x62b4265f8f66abc1c78b2c33bbaa7b8d38835716 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.000541425
0x2830255965856a04a304defcde5456f252d652ae3392563a3e320f16c689fcdaDeposit103319002021-08-25 8:16:1528 days 2 hrs ago0x62b4265f8f66abc1c78b2c33bbaa7b8d38835716 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.000541425
0x63ee7c51f313f1e570790e5d91880eed03fe14daff5d5bc14dde8463e1a1336bDeposit103319002021-08-25 8:16:1528 days 2 hrs ago0x62b4265f8f66abc1c78b2c33bbaa7b8d38835716 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.00115234
0x0c88b522f7f0d52080310c86e1536f30173d4903c156dd525e225ccb7dd44ebaWithdraw102853322021-08-23 17:16:1729 days 17 hrs ago0xe59e4f72444e2abf8e7d4000a817840b54af34d2 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.001139665
0xc4bda3cdd3b70f483dc1ecbef94461f3530d0659932364d8ce54519718ec2d90Withdraw102851922021-08-23 17:08:2729 days 17 hrs ago0xe59e4f72444e2abf8e7d4000a817840b54af34d2 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.00098938
0x132200e6e8eecab7524b3f64cd0c04d192212d7f83406397d9c080b9bb7a82edWithdraw102849552021-08-23 16:56:3129 days 17 hrs ago0xe59e4f72444e2abf8e7d4000a817840b54af34d2 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.001737955
0x1d0f857aa185e56285975fa276a2d427ecbe315b8054e8a209514cf14c2e18f5Deposit102188642021-08-21 9:30:4132 days 56 mins ago0xec08eff77496601be56c11028a516366dbf03f13 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.001578995
0xaadcf457ed810d5c672278a889e78b52207735fc949e6258d1ca814b5600a932Deposit102188112021-08-21 9:28:0232 days 59 mins ago0xec08eff77496601be56c11028a516366dbf03f13 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.0025
0x79f5eb3aadd5febbdc0d27ae29213b900e9502fc95236de8d3286ff9a08b0d64Deposit102034472021-08-20 20:36:0632 days 13 hrs ago0x8ebffc586442bcc5983c7c153af5576d9a7b2332 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.00073632
0x371bca3dcffa84b781f89cae1aa5698b206ca096bdd47bed24bc3d0d704945daWithdraw102032692021-08-20 20:27:1232 days 13 hrs ago0x8ebffc586442bcc5983c7c153af5576d9a7b2332 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.001153765
0x13f6b45df7bcf7731997e653992b5ea7248ee46e6c42a772aa855cf178532557Deposit99397362021-08-11 14:19:3041 days 20 hrs ago0x60bea73a2f0c69e1399ed7e944bbce6c6660c2fc IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.00073632
0x1b6742e8d08f91a0333aa0f7028fb43a0df00be1780fe14d8938a2fdb87b91a4Deposit99397242021-08-11 14:18:5241 days 20 hrs ago0x60bea73a2f0c69e1399ed7e944bbce6c6660c2fc IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.00107728
0xabe69015200ca3c6e20932b8e61cc041dc2f484b1331ba78b2714035b5c89f4cDeposit99289762021-08-11 5:14:5342 days 5 hrs ago0x5031cab6d67edda218f88d52cdc87d516f85eeb1 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.00115234
0xde973fa5eb00abf75f13bf00e13d3bc2865564f7f30436a5cc5aa0e00b927d61Deposit97375652021-08-04 9:30:1449 days 56 mins ago0xd657d64eaf9387ad3829163e93b0caa98d29f826 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.00115234
0x6061ec61bbfea909c16c1ebafdca47a8545985391ab8f67e65cfad967ccc3074Deposit96018052021-07-30 12:12:4953 days 22 hrs ago0x62b4265f8f66abc1c78b2c33bbaa7b8d38835716 IN  0x27e401d5264049d076e53b0cc3572346a97fbe680 BNB0.000541425
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-03-15
*/

// File: @pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.4.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, 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) {
        return sub(a, b, 'SafeMath: subtraction overflow');
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * 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);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, 'SafeMath: multiplication overflow');

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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) {
        return mod(a, b, 'SafeMath: modulo by zero');
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }

    function min(uint256 x, uint256 y) internal pure returns (uint256 z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

// File: @pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol


pragma solidity >=0.4.0;

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

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

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

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

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

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

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

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

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

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

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

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

// File: @pancakeswap/pancake-swap-lib/contracts/utils/Address.sol


pragma solidity ^0.6.2;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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');
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(
        address target,
        bytes memory data,
        uint256 weiValue,
        string memory errorMessage
    ) private returns (bytes memory) {
        require(isContract(target), 'Address: call to non-contract');

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        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: @pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol


pragma solidity ^0.6.0;




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

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

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

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

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

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

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

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

// File: @pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol


pragma solidity >=0.4.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

// File: @pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol


pragma solidity >=0.4.0;


/**
 * @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.
 */
contract Ownable is Context {
    address private _owner;

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

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

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: contracts/libs/BEP20.sol


pragma solidity >=0.4.0;






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

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing
     * the total supply.
     *
     * Requirements
     *
     * - `msg.sender` must be the token owner
     */
    function mint(uint256 amount) public onlyOwner returns (bool) {
        _mint(_msgSender(), amount);
        return true;
    }

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

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

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

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

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

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

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

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

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

// File: contracts/libs/IChef.sol

pragma solidity >=0.5.0;

interface IChef {
    function cake() external view returns (address);
    function deposit(uint256 _pid, uint256 _amount) external;
    function withdraw(uint256 _pid, uint256 _amount) external;
    function lockedSupply() external view returns(uint256);
}

// File: contracts/RedPillToken.sol

//     _______  __ __ __    ________ __                                                             
//    |       \|  \  \  \  |        \  \                                                            
//    | ▓▓▓▓▓▓▓\\▓▓ ▓▓ ▓▓  | ▓▓▓▓▓▓▓▓\▓▓_______   ______  _______   _______  ______                 
//    | ▓▓__/ ▓▓  \ ▓▓ ▓▓  | ▓▓__   |  \       \ |      \|       \ /       \/      \                
//    | ▓▓    ▓▓ ▓▓ ▓▓ ▓▓  | ▓▓  \  | ▓▓ ▓▓▓▓▓▓▓\ \▓▓▓▓▓▓\ ▓▓▓▓▓▓▓\  ▓▓▓▓▓▓▓  ▓▓▓▓▓▓\               
//    | ▓▓▓▓▓▓▓| ▓▓ ▓▓ ▓▓  | ▓▓▓▓▓  | ▓▓ ▓▓  | ▓▓/      ▓▓ ▓▓  | ▓▓ ▓▓     | ▓▓    ▓▓               
//    | ▓▓     | ▓▓ ▓▓ ▓▓__| ▓▓     | ▓▓ ▓▓  | ▓▓  ▓▓▓▓▓▓▓ ▓▓  | ▓▓ ▓▓_____| ▓▓▓▓▓▓▓▓               
//    | ▓▓     | ▓▓ ▓▓ ▓▓  \ ▓▓     | ▓▓ ▓▓  | ▓▓\▓▓    ▓▓ ▓▓  | ▓▓\▓▓     \\▓▓     \               
//     \▓▓      \▓▓\▓▓\▓▓\▓▓\▓▓      \▓▓\▓▓   \▓▓ \▓▓▓▓▓▓▓\▓▓   \▓▓ \▓▓▓▓▓▓▓ \▓▓▓▓▓▓▓               
//
pragma solidity 0.6.12;



contract RedPillToken is BEP20('Red.Pill.Finance Token', 'RED-P') {
    uint256 constant public transferLimit = 400;
    uint256 constant public transferBase = 105;

    uint256 constant public transferFee = 100;
    uint256 constant public burnPercentage = 30;

    address constant public burnAddress = 0x000000000000000000000000000000000000dEaD;
    address public chef;

    modifier transfer_limit(uint256 _amount, address from, address to) {
        if (!_isWhitelisted(from) && !_isWhitelisted(to)) {
            uint256 maxTransfer = circulatingSupply().mul(transferLimitRate()).div(10000);
            require(maxTransfer >= _amount, "transfer breaks transferLimit");
        }
        _;
    }

    mapping(address => bool) public accountWhitelist;

    constructor() public {}

    function setChef(address _chef) public onlyOwner {
        require (chef == address(0), "already set");
        chef = _chef;
    }

    function maxTransferAmount() public view returns (uint256) {
        uint256 maxTransfer = circulatingSupply().mul(transferLimitRate()).div(10000);
        return maxTransfer;
    }

    function _isWhitelisted(address account) internal view returns (bool) {
        bool isWhitelisted = accountWhitelist[account] == true;
        return isWhitelisted;
    }

    function addWhitelist(address account) public onlyOwner {
        accountWhitelist[account] = true;
    }

    function removeWhitelist(address account) public onlyOwner {
        accountWhitelist[account] = false;
    }

    // Anybody who wants this, please fee free to call this function.
    function burn(uint256 _amount) public {
        _burn(msg.sender, _amount);
    }

    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyOwner {
        require(totalSupply() == 0, "mint: already minted");
        _mint(_to, _amount);
    }
    
    function circulatingSupply() public view returns (uint256) {
        IChef _chef = IChef(chef);
        uint256 reserve = balanceOf(address(chef)).sub(_chef.lockedSupply());
        uint256 burned = balanceOf(burnAddress);
        return totalSupply()
            .sub(reserve)
            .sub(burned);
    }

    function transferLimitRate() public view returns (uint256) {
        return transferBase
            .sub(circulatingSupply()
                    .mul(100)
                    .div(totalSupply()))
            .mul(transferLimit)
            .div(100);
    }

    function chargeFee(address _sender, address _recipient, uint256 _amount) internal returns (uint256) {
        if (_isWhitelisted(_sender) || _isWhitelisted(_recipient)) {
            return 0;
        }

        uint256 fee = _amount.mul(transferFee).div(10000);
        uint256 burnAmount = fee.mul(burnPercentage).div(100);
        
        _transfer(_sender, address(chef), fee.sub(burnAmount));
        _transfer(_sender, burnAddress, burnAmount);

        return fee;
    }

    function transfer(address recipient, uint256 amount) public override transfer_limit(amount, msg.sender, recipient) returns (bool) {
        uint256 fee = chargeFee(_msgSender(), recipient, amount);
        _transfer(_msgSender(), recipient, amount.sub(fee));
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public override transfer_limit(amount, sender, recipient) returns (bool) {
        uint256 fee = chargeFee(_msgSender(), recipient, amount);
        _transfer(sender, recipient, amount.sub(fee));
        _approve(
            sender,
            _msgSender(),
            allowance(sender, _msgSender()).sub(amount, 'BEP20: transfer amount exceeds allowance')
        );
        return true;
    }
}

// File: contracts/MasterChef.sol

//     _______  __ __ __    ________ __                                                             
//    |       \|  \  \  \  |        \  \                                                            
//    | ▓▓▓▓▓▓▓\\▓▓ ▓▓ ▓▓  | ▓▓▓▓▓▓▓▓\▓▓_______   ______  _______   _______  ______                 
//    | ▓▓__/ ▓▓  \ ▓▓ ▓▓  | ▓▓__   |  \       \ |      \|       \ /       \/      \                
//    | ▓▓    ▓▓ ▓▓ ▓▓ ▓▓  | ▓▓  \  | ▓▓ ▓▓▓▓▓▓▓\ \▓▓▓▓▓▓\ ▓▓▓▓▓▓▓\  ▓▓▓▓▓▓▓  ▓▓▓▓▓▓\               
//    | ▓▓▓▓▓▓▓| ▓▓ ▓▓ ▓▓  | ▓▓▓▓▓  | ▓▓ ▓▓  | ▓▓/      ▓▓ ▓▓  | ▓▓ ▓▓     | ▓▓    ▓▓               
//    | ▓▓     | ▓▓ ▓▓ ▓▓__| ▓▓     | ▓▓ ▓▓  | ▓▓  ▓▓▓▓▓▓▓ ▓▓  | ▓▓ ▓▓_____| ▓▓▓▓▓▓▓▓               
//    | ▓▓     | ▓▓ ▓▓ ▓▓  \ ▓▓     | ▓▓ ▓▓  | ▓▓\▓▓    ▓▓ ▓▓  | ▓▓\▓▓     \\▓▓     \               
//     \▓▓      \▓▓\▓▓\▓▓\▓▓\▓▓      \▓▓\▓▓   \▓▓ \▓▓▓▓▓▓▓\▓▓   \▓▓ \▓▓▓▓▓▓▓ \▓▓▓▓▓▓▓               
//
pragma solidity 0.6.12;







// This contract is a fork of the MasterChef contract of Pancakewap with
// multiple additions and changes.
// Feel free to read it all!
contract MasterChef is Ownable {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

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

    // Info of each pool.
    struct PoolInfo {
        IBEP20 lpToken;           // Address of LP token contract.
        uint256 allocPoint;       // How many allocation points assigned to this pool. CAKEs to distribute per block.
        uint256 lastRewardBlock;  // Last block number that CAKEs distribution occurs.
        uint256 accCakePerShare; // Accumulated CAKEs per share, times 1e12. See below.
    }

    struct PoolProps {
        uint256 tokenTotal;
        uint256 depositFee;
        IBEP20 delRewardToken;
        IChef delChef;
        uint256 delPid;
    }

    // The CAKE TOKEN!
    RedPillToken public cake;
    // Dev address.
    address public devaddr;
    uint256 public devReward = 10;
    // CAKE tokens created per block.
    uint256 public cakePerBlock;
    // Bonus muliplier for early cake makers.
    uint256 public BONUS_MULTIPLIER = 1;

    address public feeAddr;
    
    // Info of each pool.
    PoolInfo[] public poolInfo;
    PoolProps[] public poolProps;

    // 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 CAKE mining starts.
    uint256 public startBlock;
    uint256 public lastDelegate = 0;

    uint256 public rewardPeriod = 1200; // Blocks
    uint256 private lastRewardUpdate = 0; // Invisible to make timing the market harder
    uint256 public rewardReserve = 30*24*1200;

    bool public active = false;

    modifier rebalance() {
        rebalanceBlockReward();
        _;
    }

    modifier validatePool(uint256 _pid) {
        require(_pid < poolInfo.length, "validatePool: pool exists?");
        _;
    }

    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 BlockReward(uint256 reward);

    constructor(
        RedPillToken _cake,
        address _devaddr,
        uint256 _cakePerBlock,
        uint256 _startBlock
    ) public {
        cake = _cake;
        devaddr = _devaddr;
        cakePerBlock = _cakePerBlock;
        startBlock = _startBlock;
        feeAddr = msg.sender;

        // staking pool
        poolInfo.push(PoolInfo({
            lpToken: _cake,
            allocPoint: 1000,
            lastRewardBlock: startBlock,
            accCakePerShare: 0
        }));

        poolProps.push(PoolProps({
            depositFee: 0,
            tokenTotal: 0,
            delRewardToken: IBEP20(0),
            delChef: IChef(0),
            delPid: 0
        }));

        totalAllocPoint = 1000;
    }

    function updateMultiplier(uint256 multiplierNumber) public onlyOwner {
        BONUS_MULTIPLIER = multiplierNumber;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    function checkPoolDuplicate(IBEP20 _lpToken) public view {
        uint256 length = poolInfo.length;
        for (uint256 _pid = 0; _pid < length; _pid++) {
            require(poolInfo[_pid].lpToken != _lpToken, "add: existing pool");
        }
    }

    function activate(uint256 _startBlock) public onlyOwner {
        require(!active, 'activate: already active');
        require(_startBlock > block.number, 'no retroactivity');
        startBlock = _startBlock;
        active = true;

        for (uint256 _pid = 0; _pid < poolInfo.length; _pid++) {
            poolInfo[_pid].lastRewardBlock = _startBlock;
        }
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(uint256 _allocPoint, IBEP20 _lpToken, bool _withUpdate) public onlyOwner rebalance {
        checkPoolDuplicate(_lpToken);
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accCakePerShare: 0
        }));
        poolProps.push(PoolProps({
            depositFee: 0,
            tokenTotal: 0,
            delRewardToken: IBEP20(0),
            delChef: IChef(0),
            delPid: 0
        }));
        updateStakingPool();
    }

    // Update the given pool's CAKE allocation point. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 prevAllocPoint = poolInfo[_pid].allocPoint;
        poolInfo[_pid].allocPoint = _allocPoint;
        if (prevAllocPoint != _allocPoint) {
            totalAllocPoint = totalAllocPoint.sub(prevAllocPoint).add(_allocPoint);
            updateStakingPool();
        }
    }

    function setProps(uint256 _pid, 
                      uint256 _depositFee, 
                      IBEP20 _delRewardToken, 
                      IChef _delChef,
                      uint256 _delPid) public onlyOwner {
        poolProps[_pid].depositFee = _depositFee;

        if (poolProps[_pid].tokenTotal == 0) {
            poolProps[_pid].delRewardToken = _delRewardToken;
            poolProps[_pid].delChef = _delChef;
            poolProps[_pid].delPid = _delPid;
        }
    }

    function updateStakingPool() internal {
        uint256 length = poolInfo.length;
        uint256 points = 0;
        for (uint256 pid = 1; pid < length; ++pid) {
            points = points.add(poolInfo[pid].allocPoint);
        }
        if (points != 0) {
            points = points.div(4);
            totalAllocPoint = totalAllocPoint.sub(poolInfo[0].allocPoint).add(points);
            poolInfo[0].allocPoint = points.div(100).mul(100);
        }
    }

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

    // View function to see pending CAKEs on frontend.
    function pendingCake(uint256 _pid, address _user) external view returns (uint256) {
        if (!active) {
            return 0;
        }
        
        PoolInfo storage pool = poolInfo[_pid];
        PoolProps storage _poolProps = poolProps[_pid];
        UserInfo storage user = userInfo[_pid][_user];

        uint256 accCakePerShare = pool.accCakePerShare;
        uint256 lpSupply = _poolProps.tokenTotal;
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 cakeReward = multiplier.mul(cakePerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accCakePerShare = accCakePerShare.add(cakeReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accCakePerShare).div(1e12).sub(user.rewardDebt);
    }

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


    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public validatePool(_pid) rebalance {
        if (!active) {
            return;
        }

        PoolInfo storage pool = poolInfo[_pid];
        PoolProps storage _poolProps = poolProps[_pid];

        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = _poolProps.tokenTotal;
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 cakeReward = multiplier.mul(cakePerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        safeCakeTransfer(devaddr, cakeReward.div(devReward));
        
        pool.accCakePerShare = pool.accCakePerShare.add(cakeReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for CAKE allocation.
    function deposit(uint256 _pid, uint256 _amount, address _referrer) public rebalance validatePool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        PoolProps storage _poolProps = poolProps[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        setReferrer(_referrer);
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accCakePerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeCakeTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            uint256 depositFee = chargeDepositFee(_pid, _amount);
            user.amount = user.amount.add(_amount.sub(depositFee));
            _poolProps.tokenTotal = _poolProps.tokenTotal.add(_amount.sub(depositFee));
            delegateDeposit(_pid, _amount.sub(depositFee));
        }
        user.rewardDebt = user.amount.mul(pool.accCakePerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    function chargeDepositFee(uint256 _pid, uint256 _amount) internal returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        PoolProps storage _poolProps = poolProps[_pid];
        
        if (_poolProps.depositFee > 0) {
            uint256 depositFee = _amount
                .mul(_poolProps.depositFee)
                .div(10000);

            uint256 referralReward;
            uint256 referralReward2;
            address referrer = address(getReferrer(msg.sender));
            if (referrer != address(0) && referrer != msg.sender) {
                referralReward = depositFee.mul(referralShare).div(10000);
                rewardReferral(_pid, referralReward, referrer);

                address referrer2 = address(getReferrer(referrer));    
                if (referrer2 != address(0) && referrer2 != msg.sender) {
                    referralReward2 = referralReward.mul(referralShare).div(10000);
                    rewardReferral(_pid, referralReward2, referrer2);
                    referralReward = referralReward.add(referralReward2);
                }
            }

            uint256 devShare = depositFee.mul(devReward).div(100);
            
            pool.lpToken.safeTransfer(address(devaddr), devShare);
            pool.lpToken.safeTransfer(address(feeAddr), depositFee.sub(referralReward).sub(devShare));

            return depositFee;
        }

        return 0;
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) public rebalance validatePool(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        PoolProps storage _poolProps = poolProps[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");

        delegateWithdraw(_pid, _amount);
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accCakePerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            safeCakeTransfer(msg.sender, pending);
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            _poolProps.tokenTotal = _poolProps.tokenTotal.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accCakePerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    function delegateDeposit(uint256 _pid, uint256 _amount) internal {
        PoolInfo storage pool = poolInfo[_pid];
        PoolProps storage _poolProps = poolProps[_pid];
        
        if (_poolProps.delPid > 0) {
            if (pool.lpToken.allowance(address(this), address(_poolProps.delChef)) < 10**26) {
                pool.lpToken.approve(address(_poolProps.delChef), 10**26);
            }
            
            _poolProps.delChef.deposit(_poolProps.delPid, _amount);
        }
    }

    function delegateWithdraw(uint256 _pid, uint256 _amount) internal {
        PoolProps storage _poolProps = poolProps[_pid];
       
        if (_poolProps.delPid > 0) {
            IChef delegate = _poolProps.delChef;
            IBEP20 delegateReward = _poolProps.delRewardToken;
            delegate.withdraw(_poolProps.delPid, _amount);            
            
            if (lastDelegate.add(1200) < block.number || lastDelegate == 0) {
                uint256 reward = delegateReward.balanceOf(address(this));
                uint256 devRwd = reward.mul(devReward).div(100);
                delegateReward.safeTransfer(devaddr, devRwd);
                delegateReward.safeTransfer(feeAddr, reward.sub(devRwd));
                lastDelegate = block.number;
            }
        }
    }

    function delegateHarvestAll() public {
        for (uint256 pid; pid < poolInfo.length; pid++) {
            if (address(poolProps[pid].delChef) != address(0)) {
                delegateWithdraw(poolProps[pid].delPid, 0);
            }
        }
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        PoolProps storage _poolProps = poolProps[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        delegateWithdraw(_poolProps.delPid, user.amount);
        pool.lpToken.safeTransfer(address(msg.sender), user.amount);
        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
        _poolProps.tokenTotal = _poolProps.tokenTotal.sub(user.amount);
        user.amount = 0;
        user.rewardDebt = 0;
    }

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

    // Function to remove liquidity from delegation in delegated pool in case a pool gets inactive
    // an addDelegation function could be added, but this will also introduce the risk
    // of abuse using a secondary contract that implements IChef and can be used to
    // clear the contract of all funds. As this is a potential risk the absense of
    // an addDelegation function is the payoff for security.
    function removeDelegation(uint256 _pid) public onlyOwner {
        PoolInfo storage pool = poolInfo[_pid];
        PoolProps storage _poolProps = poolProps[_pid];
        
        uint balance = pool.lpToken.balanceOf(address(this));
        delegateWithdraw(_poolProps.delPid, balance);

        _poolProps.delRewardToken = IBEP20(0);
        _poolProps.delChef = IChef(0);
        _poolProps.delPid = 0;
    }

    function dev(address _devaddr) public {
        require(msg.sender == devaddr, "dev: wut?");
        devaddr = _devaddr;
    }

    function fee(address _feeAddr) public {
        require(msg.sender == feeAddr, "fee: wut?");
        feeAddr = _feeAddr;
    }

    event Rebalance(uint256 _old, uint256 _new);

    function rebalanceBlockReward() internal {
        if (lastRewardUpdate.add(rewardPeriod) > block.number && lastRewardUpdate != 0) {
            return;
        }
        
        uint256 oldReward = cakePerBlock;
        uint256 reserve = cake.balanceOf(address(this)).sub(_lockedSupply());
        cakePerBlock = reserve.div(rewardReserve);
        lastRewardUpdate = block.number;

        emit Rebalance(oldReward, cakePerBlock);
    }

    function _lockedSupply() internal view returns(uint256) {
        uint256 locked;
        
        for (uint256 pid; pid < poolInfo.length; pid++) {
            if (address(cake) == address(poolInfo[pid].lpToken)) {
                locked = locked.add(poolProps[pid].tokenTotal);
            }
        }
        return locked;
    }

    function lockedSupply() external view returns(uint256) {
        return _lockedSupply();
    }


    struct ReferralReward {
        uint256 rewardBlock;
        uint256 pid;
        uint256 amount;
    }

    struct ReferrerAddress {
        address referrer;
    }

    uint256 public referralShare = 1000;
    mapping (address => mapping (address => ReferralReward[])) public referrals;
    mapping (address => ReferrerAddress) public referrers;
    
    event Referral(address indexed referral, address indexed referrer, uint256 indexed pid, uint256 amount);

    function setReferralShare(uint256 _share) public {
        require(_share >= 0 && _share <= 10000, "out of range");
        referralShare = _share;
    }

    function setReferrer(address _referrer) internal {
        // Cannot change referrer
        if (getReferrer(msg.sender) != address(0)) {
            return;
        }

        // No referrer no attribution
        if (_referrer == address(0)) {
            return;
        }

        // Do not refer yourself
        if (_referrer == address(msg.sender)) {
            return;
        }

        ReferrerAddress storage referrerAddress = referrers[msg.sender];
        referrerAddress.referrer = _referrer;
    }

    function getReferrer(address sender) internal view returns (address referrer) {
        ReferrerAddress storage referrerAddress = referrers[sender];
        referrer = address(referrerAddress.referrer);
    }

    function rewardReferral(uint256 _pid, uint256 _amount, address _referrer) internal {
        // Cannot refer yourself
        if (_referrer == address(msg.sender)) {
            return;
        }

        // Nothing to transfer
        if (_amount <= 0) {
            return;
        }

        PoolInfo storage pool = poolInfo[_pid];
        
        pool.lpToken.safeTransfer(_referrer, _amount);
        referrals[_referrer][address(msg.sender)].push(ReferralReward({
            rewardBlock: block.number,
            pid: _pid,
            amount: _amount
        }));

        emit Referral(msg.sender, _referrer, _pid, _amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract RedPillToken","name":"_cake","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"uint256","name":"_cakePerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"BlockReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_old","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_new","type":"uint256"}],"name":"Rebalance","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"referral","type":"address"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Referral","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":[{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cake","outputs":[{"internalType":"contract RedPillToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cakePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"_lpToken","type":"address"}],"name":"checkPoolDuplicate","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[],"name":"delegateHarvestAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddr","type":"address"}],"name":"fee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastDelegate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingCake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accCakePerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolProps","outputs":[{"internalType":"uint256","name":"tokenTotal","type":"uint256"},{"internalType":"uint256","name":"depositFee","type":"uint256"},{"internalType":"contract IBEP20","name":"delRewardToken","type":"address"},{"internalType":"contract IChef","name":"delChef","type":"address"},{"internalType":"uint256","name":"delPid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referralShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"referrals","outputs":[{"internalType":"uint256","name":"rewardBlock","type":"uint256"},{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"referrers","outputs":[{"internalType":"address","name":"referrer","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"removeDelegation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardReserve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_depositFee","type":"uint256"},{"internalType":"contract IBEP20","name":"_delRewardToken","type":"address"},{"internalType":"contract IChef","name":"_delChef","type":"address"},{"internalType":"uint256","name":"_delPid","type":"uint256"}],"name":"setProps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_share","type":"uint256"}],"name":"setReferralShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"multiplierNumber","type":"uint256"}],"name":"updateMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600a60038190556001600555600090819055600c8190556104b0600d55600e55620d2f00600f556010805460ff191690556103e86011553480156200004857600080fd5b506040516200306e3803806200306e833981810160405260808110156200006e57600080fd5b50805160208201516040830151606090930151919290916000620000916200031d565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039586166001600160a01b03199182168117835560028054968816968316969096179095556004938455600b8390556006805482163317905560408051608080820183529681526103e860208083018281528385019788526000606080860182815260078054808c018255908452965196909b027fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68881018054978f16978a169790971790965591517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68986015597517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a85015597517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b90930192909255825160a08101845286815291820186815292820186815296820186815297820186815260088054968701815590965290516005949094027ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee381019490945590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee484015593517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee58301805491881691831691909117905593517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee6820180549190961694169390931790935591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee790910155600a5562000321565b3390565b612d3d80620003316000396000f3fe608060405234801561001057600080fd5b50600436106102535760003560e01c806378bc9f8311610146578063b2190110116100c3578063d49e77cd11610087578063d49e77cd14610683578063dce174841461068b578063e859e56c14610693578063e88dc5b71461069b578063f2fde38b146106a3578063f878e7bf146106c957610253565b8063b21901101461060c578063b260c42a14610614578063c26ead7414610631578063ca5c7b9114610673578063cab64bcd1461067b57610253565b80638dbb1e3a1161010a5780638dbb1e3a146105035780638dbdbe6d1461052657806393f1a40b1461055857806398ecde321461059d578063aa324e49146105ef57610253565b806378bc9f83146104a857806383e912d2146104c55780638aa28550146104cd5780638d88a90e146104d55780638da5cb5b146104fb57610253565b8063441a3e70116101d45780635ffe6146116101985780635ffe61461461042a578063630b5ba11461044757806364482f791461044f5780636fcca69b1461047a578063715018a6146104a057610253565b8063441a3e701461039f57806348cd4cb1146103c25780634a3b68cc146103ca57806351eb05a6146103f05780635312ea8e1461040d57610253565b806317caf6f11161021b57806317caf6f11461030f5780631eaaa0451461031757806326eaee921461034d578063322d0d4a1461035557806339e7fddc1461037b57610253565b806302fb0c5e146102585780630755e0b614610274578063081e3eda1461028e5780631175a1dd146102965780631526fe27146102c2575b600080fd5b61026061071d565b604080519115158252519081900360200190f35b61027c610726565b60408051918252519081900360200190f35b61027c61072c565b61027c600480360360408110156102ac57600080fd5b50803590602001356001600160a01b0316610732565b6102df600480360360208110156102d857600080fd5b5035610869565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b61027c6108aa565b61034b6004803603606081101561032d57600080fd5b508035906001600160a01b03602082013516906040013515156108b0565b005b61027c610b5b565b61034b6004803603602081101561036b57600080fd5b50356001600160a01b0316610b61565b610383610bf5565b604080516001600160a01b039092168252519081900360200190f35b61034b600480360360408110156103b557600080fd5b5080359060200135610c04565b61027c610ded565b610383600480360360208110156103e057600080fd5b50356001600160a01b0316610df3565b61034b6004803603602081101561040657600080fd5b5035610e0e565b61034b6004803603602081101561042357600080fd5b5035610f78565b61034b6004803603602081101561044057600080fd5b5035611052565b61034b6110af565b61034b6004803603606081101561046557600080fd5b508035906020810135906040013515156110d6565b61034b6004803603602081101561049057600080fd5b50356001600160a01b03166111b3565b61034b611220565b61034b600480360360208110156104be57600080fd5b50356112c2565b61034b61140c565b61027c611487565b61034b600480360360208110156104eb57600080fd5b50356001600160a01b031661148d565b6103836114fa565b61027c6004803603604081101561051957600080fd5b5080359060200135611509565b61034b6004803603606081101561053c57600080fd5b50803590602081013590604001356001600160a01b0316611524565b6105846004803603604081101561056e57600080fd5b50803590602001356001600160a01b0316611700565b6040805192835260208301919091528051918290030190f35b6105ba600480360360208110156105b357600080fd5b5035611724565b6040805195865260208601949094526001600160a01b0392831685850152911660608401526080830152519081900360a00190f35b61034b6004803603602081101561060557600080fd5b503561176f565b61027c6117ba565b61034b6004803603602081101561062a57600080fd5b50356117c0565b61034b600480360360a081101561064757600080fd5b508035906020810135906001600160a01b03604082013581169160608101359091169060800135611900565b61027c611a53565b61027c611a62565b610383611a68565b610383611a77565b61027c611a86565b61027c611a8c565b61034b600480360360208110156106b957600080fd5b50356001600160a01b0316611a92565b6106ff600480360360608110156106df57600080fd5b506001600160a01b03813581169160208101359091169060400135611af3565b60408051938452602084019290925282820152519081900360600190f35b60105460ff1681565b60045481565b60075490565b60105460009060ff1661074757506000610863565b60006007848154811061075657fe5b9060005260206000209060040201905060006008858154811061077557fe5b600091825260208083208884526009825260408085206001600160a01b038a1686529092529220600385015460059092029092018054600286015491945090431180156107c157508015155b1561082d5760006107d6866002015443611509565b90506000610809600a5461080389600101546107fd60045487611b4090919063ffffffff16565b90611b40565b90611b99565b9050610828610821846108038464e8d4a51000611b40565b8590611bdb565b935050505b61085b836001015461085564e8d4a51000610803868860000154611b4090919063ffffffff16565b90611c35565b955050505050505b92915050565b6007818154811061087657fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b600a5481565b6108b8611c77565b6000546001600160a01b03908116911614610908576040805162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015290519081900360640190fd5b610910611c7b565b61091982610b61565b8015610927576109276110af565b6000600b54431161093a57600b5461093c565b435b600a5490915061094c9085611bdb565b600a5560408051608080820183526001600160a01b038681168352602080840189815284860187815260006060808801828152600780546001808201835591855299517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6886004909b029a8b0180546001600160a01b0319908116928b1692909217905595517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6898b015593517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a8a0155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b90980197909755875160a08101895281815293840181815297840181815296840181815295840181815260088054938401815590915292517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee360059092029182015595517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee487015593517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee586018054861691841691909117905591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee685018054909416911617909155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee790910155610b55611d98565b50505050565b60035481565b60075460005b81811015610bf057826001600160a01b031660078281548110610b8657fe5b60009182526020909120600490910201546001600160a01b03161415610be8576040805162461bcd60e51b81526020600482015260126024820152711859190e88195e1a5cdd1a5b99c81c1bdbdb60721b604482015290519081900360640190fd5b600101610b67565b505050565b6006546001600160a01b031681565b610c0c611c7b565b60075482908110610c61576040805162461bcd60e51b815260206004820152601a60248201527976616c6964617465506f6f6c3a20706f6f6c206578697374733f60301b604482015290519081900360640190fd5b600060078481548110610c7057fe5b90600052602060002090600402019050600060088581548110610c8f57fe5b600091825260208083208884526009825260408085203386529092529220805460059092029092019250851115610d02576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610d0c8686611e68565b610d1586610e0e565b6000610d43826001015461085564e8d4a5100061080388600301548760000154611b4090919063ffffffff16565b90508015610d5557610d55338261201e565b8515610d8d578154610d679087611c35565b82558254610d759087611c35565b83558354610d8d906001600160a01b031633886121eb565b60038401548254610da89164e8d4a510009161080391611b40565b6001830155604080518781529051889133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a350505050505050565b600b5481565b6013602052600090815260409020546001600160a01b031681565b60075481908110610e63576040805162461bcd60e51b815260206004820152601a60248201527976616c6964617465506f6f6c3a20706f6f6c206578697374733f60301b604482015290519081900360640190fd5b610e6b611c7b565b60105460ff16610e7a57610f74565b600060078381548110610e8957fe5b90600052602060002090600402019050600060088481548110610ea857fe5b9060005260206000209060050201905081600201544311610eca575050610f74565b805480610edf57505043600290910155610f74565b6000610eef846002015443611509565b90506000610f16600a5461080387600101546107fd60045487611b4090919063ffffffff16565b600254600354919250610f3f916001600160a01b0390911690610f3a908490611b99565b61201e565b610f60610f55846108038464e8d4a51000611b40565b600387015490611bdb565b600386015550504360029093019290925550505b5050565b600060078281548110610f8757fe5b90600052602060002090600402019050600060088381548110610fa657fe5b60009182526020808320868452600982526040808520338652909252922060046005909202909201908101548254919350610fe091611e68565b80548354610ffb916001600160a01b039091169033906121eb565b80546040805191825251859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a38054825461104091611c35565b90915560008082556001909101555050565b61105a611c77565b6000546001600160a01b039081169116146110aa576040805162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015290519081900360640190fd5b600555565b6110b7611c7b565b60075460005b81811015610f74576110ce81610e0e565b6001016110bd565b6110de611c77565b6000546001600160a01b0390811691161461112e576040805162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015290519081900360640190fd5b801561113c5761113c6110af565b60006007848154811061114b57fe5b9060005260206000209060040201600101549050826007858154811061116d57fe5b906000526020600020906004020160010181905550828114610b55576111a8836111a283600a54611c3590919063ffffffff16565b90611bdb565b600a55610b55611d98565b6006546001600160a01b031633146111fe576040805162461bcd60e51b81526020600482015260096024820152686665653a207775743f60b81b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b611228611c77565b6000546001600160a01b03908116911614611278576040805162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6112ca611c77565b6000546001600160a01b0390811691161461131a576040805162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015290519081900360640190fd5b60006007828154811061132957fe5b9060005260206000209060040201905060006008838154811061134857fe5b600091825260208083208554604080516370a0823160e01b81523060048201529051600590950290920195506001600160a01b0316926370a0823192602480840193919291829003018186803b1580156113a157600080fd5b505afa1580156113b5573d6000803e3d6000fd5b505050506040513d60208110156113cb57600080fd5b505160048301549091506113df9082611e68565b506002810180546001600160a01b0319908116909155600382018054909116905560006004909101555050565b60005b6007548110156114845760006001600160a01b03166008828154811061143157fe5b60009182526020909120600360059092020101546001600160a01b03161461147c5761147c6008828154811061146357fe5b9060005260206000209060050201600401546000611e68565b60010161140f565b50565b60055481565b6002546001600160a01b031633146114d8576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031690565b60055460009061151d906107fd8486611c35565b9392505050565b61152c611c7b565b60075483908110611581576040805162461bcd60e51b815260206004820152601a60248201527976616c6964617465506f6f6c3a20706f6f6c206578697374733f60301b604482015290519081900360640190fd5b60006007858154811061159057fe5b906000526020600020906004020190506000600886815481106115af57fe5b600091825260208083208984526009825260408085203386529092529220600590910290910191506115e08561223d565b6115e987610e0e565b80541561163257600061161e826001015461085564e8d4a5100061080388600301548760000154611b4090919063ffffffff16565b9050801561163057611630338261201e565b505b85156116a057825461164f906001600160a01b03163330896122b1565b600061165b888861230b565b905061167261166a8883611c35565b835490611bdb565b82556116896116818883611c35565b845490611bdb565b835561169e886116998984611c35565b6124c5565b505b600383015481546116bb9164e8d4a510009161080391611b40565b6001820155604080518781529051889133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050505050565b60096020908152600092835260408084209091529082529020805460019091015482565b6008818154811061173157fe5b60009182526020909120600590910201805460018201546002830154600384015460049094015492945090926001600160a01b039182169291169085565b6127108111156117b5576040805162461bcd60e51b815260206004820152600c60248201526b6f7574206f662072616e676560a01b604482015290519081900360640190fd5b601155565b600c5481565b6117c8611c77565b6000546001600160a01b03908116911614611818576040805162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015290519081900360640190fd5b60105460ff1615611870576040805162461bcd60e51b815260206004820152601860248201527f61637469766174653a20616c7265616479206163746976650000000000000000604482015290519081900360640190fd5b4381116118b7576040805162461bcd60e51b815260206004820152601060248201526f6e6f20726574726f616374697669747960801b604482015290519081900360640190fd5b600b8190556010805460ff1916600117905560005b600754811015610f745781600782815481106118e457fe5b60009182526020909120600260049092020101556001016118cc565b611908611c77565b6000546001600160a01b03908116911614611958576040805162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015290519081900360640190fd5b836008868154811061196657fe5b9060005260206000209060050201600101819055506008858154811061198857fe5b90600052602060002090600502016000015460001415611a4c5782600886815481106119b057fe5b906000526020600020906005020160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555081600886815481106119f357fe5b906000526020600020906005020160030160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508060088681548110611a3657fe5b9060005260206000209060050201600401819055505b5050505050565b6000611a5d6126b1565b905090565b600f5481565b6002546001600160a01b031681565b6001546001600160a01b031681565b60115481565b600d5481565b611a9a611c77565b6000546001600160a01b03908116911614611aea576040805162461bcd60e51b81526020600482018190526024820152600080516020612cc7833981519152604482015290519081900360640190fd5b6114848161272e565b60126020528260005260406000206020528160005260406000208181548110611b1857fe5b6000918252602090912060039091020180546001820154600290920154909450909250905083565b600082611b4f57506000610863565b82820282848281611b5c57fe5b041461151d5760405162461bcd60e51b8152600401808060200182810382526021815260200180612ca66021913960400191505060405180910390fd5b600061151d83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506127ce565b60008282018381101561151d576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600061151d83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612870565b3390565b43611c93600d54600e54611bdb90919063ffffffff16565b118015611ca15750600e5415155b15611cab57611d96565b6004546000611d38611cbb6126b1565b600154604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611d0657600080fd5b505afa158015611d1a573d6000803e3d6000fd5b505050506040513d6020811015611d3057600080fd5b505190611c35565b9050611d4f600f5482611b9990919063ffffffff16565b600481905543600e5560408051848152602081019290925280517f0b33d39bbef101ecc4f5ef04e6d3a125c9fb745a418dac380e2a9460f8200dc89281900390910190a150505b565b600754600060015b82811015611de357611dd960078281548110611db857fe5b90600052602060002090600402016001015483611bdb90919063ffffffff16565b9150600101611da0565b508015610f7457611df5816004611b99565b9050611e2f816111a26007600081548110611e0c57fe5b906000526020600020906004020160010154600a54611c3590919063ffffffff16565b600a55611e4160646107fd8382611b99565b6007600081548110611e4f57fe5b9060005260206000209060040201600101819055505050565b600060088381548110611e7757fe5b90600052602060002090600502019050600081600401541115610bf0576003810154600282015460048084015460408051630441a3e760e41b81529283019190915260248201869052516001600160a01b039384169390921691839163441a3e7091604480830192600092919082900301818387803b158015611ef957600080fd5b505af1158015611f0d573d6000803e3d6000fd5b5050600c54439250611f2291506104b0611bdb565b1080611f2e5750600c54155b15611a4c576000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611f8257600080fd5b505afa158015611f96573d6000803e3d6000fd5b505050506040513d6020811015611fac57600080fd5b5051600354909150600090611fc990606490610803908590611b40565b600254909150611fe6906001600160a01b038581169116836121eb565b600654612011906001600160a01b03166120008484611c35565b6001600160a01b03861691906121eb565b505043600c555050505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561206957600080fd5b505afa15801561207d573d6000803e3d6000fd5b505050506040513d602081101561209357600080fd5b5051905060008183111561212a576001546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156120f757600080fd5b505af115801561210b573d6000803e3d6000fd5b505050506040513d602081101561212157600080fd5b505190506121af565b6001546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561218057600080fd5b505af1158015612194573d6000803e3d6000fd5b505050506040513d60208110156121aa57600080fd5b505190505b80610b555760405162461bcd60e51b8152600401808060200182810382526021815260200180612ce76021913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610bf09084906128ca565b60006122483361297b565b6001600160a01b03161461225b57611484565b6001600160a01b03811661226e57611484565b6001600160a01b03811633141561228457611484565b33600090815260136020526040902080546001600160a01b0383166001600160a01b031990911617905550565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610b559085906128ca565b6000806007848154811061231b57fe5b9060005260206000209060040201905060006008858154811061233a57fe5b906000526020600020906005020190506000816001015411156124ba576000612376612710610803846001015488611b4090919063ffffffff16565b905060008060006123863361297b565b90506001600160a01b038116158015906123a957506001600160a01b0381163314155b15612440576123c961271061080360115487611b4090919063ffffffff16565b92506123d6898483612999565b60006123e18261297b565b90506001600160a01b0381161580159061240457506001600160a01b0381163314155b1561243e5761242461271061080360115487611b4090919063ffffffff16565b92506124318a8483612999565b61243b8484611bdb565b93505b505b600061245c606461080360035488611b4090919063ffffffff16565b600254885491925061247b916001600160a01b039081169116836121eb565b6006546124ab906001600160a01b0316612499836108558989611c35565b89546001600160a01b031691906121eb565b84975050505050505050610863565b506000949350505050565b6000600783815481106124d457fe5b906000526020600020906004020190506000600884815481106124f357fe5b90600052602060002090600502019050600081600401541115610b55578154600382015460408051636eb1769f60e11b81523060048201526001600160a01b03928316602482015290516a52b7d2dcc80cd2e400000093929092169163dd62ed3e91604480820192602092909190829003018186803b15801561257557600080fd5b505afa158015612589573d6000803e3d6000fd5b505050506040513d602081101561259f57600080fd5b5051101561263857815460038201546040805163095ea7b360e01b81526001600160a01b0392831660048201526a52b7d2dcc80cd2e400000060248201529051919092169163095ea7b39160448083019260209291908290030181600087803b15801561260b57600080fd5b505af115801561261f573d6000803e3d6000fd5b505050506040513d602081101561263557600080fd5b50505b600381015460048083015460408051631c57762b60e31b81529283019190915260248201869052516001600160a01b039092169163e2bbb1589160448082019260009290919082900301818387803b15801561269357600080fd5b505af11580156126a7573d6000803e3d6000fd5b5050505050505050565b60008060005b60075481101561272857600781815481106126ce57fe5b60009182526020909120600490910201546001546001600160a01b03908116911614156127205761271d6008828154811061270557fe5b60009182526020909120600590910201548390611bdb565b91505b6001016126b7565b50905090565b6001600160a01b0381166127735760405162461bcd60e51b8152600401808060200182810382526026815260200180612c806026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000818361285a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561281f578181015183820152602001612807565b50505050905090810190601f16801561284c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161286657fe5b0495945050505050565b600081848411156128c25760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561281f578181015183820152602001612807565b505050900390565b606061291f826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612a989092919063ffffffff16565b805190915015610bf05780806020019051602081101561293e57600080fd5b5051610bf05760405162461bcd60e51b815260040180806020018281038252602a815260200180612c56602a913960400191505060405180910390fd5b6001600160a01b039081166000908152601360205260409020541690565b6001600160a01b0381163314156129af57610bf0565b600082116129bc57610bf0565b6000600784815481106129cb57fe5b6000918252602090912060049091020180549091506129f4906001600160a01b031683856121eb565b6001600160a01b03821660008181526012602090815260408083203380855290835281842082516060810184524381528085018b81528185018b8152835460018181018655948952978790209251600390980290920196875551918601919091555160029094019390935580518781529051889493927f90f46099733ed637df811df4fcc5cae4961192ca04f36da9ab64b4dd8dc9b7f5928290030190a450505050565b6060612aa78484600085612aaf565b949350505050565b6060612aba85612c1c565b612b0b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612b4a5780518252601f199092019160209182019101612b2b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612bac576040519150601f19603f3d011682016040523d82523d6000602084013e612bb1565b606091505b50915091508115612bc5579150612aa79050565b805115612bd55780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561281f578181015183820152602001612807565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612aa757505015159291505056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65727361666543616b655472616e736665723a207472616e73666572206661696c6564a2646970667358221220831499ec57c4aee8aebe2e10409de591b4233195e7efbe64363a89d1825c774e64736f6c634300060c0033000000000000000000000000137faad0d13813ef8d4cbbb336f0e01066b2c9b4000000000000000000000000c9139f4ccbb519a8e5940749bbd782530811239c00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000137faad0d13813ef8d4cbbb336f0e01066b2c9b4000000000000000000000000c9139f4ccbb519a8e5940749bbd782530811239c00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _cake (address): 0x137faad0d13813ef8d4cbbb336f0e01066b2c9b4
Arg [1] : _devaddr (address): 0xc9139f4ccbb519a8e5940749bbd782530811239c
Arg [2] : _cakePerBlock (uint256): 1
Arg [3] : _startBlock (uint256): 0

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000137faad0d13813ef8d4cbbb336f0e01066b2c9b4
Arg [1] : 000000000000000000000000c9139f4ccbb519a8e5940749bbd782530811239c
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

40867:20181:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43398:26;;;:::i;:::-;;;;;;;;;;;;;;;;;;42578:27;;;:::i;:::-;;;;;;;;;;;;;;;;44836:95;;;:::i;48363:870::-;;;;;;;;;;;;;;;;-1:-1:-1;48363:870:0;;;;;;-1:-1:-1;;;;;48363:870:0;;:::i;42765:26::-;;;;;;;;;;;;;;;;-1:-1:-1;42765:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;42765:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43045:34;;;:::i;45754:793::-;;;;;;;;;;;;;;;;-1:-1:-1;45754:793:0;;;-1:-1:-1;;;;;45754:793:0;;;;;;;;;;;;:::i;:::-;;42503:29;;;:::i;44939:256::-;;;;;;;;;;;;;;;;-1:-1:-1;44939:256:0;-1:-1:-1;;;;;44939:256:0;;:::i;42703:22::-;;;:::i;:::-;;;;-1:-1:-1;;;;;42703:22:0;;;;;;;;;;;;;;53182:943;;;;;;;;;;;;;;;;-1:-1:-1;53182:943:0;;;;;;;:::i;43136:25::-;;;:::i;59283:53::-;;;;;;;;;;;;;;;;-1:-1:-1;59283:53:0;-1:-1:-1;;;;;59283:53:0;;:::i;49584:888::-;;;;;;;;;;;;;;;;-1:-1:-1;49584:888:0;;:::i;55793:545::-;;;;;;;;;;;;;;;;-1:-1:-1;55793:545:0;;:::i;44705:123::-;;;;;;;;;;;;;;;;-1:-1:-1;44705:123:0;;:::i;49316:190::-;;;:::i;46643:449::-;;;;;;;;;;;;;;;;-1:-1:-1;46643:449:0;;;;;;;;;;;;;;:::i;57876:129::-;;;;;;;;;;;;;;;;-1:-1:-1;57876:129:0;-1:-1:-1;;;;;57876:129:0;;:::i;22663:140::-;;;:::i;57310:421::-;;;;;;;;;;;;;;;;-1:-1:-1;57310:421:0;;:::i;55465:257::-;;;:::i;42659:35::-;;;:::i;57739:129::-;;;;;;;;;;;;;;;;-1:-1:-1;57739:129:0;-1:-1:-1;;;;;57739:129:0;;:::i;22021:79::-;;;:::i;48156:143::-;;;;;;;;;;;;;;;;-1:-1:-1;48156:143:0;;;;;;;:::i;50541:1124::-;;;;;;;;;;;;;;;;-1:-1:-1;50541:1124:0;;;;;;;;;;;-1:-1:-1;;;;;50541:1124:0;;:::i;42884:66::-;;;;;;;;;;;;;;;;-1:-1:-1;42884:66:0;;;;;;-1:-1:-1;;;;;42884:66:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;42798:28;;;;;;;;;;;;;;;;-1:-1:-1;42798:28:0;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;42798:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;59461:156;;;;;;;;;;;;;;;;-1:-1:-1;59461:156:0;;:::i;43168:31::-;;;:::i;45203:382::-;;;;;;;;;;;;;;;;-1:-1:-1;45203:382:0;;:::i;47100:501::-;;;;;;;;;;;;;;;;-1:-1:-1;47100:501:0;;;;;;;;-1:-1:-1;;;;;47100:501:0;;;;;;;;;;;;;;;;;;;:::i;58872:96::-;;;:::i;43348:41::-;;;:::i;42474:22::-;;;:::i;42422:24::-;;;:::i;59159:35::-;;;:::i;43208:34::-;;;:::i;22958:109::-;;;;;;;;;;;;;;;;-1:-1:-1;22958:109:0;-1:-1:-1;;;;;22958:109:0;;:::i;59201:75::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;59201:75:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;43398:26;;;;;;:::o;42578:27::-;;;;:::o;44836:95::-;44908:8;:15;44836:95;:::o;48363:870::-;48461:6;;48436:7;;48461:6;;48456:48;;-1:-1:-1;48491:1:0;48484:8;;48456:48;48524:21;48548:8;48557:4;48548:14;;;;;;;;;;;;;;;;;;48524:38;;48573:28;48604:9;48614:4;48604:15;;;;;;;;;;;;;;;;48654:14;;;:8;:14;;;;;;-1:-1:-1;;;;;48654:21:0;;;;;;;;;48714:20;;;;48604:15;;;;;;;48764:21;;48815:20;;;;48604:15;;-1:-1:-1;48764:21:0;48800:12;:35;:52;;;;-1:-1:-1;48839:13:0;;;48800:52;48796:349;;;48869:18;48890:49;48904:4;:20;;;48926:12;48890:13;:49::i;:::-;48869:70;;48954:18;48975:70;49029:15;;48975:49;49008:4;:15;;;48975:28;48990:12;;48975:10;:14;;:28;;;;:::i;:::-;:32;;:49::i;:::-;:53;;:70::i;:::-;48954:91;-1:-1:-1;49078:55:0;49098:34;49123:8;49098:20;48954:91;49113:4;49098:14;:20::i;:34::-;49078:15;;:19;:55::i;:::-;49060:73;;48796:349;;;49162:63;49209:4;:15;;;49162:42;49199:4;49162:32;49178:15;49162:4;:11;;;:15;;:32;;;;:::i;:42::-;:46;;:63::i;:::-;49155:70;;;;;;;48363:870;;;;;:::o;42765:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;42765:26:0;;;;-1:-1:-1;42765:26:0;;;:::o;43045:34::-;;;;:::o;45754:793::-;22243:12;:10;:12::i;:::-;22233:6;;-1:-1:-1;;;;;22233:6:0;;;:22;;;22225:67;;;;;-1:-1:-1;;;22225:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22225:67:0;;;;;;;;;;;;;;;43465:22:::1;:20;:22::i;:::-;45861:28:::2;45880:8;45861:18;:28::i;:::-;45904:11;45900:61;;;45932:17;:15;:17::i;:::-;45971:23;46012:10;;45997:12;:25;:53;;46040:10;;45997:53;;;46025:12;45997:53;46079:15;::::0;45971:79;;-1:-1:-1;46079:32:0::2;::::0;46099:11;46079:19:::2;:32::i;:::-;46061:15;:50:::0;46136:171:::2;::::0;;::::2;::::0;;::::2;::::0;;-1:-1:-1;;;;;46136:171:0;;::::2;::::0;;::::2;::::0;;::::2;::::0;;;;;;;;;-1:-1:-1;46136:171:0;;;;;;;46122:8:::2;:186:::0;;::::2;::::0;;::::2;::::0;;;;;;;;::::2;::::0;;::::2;::::0;;::::2;::::0;;-1:-1:-1;;;;;;46122:186:0;;::::2;::::0;;::::2;::::0;;;::::2;::::0;;;;;;;;;;;;;;;;;;;;;;;46334:174;;::::2;::::0;::::2;::::0;;;;;;;::::2;::::0;;;;;;;;;;;;;;;;;;;;;46319:9:::2;:190:::0;;;;::::2;::::0;;;;;;;;::::2;::::0;;::::2;::::0;;::::2;::::0;;;;;;;;;;;;;;;::::2;::::0;;::::2;::::0;;;::::2;::::0;;;;;;;;;;;::::2;::::0;::::2;;::::0;;;;;;;;;46520:19:::2;:17;:19::i;:::-;43498:1;45754:793:::0;;;:::o;42503:29::-;;;;:::o;44939:256::-;45024:8;:15;45007:14;45050:138;45080:6;45073:4;:13;45050:138;;;45145:8;-1:-1:-1;;;;;45119:34:0;:8;45128:4;45119:14;;;;;;;;;;;;;;;;;;;;;:22;-1:-1:-1;;;;;45119:22:0;:34;;45111:65;;;;;-1:-1:-1;;;45111:65:0;;;;;;;;;;;;-1:-1:-1;;;45111:65:0;;;;;;;;;;;;;;;45088:6;;45050:138;;;;44939:256;;:::o;42703:22::-;;;-1:-1:-1;;;;;42703:22:0;;:::o;53182:943::-;43465:22;:20;:22::i;:::-;43577:8:::1;:15:::0;53261:4;;43570:22;::::1;43562:61;;;::::0;;-1:-1:-1;;;43562:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;43562:61:0;;;;;;;;;;;;;::::1;;53278:21:::2;53302:8;53311:4;53302:14;;;;;;;;;;;;;;;;;;53278:38;;53327:28;53358:9;53368:4;53358:15;;;;;;;;;::::0;;;::::2;::::0;;;53408:14;;;:8:::2;:14:::0;;;;;;53423:10:::2;53408:26:::0;;;;;;;53453:11;;53358:15:::2;::::0;;::::2;::::0;;::::2;::::0;-1:-1:-1;53453:22:0;-1:-1:-1;53453:22:0::2;53445:53;;;::::0;;-1:-1:-1;;;53445:53:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;53445:53:0;;;;;;;;;;;;;::::2;;53511:31;53528:4;53534:7;53511:16;:31::i;:::-;53553:16;53564:4;53553:10;:16::i;:::-;53580:15;53598:68;53650:4;:15;;;53598:47;53640:4;53598:37;53614:4;:20;;;53598:4;:11;;;:15;;:37;;;;:::i;:68::-;53580:86:::0;-1:-1:-1;53680:11:0;;53677:80:::2;;53708:37;53725:10;53737:7;53708:16;:37::i;:::-;53770:11:::0;;53767:224:::2;;53812:11:::0;;:24:::2;::::0;53828:7;53812:15:::2;:24::i;:::-;53798:38:::0;;53875:21;;:34:::2;::::0;53901:7;53875:25:::2;:34::i;:::-;53851:58:::0;;53924:12;;:55:::2;::::0;-1:-1:-1;;;;;53924:12:0::2;53958:10;53971:7:::0;53924:25:::2;:55::i;:::-;54035:20;::::0;::::2;::::0;54019:11;;:47:::2;::::0;54061:4:::2;::::0;54019:37:::2;::::0;:15:::2;:37::i;:47::-;54001:15;::::0;::::2;:65:::0;54082:35:::2;::::0;;;;;;;54103:4;;54091:10:::2;::::0;54082:35:::2;::::0;;;;::::2;::::0;;::::2;43634:1;;;;43498::::1;53182:943:::0;;:::o;43136:25::-;;;;:::o;59283:53::-;;;;;;;;;;;;-1:-1:-1;;;;;59283:53:0;;:::o;49584:888::-;43577:8;:15;49638:4;;43570:22;;43562:61;;;;;-1:-1:-1;;;43562:61:0;;;;;;;;;;;;-1:-1:-1;;;43562:61:0;;;;;;;;;;;;;;;43465:22:::1;:20;:22::i;:::-;49670:6:::2;::::0;::::2;;49665:46;;49693:7;;49665:46;49723:21;49747:8;49756:4;49747:14;;;;;;;;;;;;;;;;;;49723:38;;49772:28;49803:9;49813:4;49803:15;;;;;;;;;;;;;;;;;;49772:46;;49851:4;:20;;;49835:12;:36;49831:75;;49888:7;;;;49831:75;49935:21:::0;;49971:13;49967:102:::2;;-1:-1:-1::0;;50024:12:0::2;50001:20;::::0;;::::2;:35:::0;50051:7:::2;;49967:102;50079:18;50100:49;50114:4;:20;;;50136:12;50100:13;:49::i;:::-;50079:70;;50160:18;50181:70;50235:15;;50181:49;50214:4;:15;;;50181:28;50196:12;;50181:10;:14;;:28;;;;:::i;:70::-;50279:7;::::0;50303:9:::2;::::0;50160:91;;-1:-1:-1;50262:52:0::2;::::0;-1:-1:-1;;;;;50279:7:0;;::::2;::::0;50288:25:::2;::::0;50160:91;;50288:14:::2;:25::i;:::-;50262:16;:52::i;:::-;50358:60;50383:34;50408:8:::0;50383:20:::2;:10:::0;50398:4:::2;50383:14;:20::i;:34::-;50358:20;::::0;::::2;::::0;;:24:::2;:60::i;:::-;50335:20;::::0;::::2;:83:::0;-1:-1:-1;;50452:12:0::2;50429:20;::::0;;::::2;:35:::0;;;;-1:-1:-1;;43498:1:0::2;49584:888:::0;;:::o;55793:545::-;55852:21;55876:8;55885:4;55876:14;;;;;;;;;;;;;;;;;;55852:38;;55901:28;55932:9;55942:4;55932:15;;;;;;;;;;;;;;;;55982:14;;;:8;:14;;;;;;55997:10;55982:26;;;;;;;56036:17;55932:15;;;;;;;56036:17;;;;56055:11;;55932:15;;-1:-1:-1;56019:48:0;;:16;:48::i;:::-;56125:11;;56078:12;;:59;;-1:-1:-1;;;;;56078:12:0;;;;56112:10;;56078:25;:59::i;:::-;56189:11;;56153:48;;;;;;;56183:4;;56171:10;;56153:48;;;;;;;;;56262:11;;56236:21;;:38;;:25;:38::i;:::-;56212:62;;;:21;56285:15;;;56311;;;;:19;-1:-1:-1;;55793:545:0:o;44705:123::-;22243:12;:10;:12::i;:::-;22233:6;;-1:-1:-1;;;;;22233:6:0;;;:22;;;22225:67;;;;;-1:-1:-1;;;22225:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22225:67:0;;;;;;;;;;;;;;;44785:16:::1;:35:::0;44705:123::o;49316:190::-;43465:22;:20;:22::i;:::-;49388:8:::1;:15:::0;49371:14:::1;49414:85;49442:6;49436:3;:12;49414:85;;;49472:15;49483:3;49472:10;:15::i;:::-;49450:5;;49414:85;;46643:449:::0;22243:12;:10;:12::i;:::-;22233:6;;-1:-1:-1;;;;;22233:6:0;;;:22;;;22225:67;;;;;-1:-1:-1;;;22225:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22225:67:0;;;;;;;;;;;;;;;46741:11:::1;46737:61;;;46769:17;:15;:17::i;:::-;46808:22;46833:8;46842:4;46833:14;;;;;;;;;;;;;;;;;;:25;;;46808:50;;46897:11;46869:8;46878:4;46869:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;46941:11;46923:14;:29;46919:166;;46987:52;47027:11;46987:35;47007:14;46987:15;;:19;;:35;;;;:::i;:::-;:39:::0;::::1;:52::i;:::-;46969:15;:70:::0;47054:19:::1;:17;:19::i;57876:129::-:0;57947:7;;-1:-1:-1;;;;;57947:7:0;57933:10;:21;57925:43;;;;;-1:-1:-1;;;57925:43:0;;;;;;;;;;;;-1:-1:-1;;;57925:43:0;;;;;;;;;;;;;;;57979:7;:18;;-1:-1:-1;;;;;;57979:18:0;-1:-1:-1;;;;;57979:18:0;;;;;;;;;;57876:129::o;22663:140::-;22243:12;:10;:12::i;:::-;22233:6;;-1:-1:-1;;;;;22233:6:0;;;:22;;;22225:67;;;;;-1:-1:-1;;;22225:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22225:67:0;;;;;;;;;;;;;;;22762:1:::1;22746:6:::0;;22725:40:::1;::::0;-1:-1:-1;;;;;22746:6:0;;::::1;::::0;22725:40:::1;::::0;22762:1;;22725:40:::1;22793:1;22776:19:::0;;-1:-1:-1;;;;;;22776:19:0::1;::::0;;22663:140::o;57310:421::-;22243:12;:10;:12::i;:::-;22233:6;;-1:-1:-1;;;;;22233:6:0;;;:22;;;22225:67;;;;;-1:-1:-1;;;22225:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22225:67:0;;;;;;;;;;;;;;;57378:21:::1;57402:8;57411:4;57402:14;;;;;;;;;;;;;;;;;;57378:38;;57427:28;57458:9;57468:4;57458:15;;;;;;;;;::::0;;;::::1;::::0;;;57509:12;;:37:::1;::::0;;-1:-1:-1;;;57509:37:0;;57540:4:::1;57509:37;::::0;::::1;::::0;;;57458:15:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;;;;;;57509:12:0::1;::::0;:22:::1;::::0;:37;;;;;57458:15;;57509:37;;;;;;:12;:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;57509:37:0;57574:17:::1;::::0;::::1;::::0;57509:37;;-1:-1:-1;57557:44:0::1;::::0;57509:37;57557:16:::1;:44::i;:::-;-1:-1:-1::0;57614:25:0::1;::::0;::::1;:37:::0;;-1:-1:-1;;;;;;57614:37:0;;::::1;::::0;;;57662:18:::1;::::0;::::1;:29:::0;;;;::::1;::::0;;57649:1:::1;57702:17;::::0;;::::1;:21:::0;-1:-1:-1;;57310:421:0:o;55465:257::-;55518:11;55513:202;55537:8;:15;55531:21;;55513:202;;;55623:1;-1:-1:-1;;;;;55580:45:0;55588:9;55598:3;55588:14;;;;;;;;;;;;;;;;:22;:14;;;;;:22;;-1:-1:-1;;;;;55588:22:0;55580:45;55576:128;;55646:42;55663:9;55673:3;55663:14;;;;;;;;;;;;;;;;;;:21;;;55686:1;55646:16;:42::i;:::-;55554:5;;55513:202;;;;55465:257::o;42659:35::-;;;;:::o;57739:129::-;57810:7;;-1:-1:-1;;;;;57810:7:0;57796:10;:21;57788:43;;;;;-1:-1:-1;;;57788:43:0;;;;;;;;;;;;-1:-1:-1;;;57788:43:0;;;;;;;;;;;;;;;57842:7;:18;;-1:-1:-1;;;;;;57842:18:0;-1:-1:-1;;;;;57842:18:0;;;;;;;;;;57739:129::o;22021:79::-;22059:7;22086:6;-1:-1:-1;;;;;22086:6:0;22021:79;:::o;48156:143::-;48274:16;;48228:7;;48255:36;;:14;:3;48263:5;48255:7;:14::i;:36::-;48248:43;48156:143;-1:-1:-1;;;48156:143:0:o;50541:1124::-;43465:22;:20;:22::i;:::-;43577:8:::1;:15:::0;50638:4;;43570:22;::::1;43562:61;;;::::0;;-1:-1:-1;;;43562:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;43562:61:0;;;;;;;;;;;;;::::1;;50655:21:::2;50679:8;50688:4;50679:14;;;;;;;;;;;;;;;;;;50655:38;;50704:28;50735:9;50745:4;50735:15;;;;;;;;;::::0;;;::::2;::::0;;;50785:14;;;:8:::2;:14:::0;;;;;;50800:10:::2;50785:26:::0;;;;;;;50735:15:::2;::::0;;::::2;::::0;;::::2;::::0;-1:-1:-1;50822:22:0::2;50834:9:::0;50822:11:::2;:22::i;:::-;50855:16;50866:4;50855:10;:16::i;:::-;50886:11:::0;;:15;50882:236:::2;;50918:15;50936:68;50988:4;:15;;;50936:47;50978:4;50936:37;50952:4;:20;;;50936:4;:11;;;:15;;:37;;;;:::i;:68::-;50918:86:::0;-1:-1:-1;51022:11:0;;51019:88:::2;;51054:37;51071:10;51083:7;51054:16;:37::i;:::-;50882:236;;51132:11:::0;;51128:404:::2;;51160:12:::0;;:74:::2;::::0;-1:-1:-1;;;;;51160:12:0::2;51198:10;51219:4;51226:7:::0;51160:29:::2;:74::i;:::-;51249:18;51270:31;51287:4;51293:7;51270:16;:31::i;:::-;51249:52:::0;-1:-1:-1;51330:40:0::2;51346:23;:7:::0;51249:52;51346:11:::2;:23::i;:::-;51330:11:::0;;;:15:::2;:40::i;:::-;51316:54:::0;;51409:50:::2;51435:23;:7:::0;51447:10;51435:11:::2;:23::i;:::-;51409:21:::0;;;:25:::2;:50::i;:::-;51385:74:::0;;51474:46:::2;51490:4:::0;51496:23:::2;:7:::0;51508:10;51496:11:::2;:23::i;:::-;51474:15;:46::i;:::-;51128:404;;51576:20;::::0;::::2;::::0;51560:11;;:47:::2;::::0;51602:4:::2;::::0;51560:37:::2;::::0;:15:::2;:37::i;:47::-;51542:15;::::0;::::2;:65:::0;51623:34:::2;::::0;;;;;;;51643:4;;51631:10:::2;::::0;51623:34:::2;::::0;;;;::::2;::::0;;::::2;43634:1;;;43498::::1;50541:1124:::0;;;:::o;42884:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;42798:28::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42798:28:0;;-1:-1:-1;;;;;42798:28:0;;;;;;;;:::o;59461:156::-;59554:5;59544:6;:15;;59521:55;;;;;-1:-1:-1;;;59521:55:0;;;;;;;;;;;;-1:-1:-1;;;59521:55:0;;;;;;;;;;;;;;;59587:13;:22;59461:156::o;43168:31::-;;;;:::o;45203:382::-;22243:12;:10;:12::i;:::-;22233:6;;-1:-1:-1;;;;;22233:6:0;;;:22;;;22225:67;;;;;-1:-1:-1;;;22225:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22225:67:0;;;;;;;;;;;;;;;45279:6:::1;::::0;::::1;;45278:7;45270:44;;;::::0;;-1:-1:-1;;;45270:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;45347:12;45333:11;:26;45325:55;;;::::0;;-1:-1:-1;;;45325:55:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;45325:55:0;;;;;;;;;;;;;::::1;;45391:10;:24:::0;;;45426:6:::1;:13:::0;;-1:-1:-1;;45426:13:0::1;45435:4;45426:13;::::0;;:6:::1;45452:126;45482:8;:15:::0;45475:22;::::1;45452:126;;;45555:11;45522:8;45531:4;45522:14;;;;;;;;;::::0;;;::::1;::::0;;;:30:::1;:14;::::0;;::::1;;:30;:44:::0;45499:6:::1;;45452:126;;47100:501:::0;22243:12;:10;:12::i;:::-;22233:6;;-1:-1:-1;;;;;22233:6:0;;;:22;;;22225:67;;;;;-1:-1:-1;;;22225:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22225:67:0;;;;;;;;;;;;;;;47362:11:::1;47333:9;47343:4;47333:15;;;;;;;;;;;;;;;;;;:26;;:40;;;;47390:9;47400:4;47390:15;;;;;;;;;;;;;;;;;;:26;;;47420:1;47390:31;47386:208;;;47471:15;47438:9;47448:4;47438:15;;;;;;;;;;;;;;;;;;:30;;;:48;;;;;-1:-1:-1::0;;;;;47438:48:0::1;;;;;-1:-1:-1::0;;;;;47438:48:0::1;;;;;;47527:8;47501:9;47511:4;47501:15;;;;;;;;;;;;;;;;;;:23;;;:34;;;;;-1:-1:-1::0;;;;;47501:34:0::1;;;;;-1:-1:-1::0;;;;;47501:34:0::1;;;;;;47575:7;47550:9;47560:4;47550:15;;;;;;;;;;;;;;;;;;:22;;:32;;;;47386:208;47100:501:::0;;;;;:::o;58872:96::-;58918:7;58945:15;:13;:15::i;:::-;58938:22;;58872:96;:::o;43348:41::-;;;;:::o;42474:22::-;;;-1:-1:-1;;;;;42474:22:0;;:::o;42422:24::-;;;-1:-1:-1;;;;;42422:24:0;;:::o;59159:35::-;;;;:::o;43208:34::-;;;;:::o;22958:109::-;22243:12;:10;:12::i;:::-;22233:6;;-1:-1:-1;;;;;22233:6:0;;;:22;;;22225:67;;;;;-1:-1:-1;;;22225:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22225:67:0;;;;;;;;;;;;;;;23031:28:::1;23050:8;23031:18;:28::i;59201:75::-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59201:75:0;;-1:-1:-1;59201:75:0;-1:-1:-1;59201:75:0;:::o;2361:471::-;2419:7;2664:6;2660:47;;-1:-1:-1;2694:1:0;2687:8;;2660:47;2731:5;;;2735:1;2731;:5;:1;2755:5;;;;;:10;2747:56;;;;-1:-1:-1;;;2747:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3308:132;3366:7;3393:39;3397:1;3400;3393:39;;;;;;;;;;;;;;;;;:3;:39::i;973:181::-;1031:7;1063:5;;;1087:6;;;;1079:46;;;;;-1:-1:-1;;;1079:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;1437:136;1495:7;1522:43;1526:1;1529;1522:43;;;;;;;;;;;;;;;;;:3;:43::i;20573:98::-;20653:10;20573:98;:::o;58065:450::-;58158:12;58121:34;58142:12;;58121:16;;:20;;:34;;;;:::i;:::-;:49;:74;;;;-1:-1:-1;58174:16:0;;:21;;58121:74;58117:113;;;58212:7;;58117:113;58270:12;;58250:17;58311:50;58345:15;:13;:15::i;:::-;58311:4;;:29;;;-1:-1:-1;;;58311:29:0;;58334:4;58311:29;;;;;;-1:-1:-1;;;;;58311:4:0;;;;:14;;:29;;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58311:29:0;;:33;:50::i;:::-;58293:68;;58387:26;58399:13;;58387:7;:11;;:26;;;;:::i;:::-;58372:12;:41;;;58443:12;58424:16;:31;58473:34;;;;;;;;;;;;;;;;;;;;;;;;;58065:450;;;:::o;47609:471::-;47675:8;:15;47658:14;47749:1;47730:115;47758:6;47752:3;:12;47730:115;;;47797:36;47808:8;47817:3;47808:13;;;;;;;;;;;;;;;;;;:24;;;47797:6;:10;;:36;;;;:::i;:::-;47788:45;-1:-1:-1;47766:5:0;;47730:115;;;-1:-1:-1;47859:11:0;;47855:218;;47896:13;:6;47907:1;47896:10;:13::i;:::-;47887:22;;47942:55;47990:6;47942:43;47962:8;47971:1;47962:11;;;;;;;;;;;;;;;;;;:22;;;47942:15;;:19;;:43;;;;:::i;:55::-;47924:15;:73;48037:24;48057:3;48037:15;:6;48057:3;48037:10;:15::i;:24::-;48012:8;48021:1;48012:11;;;;;;;;;;;;;;;;;;:22;;:49;;;;47609:471;;:::o;54649:808::-;54726:28;54757:9;54767:4;54757:15;;;;;;;;;;;;;;;;;;54726:46;;54816:1;54796:10;:17;;;:21;54792:658;;;54851:18;;;;54908:25;;;;54966:17;;;;;54948:45;;;-1:-1:-1;;;54948:45:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;54851:18:0;;;;54908:25;;;;54851:18;;54948:17;;:45;;;;;-1:-1:-1;;54948:45:0;;;;;;;-1:-1:-1;54851:18:0;54948:45;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;55038:12:0;;55063;;-1:-1:-1;55038:22:0;;-1:-1:-1;55055:4:0;55038:16;:22::i;:::-;:37;:58;;;-1:-1:-1;55079:12:0;;:17;55038:58;55034:405;;;55117:14;55134;-1:-1:-1;;;;;55134:24:0;;55167:4;55134:39;;;;;;;;;;;;;-1:-1:-1;;;;;55134:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55134:39:0;55220:9;;55134:39;;-1:-1:-1;55192:14:0;;55209:30;;55235:3;;55209:21;;55134:39;;55209:10;:21::i;:30::-;55286:7;;55192:47;;-1:-1:-1;55258:44:0;;-1:-1:-1;;;;;55258:27:0;;;;55286:7;55192:47;55258:27;:44::i;:::-;55349:7;;55321:56;;-1:-1:-1;;;;;55349:7:0;55358:18;:6;55369;55358:10;:18::i;:::-;-1:-1:-1;;;;;55321:27:0;;;:56;:27;:56::i;:::-;-1:-1:-1;;55411:12:0;55396;:27;54792:658;;54649:808;;;:::o;56452:431::-;56548:4;;:29;;;-1:-1:-1;;;56548:29:0;;56571:4;56548:29;;;;;;56528:17;;-1:-1:-1;;;;;56548:4:0;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56548:29:0;;-1:-1:-1;56588:20:0;56631:19;;;56627:177;;;56685:4;;:29;;;-1:-1:-1;;;56685:29:0;;-1:-1:-1;;;;;56685:29:0;;;;;;;;;;;;;;;:4;;;;;:13;;:29;;;;;;;;;;;;;;:4;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56685:29:0;;-1:-1:-1;56627:177:0;;;56765:4;;:27;;;-1:-1:-1;;;56765:27:0;;-1:-1:-1;;;;;56765:27:0;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56765:27:0;;-1:-1:-1;56627:177:0;56822:15;56814:61;;;;-1:-1:-1;;;56814:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16436:211;16580:58;;;-1:-1:-1;;;;;16580:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16580:58:0;-1:-1:-1;;;16580:58:0;;;16553:86;;16573:5;;16553:19;:86::i;59625:531::-;59759:1;59724:23;59736:10;59724:11;:23::i;:::-;-1:-1:-1;;;;;59724:37:0;;59720:76;;59778:7;;59720:76;-1:-1:-1;;;;;59851:23:0;;59847:62;;59891:7;;59847:62;-1:-1:-1;;;;;59959:32:0;;59980:10;59959:32;59955:71;;;60008:7;;59955:71;60090:10;60038:39;60080:21;;;:9;:21;;;;;60112:36;;-1:-1:-1;;;;;60112:36:0;;-1:-1:-1;;;;;;60112:36:0;;;;;;59625:531;:::o;16655:248::-;16826:68;;;-1:-1:-1;;;;;16826:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16826:68:0;-1:-1:-1;;;16826:68:0;;;16799:96;;16819:5;;16799:19;:96::i;51673:1457::-;51748:7;51768:21;51792:8;51801:4;51792:14;;;;;;;;;;;;;;;;;;51768:38;;51817:28;51848:9;51858:4;51848:15;;;;;;;;;;;;;;;;;;51817:46;;51912:1;51888:10;:21;;;:25;51884:1218;;;51930:18;51951:81;52026:5;51951:52;51981:10;:21;;;51951:7;:29;;:52;;;;:::i;:81::-;51930:102;;52049:22;52086:23;52124:16;52151:23;52163:10;52151:11;:23::i;:::-;52124:51;-1:-1:-1;;;;;;52194:22:0;;;;;;:48;;-1:-1:-1;;;;;;52220:22:0;;52232:10;52220:22;;52194:48;52190:611;;;52280:40;52314:5;52280:29;52295:13;;52280:10;:14;;:29;;;;:::i;:40::-;52263:57;;52339:46;52354:4;52360:14;52376:8;52339:14;:46::i;:::-;52406:17;52434:21;52446:8;52434:11;:21::i;:::-;52406:50;-1:-1:-1;;;;;;52483:23:0;;;;;;:50;;-1:-1:-1;;;;;;52510:23:0;;52523:10;52510:23;;52483:50;52479:307;;;52576:44;52614:5;52576:33;52595:13;;52576:14;:18;;:33;;;;:::i;:44::-;52558:62;;52643:48;52658:4;52664:15;52681:9;52643:14;:48::i;:::-;52731:35;:14;52750:15;52731:18;:35::i;:::-;52714:52;;52479:307;52190:611;;52817:16;52836:34;52866:3;52836:25;52851:9;;52836:10;:14;;:25;;;;:::i;:34::-;52933:7;;52899:12;;52817:53;;-1:-1:-1;52899:53:0;;-1:-1:-1;;;;;52899:12:0;;;;52933:7;52817:53;52899:25;:53::i;:::-;53001:7;;52967:89;;-1:-1:-1;;;;;53001:7:0;53011:44;53046:8;53011:30;:10;53026:14;53011;:30::i;:44::-;52967:12;;-1:-1:-1;;;;;52967:12:0;;:89;:25;:89::i;:::-;53080:10;53073:17;;;;;;;;;;;51884:1218;-1:-1:-1;53121:1:0;;51673:1457;-1:-1:-1;;;;51673:1457:0:o;54133:508::-;54209:21;54233:8;54242:4;54233:14;;;;;;;;;;;;;;;;;;54209:38;;54258:28;54289:9;54299:4;54289:15;;;;;;;;;;;;;;;;;;54258:46;;54349:1;54329:10;:17;;;:21;54325:309;;;54371:12;;54417:18;;;;54371:66;;;-1:-1:-1;;;54371:66:0;;54402:4;54371:66;;;;-1:-1:-1;;;;;54417:18:0;;;54371:66;;;;;;54440:6;;54371:12;;;;;:22;;:66;;;;;;;;;;;;;;;:12;:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54371:66:0;:75;54367:173;;;54467:12;;54496:18;;;;54467:57;;;-1:-1:-1;;;54467:57:0;;-1:-1:-1;;;;;54496:18:0;;;54467:57;;;;54517:6;54467:57;;;;;;:12;;;;;:20;;:57;;;;;;;;;;;;;;:12;;:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;54367:173:0;54568:18;;;;54595:17;;;;;54568:54;;;-1:-1:-1;;;54568:54:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;54568:18:0;;;;:26;;:54;;;;;:18;;:54;;;;;;;;:18;;:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54133:508;;;;:::o;58523:341::-;58570:7;58590:14;58630:11;58625:208;58649:8;:15;58643:21;;58625:208;;;58717:8;58726:3;58717:13;;;;;;;;;;;;;;;;;;;;;:21;;58700:4;-1:-1:-1;;;;;58700:4:0;;;58717:21;;58692:47;58688:134;;;58769:37;58780:9;58790:3;58780:14;;;;;;;;;;;;;;;;;;;;;:25;58769:6;;:10;:37::i;:::-;58760:46;;58688:134;58666:5;;58625:208;;;-1:-1:-1;58850:6:0;-1:-1:-1;58523:341:0;:::o;23173:229::-;-1:-1:-1;;;;;23247:22:0;;23239:73;;;;-1:-1:-1;;;23239:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23349:6;;;23328:38;;-1:-1:-1;;;;;23328:38:0;;;;23349:6;;;23328:38;;;23377:6;:17;;-1:-1:-1;;;;;;23377:17:0;-1:-1:-1;;;;;23377:17:0;;;;;;;;;;23173:229::o;3936:312::-;4056:7;4091:12;4084:5;4076:28;;;;-1:-1:-1;;;4076:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4115:9;4131:1;4127;:5;;;;;;;3936:312;-1:-1:-1;;;;;3936:312:0:o;1876:226::-;1996:7;2032:12;2024:6;;;;2016:29;;;;-1:-1:-1;;;2016:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2068:5:0;;;1876:226::o;18971:774::-;19395:23;19421:69;19449:4;19421:69;;;;;;;;;;;;;;;;;19429:5;-1:-1:-1;;;;;19421:27:0;;;:69;;;;;:::i;:::-;19505:17;;19395:95;;-1:-1:-1;19505:21:0;19501:237;;19660:10;19649:30;;;;;;;;;;;;;;;-1:-1:-1;19649:30:0;19641:85;;;;-1:-1:-1;;;19641:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60164:211;-1:-1:-1;;;;;60295:17:0;;;60224:16;60295:17;;;:9;:17;;;;;60342:24;;;60164:211::o;60383:662::-;-1:-1:-1;;;;;60515:32:0;;60536:10;60515:32;60511:71;;;60564:7;;60511:71;60641:1;60630:7;:12;60626:51;;60659:7;;60626:51;60689:21;60713:8;60722:4;60713:14;;;;;;;;;;;;;;;;;;;;;60748:12;;60713:14;;-1:-1:-1;60748:45:0;;-1:-1:-1;;;;;60748:12:0;60774:9;60785:7;60748:25;:45::i;:::-;-1:-1:-1;;;;;60804:20:0;;;;;;:9;:20;;;;;;;;60833:10;60804:41;;;;;;;;;60851:121;;;;;;;60894:12;60851:121;;;;;;;;;;;;;;60804:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60991:46;;;;;;;60926:4;;60804:20;60833:10;60991:46;;;;;;;;60383:662;;;;:::o;13249:230::-;13386:12;13418:53;13441:6;13449:4;13455:1;13458:12;13418:22;:53::i;:::-;13411:60;13249:230;-1:-1:-1;;;;13249:230:0:o;14737:1020::-;14910:12;14943:18;14954:6;14943:10;:18::i;:::-;14935:60;;;;;-1:-1:-1;;;14935:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15069:12;15083:23;15110:6;-1:-1:-1;;;;;15110:11:0;15129:8;15139:4;15110:34;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15110:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15068:76;;;;15159:7;15155:595;;;15190:10;-1:-1:-1;15183:17:0;;-1:-1:-1;15183:17:0;15155:595;15304:17;;:21;15300:439;;15567:10;15561:17;15628:15;15615:10;15611:2;15607:19;15600:44;15515:148;15703:20;;-1:-1:-1;;;15703:20:0;;;;;;;;;;;;;;;;;15710:12;;15703:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10112:641;10172:4;10653:20;;10483:66;10702:23;;;;;;:42;;-1:-1:-1;;10729:15:0;;;10694:51;-1:-1:-1;;10112:641:0:o

Swarm Source

ipfs://831499ec57c4aee8aebe2e10409de591b4233195e7efbe64363a89d1825c774e
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.