Contract 0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0x3c1c91aa445281db1930337dde625534ca6db1b04b045e943ceaa1ad6b756f2684444212021-06-19 22:35:4010 mins ago0x187329b09b3452bcf79a8bb34f97f7ae2de2ffcc IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.000552225
0xed902b14b1e5f273abfd8f41f8bcf0d4628a13b0bb60c683cdcc34d92445de1384444142021-06-19 22:35:1910 mins ago0x187329b09b3452bcf79a8bb34f97f7ae2de2ffcc IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.0006767
0x10481aa273ec277e2c67f14fac8e6c08b84998b3510de1bf8bca7aac999ab4f984444132021-06-19 22:35:1610 mins ago0x92ac291fee9c808089da031015957581bbc5e57d IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.00067676
0xec883c3ba75c7835959e23b8a165a16a3e2cd1b1456658d5109e7cc63df052a884444092021-06-19 22:35:0410 mins ago0x92ac291fee9c808089da031015957581bbc5e57d IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.00055242
0xc54f8893fee58e3aae276ab91312f8241118ad1b2aa12597dc48b1ecf5185c2084444032021-06-19 22:34:4611 mins ago0x9b139d1123902b1ca15d3a551678f46612701665 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.00067676
0xb525a08dd7554acc01e1707eda45e0d32bf1ddaf4e3333720749f032751cd07584443892021-06-19 22:34:0411 mins ago0x9b139d1123902b1ca15d3a551678f46612701665 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.00055242
0x9c9e6305599f23ffddbb5c67a9054457dedd9c9e57a26cb601cd60b0df29236484443412021-06-19 22:31:4014 mins ago0x9b139d1123902b1ca15d3a551678f46612701665 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.00055242
0x07574428b2259a9481d4aade3496d8bfc8f139953445312aa410b345111e756884443332021-06-19 22:31:1614 mins ago0x2fb7868a13ed8a969d28b4316452978d2d67b375 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.000812112
0xde45402efd103fae5d44c2a2eafeaa6d0c186d733a2da40835f2b5c2c9afc7c384443272021-06-19 22:30:5814 mins ago0x34c16792a6139f396367edfb450f98c90f8be830 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.0006767
0x32749ce22952789e0e28ef0a2a5e27a0972274747debccbc811ffffecef57e4f84443212021-06-19 22:30:4015 mins ago0xda831da94f858a355f64b91fec3329783c5feb95 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.000776705
0x38d72c83465630de473fe796623dd8c7df2fcd745bb55938f92768efc395050a84443102021-06-19 22:30:0715 mins ago0x6ebfc9fc7eb6f6a3e72f050983b2cc6b218ababe IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.000552225
0xc9cfba1af22d7bea6a7a27d9fe8ac43519fb1b4eaa04ae99003014809fc9400f84443052021-06-19 22:29:5215 mins ago0x6ebfc9fc7eb6f6a3e72f050983b2cc6b218ababe IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.00062736
0x81715d8a0e2d0a2c2c17dd369ee9da84d156f0d6f9f7738c281ab6a0f9b986bb84442912021-06-19 22:29:1016 mins ago0x9b139d1123902b1ca15d3a551678f46612701665 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.000552435
0x88689acfbd965b22a69a09f2f343bdbd3c5f19a2e9fe81bc545feb0e452d7f9e84442702021-06-19 22:28:0717 mins ago0xc6530c266a1eeca3688541197024d228429efdbb IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.000627225
0x965d7daa2bb65bd868a7ac16dcb110785d0129d15e494c6c3f35b320505b2cf984441582021-06-19 22:22:3123 mins ago0x517dc0c6bdcda2179c3d32ddcc6a5f25977c3d99 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.00055242
0x69a7056afcfe39865e3573d6fc25dce1755fac6dbe601a38830bf5737a66efb684441492021-06-19 22:22:0423 mins ago0x517dc0c6bdcda2179c3d32ddcc6a5f25977c3d99 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.00055242
0x096bffb1f404dd8b94ebb916f274dc7a7eba1403b025eeda1fbdf55ce4ea56c184441432021-06-19 22:21:4624 mins ago0x517dc0c6bdcda2179c3d32ddcc6a5f25977c3d99 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.00062742
0xb34c591f3dc54e1f645368c44400d8a64bae9a7ab9ed085a71c856dc457a4d5384440722021-06-19 22:18:1327 mins ago0xed7116cf49aa8b1822bd90150bcb6b3ccaea4504 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.0006767
0x834d1ab50034b09ae6430da49283d390ce8b61530c31cc837e8b295d0c85221584440342021-06-19 22:16:1929 mins ago0xfe33a503879b02f12e104f80a0bb0556524b49d5 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.000776485
0xdfdaa9bf98397ed7c1f814afa2e7c5668b26e78e3e6525e021f9017c2b01236d84439332021-06-19 22:11:1634 mins ago0x28e25f415fee1a42e5c01bf7f778a51422cbe5aa IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.000675415
0x33c6b26a9f8bd9aeddbab39d93ff894012232b268d659179533367a6d272c72c84439252021-06-19 22:10:5234 mins ago0x28e25f415fee1a42e5c01bf7f778a51422cbe5aa IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.00048066
0x6b6cdbc696a6070da387727f44fad1d34e31cff5ac9074a2ee2b27a3c4270d3784439032021-06-19 22:09:4636 mins ago0x1943034cc4c33761485cd5817e31271fc00be380 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.000948894
0x88a0165fda0292a45324ea3cd080482ad4e72476c2e4e43474be0a629224a6a284438032021-06-19 22:04:4641 mins ago0x9b7cf159bae6d32b98e7edff61f13f0fa56c784e IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.00067676
0x21a04bce5b783d83cf7771901fe8a014636fc221ea7086f1f75f3f1fb602d9ac84437932021-06-19 22:04:1641 mins ago0xc7d1e72be786cccf3ef0f6a0d50e3b85ede72ba7 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.000812112
0xb28a295844a2d36c47b76d5a4af418598c5bd3772ff6054a9486603f307dd4e084437762021-06-19 22:03:2542 mins ago0xc7d1e72be786cccf3ef0f6a0d50e3b85ede72ba7 IN  0x26b2081247222f44d010a1a7ec74fe9ecc1d89ec0 BNB0.000662904
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x2444aBa0a82478467ae083e56331b4c69DBFE8e7

Contract Name:
MasterChefV2

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-05-01
*/

