Contract 0x4142319120b83aeb533b4e2d82f52a3c06feda8b

 
 
Txn Hash
Block
From
To
Value [Txn Fee]
0x5f15a67818d131cdf7a4a915736b7865633c9ae2d001b413879d539b6faaa1d996048512021-07-30 14:50:073 days 44 mins ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0xd8b3dc600183e271ac05b31f493fc7f59de29984b3e0531abbda7452a6c9712795823282021-07-29 19:34:263 days 20 hrs ago0x1272bf9d3ae09dff4066ef682f8218b7790e0f90 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0xe224245d79df14a2dd8b2cc1363ed03d4b06547f90b3fe0b91a85228fd15c2ca95015672021-07-26 19:16:466 days 20 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0x7fe1ed365f5ae403b5d8fb24ece288e3d68376f7068854291be3a1525f73888095015632021-07-26 19:16:346 days 20 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026586
0xc6c2fa1874f0b6acbfced816acf6b645e68d1cfeefbf3d5e5e317ed0e5609dbd94362422021-07-24 11:54:349 days 3 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026826
0xd23f02e27421c76588739688831de56fc3aa9b0158502a893a4970490de9942594362042021-07-24 11:52:409 days 3 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0xfef82f1eefb2f4f07f074f1b546d94d62cb8b3c9c61b54959c5b1a2e638de99193514852021-07-21 13:04:3412 days 2 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0xcd729b513ec9a143470558f47ef4a6c3a7b7d6e8d7a4809129213107a364525092426122021-07-17 18:16:4315 days 21 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0xaa2509a646b9c0d03947a617077dab5be9cbb5cf6fe06819e56bd0dfbaaa23d391079672021-07-13 2:02:2420 days 13 hrs ago0x1272bf9d3ae09dff4066ef682f8218b7790e0f90 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0xd95bb9ee530a7f58c71cc20ed216290eed57ce7251e9d2761a4ed29d46c97e0891079652021-07-13 2:02:1820 days 13 hrs ago0x1272bf9d3ae09dff4066ef682f8218b7790e0f90 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00031404
0x68689adfe2c29e9e377e6240045d3920392ff47f0252ed8d76acee3bd44b625690418722021-07-10 18:57:2122 days 20 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0xfb7427528f2d2ae304655c709c780bcce3a2f7ba47993123e7eae150e4a3287a90093502021-07-09 15:51:1023 days 23 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0x627bbbec743992da2fb89444a0c6b219891f8f38c5a6b9d797983b9a8b77f45689928992021-07-09 2:08:1824 days 13 hrs ago0x1272bf9d3ae09dff4066ef682f8218b7790e0f90 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0x053e699b70e647d8a80d9fd6b3eb1b9d3d7413f30e8379e44643e5946efd01e089430792021-07-07 8:35:3426 days 6 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0xbd385adfbf5b0939841c1840750084e61b8e04884995412e7eb45ea312d0808788372892021-07-03 15:49:2929 days 23 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0x5b8ed901c45377d8f04c93db4f813ef5ac2f3efe3738a92124ad7dcb16d291fb87741812021-07-01 10:41:5932 days 4 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0x23ce0b6631b2f5e65e8f6f9d0f3931b50db24fad6749ff43d6c60283038d739587413242021-06-30 7:03:0133 days 8 hrs ago0xf06022c428026612e1e397be75052f409a37b99a IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026586
0x53db83f97afaeb08d830fdf52e3a48cfcfd76015bb3c7afa4d7957bbd37f3b4787222752021-06-29 15:02:3534 days 31 mins ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0x74c699d87ec750cd674e6e3f74f58745c2f4a5656c5ba4fe91839db8311f9d5d86655952021-06-27 15:29:4736 days 4 mins ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0xa32bd584c70d37e471397763d2b12438ebaad7033df74263123cc9a4fb92d22086341712021-06-26 13:15:1037 days 2 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0xb439e8eb7fa9c697362e700371650a1879c4927cd16a2deb1c44e6f43701c65b85547392021-06-23 18:52:1839 days 20 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0x7c0d625d2d45ed9f3d1ea9e06c5c6f8693a5e91f37be60c68bb5827574157dee84909572021-06-21 13:25:1942 days 2 hrs ago0xc1fbdee92515e618a888da5fdc288b072bc9b992 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0x2fb42ed7b195d2c889b8406cba9ea44cd72afe0cbda1cb27205d84b25fdc670284663562021-06-20 16:53:5342 days 22 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0x18eee99cc64f247c9de359d2070fa7332af188fbf5c866497053518a3285c91084010002021-06-18 10:05:0645 days 5 hrs ago0xff5f18dc9ad3b34dd067dd6f27e785ff702d538a IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
0x2061d2929495882219ad75fd7c751e406ae64b3556da665b4da8d46a3a155fba83441562021-06-16 10:19:2147 days 5 hrs ago0x90b7b40f1243b1ddaa76c8faf860acdda1107823 IN  0x4142319120b83aeb533b4e2d82f52a3c06feda8b0 BNB0.00026785
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DevFeeProcessor

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-04-19
*/