/**
 *Submitted for verification at BscScan.com on 2021-04-07
*/

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

// File: @openzeppelin/contracts/math/SafeMath.sol



pragma solidity >=0.6.0 <0.8.0;

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

// File: contracts/libs/IBEP20.sol

pragma solidity >=0.6.4;

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: @openzeppelin/contracts/utils/Address.sol



pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: contracts/libs/SafeBEP20.sol



pragma solidity >=0.6.0 <0.8.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: @openzeppelin/contracts/GSN/Context.sol



pragma solidity >=0.6.0 <0.8.0;

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

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

// File: @openzeppelin/contracts/access/Ownable.sol



pragma solidity >=0.6.0 <0.8.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.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol



pragma solidity >=0.6.0 <0.8.0;

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

// File: 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;

    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 name of the token.
     */
    function name() public override view returns (string memory) {
        return _name;
    }

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

    /**
    * @dev Returns the number of decimals used to get its user representation.
    */
    function decimals() public override view returns (uint8) {
        return _decimals;
    }

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

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

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

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

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

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

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

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

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

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer (address sender, address recipient, uint256 amount) internal {
        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/BBQToken.sol

pragma solidity 0.6.12;


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

    // Copied and modified from YAM code:
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol
    // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol
    // Which is copied and modified from COMPOUND:
    // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        emit DelegateChanged(delegator, currentDelegate, delegatee);

        _moveDelegates(currentDelegate, delegatee, delegatorBalance);
    }

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

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

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

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

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

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

    function getChainId() internal pure returns (uint) {
        uint256 chainId;
        assembly { chainId := chainid() }
        return chainId;
    }
}

// File: contracts/MasterChefV2.sol



pragma solidity 0.6.12;







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

    // Info of each user.
    struct UserInfo {
        uint256 amount;         // How many LP tokens the user has provided.
        uint256 rewardDebt;     // Reward debt. See explanation below.
        //
        // We do some fancy math here. Basically, any point in time, the amount of BBQs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accBBQPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accBBQPerShare` (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. BBQ to distribute per block.
        uint256 lastRewardBlock;  // Last block number that BBQ distribution occurs.
        uint256 accBBQPerShare;   // Accumulated BBQ per share, times 1e12. See below.
        uint16 depositFeeBP;      // Deposit fee in basis points
    }

    // The BBQ TOKEN!
    BBQToken public bbq;
    // Dev address.
    address public devaddr;
    // BBQ tokens created per block.
    uint256 public bbqPerBlock;
    // Bonus muliplier for early BBQ makers.
    uint256 public constant BONUS_MULTIPLIER = 1;
    // Deposit Fee address
    address public feeAddBb = 0x088c11D25848cBd24f742e4733589Bb10745993b;
    address public feeAddSt = 0x088c11D25848cBd24f742e4733589Bb10745993b;

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

    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 SetFeeAddressBb(address indexed user, address indexed newAddress);
    event SetFeeAddressSt(address indexed user, address indexed newAddress);
    event SetDevAddress(address indexed user, address indexed newAddress);
    event UpdateEmissionRate(address indexed user, uint256 bbqPerBlock);

    constructor(
        BBQToken _bbq,
        address _devaddr,
        uint256 _bbqPerBlock,
        uint256 _startBlock
    ) public {
        bbq = _bbq;
        devaddr = _devaddr;
        bbqPerBlock = _bbqPerBlock;
        startBlock = _startBlock;
    }

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

    mapping(IBEP20 => bool) public poolExistence;
    modifier nonDuplicated(IBEP20 _lpToken) {
        require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated");
        _;
    }

    modifier poolExists(uint256 pid) {
        require(pid < poolInfo.length, "pool inexistent");
        _;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, bool _withUpdate) public onlyOwner nonDuplicated(_lpToken) {
        require(_depositFeeBP <= 400, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolExistence[_lpToken] = true;
        poolInfo.push(PoolInfo({
        lpToken : _lpToken,
        allocPoint : _allocPoint,
        lastRewardBlock : lastRewardBlock,
        accBBQPerShare : 0,
        depositFeeBP : _depositFeeBP
        }));
    }

    // Update the given pool's BBQ allocation point and deposit fee. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, bool _withUpdate) public onlyOwner poolExists(_pid) {
        require(_depositFeeBP <= 400, "set: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
    }

    // 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 BBQs on frontend.
    function pendingBBQ(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accBBQPerShare = pool.accBBQPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 bbqReward = multiplier.mul(bbqPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accBBQPerShare = accBBQPerShare.add(bbqReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accBBQPerShare).div(1e12).sub(user.rewardDebt);
    }

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

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 bbqReward = multiplier.mul(bbqPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        bbq.mint(devaddr, bbqReward.mul(888).div(10000));
        bbq.mint(address(this), bbqReward);
        pool.accBBQPerShare = pool.accBBQPerShare.add(bbqReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for BBQ allocation.
    function deposit(uint256 _pid, uint256 _amount) public nonReentrant  poolExists(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accBBQPerShare).div(1e12).sub(user.rewardDebt);
            if (pending > 0) {
                safeBBQTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                uint256 depositeFeeHalf = depositFee.div(2);
                pool.lpToken.safeTransfer(feeAddBb, depositeFeeHalf);
                pool.lpToken.safeTransfer(feeAddSt, depositeFeeHalf);
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accBBQPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

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

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

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

    // Update dev address by the previous dev.
    function dev(address _devaddr) public {
        require(msg.sender == devaddr, "dev: wut?");
        devaddr = _devaddr;
        emit SetDevAddress(msg.sender, _devaddr);
    }

    function setFeeAddressBb(address _feeAddress) public {
        require(msg.sender == feeAddBb, "setFeeAddress: FORBIDDEN");
        feeAddBb = _feeAddress;
        emit SetFeeAddressBb(msg.sender, _feeAddress);
    }

    function setFeeAddressSt(address _feeAddress) public {
        require(msg.sender == feeAddSt, "setFeeAddress: FORBIDDEN");
        feeAddSt = _feeAddress;
        emit SetFeeAddressSt(msg.sender, _feeAddress);
    }
    
    //KoalaDeFi has to add hidden dummy pools inorder to alter the emission, here we make it simple and transparent to all.
    function updateEmissionRate(uint256 _bbqPerBlock) public onlyOwner {
        massUpdatePools();
        bbqPerBlock = _bbqPerBlock;
        // V2 Certik CTK-KOALA-7 remark - add emit for these data
        emit UpdateEmissionRate(msg.sender, _bbqPerBlock);
    }

}

Contract ABI

[{"inputs":[{"internalType":"contract BBQToken","name":"_bbq","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"uint256","name":"_bbqPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetDevAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetFeeAddressBb","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetFeeAddressSt","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"bbqPerBlock","type":"uint256"}],"name":"UpdateEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bbq","outputs":[{"internalType":"contract BBQToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bbqPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddBb","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddSt","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":"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":"pendingBBQ","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accBBQPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddressBb","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddressSt","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":"_bbqPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526005805473088c11d25848cbd24f742e4733589bb10745993b6001600160a01b03199182168117909255600680549091169091179055600060095534801561004b57600080fd5b5060405161218d38038061218d8339818101604052608081101561006e57600080fd5b5080516020820151604083015160609093015191929091600061008f61011b565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b039586166001600160a01b0319918216179091556003805494909516931692909217909255600491909155600a5561011f565b3390565b61205f8061012e6000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80638da5cb5b116100f9578063db92401111610097578063e829802311610071578063e8298023146104c9578063f2fde38b146104d1578063f39656fe146104f7578063feeca64e1461051d576101c4565b8063db92401114610496578063e2bbb1581461049e578063e8175720146104c1576101c4565b8063cbd258b5116100d3578063cbd258b5146103f3578063d2fc586e1461042d578063d49e77cd14610459578063d963842214610461576101c4565b80638da5cb5b146103675780638dbb1e3a1461038b57806393f1a40b146103ae576101c4565b806351eb05a611610166578063715018a611610140578063715018a6146102f357806384e82a33146102fb5780638aa28550146103395780638d88a90e14610341576101c4565b806351eb05a6146102b15780635312ea8e146102ce578063630b5ba1146102eb576101c4565b806317caf6f1116101a257806317caf6f1146102585780634227625514610260578063441a3e701461028657806348cd4cb1146102a9576101c4565b8063081e3eda146101c95780630ba84cd2146101e35780631526fe2714610202575b600080fd5b6101d1610525565b60408051918252519081900360200190f35b610200600480360360208110156101f957600080fd5b503561052b565b005b61021f6004803603602081101561021857600080fd5b50356105c9565b604080516001600160a01b039096168652602086019490945284840192909252606084015261ffff166080830152519081900360a00190f35b6101d1610615565b6102006004803603602081101561027657600080fd5b50356001600160a01b031661061b565b6102006004803603604081101561029c57600080fd5b50803590602001356106c1565b6101d16108cc565b610200600480360360208110156102c757600080fd5b50356108d2565b610200600480360360208110156102e457600080fd5b5035610b0f565b610200610c57565b610200610c7a565b6102006004803603608081101561031157600080fd5b508035906001600160a01b036020820135169061ffff60408201351690606001351515610d1c565b6101d1610fa8565b6102006004803603602081101561035757600080fd5b50356001600160a01b0316610fad565b61036f611044565b604080516001600160a01b039092168252519081900360200190f35b6101d1600480360360408110156103a157600080fd5b5080359060200135611053565b6103da600480360360408110156103c457600080fd5b50803590602001356001600160a01b031661106d565b6040805192835260208301919091528051918290030190f35b6104196004803603602081101561040957600080fd5b50356001600160a01b0316611091565b604080519115158252519081900360200190f35b6101d16004803603604081101561044357600080fd5b50803590602001356001600160a01b03166110a6565b61036f611204565b6102006004803603608081101561047757600080fd5b5080359060208101359061ffff60408201351690606001351515611213565b61036f6113ae565b610200600480360360408110156104b457600080fd5b50803590602001356113bd565b61036f61160e565b6101d161161d565b610200600480360360208110156104e757600080fd5b50356001600160a01b0316611623565b6102006004803603602081101561050d57600080fd5b50356001600160a01b031661171b565b61036f6117c1565b60075490565b6105336117d0565b6000546001600160a01b03908116911614610583576040805162461bcd60e51b8152602060048201819052602482015260008051602061200a833981519152604482015290519081900360640190fd5b61058b610c57565b600481905560408051828152905133917fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c4053919081900360200190a250565b600781815481106105d657fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909161ffff1685565b60095481565b6005546001600160a01b03163314610675576040805162461bcd60e51b815260206004820152601860248201527739b2ba2332b2a0b2323932b9b99d102327a92124a22222a760411b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03831690811790915560405133907fccfa2592ecd6001bee5a065cdfe414428b5a7dc68dc56646ba46b4609d665a5f90600090a350565b60026001541415610719576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015560075482908110610768576040805162461bcd60e51b815260206004820152600f60248201526e1c1bdbdb081a5b995e1a5cdd195b9d608a1b604482015290519081900360640190fd5b60006007848154811061077757fe5b6000918252602080832087845260088252604080852033865290925292208054600590920290920192508411156107ea576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6107f3856108d2565b600061082d826001015461082764e8d4a51000610821876003015487600001546117d490919063ffffffff16565b9061182d565b9061186f565b9050801561083f5761083f33826118b1565b8415610869578154610851908661186f565b82558254610869906001600160a01b03163387611a9a565b600383015482546108849164e8d4a5100091610821916117d4565b6001830155604080518681529051879133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a350506001805550505050565b600a5481565b6000600782815481106108e157fe5b90600052602060002090600502019050806002015443116109025750610b0c565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561094c57600080fd5b505afa158015610960573d6000803e3d6000fd5b505050506040513d602081101561097657600080fd5b5051905080158061098957506001820154155b1561099b575043600290910155610b0c565b60006109ab836002015443611053565b905060006109d860095461082186600101546109d2600454876117d490919063ffffffff16565b906117d4565b6002546003549192506001600160a01b03908116916340c10f199116610a06612710610821866103786117d4565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610a4c57600080fd5b505af1158015610a60573d6000803e3d6000fd5b5050600254604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b158015610ab757600080fd5b505af1158015610acb573d6000803e3d6000fd5b50505050610af9610aee8461082164e8d4a51000856117d490919063ffffffff16565b600386015490611af1565b6003850155505043600290920191909155505b50565b60026001541415610b67576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015560075481908110610bb6576040805162461bcd60e51b815260206004820152600f60248201526e1c1bdbdb081a5b995e1a5cdd195b9d608a1b604482015290519081900360640190fd5b600060078381548110610bc557fe5b600091825260208083208684526008825260408085203380875293528420805485825560018201959095556005909302018054909450919291610c15916001600160a01b03919091169083611a9a565b604080518281529051869133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a3505060018055505050565b60075460005b81811015610c7657610c6e816108d2565b600101610c5d565b5050565b610c826117d0565b6000546001600160a01b03908116911614610cd2576040805162461bcd60e51b8152602060048201819052602482015260008051602061200a833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610d246117d0565b6000546001600160a01b03908116911614610d74576040805162461bcd60e51b8152602060048201819052602482015260008051602061200a833981519152604482015290519081900360640190fd5b6001600160a01b0383166000908152600b6020526040902054839060ff1615610de4576040805162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000604482015290519081900360640190fd5b6101908361ffff161115610e295760405162461bcd60e51b8152600401808060200182810382526025815260200180611f296025913960400191505060405180910390fd5b8115610e3757610e37610c57565b6000600a544311610e4a57600a54610e4c565b435b600954909150610e5c9087611af1565b6009556001600160a01b039485166000818152600b602090815260408083208054600160ff199091168117909155815160a081018352948552918401998a5283019384526060830182815261ffff9788166080850190815260078054938401815590935292517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600590920291820180546001600160a01b031916919099161790975596517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68987015590517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a860155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b850155505091517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68c909101805461ffff191691909216179055565b600181565b6003546001600160a01b03163314610ff8576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b03831690811790915560405133907f618c54559e94f1499a808aad71ee8729f8e74e8c48e979616328ce493a1a52e790600090a350565b6000546001600160a01b031690565b600061106460016109d2848661186f565b90505b92915050565b60086020908152600092835260408084209091529082529020805460019091015482565b600b6020526000908152604090205460ff1681565b600080600784815481106110b657fe5b600091825260208083208784526008825260408085206001600160a01b0389811687529084528186206005959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b15801561113057600080fd5b505afa158015611144573d6000803e3d6000fd5b505050506040513d602081101561115a57600080fd5b505160028501549091504311801561117157508015155b156111d1576000611186856002015443611053565b905060006111ad60095461082188600101546109d2600454876117d490919063ffffffff16565b90506111cc6111c5846108218464e8d4a510006117d4565b8590611af1565b935050505b6111f9836001015461082764e8d4a510006108218688600001546117d490919063ffffffff16565b979650505050505050565b6003546001600160a01b031681565b61121b6117d0565b6000546001600160a01b0390811691161461126b576040805162461bcd60e51b8152602060048201819052602482015260008051602061200a833981519152604482015290519081900360640190fd5b600754849081106112b5576040805162461bcd60e51b815260206004820152600f60248201526e1c1bdbdb081a5b995e1a5cdd195b9d608a1b604482015290519081900360640190fd5b6101908361ffff1611156112fa5760405162461bcd60e51b8152600401808060200182810382526025815260200180611fe56025913960400191505060405180910390fd5b811561130857611308610c57565b6113458461133f6007888154811061131c57fe5b90600052602060002090600502016001015460095461186f90919063ffffffff16565b90611af1565b600981905550836007868154811061135957fe5b906000526020600020906005020160010181905550826007868154811061137c57fe5b906000526020600020906005020160040160006101000a81548161ffff021916908361ffff1602179055505050505050565b6002546001600160a01b031681565b60026001541415611415576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015560075482908110611464576040805162461bcd60e51b815260206004820152600f60248201526e1c1bdbdb081a5b995e1a5cdd195b9d608a1b604482015290519081900360640190fd5b60006007848154811061147357fe5b600091825260208083208784526008825260408085203386529092529220600590910290910191506114a4856108d2565b8054156114ed5760006114d9826001015461082764e8d4a51000610821876003015487600001546117d490919063ffffffff16565b905080156114eb576114eb33826118b1565b505b83156115ac57815461150a906001600160a01b0316333087611b4b565b600482015461ffff161561159d576004820154600090611537906127109061082190889061ffff166117d4565b9050600061154682600261182d565b6005548554919250611565916001600160a01b03908116911683611a9a565b6006548454611581916001600160a01b03918216911683611a9a565b82546115939083906108279089611af1565b8355506115ac9050565b80546115a99085611af1565b81555b600382015481546115c79164e8d4a5100091610821916117d4565b6001820155604080518581529051869133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505060018055505050565b6005546001600160a01b031681565b60045481565b61162b6117d0565b6000546001600160a01b0390811691161461167b576040805162461bcd60e51b8152602060048201819052602482015260008051602061200a833981519152604482015290519081900360640190fd5b6001600160a01b0381166116c05760405162461bcd60e51b8152600401808060200182810382526026815260200180611f786026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314611775576040805162461bcd60e51b815260206004820152601860248201527739b2ba2332b2a0b2323932b9b99d102327a92124a22222a760411b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03831690811790915560405133907ff509e336aa335e0b8a5a297dffa4f9d560dabcc264ec170c49e09b22c98a7e3190600090a350565b6006546001600160a01b031681565b3390565b6000826117e357506000611067565b828202828482816117f057fe5b04146110645760405162461bcd60e51b8152600401808060200182810382526021815260200180611fc46021913960400191505060405180910390fd5b600061106483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611ba5565b600061106483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611c49565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156118fc57600080fd5b505afa158015611910573d6000803e3d6000fd5b505050506040513d602081101561192657600080fd5b505190506000818311156119bd576002546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561198a57600080fd5b505af115801561199e573d6000803e3d6000fd5b505050506040513d60208110156119b457600080fd5b50519050611a42565b6002546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015611a1357600080fd5b505af1158015611a27573d6000803e3d6000fd5b505050506040513d6020811015611a3d57600080fd5b505190505b80611a94576040805162461bcd60e51b815260206004820181905260248201527f736166654242515472616e736665723a207472616e73666572206661696c6564604482015290519081900360640190fd5b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611aec908490611ca3565b505050565b600082820183811015611064576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611a94908590611ca3565b60008183611c315760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611bf6578181015183820152602001611bde565b50505050905090810190601f168015611c235780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611c3d57fe5b049150505b9392505050565b60008184841115611c9b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611bf6578181015183820152602001611bde565b505050900390565b6060611cf8826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d549092919063ffffffff16565b805190915015611aec57808060200190516020811015611d1757600080fd5b5051611aec5760405162461bcd60e51b815260040180806020018281038252602a815260200180611f4e602a913960400191505060405180910390fd5b6060611d638484600085611d6b565b949350505050565b606082471015611dac5760405162461bcd60e51b8152600401808060200182810382526026815260200180611f9e6026913960400191505060405180910390fd5b611db585611ebc565b611e06576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611e455780518252601f199092019160209182019101611e26565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611ea7576040519150601f19603f3d011682016040523d82523d6000602084013e611eac565b606091505b50915091506111f9828286611ec2565b3b151590565b60608315611ed1575081611c42565b825115611ee15782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315611bf6578181015183820152602001611bde56fe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74735361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365743a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220d8a66bc4abe89473abf8095578f9718470cc563345e78c92b1ff061624d7ac2064736f6c634300060c0033000000000000000000000000074baa69c9bbb8f66012cfdf3d056556e4b4b6530000000000000000000000008dac695150cff66df2ddcc2727056e485828004f0000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000000000000000000000000000000000000006b7439

Deployed ByteCode Sourcemap

44960:11309:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48075:95;;;:::i;:::-;;;;;;;;;;;;;;;;55997:267;;;;;;;;;;;;;;;;-1:-1:-1;55997:267:0;;:::i;:::-;;46878:26;;;;;;;;;;;;;;;;-1:-1:-1;46878:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;46878:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47119:34;;;:::i;55412:220::-;;;;;;;;;;;;;;;;-1:-1:-1;55412:220:0;-1:-1:-1;;;;;55412:220:0;;:::i;53384:769::-;;;;;;;;;;;;;;;;-1:-1:-1;53384:769:0;;;;;;;:::i;47209:25::-;;;:::i;51233:808::-;;;;;;;;;;;;;;;;-1:-1:-1;51233:808:0;;:::i;54224:415::-;;;;;;;;;;;;;;;;-1:-1:-1;54224:415:0;;:::i;50977:180::-;;;:::i;22202:148::-;;;:::i;48566:707::-;;;;;;;;;;;;;;;;-1:-1:-1;48566:707:0;;;-1:-1:-1;;;;;48566:707:0;;;;;;;;;;;;;;;;;;;:::i;46620:44::-;;;:::i;55224:180::-;;;;;;;;;;;;;;;;-1:-1:-1;55224:180:0;-1:-1:-1;;;;;55224:180:0;;:::i;21560:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;21560:79:0;;;;;;;;;;;;;;49938:143;;;;;;;;;;;;;;;;-1:-1:-1;49938:143:0;;;;;;;:::i;46960:64::-;;;;;;;;;;;;;;;;-1:-1:-1;46960:64:0;;;;;;-1:-1:-1;;;;;46960:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;48178:44;;;;;;;;;;;;;;;;-1:-1:-1;48178:44:0;-1:-1:-1;;;;;48178:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;50144:750;;;;;;;;;;;;;;;;-1:-1:-1;50144:750:0;;;;;;-1:-1:-1;;;;;50144:750:0;;:::i;46474:22::-;;;:::i;49384:478::-;;;;;;;;;;;;;;;;-1:-1:-1;49384:478:0;;;;;;;;;;;;;;;;;;;;;:::i;46427:19::-;;;:::i;52109:1223::-;;;;;;;;;;;;;;;;-1:-1:-1;52109:1223:0;;;;;;;:::i;46699:68::-;;;:::i;46541:26::-;;;:::i;22505:244::-;;;;;;;;;;;;;;;;-1:-1:-1;22505:244:0;-1:-1:-1;;;;;22505:244:0;;:::i;55640:220::-;;;;;;;;;;;;;;;;-1:-1:-1;55640:220:0;-1:-1:-1;;;;;55640:220:0;;:::i;46774:68::-;;;:::i;48075:95::-;48147:8;:15;48075:95;:::o;55997:267::-;21782:12;:10;:12::i;:::-;21772:6;;-1:-1:-1;;;;;21772:6:0;;;:22;;;21764:67;;;;;-1:-1:-1;;;21764:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21764:67:0;;;;;;;;;;;;;;;56075:17:::1;:15;:17::i;:::-;56103:11;:26:::0;;;56212:44:::1;::::0;;;;;;;56231:10:::1;::::0;56212:44:::1;::::0;;;;;::::1;::::0;;::::1;55997:267:::0;:::o;46878:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46878:26:0;;;;-1:-1:-1;46878:26:0;;;;;;;:::o;47119:34::-;;;;:::o;55412:220::-;55498:8;;-1:-1:-1;;;;;55498:8:0;55484:10;:22;55476:59;;;;;-1:-1:-1;;;55476:59:0;;;;;;;;;;;;-1:-1:-1;;;55476:59:0;;;;;;;;;;;;;;;55546:8;:22;;-1:-1:-1;;;;;;55546:22:0;-1:-1:-1;;;;;55546:22:0;;;;;;;;55584:40;;55600:10;;55584:40;;-1:-1:-1;;55584:40:0;55412:220;:::o;53384:769::-;24508:1;25114:7;;:19;;25106:63;;;;;-1:-1:-1;;;25106:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24508:1;25247:7;:18;48436:8:::1;:15:::0;53464:4;;48430:21;::::1;48422:49;;;::::0;;-1:-1:-1;;;48422:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;48422:49:0;;;;;;;;;;;;;::::1;;53481:21:::2;53505:8;53514:4;53505:14;;;;;;;;;::::0;;;::::2;::::0;;;53554;;;:8:::2;:14:::0;;;;;;53569:10:::2;53554:26:::0;;;;;;;53599:11;;53505:14:::2;::::0;;::::2;::::0;;::::2;::::0;-1:-1:-1;53599:22:0;-1:-1:-1;53599:22:0::2;53591:53;;;::::0;;-1:-1:-1;;;53591:53:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;53591:53:0;;;;;;;;;;;;;::::2;;53655:16;53666:4;53655:10;:16::i;:::-;53682:15;53700:67;53751:4;:15;;;53700:46;53741:4;53700:36;53716:4;:19;;;53700:4;:11;;;:15;;:36;;;;:::i;:::-;:40:::0;::::2;:46::i;:::-;:50:::0;::::2;:67::i;:::-;53682:85:::0;-1:-1:-1;53782:11:0;;53778:80:::2;;53810:36;53826:10;53838:7;53810:15;:36::i;:::-;53872:11:::0;;53868:152:::2;;53914:11:::0;;:24:::2;::::0;53930:7;53914:15:::2;:24::i;:::-;53900:38:::0;;53953:12;;:55:::2;::::0;-1:-1:-1;;;;;53953:12:0::2;53987:10;54000:7:::0;53953:25:::2;:55::i;:::-;54064:19;::::0;::::2;::::0;54048:11;;:46:::2;::::0;54089:4:::2;::::0;54048:36:::2;::::0;:15:::2;:36::i;:46::-;54030:15;::::0;::::2;:64:::0;54110:35:::2;::::0;;;;;;;54131:4;;54119:10:::2;::::0;54110:35:::2;::::0;;;;::::2;::::0;;::::2;-1:-1:-1::0;;24464:1:0;25426:22;;-1:-1:-1;;;;53384:769:0:o;47209:25::-;;;;:::o;51233:808::-;51285:21;51309:8;51318:4;51309:14;;;;;;;;;;;;;;;;;;51285:38;;51354:4;:20;;;51338:12;:36;51334:75;;51391:7;;;51334:75;51438:12;;:37;;;-1:-1:-1;;;51438:37:0;;51469:4;51438:37;;;;;;51419:16;;-1:-1:-1;;;;;51438:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51438:37:0;;-1:-1:-1;51490:13:0;;;:37;;-1:-1:-1;51507:15:0;;;;:20;51490:37;51486:126;;;-1:-1:-1;51567:12:0;51544:20;;;;:35;51594:7;;51486:126;51622:18;51643:49;51657:4;:20;;;51679:12;51643:13;:49::i;:::-;51622:70;;51703:17;51723:69;51776:15;;51723:48;51755:4;:15;;;51723:27;51738:11;;51723:10;:14;;:27;;;;:::i;:::-;:31;;:48::i;:69::-;51803:3;;51812:7;;51703:89;;-1:-1:-1;;;;;;51803:3:0;;;;:8;;51812:7;51821:29;51844:5;51821:18;51703:89;51835:3;51821:13;:18::i;:29::-;51803:48;;;;;;;;;;;;;-1:-1:-1;;;;;51803:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;51862:3:0;;:34;;;-1:-1:-1;;;51862:34:0;;51879:4;51862:34;;;;;;;;;;;;-1:-1:-1;;;;;51862:3:0;;;;-1:-1:-1;51862:8:0;;-1:-1:-1;51862:34:0;;;;;:3;;:34;;;;;;;;:3;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51929:58;51953:33;51977:8;51953:19;51967:4;51953:9;:13;;:19;;;;:::i;:33::-;51929:19;;;;;:23;:58::i;:::-;51907:19;;;:80;-1:-1:-1;;52021:12:0;51998:20;;;;:35;;;;-1:-1:-1;51233:808:0;;:::o;54224:415::-;24508:1;25114:7;;:19;;25106:63;;;;;-1:-1:-1;;;25106:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24508:1;25247:7;:18;48436:8:::1;:15:::0;54296:4;;48430:21;::::1;48422:49;;;::::0;;-1:-1:-1;;;48422:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;48422:49:0;;;;;;;;;;;;;::::1;;54313:21:::2;54337:8;54346:4;54337:14;;;;;;;;;::::0;;;::::2;::::0;;;54386;;;:8:::2;:14:::0;;;;;;54401:10:::2;54386:26:::0;;;;;;;54440:11;;54462:15;;;-1:-1:-1;54488:15:0;::::2;:19:::0;;;;54337:14:::2;::::0;;::::2;;54518:12:::0;;54337:14;;-1:-1:-1;54386:26:0;;54440:11;54518:54:::2;::::0;-1:-1:-1;;;;;54518:12:0;;;::::2;::::0;54440:11;54518:25:::2;:54::i;:::-;54588:43;::::0;;;;;;;54618:4;;54606:10:::2;::::0;54588:43:::2;::::0;;;;::::2;::::0;;::::2;-1:-1:-1::0;;24464:1:0;25426:22;;-1:-1:-1;;;54224:415:0:o;50977:180::-;51039:8;:15;51022:14;51065:85;51093:6;51087:3;:12;51065:85;;;51123:15;51134:3;51123:10;:15::i;:::-;51101:5;;51065:85;;;;50977:180;:::o;22202:148::-;21782:12;:10;:12::i;:::-;21772:6;;-1:-1:-1;;;;;21772:6:0;;;:22;;;21764:67;;;;;-1:-1:-1;;;21764:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21764:67:0;;;;;;;;;;;;;;;22309:1:::1;22293:6:::0;;22272:40:::1;::::0;-1:-1:-1;;;;;22293:6:0;;::::1;::::0;22272:40:::1;::::0;22309:1;;22272:40:::1;22340:1;22323:19:::0;;-1:-1:-1;;;;;;22323:19:0::1;::::0;;22202:148::o;48566:707::-;21782:12;:10;:12::i;:::-;21772:6;;-1:-1:-1;;;;;21772:6:0;;;:22;;;21764:67;;;;;-1:-1:-1;;;21764:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21764:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;48288:23:0;::::1;;::::0;;;:13:::1;:23;::::0;;;;;48688:8;;48288:23:::1;;:32;48280:70;;;::::0;;-1:-1:-1;;;48280:70:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;48734:3:::2;48717:13;:20;;;;48709:70;;;;-1:-1:-1::0;;;48709:70:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48794:11;48790:61;;;48822:17;:15;:17::i;:::-;48861:23;48902:10;;48887:12;:25;:53;;48930:10;;48887:53;;;48915:12;48887:53;48969:15;::::0;48861:79;;-1:-1:-1;48969:32:0::2;::::0;48989:11;48969:19:::2;:32::i;:::-;48951:15;:50:::0;-1:-1:-1;;;;;49012:23:0;;::::2;;::::0;;;:13:::2;:23;::::0;;;;;;;:30;;49038:4:::2;-1:-1:-1::0;;49012:30:0;;::::2;::::0;::::2;::::0;;;49067:197;;::::2;::::0;::::2;::::0;;;;;;;::::2;::::0;;;;;;;;;;;;;;::::2;::::0;;::::2;::::0;;;;;;49053:8:::2;:212:::0;;;;::::2;::::0;;;;;;;;::::2;::::0;;::::2;::::0;;::::2;::::0;;-1:-1:-1;;;;;;49053:212:0::2;::::0;;;::::2;;::::0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;49053:212:0;;;;;;;;-1:-1:-1;;49053:212:0::2;::::0;;;::::2;;::::0;;48566:707::o;46620:44::-;46663:1;46620:44;:::o;55224:180::-;55295:7;;-1:-1:-1;;;;;55295:7:0;55281:10;:21;55273:43;;;;;-1:-1:-1;;;55273:43:0;;;;;;;;;;;;-1:-1:-1;;;55273:43:0;;;;;;;;;;;;;;;55327:7;:18;;-1:-1:-1;;;;;;55327:18:0;-1:-1:-1;;;;;55327:18:0;;;;;;;;55361:35;;55375:10;;55361:35;;-1:-1:-1;;55361:35:0;55224:180;:::o;21560:79::-;21598:7;21625:6;-1:-1:-1;;;;;21625:6:0;21560:79;:::o;49938:143::-;50010:7;50037:36;46663:1;50037:14;:3;50045:5;50037:7;:14::i;:36::-;50030:43;;49938:143;;;;;:::o;46960:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;48178:44::-;;;;;;;;;;;;;;;:::o;50144:750::-;50216:7;50236:21;50260:8;50269:4;50260:14;;;;;;;;;;;;;;;;50309;;;:8;:14;;;;;;-1:-1:-1;;;;;50309:21:0;;;;;;;;;;;50260:14;;;;;;;;50366:19;;;;50415:12;;:37;;-1:-1:-1;;;50415:37:0;;50446:4;50415:37;;;;;;50260:14;;-1:-1:-1;50309:21:0;;50366:19;;50260:14;;50415:12;;;:22;;:37;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50415:37:0;50482:20;;;;50415:37;;-1:-1:-1;50467:12:0;:35;:52;;;;-1:-1:-1;50506:13:0;;;50467:52;50463:344;;;50536:18;50557:49;50571:4;:20;;;50593:12;50557:13;:49::i;:::-;50536:70;;50621:17;50641:69;50694:15;;50641:48;50673:4;:15;;;50641:27;50656:11;;50641:10;:14;;:27;;;;:::i;:69::-;50621:89;-1:-1:-1;50742:53:0;50761:33;50785:8;50761:19;50621:89;50775:4;50761:13;:19::i;:33::-;50742:14;;:18;:53::i;:::-;50725:70;;50463:344;;;50824:62;50870:4;:15;;;50824:41;50860:4;50824:31;50840:14;50824:4;:11;;;:15;;:31;;;;:::i;:62::-;50817:69;50144:750;-1:-1:-1;;;;;;;50144:750:0:o;46474:22::-;;;-1:-1:-1;;;;;46474:22:0;;:::o;49384:478::-;21782:12;:10;:12::i;:::-;21772:6;;-1:-1:-1;;;;;21772:6:0;;;:22;;;21764:67;;;;;-1:-1:-1;;;21764:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21764:67:0;;;;;;;;;;;;;;;48436:8:::1;:15:::0;49500:4;;48430:21;::::1;48422:49;;;::::0;;-1:-1:-1;;;48422:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;48422:49:0;;;;;;;;;;;;;::::1;;49542:3:::2;49525:13;:20;;;;49517:70;;;;-1:-1:-1::0;;;49517:70:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49602:11;49598:61;;;49630:17;:15;:17::i;:::-;49687:63;49738:11;49687:46;49707:8;49716:4;49707:14;;;;;;;;;;;;;;;;;;:25;;;49687:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::2;:63::i;:::-;49669:15;:81;;;;49789:11;49761:8;49770:4;49761:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;49841:13;49811:8;49820:4;49811:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;21842:1:::1;49384:478:::0;;;;:::o;46427:19::-;;;-1:-1:-1;;;;;46427:19:0;;:::o;52109:1223::-;24508:1;25114:7;;:19;;25106:63;;;;;-1:-1:-1;;;25106:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24508:1;25247:7;:18;48436:8:::1;:15:::0;52189:4;;48430:21;::::1;48422:49;;;::::0;;-1:-1:-1;;;48422:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;48422:49:0;;;;;;;;;;;;;::::1;;52206:21:::2;52230:8;52239:4;52230:14;;;;;;;;;::::0;;;::::2;::::0;;;52279;;;:8:::2;:14:::0;;;;;;52294:10:::2;52279:26:::0;;;;;;;52230:14:::2;::::0;;::::2;::::0;;::::2;::::0;-1:-1:-1;52316:16:0::2;52288:4:::0;52316:10:::2;:16::i;:::-;52347:11:::0;;:15;52343:235:::2;;52379:15;52397:67;52448:4;:15;;;52397:46;52438:4;52397:36;52413:4;:19;;;52397:4;:11;;;:15;;:36;;;;:::i;:67::-;52379:85:::0;-1:-1:-1;52483:11:0;;52479:88:::2;;52515:36;52531:10;52543:7;52515:15;:36::i;:::-;52343:235;;52592:11:::0;;52588:612:::2;;52620:12:::0;;:74:::2;::::0;-1:-1:-1;;;;;52620:12:0::2;52658:10;52679:4;52686:7:::0;52620:29:::2;:74::i;:::-;52713:17;::::0;::::2;::::0;::::2;;:21:::0;52709:480:::2;;52788:17;::::0;::::2;::::0;52755:18:::2;::::0;52776:41:::2;::::0;52811:5:::2;::::0;52776:30:::2;::::0;:7;;52788:17:::2;;52776:11;:30::i;:41::-;52755:62:::0;-1:-1:-1;52836:23:0::2;52862:17;52755:62:::0;52877:1:::2;52862:14;:17::i;:::-;52924:8;::::0;52898:12;;52836:43;;-1:-1:-1;52898:52:0::2;::::0;-1:-1:-1;;;;;52898:12:0;;::::2;::::0;52924:8:::2;52836:43:::0;52898:25:::2;:52::i;:::-;52995:8;::::0;52969:12;;:52:::2;::::0;-1:-1:-1;;;;;52969:12:0;;::::2;::::0;52995:8:::2;53005:15:::0;52969:25:::2;:52::i;:::-;53054:11:::0;;:40:::2;::::0;53083:10;;53054:24:::2;::::0;53070:7;53054:15:::2;:24::i;:40::-;53040:54:::0;;-1:-1:-1;52709:480:0::2;::::0;-1:-1:-1;52709:480:0::2;;53149:11:::0;;:24:::2;::::0;53165:7;53149:15:::2;:24::i;:::-;53135:38:::0;;52709:480:::2;53244:19;::::0;::::2;::::0;53228:11;;:46:::2;::::0;53269:4:::2;::::0;53228:36:::2;::::0;:15:::2;:36::i;:46::-;53210:15;::::0;::::2;:64:::0;53290:34:::2;::::0;;;;;;;53310:4;;53298:10:::2;::::0;53290:34:::2;::::0;;;;::::2;::::0;;::::2;-1:-1:-1::0;;24464:1:0;25426:22;;-1:-1:-1;;;52109:1223:0:o;46699:68::-;;;-1:-1:-1;;;;;46699:68:0;;:::o;46541:26::-;;;;:::o;22505:244::-;21782:12;:10;:12::i;:::-;21772:6;;-1:-1:-1;;;;;21772:6:0;;;:22;;;21764:67;;;;;-1:-1:-1;;;21764:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21764:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;22594:22:0;::::1;22586:73;;;;-1:-1:-1::0;;;22586:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22696:6;::::0;;22675:38:::1;::::0;-1:-1:-1;;;;;22675:38:0;;::::1;::::0;22696:6;::::1;::::0;22675:38:::1;::::0;::::1;22724:6;:17:::0;;-1:-1:-1;;;;;;22724:17:0::1;-1:-1:-1::0;;;;;22724:17:0;;;::::1;::::0;;;::::1;::::0;;22505:244::o;55640:220::-;55726:8;;-1:-1:-1;;;;;55726:8:0;55712:10;:22;55704:59;;;;;-1:-1:-1;;;55704:59:0;;;;;;;;;;;;-1:-1:-1;;;55704:59:0;;;;;;;;;;;;;;;55774:8;:22;;-1:-1:-1;;;;;;55774:22:0;-1:-1:-1;;;;;55774:22:0;;;;;;;;55812:40;;55828:10;;55812:40;;-1:-1:-1;;55812:40:0;55640:220;:::o;46774:68::-;;;-1:-1:-1;;;;;46774:68:0;;:::o;20095:106::-;20183:10;20095:106;:::o;2427:471::-;2485:7;2730:6;2726:47;;-1:-1:-1;2760:1:0;2753:8;;2726:47;2797:5;;;2801:1;2797;:5;:1;2821:5;;;;;:10;2813:56;;;;-1:-1:-1;;;2813:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3374:132;3432:7;3459:39;3463:1;3466;3459:39;;;;;;;;;;;;;;;;;:3;:39::i;1537:136::-;1595:7;1622:43;1626:1;1629;1622:43;;;;;;;;;;;;;;;;;:3;:43::i;54751:417::-;54843:3;;:28;;;-1:-1:-1;;;54843:28:0;;54865:4;54843:28;;;;;;54826:14;;-1:-1:-1;;;;;54843:3:0;;:13;;:28;;;;;;;;;;;;;;:3;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54843:28:0;;-1:-1:-1;54882:20:0;54925:16;;;54921:169;;;54976:3;;:25;;;-1:-1:-1;;;54976:25:0;;-1:-1:-1;;;;;54976:25:0;;;;;;;;;;;;;;;:3;;;;;:12;;:25;;;;;;;;;;;;;;:3;;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54976:25:0;;-1:-1:-1;54921:169:0;;;55052:3;;:26;;;-1:-1:-1;;;55052:26:0;;-1:-1:-1;;;;;55052:26:0;;;;;;;;;;;;;;;:3;;;;;:12;;:26;;;;;;;;;;;;;;:3;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55052:26:0;;-1:-1:-1;54921:169:0;55108:15;55100:60;;;;;-1:-1:-1;;;55100:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54751:417;;;;:::o;16388:177::-;16498:58;;;-1:-1:-1;;;;;16498:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16498:58:0;-1:-1:-1;;;16498:58:0;;;16471:86;;16491:5;;16471:19;:86::i;:::-;16388:177;;;:::o;1073:181::-;1131:7;1163:5;;;1187:6;;;;1179:46;;;;;-1:-1:-1;;;1179:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;16573:205;16701:68;;;-1:-1:-1;;;;;16701:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16701:68:0;-1:-1:-1;;;16701:68:0;;;16674:96;;16694:5;;16674:19;:96::i;4002:278::-;4088:7;4123:12;4116:5;4108:28;;;;-1:-1:-1;;;4108:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4147:9;4163:1;4159;:5;;;;;;;-1:-1:-1;;4002:278:0;;;;;;:::o;1976:192::-;2062:7;2098:12;2090:6;;;;2082:29;;;;-1:-1:-1;;;2082:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2134:5:0;;;1976:192::o;18693:761::-;19117:23;19143:69;19171:4;19143:69;;;;;;;;;;;;;;;;;19151:5;-1:-1:-1;;;;;19143:27:0;;;:69;;;;;:::i;:::-;19227:17;;19117:95;;-1:-1:-1;19227:21:0;19223:224;;19369:10;19358:30;;;;;;;;;;;;;;;-1:-1:-1;19358:30:0;19350:85;;;;-1:-1:-1;;;19350:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12406:195;12509:12;12541:52;12563:6;12571:4;12577:1;12580:12;12541:21;:52::i;:::-;12534:59;12406:195;-1:-1:-1;;;;12406:195:0:o;13458:530::-;13585:12;13643:5;13618:21;:30;;13610:81;;;;-1:-1:-1;;;13610:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13710:18;13721:6;13710:10;:18::i;:::-;13702:60;;;;;-1:-1:-1;;;13702:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13836:12;13850:23;13877:6;-1:-1:-1;;;;;13877:11:0;13897:5;13905:4;13877:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13877:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13835:75;;;;13928:52;13946:7;13955:10;13967:12;13928:17;:52::i;9488:422::-;9855:20;9894:8;;;9488:422::o;14994:742::-;15109:12;15138:7;15134:595;;;-1:-1:-1;15169:10:0;15162:17;;15134:595;15283:17;;:21;15279:439;;15546:10;15540:17;15607:15;15594:10;15590:2;15586:19;15579:44;15494:148;15682:20;;-1:-1:-1;;;15682:20:0;;;;;;;;;;;;;;;;;15689:12;;15682:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://d8a66bc4abe89473abf8095578f9718470cc563345e78c92b1ff061624d7ac20
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.