// SPDX-License-Identifier: NONE

pragma solidity 0.6.12;



// Part: IBEP20

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

// Part: IChefFeeAddressSetter

interface IChefFeeAddressSetter {
    function setChefDevAddress(address newChefDevAddress) external;

    function setChefFeeAddress(address newChefFeeAddress) external;
}

// Part: IOutgoingAddressSetter

interface IOutgoingAddressSetter {
    function setLaboTeamAddress(address newLaboTeamAddress) external;

    function setFeeBurnAddress(address newFeeBurnAddress) external;

    function setNftSplitter(address newNftSplitter) external;
}

// Part: IPercentSetter

interface IPercentSetter {
    function setLaboPercents(uint8 newLaboBurnPercent, uint8 newLaboTeamPercent) external;

    function setDepositFeePercents(uint8 newDepositFeeBurnPercent, uint8 newDepositFeeTeamPercent) external;
}

// Part: OpenZeppelin/[email protected]/Address

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// Part: OpenZeppelin/[email protected]/Context

/*
 * @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;
    }
}

// Part: OpenZeppelin/[email protected]/ReentrancyGuard

/**
 * @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;
    }
}

// Part: OpenZeppelin/[email protected]/SafeMath

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

// Part: IDevFeeProcessor

interface IDevFeeProcessor is IChefFeeAddressSetter, IOutgoingAddressSetter, IPercentSetter {
    function laboBalance() external view returns (uint256);

    function tokenBalance(IBEP20 token) external view returns (uint256);

    function processLabo() external;

    function processToken(IBEP20 token) external;

    function processAll(IBEP20[] calldata tokens) external;
}

// Part: OpenZeppelin/[email protected]/Ownable

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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

// Part: SafeBEP20

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

// Part: BEP20

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

// Part: LaboToken

// EggToken with Governance.
contract LaboToken is BEP20('The Lab Finance LABO', 'LABO') {
    /// @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), "EGG::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "EGG::delegateBySig: invalid nonce");
        require(now <= expiry, "EGG::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, "EGG::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 EGGs (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, "EGG::_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;
    }
}

// Part: MasterChefV2

// MasterChef is the master of Labo. He can make Labo 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 LABO 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 LABOs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * pool.accLaboPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accLaboPerShare` (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. LABOs to distribute per block.
        uint256 lastRewardBlock;  // Last block number that LABOs distribution occurs.
        uint256 accLaboPerShare;   // Accumulated LABOs per share, times 1e12. See below.
        uint16 depositFeeBP;      // Deposit fee in basis points
    }

    // The LABO TOKEN!
    LaboToken public labo;
    // Dev address.
    address public devaddr;
    // LABO tokens created per block.
    uint256 public laboPerBlock;
    // Bonus muliplier for early labo makers.
    uint256 public constant BONUS_MULTIPLIER = 1;
    // Deposit Fee address
    address public feeAddress;

    // 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 LABO 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 SetFeeAddress(address indexed user, address indexed newAddress);
    event SetDevAddress(address indexed user, address indexed newAddress);
    event UpdateEmissionRate(address indexed user, uint256 laboPerBlock);

    constructor(
        LaboToken _labo,
        address _devaddr,
        address _feeAddress,
        uint256 _laboPerBlock
    ) public {
        labo = _labo;
        devaddr = _devaddr;
        feeAddress = _feeAddress;
        laboPerBlock = _laboPerBlock;
    }

    function setStartBlock(uint256 _startBlock) public onlyOwner {
        require(startBlock == 0, "already started");
        require(_startBlock > block.number + 200, "start block has to be further in the future");
        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");
        _;
    }

    // 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 <= 10000, "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,
        accLaboPerShare : 0,
        depositFeeBP : _depositFeeBP
        }));
    }

    // Update the given pool's LABO allocation point and deposit fee. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, bool _withUpdate) public onlyOwner {
        require(_depositFeeBP <= 10000, "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 LABOs on frontend.
    function pendingLabo(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accLaboPerShare = pool.accLaboPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 laboReward = multiplier.mul(laboPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accLaboPerShare = accLaboPerShare.add(laboReward.mul(1e12).div(lpSupply));
        }
        return user.amount.mul(accLaboPerShare).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 laboReward = multiplier.mul(laboPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        labo.mint(devaddr, laboReward.div(10));
        labo.mint(address(this), laboReward);
        pool.accLaboPerShare = pool.accLaboPerShare.add(laboReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for LABO allocation.
    function deposit(uint256 _pid, uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accLaboPerShare).div(1e12).sub(user.rewardDebt);
            if (pending > 0) {
                safeLaboTransfer(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);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accLaboPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accLaboPerShare).div(1e12).sub(user.rewardDebt);
        if (pending > 0) {
            safeLaboTransfer(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.accLaboPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

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

    // Safe labo transfer function, just in case if rounding error causes pool to not have enough LABOs.
    function safeLaboTransfer(address _to, uint256 _amount) internal {
        uint256 laboBal = labo.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > laboBal) {
            transferSuccess = labo.transfer(_to, laboBal);
        } else {
            transferSuccess = labo.transfer(_to, _amount);
        }
        require(transferSuccess, "safeLaboTransfer: 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 setFeeAddress(address _feeAddress) public {
        require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN");
        feeAddress = _feeAddress;
        emit SetFeeAddress(msg.sender, _feeAddress);
    }

    //Pancake has to add hidden dummy pools inorder to alter the emission, here we make it simple and transparent to all.
    function updateEmissionRate(uint256 _laboPerBlock) public onlyOwner {
        massUpdatePools();
        laboPerBlock = _laboPerBlock;
        emit UpdateEmissionRate(msg.sender, _laboPerBlock);
    }
}

// File: DevFeeProcessor.sol

contract DevFeeProcessor is Ownable, IDevFeeProcessor {
    address constant burnAddr = 0x000000000000000000000000000000000000dEaD;

    IBEP20 public laboToken;
    MasterChefV2 chef;
    address public laboTeam;
    address public nftSplitter;
    address public feeBurnAddress;

    uint8 public laboTeamPercent;
    uint8 public laboBurnPercent;
    uint8 public laboTeamDepositPercent;
    uint8 public depositFeeBurnPercent;

    constructor(
        IBEP20 _laboToken,
        MasterChefV2 _chef,
        address _feeBurnAddress,
        address _laboTeam,
        address _nftSplitter,
        uint8 _laboTeamPercent,
        uint8 _laboBurnPercent,
        uint8 _laboTeamDepositPercent,
        uint8 _depositFeeBurnPercent
    ) public {
        require(_laboTeamPercent < 100);
        require(_laboBurnPercent < 100);
        require(_laboTeamDepositPercent < 100);
        require(_depositFeeBurnPercent < 100);
        require(_laboTeamPercent + _laboBurnPercent < 100);
        require(_laboTeamDepositPercent + _depositFeeBurnPercent < 100);
        laboToken = _laboToken;
        chef = _chef;
        feeBurnAddress = _feeBurnAddress;
        laboTeam = _laboTeam;
        nftSplitter = _nftSplitter;
        laboTeamPercent = _laboTeamPercent;
        laboBurnPercent = _laboBurnPercent;
        laboTeamDepositPercent = _laboTeamDepositPercent;
        depositFeeBurnPercent = _depositFeeBurnPercent;
    }

    function processLabo() public override {
        uint256 balance = laboBalance();
        process(laboToken, balance, laboBurnPercent, laboTeamPercent, burnAddr);
    }

    function processAll(IBEP20[] calldata tokens) public override {
        for (uint i = 0; i < tokens.length; i++) {
            IBEP20 token = tokens[i];
            require(token != laboToken, "DevFeeProcessor: use processLabo() to process LaboToken balance");
            uint256 balance = tokenBalance(token);
            if (balance > 0) {
                process(token, balance, depositFeeBurnPercent, laboTeamDepositPercent, feeBurnAddress);
            }
        }
    }

    function processToken(IBEP20 token) public override {
        require(token != laboToken, "DevFeeProcessor: use processLabo() to process LaboToken balance");
        uint256 balance = tokenBalance(token);
        process(token, balance, depositFeeBurnPercent, laboTeamDepositPercent, feeBurnAddress);
    }

    function process(IBEP20 token, uint256 balance, uint8 burnPercent, uint8 teamPercent, address burnAddress) private {
        require(balance > 0, "DevFeeProcessor: 0 token balance, nothing to withdraw");
        uint256 teamAmount = balance / 100 * teamPercent;
        uint256 burnAmount = balance / 100 * burnPercent;
        uint256 nftHoldersRewardAmount = balance - burnAmount - teamAmount;
        token.transfer(laboTeam, teamAmount);
        token.transfer(burnAddress, burnAmount);
        token.transfer(nftSplitter, nftHoldersRewardAmount);
    }

    function laboBalance() public view override returns (uint256){
        return tokenBalance(laboToken);
    }

    function tokenBalance(IBEP20 token) public view override returns (uint256){
        return token.balanceOf(address(this));
    }

    function setChefFeeAddress(address newChefFeeAddress) public override onlyOwner {
        address oldChefFeeAddress = chef.feeAddress();
        require(oldChefFeeAddress != newChefFeeAddress, "DevFeeProcessor: same address, don't waste your gas");
        chef.setFeeAddress(newChefFeeAddress);
    }

    function setChefDevAddress(address newChefDevAddress) public override onlyOwner {
        address oldChefDevAddress = chef.devaddr();
        require(oldChefDevAddress != newChefDevAddress, "DevFeeProcessor: same address, don't waste your gas");
        chef.dev(newChefDevAddress);
    }

    function setLaboTeamAddress(address newLaboTeamAddress) public override onlyOwner {
        require(laboTeam != newLaboTeamAddress, "DevFeeProcessor: same address, don't waste your gas");
        laboTeam = newLaboTeamAddress;
    }

    function setFeeBurnAddress(address newFeeBurnAddress) public override onlyOwner {
        require(feeBurnAddress != newFeeBurnAddress, "DevFeeProcessor: same address, don't waste your gas");
        feeBurnAddress = newFeeBurnAddress;
    }

    function setNftSplitter(address newNftSplitter) public override onlyOwner {
        require(nftSplitter != newNftSplitter, "DevFeeProcessor: same address, don't waste your gas");
        nftSplitter = newNftSplitter;
    }

    function setLaboPercents(uint8 newLaboBurnPercent, uint8 newLaboTeamPercent) public override onlyOwner {
        require(newLaboBurnPercent < 100);
        require(newLaboTeamPercent < 100);
        require(newLaboBurnPercent + newLaboTeamPercent < 100);
        laboBurnPercent = newLaboBurnPercent;
        laboTeamPercent = newLaboTeamPercent;
    }

    function setDepositFeePercents(uint8 newDepositFeeBurnPercent, uint8 newDepositFeeTeamPercent) public override onlyOwner {
        require(newDepositFeeBurnPercent < 100);
        require(newDepositFeeTeamPercent < 100);
        require(newDepositFeeBurnPercent + newDepositFeeTeamPercent < 100);
        depositFeeBurnPercent = newDepositFeeBurnPercent;
        newDepositFeeTeamPercent = newDepositFeeTeamPercent;
    }
}

Contract ABI

[{"inputs":[{"internalType":"contract IBEP20","name":"_laboToken","type":"address"},{"internalType":"contract MasterChefV2","name":"_chef","type":"address"},{"internalType":"address","name":"_feeBurnAddress","type":"address"},{"internalType":"address","name":"_laboTeam","type":"address"},{"internalType":"address","name":"_nftSplitter","type":"address"},{"internalType":"uint8","name":"_laboTeamPercent","type":"uint8"},{"internalType":"uint8","name":"_laboBurnPercent","type":"uint8"},{"internalType":"uint8","name":"_laboTeamDepositPercent","type":"uint8"},{"internalType":"uint8","name":"_depositFeeBurnPercent","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"depositFeeBurnPercent","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeBurnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"laboBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"laboBurnPercent","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"laboTeam","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"laboTeamDepositPercent","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"laboTeamPercent","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"laboToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftSplitter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20[]","name":"tokens","type":"address[]"}],"name":"processAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"processLabo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"token","type":"address"}],"name":"processToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newChefDevAddress","type":"address"}],"name":"setChefDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newChefFeeAddress","type":"address"}],"name":"setChefFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newDepositFeeBurnPercent","type":"uint8"},{"internalType":"uint8","name":"newDepositFeeTeamPercent","type":"uint8"}],"name":"setDepositFeePercents","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFeeBurnAddress","type":"address"}],"name":"setFeeBurnAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newLaboBurnPercent","type":"uint8"},{"internalType":"uint8","name":"newLaboTeamPercent","type":"uint8"}],"name":"setLaboPercents","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newLaboTeamAddress","type":"address"}],"name":"setLaboTeamAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newNftSplitter","type":"address"}],"name":"setNftSplitter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"token","type":"address"}],"name":"tokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50604051611444380380611444833981810160405261012081101561003457600080fd5b508051602082015160408301516060840151608085015160a086015160c087015160e088015161010090980151969795969495939492939192909190600061007a6101e4565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060648460ff16106100d457600080fd5b60648360ff16106100e457600080fd5b60648260ff16106100f457600080fd5b60648160ff161061010457600080fd5b606483850160ff161061011657600080fd5b606481830160ff161061012857600080fd5b600180546001600160a01b03199081166001600160a01b039b8c1617909155600280548216998b169990991790985560058054600380548b16988c1698909817909755600480548a16968b169690961790955594909616949096169390931760ff60a01b1916600160a01b60ff948516021760ff60a81b1916600160a81b958416959095029490941760ff60b01b1916600160b01b938316939093029290921760ff60b81b1916600160b81b92909116919091021790556101e8565b3390565b61124d806101f76000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80638da5cb5b116100c3578063cd167c261161007c578063cd167c261461032e578063d99405e514610354578063eedc966a1461037a578063f2fde38b146103b2578063f3c56be9146103d8578063fec22adc146103e05761014d565b80638da5cb5b14610238578063a66f120414610240578063a8a655f214610248578063ab7a04561461026e578063c0eee25514610296578063c65a639d146102be5761014d565b80635b4011c0116101155780635b4011c0146101cc5780635e9aa83b146101d45780635f6fa1d6146101dc57806362ebf0b414610202578063675c51c614610228578063715018a6146102305761014d565b806309128bb11461015257806318ac402d1461017a5780632057db5c1461019e5780633632d0b5146101a65780634bf18b03146101c4575b600080fd5b6101786004803603602081101561016857600080fd5b50356001600160a01b03166103e8565b005b610182610572565b604080516001600160a01b039092168252519081900360200190f35b610182610581565b6101ae610590565b6040805160ff9092168252519081900360200190f35b6101826105a0565b6101ae6105af565b6101826105bf565b610178600480360360208110156101f257600080fd5b50356001600160a01b03166105ce565b6101786004803603602081101561021857600080fd5b50356001600160a01b031661069f565b6101ae61080d565b61017861081d565b6101826108c9565b6101ae6108d8565b6101786004803603602081101561025e57600080fd5b50356001600160a01b03166108e8565b6101786004803603604081101561028457600080fd5b5060ff813581169160200135166109b9565b610178600480360360408110156102ac57600080fd5b5060ff81358116916020013516610a6e565b610178600480360360208110156102d457600080fd5b8101906020810181356401000000008111156102ef57600080fd5b82018360208201111561030157600080fd5b8035906020019184602083028401116401000000008311171561032357600080fd5b509092509050610b34565b6101786004803603602081101561034457600080fd5b50356001600160a01b0316610bfc565b6101786004803603602081101561036a57600080fd5b50356001600160a01b0316610ccd565b6103a06004803603602081101561039057600080fd5b50356001600160a01b0316610d5c565b60408051918252519081900360200190f35b610178600480360360208110156103c857600080fd5b50356001600160a01b0316610ddd565b6103a0610edf565b610178610efc565b6103f0610f40565b6001600160a01b03166104016108c9565b6001600160a01b03161461044a576040805162461bcd60e51b815260206004820181905260248201526000805160206111c5833981519152604482015290519081900360640190fd5b60025460408051630824ea6b60e31b815290516000926001600160a01b0316916341275358916004808301926020929190829003018186803b15801561048f57600080fd5b505afa1580156104a3573d6000803e3d6000fd5b505050506040513d60208110156104b957600080fd5b505190506001600160a01b0380821690831614156105085760405162461bcd60e51b81526004018080602001828103825260338152602001806111e56033913960400191505060405180910390fd5b600254604080516321c17f3560e21b81526001600160a01b03858116600483015291519190921691638705fcd491602480830192600092919082900301818387803b15801561055657600080fd5b505af115801561056a573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031681565b6004546001600160a01b031681565b600554600160b01b900460ff1681565b6005546001600160a01b031681565b600554600160a81b900460ff1681565b6001546001600160a01b031681565b6105d6610f40565b6001600160a01b03166105e76108c9565b6001600160a01b031614610630576040805162461bcd60e51b815260206004820181905260248201526000805160206111c5833981519152604482015290519081900360640190fd5b6003546001600160a01b038281169116141561067d5760405162461bcd60e51b81526004018080602001828103825260338152602001806111e56033913960400191505060405180910390fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6106a7610f40565b6001600160a01b03166106b86108c9565b6001600160a01b031614610701576040805162461bcd60e51b815260206004820181905260248201526000805160206111c5833981519152604482015290519081900360640190fd5b6002546040805163d49e77cd60e01b815290516000926001600160a01b03169163d49e77cd916004808301926020929190829003018186803b15801561074657600080fd5b505afa15801561075a573d6000803e3d6000fd5b505050506040513d602081101561077057600080fd5b505190506001600160a01b0380821690831614156107bf5760405162461bcd60e51b81526004018080602001828103825260338152602001806111e56033913960400191505060405180910390fd5b600254604080516346c4548760e11b81526001600160a01b03858116600483015291519190921691638d88a90e91602480830192600092919082900301818387803b15801561055657600080fd5b600554600160b81b900460ff1681565b610825610f40565b6001600160a01b03166108366108c9565b6001600160a01b03161461087f576040805162461bcd60e51b815260206004820181905260248201526000805160206111c5833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600554600160a01b900460ff1681565b6108f0610f40565b6001600160a01b03166109016108c9565b6001600160a01b03161461094a576040805162461bcd60e51b815260206004820181905260248201526000805160206111c5833981519152604482015290519081900360640190fd5b6005546001600160a01b03828116911614156109975760405162461bcd60e51b81526004018080602001828103825260338152602001806111e56033913960400191505060405180910390fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6109c1610f40565b6001600160a01b03166109d26108c9565b6001600160a01b031614610a1b576040805162461bcd60e51b815260206004820181905260248201526000805160206111c5833981519152604482015290519081900360640190fd5b60648260ff1610610a2b57600080fd5b60648160ff1610610a3b57600080fd5b606481830160ff1610610a4d57600080fd5b506005805460ff909216600160b81b0260ff60b81b19909216919091179055565b610a76610f40565b6001600160a01b0316610a876108c9565b6001600160a01b031614610ad0576040805162461bcd60e51b815260206004820181905260248201526000805160206111c5833981519152604482015290519081900360640190fd5b60648260ff1610610ae057600080fd5b60648160ff1610610af057600080fd5b606481830160ff1610610b0257600080fd5b6005805460ff928316600160a01b0260ff60a01b1994909316600160a81b0260ff60a81b199091161792909216179055565b60005b81811015610bf7576000838383818110610b4d57fe5b6001546001600160a01b036020909202939093013581169350919091168214159050610baa5760405162461bcd60e51b815260040180806020018281038252603f815260200180611186603f913960400191505060405180910390fd5b6000610bb582610d5c565b90508015610bed57600554610bed908390839060ff600160b81b8204811691600160b01b8104909116906001600160a01b0316610f44565b5050600101610b37565b505050565b610c04610f40565b6001600160a01b0316610c156108c9565b6001600160a01b031614610c5e576040805162461bcd60e51b815260206004820181905260248201526000805160206111c5833981519152604482015290519081900360640190fd5b6004546001600160a01b0382811691161415610cab5760405162461bcd60e51b81526004018080602001828103825260338152602001806111e56033913960400191505060405180910390fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b0382811691161415610d1a5760405162461bcd60e51b815260040180806020018281038252603f815260200180611186603f913960400191505060405180910390fd5b6000610d2582610d5c565b600554909150610d58908390839060ff600160b81b8204811691600160b01b8104909116906001600160a01b0316610f44565b5050565b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610dab57600080fd5b505afa158015610dbf573d6000803e3d6000fd5b505050506040513d6020811015610dd557600080fd5b505192915050565b610de5610f40565b6001600160a01b0316610df66108c9565b6001600160a01b031614610e3f576040805162461bcd60e51b815260206004820181905260248201526000805160206111c5833981519152604482015290519081900360640190fd5b6001600160a01b038116610e845760405162461bcd60e51b815260040180806020018281038252602681526020018061112b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600154600090610ef7906001600160a01b0316610d5c565b905090565b6000610f06610edf565b600154600554919250610f3d916001600160a01b0390911690839060ff600160a81b8204811691600160a01b90041661dead610f44565b50565b3390565b60008411610f835760405162461bcd60e51b81526004018080602001828103825260358152602001806111516035913960400191505060405180910390fd5b6003546040805163a9059cbb60e01b81526001600160a01b03928316600482015260ff858116606489049081026024840181905293519394918816029283890385900392918a169163a9059cbb9160448083019260209291908290030181600087803b158015610ff257600080fd5b505af1158015611006573d6000803e3d6000fd5b505050506040513d602081101561101c57600080fd5b50506040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151918a169163a9059cbb916044808201926020929091908290030181600087803b15801561107157600080fd5b505af1158015611085573d6000803e3d6000fd5b505050506040513d602081101561109b57600080fd5b5050600480546040805163a9059cbb60e01b81526001600160a01b03928316938101939093526024830184905251908a169163a9059cbb9160448083019260209291908290030181600087803b1580156110f457600080fd5b505af1158015611108573d6000803e3d6000fd5b505050506040513d602081101561111e57600080fd5b5050505050505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737344657646656550726f636573736f723a203020746f6b656e2062616c616e63652c206e6f7468696e6720746f20776974686472617744657646656550726f636573736f723a207573652070726f636573734c61626f282920746f2070726f63657373204c61626f546f6b656e2062616c616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657244657646656550726f636573736f723a2073616d6520616464726573732c20646f6e277420776173746520796f757220676173a2646970667358221220d910bc87785cc357c0b4179a81aa82c4f4a2752cb4001b876f1f959410d44d6f64736f6c634300060c0033000000000000000000000000171401a3d18b21bfa3f9bf4f9637f3691158365a00000000000000000000000030f4cb706e65abb3cbc3ffc2805e8ff50ea8fbc8000000000000000000000000f75890774043fe89afbe1e3e739113df63710f6d0000000000000000000000005cf4fa66fa6355aa3a5a76173f3775815b95236d0000000000000000000000007bbf61169d8ae0bc04bb5d344dd27058e73e5c5400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000032

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

000000000000000000000000171401a3d18b21bfa3f9bf4f9637f3691158365a00000000000000000000000030f4cb706e65abb3cbc3ffc2805e8ff50ea8fbc8000000000000000000000000f75890774043fe89afbe1e3e739113df63710f6d0000000000000000000000005cf4fa66fa6355aa3a5a76173f3775815b95236d0000000000000000000000007bbf61169d8ae0bc04bb5d344dd27058e73e5c5400000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000032

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000171401a3d18b21bfa3f9bf4f9637f3691158365a
Arg [1] : 00000000000000000000000030f4cb706e65abb3cbc3ffc2805e8ff50ea8fbc8
Arg [2] : 000000000000000000000000f75890774043fe89afbe1e3e739113df63710f6d
Arg [3] : 0000000000000000000000005cf4fa66fa6355aa3a5a76173f3775815b95236d
Arg [4] : 0000000000000000000000007bbf61169d8ae0bc04bb5d344dd27058e73e5c54
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000032


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.