Contract 0xD18B23ad6c8ACc4AD32AAd6a5dF750ce28C8C772 4

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xbabd8aef5cbe89e626759b19e9b181fd8a8f3703ce8918b40f9109594ff9f8b9Deposit145611202022-01-21 14:28:1818 mins ago0xb45d1673fff5a925af04e68150107ca266ec7ff5 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.001070555
0xc69d6ae4cf2325101e12ddb168361803003430dfee8b2e923b199cb966d612fcDeposit145611162022-01-21 14:28:0618 mins ago0xbf5f773e367577c64985382819e52f355ab47709 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000852395
0xf205e8e531014e96dcd52488ae056b5382010cc5b358abc52c045ed3cf434143Deposit145611112022-01-21 14:27:5118 mins ago0x76389dad05cc767b67b685167161b925e48d0451 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.00105588
0x71e898c4c335d71dd6f4cc1928817e9c57548a39296b43058575930ffb10e1acDeposit145611072022-01-21 14:27:3919 mins ago0x1f8f65974f0cc54866ef9fb40ac824e652fb3a82 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.00118861
0xf05569a1d5f9353743a6c2c20e0748b6e3fa97ed65475d4e5ac12e80576d3bdbDeposit145610832022-01-21 14:26:2720 mins ago0x1f8f65974f0cc54866ef9fb40ac824e652fb3a82 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.00122167
0x34de6b4e6e417a860689be7f8c4314fedbd7adfab3420b188414f00ae23705b0Deposit145610812022-01-21 14:26:2120 mins ago0xcd2ad0a3e32852feaaa96a6ca660b8d1c0a647da IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000850185
0xa372e3a28f5eb31e715b3ff20531f7058044489aec2a936137e8c5d03f1656ebDeposit145610742022-01-21 14:26:0020 mins ago0xd2c088263ed1c0a7d1740b81dfaa8b1e40ce6263 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.00105582
0x0e8661b2897917e44d78fdd3a30a41ea4091ab55d2b978ab8a8e196c599545adDeposit145610352022-01-21 14:24:0322 mins ago0xcd2ad0a3e32852feaaa96a6ca660b8d1c0a647da IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000851805
0x6786411f70e10e1005badc6dee62aae8ac705ceb1c81ab6644b12710928d7febDeposit145610142022-01-21 14:23:0023 mins ago0x1069c861650693ff2c776793a4fd87c988e34f47 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000999705
0x718c1f4352da22b040b58dbf3eba4639cf4fe3ff9f06cf9977b07b94ab5efb32Deposit145610092022-01-21 14:22:4524 mins ago0x149d2b146ae152b9cb485c839e384b32822c7137 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000850125
0x70032b7424424c7d73e319e100e67de194bce5089cd716ebd5a7fa16457cad20Deposit145609902022-01-21 14:21:4824 mins ago0x76389dad05cc767b67b685167161b925e48d0451 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.00119887
0x26478e70788b8e7ea87a27050850b330fceeca95df327a28d056ee976c733223Deposit145609722022-01-21 14:20:5425 mins ago0x531ef89057b90d0b2b4798660e8710ac614e571d IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.001053805
0xecd05ba3af6992cfc98f5e31c79553ed4315a73d847ccd7fc55993429c4c1301Deposit145609662022-01-21 14:20:3626 mins ago0x531ef89057b90d0b2b4798660e8710ac614e571d IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.001053215
0x9e533b76c3d022db6d2319feb2a272ff5d5be7cf9087846ddd2c6fe760911789Deposit145609542022-01-21 14:20:0026 mins ago0xba62eefe4ee454f392e928e931e89fce698d9c05 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.00119893
0xe2347165af14dd75eccc00edf923cec8bb065dc1f31643db598ab63bcb841c59Withdraw145609422022-01-21 14:19:2427 mins ago0x9cd8cb1b2af5943e399658702e7bf1fc4e097238 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.00108744
0xa174408a9c43667ce4f0893ddf161979c2417ae2d7c361b1ae2464e263d15ab4Deposit145609402022-01-21 14:19:1827 mins ago0x9de27b010059a90b09f01db9f9b74a49acc4ebc3 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.001245635
0x8879750e145419f2057c19d29526feeae79df61203d8b99fbd1fab626ed3523cDeposit145609372022-01-21 14:19:0927 mins ago0xfc16ceec55b806464630ae7f92a85f4cfbce4373 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000885395
0xf9861f2dd7c62a0560b61e364b8cc65e291a3b0221cb50ce97a7af67e0846876Deposit145609352022-01-21 14:19:0327 mins ago0xba62eefe4ee454f392e928e931e89fce698d9c05 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000884865
0x02b42d20d7cd56184b0e9f1d149938d02a3bf5a7b38dca6d40bf730548a687a8Deposit145609342022-01-21 14:19:0027 mins ago0xfc16ceec55b806464630ae7f92a85f4cfbce4373 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000851805
0x1e83af01df5aa437792e5b1af6913bb7625c25b22406a6ed2da3473f388890f5Deposit145609322022-01-21 14:18:5427 mins ago0x149d2b146ae152b9cb485c839e384b32822c7137 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000851805
0x4b330f1d085fa9ab0468702bdc6e72409e313ca0f52493787514564f14ab6e6aDeposit145609312022-01-21 14:18:5127 mins ago0xba62eefe4ee454f392e928e931e89fce698d9c05 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000884865
0x844372eed40844c8f4517b00bce6b80f1125d916ce7283d0d7f681122ae6abcfDeposit145609122022-01-21 14:17:5428 mins ago0xd1e05fe2db5f8bcab5930adda3a469dcccc80baa IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.00105588
0x6ba796b4d245f09b3c4afaa9998324db822a36ab00e66a4d922c0f76e45636feDeposit145609062022-01-21 14:17:3629 mins ago0x9c980159f4416974bbaa789bfafd3507253190c5 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000884865
0xfbe61e77861b890ba1f60a484a3e90c0d1a231b2fd7ff3fe49b6f531aca44f07Deposit145608972022-01-21 14:17:0929 mins ago0x9c980159f4416974bbaa789bfafd3507253190c5 IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.000884865
0x70ba0a9f3521136493ae99a3a680a772656412222981141daf1b64c130a87802Deposit145608762022-01-21 14:16:0630 mins ago0xd1e05fe2db5f8bcab5930adda3a469dcccc80baa IN  0xd18b23ad6c8acc4ad32aad6a5df750ce28c8c7720 BNB0.00119899
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-12-21
*/

// File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol

pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

// File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol

pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol

pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol

pragma solidity >=0.6.2;


interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

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


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^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() {
        _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 making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

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


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: contracts/niobswap/libs/INiobReferral.sol



pragma solidity >=0.6.12;

interface INiobReferral {
    /**
     * @dev Record referral.
     */
    function recordReferral(address user, address referrer) external;

    /**
     * @dev Record referral commission.
     */
    function recordReferralCommission(address referrer, uint256 commission) external;

    /**
     * @dev Get the referrer address that referred the user.
     */
    function getReferrer(address user) external view returns (address);
}

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


// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^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;
        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");

        (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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: contracts/niobswap/libs/IBEP20.sol



pragma solidity >=0.4.0;

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

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

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

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

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

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

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

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

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

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

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

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

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


// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
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) {
        unchecked {
            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) {
        unchecked {
            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) {
        unchecked {
            // 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) {
        unchecked {
            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) {
        unchecked {
            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) {
        return a + b;
    }

    /**
     * @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 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) {
        return a * b;
    }

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: contracts/niobswap/libs/BEP20.sol



pragma solidity >=0.4.0;






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

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: contracts/niobswap/NiobToken.sol



pragma solidity >=0.6.12;








// NiobToken with Governance.
contract NiobToken is BEP20 {
    using SafeMath for uint256;
    //Maximum amount to be minted
    uint256 constant public MAXIMUM_TOTAL_SUPPLY = 600000000000000000000000000;
    // Transfer tax rate in basis points. (default 5%)
    uint16 public transferTaxRate = 500;
    // Burn rate % of transfer tax. (default 20% x 5% = 1% of total amount).
    uint16 public burnRate = 20;
    // Liquidity rate % of taransfer tax. (default 28% x 5% = 1.4% of total amount)
    uint256 public liquidityRate = 28;
    // Reserve rate % of taransfer tax. (default 2% x 5% = 0.1% of total amount)
    uint256 public reserveRate = 2;
    // Reserve Address
    address public reserveAddress;
    // Developer Address
    address public devAddress;
    // Max transfer tax rate: 50%.
    uint16 public constant MAXIMUM_TRANSFER_TAX_RATE = 5000;
    // Burn address
    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    // Max transfer amount rate in basis points. (default is 0.5% of total supply)
    uint16 public maxTransferAmountRate = 50;
    // Addresses that excluded from antiWhale
    mapping(address => bool) private _excludedFromAntiWhale;
    // Automatic swap and liquify enabled
    bool public swapAndLiquifyEnabled = false;
    // Min amount to liquify. (default 1000 Niobs)
    uint256 public minAmountToLiquify = 1000 ether;
    // The swap router, modifiable. Will be changed to NiobSwap's router when our own AMM release
    IUniswapV2Router02 public NiobSwapRouter;
    // The trading pair
    address public NiobSwapPair;
    // In swap and liquify
    bool private _inSwapAndLiquify;

    // The operator can only update the transfer tax rate
    address private _operator;

    // Events
    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);
    event TransferTaxRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate);
    event BurnRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate);
    event MaxTransferAmountRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate);
    event SwapAndLiquifyEnabledUpdated(address indexed operator, bool enabled);
    event MinAmountToLiquifyUpdated(address indexed operator, uint256 previousAmount, uint256 newAmount);
    event NiobSwapRouterUpdated(address indexed operator, address indexed router, address indexed pair);
    event SwapAndLiquify(uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiqudity);

    modifier onlyOperator() {
        require(_operator == msg.sender, "operator: caller is not the operator");
        _;
    }

    modifier antiWhale(address sender, address recipient, uint256 amount) {
        if (maxTransferAmount() > 0) {
            if (
                _excludedFromAntiWhale[sender] == false
                && _excludedFromAntiWhale[recipient] == false
            ) {
                require(amount <= maxTransferAmount(), "Niob::antiWhale: Transfer amount exceeds the maxTransferAmount");
            }
        }
        _;
    }

    modifier lockTheSwap {
        _inSwapAndLiquify = true;
        _;
        _inSwapAndLiquify = false;
    }

    modifier transferTaxFree {
        uint16 _transferTaxRate = transferTaxRate;
        transferTaxRate = 0;
        _;
        transferTaxRate = _transferTaxRate;
    }

    /**
     * @notice Constructs the NiobToken contract.
     */
    constructor(address _dev,address _reserve) BEP20("Niob Token", "NIOB") {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);

        devAddress = _dev;
        reserveAddress = _reserve;

        _excludedFromAntiWhale[_reserve] = true;
        _excludedFromAntiWhale[_dev] = true;
        _excludedFromAntiWhale[msg.sender] = true;
        _excludedFromAntiWhale[address(0)] = true;
        _excludedFromAntiWhale[address(this)] = true;
        _excludedFromAntiWhale[BURN_ADDRESS] = true;
    }

    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
        require(totalSupply() <= MAXIMUM_TOTAL_SUPPLY,"NIOB::mint: Maximum token supply reached");
    }

    /// @dev overrides transfer function to meet tokenomics of Niob
    function _transfer(address sender, address recipient, uint256 amount) internal virtual override antiWhale(sender, recipient, amount) {
        // swap and liquify
        if (
            swapAndLiquifyEnabled == true
            && _inSwapAndLiquify == false
            && address(NiobSwapRouter) != address(0)
            && NiobSwapPair != address(0)
            && sender != NiobSwapPair
            && sender != owner()
        ) {
            swapAndLiquify();
        }

        if (recipient == BURN_ADDRESS || transferTaxRate == 0) {
            super._transfer(sender, recipient, amount);
        } else {
            // default tax is 5% of every transfer
            uint256 taxAmount = amount.mul(transferTaxRate).div(10000);
            uint256 burnAmount = taxAmount.mul(burnRate).div(100);
            uint256 liquidityAmount = taxAmount.mul(liquidityRate).div(100);
            uint256 reserveAmount = taxAmount.mul(reserveRate).div(100);
            uint256 devAmount = taxAmount.sub(burnAmount).sub(liquidityAmount).sub(reserveAmount);
            require(taxAmount == burnAmount + liquidityAmount + reserveAmount + devAmount, "Niob::transfer: Burn value invalid");

            // default 95% of transfer sent to recipient
            uint256 sendAmount = amount.sub(taxAmount);
            require(amount == sendAmount + taxAmount, "Niob::transfer: Tax value invalid");

            super._transfer(sender, BURN_ADDRESS, burnAmount);
            super._transfer(sender, address(this), liquidityAmount);
            super._transfer(sender, reserveAddress, reserveAmount);
            super._transfer(sender, devAddress, devAmount);
            super._transfer(sender, recipient, sendAmount);
            amount = sendAmount;
        }
    }

    /// @dev Swap and liquify
    function swapAndLiquify() private lockTheSwap transferTaxFree {
        uint256 contractTokenBalance = balanceOf(address(this));
        uint256 maxTransferAmount = maxTransferAmount();
        contractTokenBalance = contractTokenBalance > maxTransferAmount ? maxTransferAmount : contractTokenBalance;

        if (contractTokenBalance >= minAmountToLiquify) {
            // only min amount to liquify
            uint256 liquifyAmount = minAmountToLiquify;

            // split the liquify amount into halves
            uint256 half = liquifyAmount.div(2);
            uint256 otherHalf = liquifyAmount.sub(half);

            // capture the contract's current ETH balance.
            // this is so that we can capture exactly the amount of ETH that the
            // swap creates, and not make the liquidity event include any ETH that
            // has been manually sent to the contract
            uint256 initialBalance = address(this).balance;

            // swap tokens for ETH
            swapTokensForEth(half);

            // how much ETH did we just swap into?
            uint256 newBalance = address(this).balance.sub(initialBalance);

            // add liquidity
            addLiquidity(otherHalf, newBalance);

            emit SwapAndLiquify(half, newBalance, otherHalf);
        }
    }

    /// @dev Swap tokens for eth
    function swapTokensForEth(uint256 tokenAmount) private {
        // generate the NiobSwap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = NiobSwapRouter.WETH();

        _approve(address(this), address(NiobSwapRouter), tokenAmount);

        // make the swap
        NiobSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // accept any amount of ETH
            path,
            address(this),
            block.timestamp
        );
    }

    /// @dev Add liquidity
    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(NiobSwapRouter), tokenAmount);

        // add the liquidity
        NiobSwapRouter.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0, // slippage is unavoidable
            0, // slippage is unavoidable
            operator(),
            block.timestamp
        );
    }

    /**
     * @dev Returns the max transfer amount.
     */
    function maxTransferAmount() public view returns (uint256) {
        return totalSupply().mul(maxTransferAmountRate).div(10000);
    }

    /**
     * @dev Returns the address is excluded from antiWhale or not.
     */
    function isExcludedFromAntiWhale(address _account) public view returns (bool) {
        return _excludedFromAntiWhale[_account];
    }

    // To receive BNB from NiobSwapRouter when swapping
    receive() external payable {}

    /**
     * @dev Update the transfer tax rate.
     * Can only be called by the current operator.
     */
    function updateTransferTaxRate(uint16 _transferTaxRate) public onlyOperator {
        require(_transferTaxRate <= MAXIMUM_TRANSFER_TAX_RATE, "Niob::updateTransferTaxRate: Transfer tax rate must not exceed the maximum rate.");
        emit TransferTaxRateUpdated(msg.sender, transferTaxRate, _transferTaxRate);
        transferTaxRate = _transferTaxRate;
    }

    /**
     * @dev Update the burn rate.
     * Can only be called by the current operator.
     */
    function updateBurnRate(uint16 _burnRate) public onlyOperator {
        require(_burnRate <= 100, "Niob::updateBurnRate: Burn rate must not exceed the maximum rate.");
        emit BurnRateUpdated(msg.sender, burnRate, _burnRate);
        burnRate = _burnRate;
    }

    /**
     * @dev Update the liquidity rate.
     * Can only be called by the current operator.
     */
    function updateLiquidityRate(uint16 _liquidityRate) public onlyOperator {
        require(_liquidityRate <= 100, "Niob::updateBurnRate: Burn rate must not exceed the maximum rate.");
        liquidityRate = _liquidityRate;
    }

    /**
     * @dev Update the reserve rate.
     * Can only be called by the current operator.
     */
    function updateReserveRate(uint16 _reserveRate) public onlyOperator {
        require(_reserveRate <= 100, "Niob::updateBurnRate: Burn rate must not exceed the maximum rate.");
        reserveRate = _reserveRate;
    }

    /**
     * @dev Update the max transfer amount rate.
     * Can only be called by the current operator.
     */
    function updateMaxTransferAmountRate(uint16 _maxTransferAmountRate) public onlyOperator {
        require(_maxTransferAmountRate <= 10000, "Niob::updateMaxTransferAmountRate: Max transfer amount rate must not exceed the maximum rate.");
        emit MaxTransferAmountRateUpdated(msg.sender, maxTransferAmountRate, _maxTransferAmountRate);
        maxTransferAmountRate = _maxTransferAmountRate;
    }

    /**
     * @dev Update the min amount to liquify.
     * Can only be called by the current operator.
     */
    function updateMinAmountToLiquify(uint256 _minAmount) public onlyOperator {
        emit MinAmountToLiquifyUpdated(msg.sender, minAmountToLiquify, _minAmount);
        minAmountToLiquify = _minAmount;
    }

    /**
     * @dev Exclude or include an address from antiWhale.
     * Can only be called by the current operator.
     */
    function setExcludedFromAntiWhale(address _account, bool _excluded) public onlyOperator {
        _excludedFromAntiWhale[_account] = _excluded;
    }

    /**
    * @dev Update the address of reserve wallet.
    * Can only be called by the current operator.
    */
    function updateReserveAddress(address _reserve) public onlyOperator {
        require(_reserve != devAddress,"Niob::updateReserveAddress: Same address sent");
        require(_reserve != address(0),"Niob::updateReserveAddress: Zero address sent");
        reserveAddress = _reserve;
    }

    /**
    * @dev Update the address of developer wallet.
    * Can only be called by the current operator.
    */
    function updateDevAddress(address _dev) public onlyOperator {
        require(_dev != devAddress,"Niob::updateDevAddress: Same address sent");
        require(_dev != address(0),"Niob::updateDevAddress: Zero address sent");
        devAddress = _dev;
    }

    /**
     * @dev Update the swapAndLiquifyEnabled.
     * Can only be called by the current operator.
     */
    function updateSwapAndLiquifyEnabled(bool _enabled) public onlyOperator {
        emit SwapAndLiquifyEnabledUpdated(msg.sender, _enabled);
        swapAndLiquifyEnabled = _enabled;
    }

    /**
     * @dev Update the swap router.
     * Can only be called by the current operator.
     */
    function updateNiobSwapRouter(address _router) public onlyOperator {
        NiobSwapRouter = IUniswapV2Router02(_router);
        NiobSwapPair = IUniswapV2Factory(NiobSwapRouter.factory()).getPair(address(this), NiobSwapRouter.WETH());
        require(NiobSwapPair != address(0), "Niob::updateNiobSwapRouter: Invalid pair address.");
        emit NiobSwapRouterUpdated(msg.sender, address(NiobSwapRouter), NiobSwapPair);
    }

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

    /**
     * @dev Transfers operator of the contract to a new account (`newOperator`).
     * Can only be called by the current operator.
     */
    function transferOperator(address newOperator) public onlyOperator {
        require(newOperator != address(0), "Niob::transferOperator: new operator is the zero address");
        emit OperatorTransferred(_operator, newOperator);
        _operator = newOperator;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address signatory = ecrecover(digest, v, r, s);
        require(signatory != address(0), "Niob::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "Niob::delegateBySig: invalid nonce");
        require(block.timestamp <= expiry, "Niob::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, "Niob::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 Niobs (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, "Niob::_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 view returns (uint) {
        uint256 chainId;
        assembly { 
            
            chainId := chainid()
        }
        return chainId;
    }
}

// File: contracts/niobswap/libs/SafeBEP20.sol



pragma solidity >=0.6.0;




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

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

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

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

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

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

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

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

// File: contracts/niobswap/Farms 2.sol



pragma solidity >=0.6.12;








// MasterChef is the master of Niob. He can make Niob 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 NIOB is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
contract MasterChef is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

    uint256 constant public DAY_IN_SECONDS = 86400;

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

    struct LockNiob{
        uint256 amount;
        uint256 time;
    }

    // The NIOB TOKEN!
    NiobToken public niob;
    // Dev address.
    address public devAddress;
    // Deposit Fee address
    
    address public feeAddress;
    // NIOB tokens created per block.
    uint256 public niobPerBlock;
    // Bonus muliplier for early Niob makers.
    uint256 public constant BONUS_MULTIPLIER = 1;
    // Max harvest interval: 14 days.
    uint256 public constant MAXIMUM_HARVEST_INTERVAL = 14 days;

    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Type of the pool , 1- farming & 2- pools
    mapping(address => uint) public poolType;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint = 0;
    // The block number when NIOB mining starts.
    uint256 public startBlock;
    // Total locked up rewards
    uint256 public totalLockedUpRewards;
    //Max level to get the referral commission
    uint256 public maxLevel;

    // Niob referral contract address.
    INiobReferral public niobReferral;
    // Referral commission rate in basis points.
    mapping(uint256 => uint256) public referralCommissionRate;
    // Max referral commission rate: 10%.
    uint16 public constant MAXIMUM_REFERRAL_COMMISSION_RATE = 1000;
    uint256 public constant MAX_LEVEL = 10;

    uint256 public lockTime;
    uint256 public niobId;
    mapping(address => uint256) public lockCount; // count for each user
    mapping(address => mapping(uint256 => LockNiob)) public lock; // each locked amount for each user.

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmissionRateUpdated(address indexed caller, uint256 previousAmount, uint256 newAmount);
    event ReferralCommissionPaid(address indexed user, address indexed referrer, uint256 commissionAmount);
    event RewardLockedUp(address indexed user, uint256 indexed pid, uint256 amountLockedUp);

    constructor(
        NiobToken _niob,
        uint256 _startBlock,
        uint256 _niobPerBlock,
        uint256 _days
    ) {
        niob = _niob;
        startBlock = _startBlock;
        niobPerBlock = _niobPerBlock;
        lockTime = _days * DAY_IN_SECONDS;

        devAddress = msg.sender;
        feeAddress = msg.sender;
        
        maxLevel = 3;

        referralCommissionRate[1] = 100;
        referralCommissionRate[2] = 100;
        referralCommissionRate[3] = 100;
    }

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

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, uint256 _harvestInterval, bool _withUpdate, uint _type) public onlyOwner {
        require(_depositFeeBP <= 10000, "add: invalid deposit fee basis points");
        require(_harvestInterval <= MAXIMUM_HARVEST_INTERVAL, "add: invalid harvest interval");
        require(_type <= 2, "add: invalid type number");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accNiobPerShare: 0,
            depositFeeBP: _depositFeeBP,
            harvestInterval: _harvestInterval
        }));
        poolType[address(_lpToken)] = _type;
        if(address(_lpToken) == address(niob))
            niobId = poolInfo.length - 1;
    }

    // Update the given pool's NIOB allocation point and deposit fee. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, uint256 _harvestInterval, bool _withUpdate, uint _type) public onlyOwner {
        require(_depositFeeBP <= 10000, "set: invalid deposit fee basis points");
        require(_harvestInterval <= MAXIMUM_HARVEST_INTERVAL, "set: invalid harvest interval");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
        poolInfo[_pid].harvestInterval = _harvestInterval;
        poolType[address(poolInfo[_pid].lpToken)] = _type;
    }

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

    // View function to see pending NIOBs on frontend.
    function pendingNiob(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accNiobPerShare = pool.accNiobPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 niobReward = multiplier.mul(niobPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accNiobPerShare = accNiobPerShare.add(niobReward.mul(1e12).div(lpSupply));
        }
        uint256 pending = user.amount.mul(accNiobPerShare).div(1e12).sub(user.rewardDebt);
        return pending.add(user.rewardLockedUp);
    }

    // View function to see if user can harvest NIOBs.
    function canHarvest(uint256 _pid, address _user) public view returns (bool) {
        UserInfo storage user = userInfo[_pid][_user];
        return block.timestamp >= user.nextHarvestUntil;
    }

    // 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 niobReward = multiplier.mul(niobPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        niob.mint(devAddress, niobReward.div(10));
        niob.mint(address(this), niobReward);
        pool.accNiobPerShare = pool.accNiobPerShare.add(niobReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for NIOB allocation.
    function deposit(uint256 _pid, uint256 _amount, address _referrer) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (_amount > 0 && address(niobReferral) != address(0) && _referrer != address(0) && _referrer != msg.sender) {
            niobReferral.recordReferral(msg.sender, _referrer);
        }
        payOrLockupPendingNiob(_pid);
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            if (address(pool.lpToken) == address(niob)) {
                uint256 transferTax = _amount.mul(niob.transferTaxRate()).div(10000);
                _amount = _amount.sub(transferTax);
            }
            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);
                if(_pid == niobId) {
                    setNiobAmount(msg.sender,_amount.sub(depositFee));
                }
            } else {
                user.amount = user.amount.add(_amount);
                if(_pid == niobId) {
                    setNiobAmount(msg.sender,_amount);
                }
            }
        }
        user.rewardDebt = user.amount.mul(pool.accNiobPerShare).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");
        require(_pid != niobId, "withdraw: niob id sent");
        updatePool(_pid);
        payOrLockupPendingNiob(_pid);
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
            }
        user.rewardDebt = user.amount.mul(pool.accNiobPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    //withdraw niob token
    function withdrawNiob(uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[niobId];
        UserInfo storage user = userInfo[niobId][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(niobId);
        payOrLockupPendingNiob(niobId);
        if(_amount > 0) {
            uint256 check = 0;
            uint256 i = user.lastCount;
            (,uint256 _count) = getWithdrawableNiob(msg.sender);
            for(i; i<_count; i++) {
                check += lock[msg.sender][i].amount;
                if(check > _amount) 
                    break;
            }
            lock[msg.sender][i].amount = check.sub(_amount);
            user.lastCount = i.sub(1);
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accNiobPerShare).div(1e12);
        emit Withdraw(msg.sender, niobId, _amount);
    }

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

    // Locking the amount till lockTime period
    function setNiobAmount(address _user, uint256 _amount) internal {
        LockNiob memory temp;
        temp.amount = _amount;
        temp.time = block.timestamp;
        lock[_user][lockCount[_user]] = temp;
        lockCount[_user]++;
    }

    // Pay or lockup pending Niobs.
    function payOrLockupPendingNiob(uint256 _pid) internal {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        if (user.nextHarvestUntil == 0) {
            user.nextHarvestUntil = block.timestamp.add(pool.harvestInterval);
        }

        uint256 pending = user.amount.mul(pool.accNiobPerShare).div(1e12).sub(user.rewardDebt);
        if (canHarvest(_pid, msg.sender)) {
            if (pending > 0 || user.rewardLockedUp > 0) {
                uint256 totalRewards = pending.add(user.rewardLockedUp);

                // reset lockup
                totalLockedUpRewards = totalLockedUpRewards.sub(user.rewardLockedUp);
                user.rewardLockedUp = 0;
                user.nextHarvestUntil = block.timestamp.add(pool.harvestInterval);

                // send rewards
                safeNiobTransfer(msg.sender, totalRewards);
                payReferralCommission(msg.sender, totalRewards);
            }
        } else if (pending > 0) {
            user.rewardLockedUp = user.rewardLockedUp.add(pending);
            totalLockedUpRewards = totalLockedUpRewards.add(pending);
            emit RewardLockedUp(msg.sender, _pid, pending);
        }
    }

    // Safe niob transfer function, just in case if rounding error causes pool to not have enough NIOBs.
    function safeNiobTransfer(address _to, uint256 _amount) internal {
        uint256 niobBal = niob.balanceOf(address(this));
        if (_amount > niobBal) {
            niob.transfer(_to, niobBal);
        } else {
            niob.transfer(_to, _amount);
        }
    }

    // Update dev address by the previous dev.
    function setDevAddress(address _devAddress) public {
        require(msg.sender == devAddress, "setDevAddress: FORBIDDEN");
        require(_devAddress != address(0), "setDevAddress: ZERO");
        devAddress = _devAddress;
    }

    function setFeeAddress(address _feeAddress) public {
        require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN");
        require(_feeAddress != address(0), "setFeeAddress: ZERO");
        feeAddress = _feeAddress;
    }

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

    // Update the niob referral contract address by the owner
    function setNiobReferral(INiobReferral _niobReferral) public onlyOwner {
        niobReferral = _niobReferral;
    }

    // Update referral commission rate by the owner
    function setReferralCommissionRate(uint16 _referralCommissionRate, uint256 level) public onlyOwner {
        require(_referralCommissionRate <= MAXIMUM_REFERRAL_COMMISSION_RATE, "setReferralCommissionRate: invalid referral commission rate basis points");
        require(level > 0 && level <= MAX_LEVEL, "setReferralCommissionRate: invalid level");
        
        referralCommissionRate[level] = _referralCommissionRate;
    }
    
    // Change the level till which commission will be sent
    function setMaxLevel(uint256 newMax) external onlyOwner {
        require(newMax > 0 && newMax <= MAX_LEVEL, "setMaxLevel: invalid level");
        require(newMax != maxLevel, "setMaxLevel: previous value");

        maxLevel = newMax;
    }

    // Change the lock period for niob pool
    function setLockTime(uint256 _time) external onlyOwner {
        require(_time <= 730, "setLockTime: time exceeds limit");
        
        lockTime = _time;
    }
    
    // To change the type for any token
    function setPoolType(IBEP20 _lpToken, uint8 _type) public onlyOwner {
        require(_type <= 2, "setPoolType : invalid type number");
        require(poolType[address(_lpToken)] != 0 ,"setPoolType: token pool not created");
        require(poolType[address(_lpToken)] != _type, "setPoolType: same type number sent");
        poolType[address(_lpToken)] = _type;
    }

    // Pay referral commission to the referrer who referred this user.
    function payReferralCommission(address _user, uint256 _pending) internal {
        if (address(niobReferral) != address(0)) {
            address referrer;
            uint256 commissionAmount;
            for (uint i = 1; i <= maxLevel; i++) {
            	referrer = niobReferral.getReferrer(_user);

                if (referrer == address(0)) {
                    return;
                }
                
                commissionAmount = (_pending.mul(referralCommissionRate[i])).div(10000);
                
                if (referrer != address(0) && commissionAmount > 0) {
                    niob.mint(referrer, commissionAmount);
                    niobReferral.recordReferralCommission(referrer, commissionAmount);
                    emit ReferralCommissionPaid(_user, referrer, commissionAmount);
                }

                _user = referrer;
            }
        }
    }

    function getWithdrawableNiob(address _user) public view returns(uint256, uint256) {
        uint256 totalAmount = 0;
        uint256 i = userInfo[niobId][_user].lastCount;
        for(i; i< lockCount[_user]; i++) {
            if(lock[_user][i].time + lockTime <= block.timestamp) {
                totalAmount += lock[_user][i].amount;
            } else 
                break;
        }
        return (totalAmount, i);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract NiobToken","name":"_niob","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_niobPerBlock","type":"uint256"},{"internalType":"uint256","name":"_days","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":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"EmissionRateUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"referrer","type":"address"},{"indexed":false,"internalType":"uint256","name":"commissionAmount","type":"uint256"}],"name":"ReferralCommissionPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountLockedUp","type":"uint256"}],"name":"RewardLockedUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAY_IN_SECONDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_HARVEST_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_REFERRAL_COMMISSION_RATE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_LEVEL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"_harvestInterval","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"canHarvest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getWithdrawableNiob","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lock","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"time","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lockCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"niob","outputs":[{"internalType":"contract NiobToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"niobId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"niobPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"niobReferral","outputs":[{"internalType":"contract INiobReferral","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingNiob","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accNiobPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"harvestInterval","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"poolType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"referralCommissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"_harvestInterval","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddress","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"setLockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setMaxLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract INiobReferral","name":"_niobReferral","type":"address"}],"name":"setNiobReferral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint8","name":"_type","type":"uint8"}],"name":"setPoolType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_referralCommissionRate","type":"uint16"},{"internalType":"uint256","name":"level","type":"uint256"}],"name":"setReferralCommissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLockedUpRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_niobPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"rewardLockedUp","type":"uint256"},{"internalType":"uint256","name":"nextHarvestUntil","type":"uint256"},{"internalType":"uint256","name":"lastCount","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"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawNiob","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006009553480156200001657600080fd5b5060405162002eac38038062002eac833981016040819052620000399162000175565b620000443362000125565b60018055600280546001600160a01b0319166001600160a01b038616179055600a83905560058290556200007c6201518082620001c2565b600f55505060038054336001600160a01b03199182168117835560048054909216179055600c819055600e60205260647fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582078190557f9adb202b1492743bc00c81d33cdc6423fa8c79109027eb6a845391e8fc1f04818190556000919091527fe0283e559c29e31ee7f56467acc9dd307779c843a883aeeb3bf5c6128c9081445550620001f09050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600080608085870312156200018c57600080fd5b84516001600160a01b0381168114620001a457600080fd5b60208601516040870151606090970151919890975090945092505050565b6000816000190483118215151615620001eb57634e487b7160e01b600052601160045260246000fd5b500290565b612cac80620002006000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c8063630b5ba11161015c578063a49062d4116100ce578063de73149d11610087578063de73149d1461064d578063df03458614610657578063ebf5d0ac14610677578063ef8538fb1461068a578063f03c8ae1146106aa578063f2fde38b146106b357600080fd5b8063a49062d4146105e3578063ae04d45d146105eb578063c0a14831146105fe578063caa84cd11461061e578063cc06c35914610631578063d0d41fe11461063a57600080fd5b80638aa28550116101205780638aa285501461052b5780638da5cb5b146105335780638dbb1e3a146105445780638dbdbe6d1461055757806393f1a40b1461056a5780639cc0ba13146105da57600080fd5b8063630b5ba1146104e2578063715018a6146104ea5780638686de43146104f25780638705fcd414610505578063897dd5db1461051857600080fd5b80632fb76f2411610200578063474fa630116101b9578063474fa6301461048457806348b22bfb1461048d57806348cd4cb1146104a957806351eb05a6146104b25780635312ea8e146104c55780635fdc6281146104d857600080fd5b80632fb76f2414610412578063344f1ba5146104255780633ad10ef6146104385780633b3de0311461044b578063412753581461045e578063441a3e701461047157600080fd5b806317caf6f11161025257806317caf6f114610325578063208507201461032e578063282d3fdf146103595780632b8e8f64146103a05780632e6c998d146103b35780632f9c3d5b146103ff57600080fd5b8063081e3eda1461028f5780630ba84cd2146102a65780630d668087146102bb57806310905f91146102c45780631526fe27146102d7575b600080fd5b6006545b6040519081526020015b60405180910390f35b6102b96102b436600461285d565b6106c6565b005b610293600f5481565b6102b96102d236600461288b565b610744565b6102ea6102e536600461285d565b610790565b604080516001600160a01b039097168752602087019590955293850192909252606084015261ffff16608083015260a082015260c00161029d565b61029360095481565b600254610341906001600160a01b031681565b6040516001600160a01b03909116815260200161029d565b61038b6103673660046128a8565b60126020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161029d565b61038b6103ae36600461288b565b6107e7565b6103ef6103c13660046128d4565b60009182526007602090815260408084206001600160a01b0393909316845291905290206003015442101590565b604051901515815260200161029d565b6102b961040d36600461285d565b6108c5565b6102b9610420366004612922565b610aba565b6102b961043336600461285d565b610ccd565b600354610341906001600160a01b031681565b6102b9610459366004612980565b610dab565b600454610341906001600160a01b031681565b6102b961047f3660046129b4565b610f3c565b610293600b5481565b6104966103e881565b60405161ffff909116815260200161029d565b610293600a5481565b6102b96104c036600461285d565b6110d3565b6102b96104d336600461285d565b6112f9565b6102936201518081565b6102b96113cb565b6102b96113f6565b6102936105003660046128d4565b61142c565b6102b961051336600461288b565b6115aa565b6102b96105263660046129d6565b611672565b610293600181565b6000546001600160a01b0316610341565b6102936105523660046129b4565b6117af565b6102b96105653660046129f4565b6117c7565b6105b26105783660046128d4565b6007602090815260009283526040808420909152908252902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a00161029d565b61029360105481565b610293600a81565b6102b96105f936600461285d565b611ac8565b61029361060c36600461288b565b60086020526000908152604090205481565b6102b961062c366004612a2d565b611b49565b610293600c5481565b6102b961064836600461288b565b611e44565b6102936212750081565b61029361066536600461288b565b60116020526000908152604090205481565b600d54610341906001600160a01b031681565b61029361069836600461285d565b600e6020526000908152604090205481565b61029360055481565b6102b96106c136600461288b565b611f0c565b6000546001600160a01b031633146106f95760405162461bcd60e51b81526004016106f090612a68565b60405180910390fd5b6107016113cb565b600554604080519182526020820183905233917feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d9511910160405180910390a2600555565b6000546001600160a01b0316331461076e5760405162461bcd60e51b81526004016106f090612a68565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b600681815481106107a057600080fd5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909261ffff9091169086565b60105460009081526007602090815260408083206001600160a01b0385168452909152812060040154819081905b6001600160a01b0385166000908152601160205260409020548110156108bb57600f546001600160a01b0386166000908152601260209081526040808320858452909152902060010154429161086a91612ab3565b116108a4576001600160a01b038516600090815260126020908152604080832084845290915290205461089d9083612ab3565b91506108a9565b6108bb565b806108b381612acb565b915050610815565b9094909350915050565b600260015414156108e85760405162461bcd60e51b81526004016106f090612ae6565b60026001556010546006805460009290811061090657610906612b1d565b60009182526020808320601054845260078252604080852033865290925292208054600690920290920192508311156109765760405162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b60448201526064016106f0565b6109816010546110d3565b61098c601054611fa7565b8215610a53576004810154600090816109a4336107e7565b9150505b808210156109f6573360009081526012602090815260408083208584529091529020546109d59084612ab3565b9250858311156109e4576109f6565b816109ee81612acb565b9250506109a8565b610a008387612145565b336000908152601260209081526040808320868452909152902055610a26826001612145565b60048501558354610a379087612145565b84558454610a4f906001600160a01b03163388612151565b5050505b60038201548154610a749164e8d4a5100091610a6e916121b9565b906121c5565b600182015560105460405184815233907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a350506001805550565b6000546001600160a01b03163314610ae45760405162461bcd60e51b81526004016106f090612a68565b6127108461ffff161115610b485760405162461bcd60e51b815260206004820152602560248201527f7365743a20696e76616c6964206465706f7369742066656520626173697320706044820152646f696e747360d81b60648201526084016106f0565b62127500831115610b9b5760405162461bcd60e51b815260206004820152601d60248201527f7365743a20696e76616c6964206861727665737420696e74657276616c00000060448201526064016106f0565b8115610ba957610ba96113cb565b610bec85610be660068981548110610bc357610bc3612b1d565b90600052602060002090600602016001015460095461214590919063ffffffff16565b906121d1565b6009819055508460068781548110610c0657610c06612b1d565b9060005260206000209060060201600101819055508360068781548110610c2f57610c2f612b1d565b906000526020600020906006020160040160006101000a81548161ffff021916908361ffff1602179055508260068781548110610c6e57610c6e612b1d565b906000526020600020906006020160050181905550806008600060068981548110610c9b57610c9b612b1d565b600091825260208083206006909202909101546001600160a01b03168352820192909252604001902055505050505050565b6000546001600160a01b03163314610cf75760405162461bcd60e51b81526004016106f090612a68565b600081118015610d085750600a8111155b610d545760405162461bcd60e51b815260206004820152601a60248201527f7365744d61784c6576656c3a20696e76616c6964206c6576656c00000000000060448201526064016106f0565b600c54811415610da65760405162461bcd60e51b815260206004820152601b60248201527f7365744d61784c6576656c3a2070726576696f75732076616c7565000000000060448201526064016106f0565b600c55565b6000546001600160a01b03163314610dd55760405162461bcd60e51b81526004016106f090612a68565b60028160ff161115610e335760405162461bcd60e51b815260206004820152602160248201527f736574506f6f6c54797065203a20696e76616c69642074797065206e756d62656044820152603960f91b60648201526084016106f0565b6001600160a01b038216600090815260086020526040902054610ea45760405162461bcd60e51b815260206004820152602360248201527f736574506f6f6c547970653a20746f6b656e20706f6f6c206e6f7420637265616044820152621d195960ea1b60648201526084016106f0565b6001600160a01b03821660009081526008602052604090205460ff82161415610f1a5760405162461bcd60e51b815260206004820152602260248201527f736574506f6f6c547970653a2073616d652074797065206e756d6265722073656044820152611b9d60f21b60648201526084016106f0565b6001600160a01b03909116600090815260086020526040902060ff9091169055565b60026001541415610f5f5760405162461bcd60e51b81526004016106f090612ae6565b6002600181905550600060068381548110610f7c57610f7c612b1d565b600091825260208083208684526007825260408085203386529092529220805460069092029092019250831115610fea5760405162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b60448201526064016106f0565b6010548414156110355760405162461bcd60e51b81526020600482015260166024820152751dda5d1a191c985dce881b9a5bd8881a59081cd95b9d60521b60448201526064016106f0565b61103e846110d3565b61104784611fa7565b82156110715780546110599084612145565b81558154611071906001600160a01b03163385612151565b6003820154815461108c9164e8d4a5100091610a6e916121b9565b6001820155604051838152849033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a35050600180555050565b6000600682815481106110e8576110e8612b1d565b9060005260206000209060060201905080600201544311611107575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561114f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111739190612b33565b905080158061118457506001820154155b1561119457504360029091015550565b60006111a48360020154436117af565b905060006111d1600954610a6e86600101546111cb600554876121b990919063ffffffff16565b906121b9565b6002546003549192506001600160a01b03908116916340c10f1991166111f884600a6121c5565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561123e57600080fd5b505af1158015611252573d6000803e3d6000fd5b50506002546040516340c10f1960e01b8152306004820152602481018590526001600160a01b0390911692506340c10f199150604401600060405180830381600087803b1580156112a257600080fd5b505af11580156112b6573d6000803e3d6000fd5b505050506112e46112d984610a6e64e8d4a51000856121b990919063ffffffff16565b6003860154906121d1565b60038501555050436002909201919091555050565b6002600154141561131c5760405162461bcd60e51b81526004016106f090612ae6565b600260018190555060006006828154811061133957611339612b1d565b6000918252602080832085845260078252604080852033808752935284208054858255600182018690556002820186905560038201959095556006909302018054909450919291611397916001600160a01b03919091169083612151565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020016110c1565b60065460005b818110156113f2576113e2816110d3565b6113eb81612acb565b90506113d1565b5050565b6000546001600160a01b031633146114205760405162461bcd60e51b81526004016106f090612a68565b61142a60006121dd565b565b6000806006848154811061144257611442612b1d565b600091825260208083208784526007825260408085206001600160a01b03898116875293528085206006949094029091016003810154815492516370a0823160e01b815230600482015291965093949291909116906370a0823190602401602060405180830381865afa1580156114bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e19190612b33565b90508360020154431180156114f557508015155b1561155557600061150a8560020154436117af565b90506000611531600954610a6e88600101546111cb600554876121b990919063ffffffff16565b905061155061154984610a6e8464e8d4a510006121b9565b85906121d1565b935050505b6000611585846001015461157f64e8d4a51000610a6e8789600001546121b990919063ffffffff16565b90612145565b905061159e8460020154826121d190919063ffffffff16565b98975050505050505050565b6004546001600160a01b031633146116045760405162461bcd60e51b815260206004820152601860248201527f736574466565416464726573733a20464f5242494444454e000000000000000060448201526064016106f0565b6001600160a01b0381166116505760405162461bcd60e51b8152602060048201526013602482015272736574466565416464726573733a205a45524f60681b60448201526064016106f0565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461169c5760405162461bcd60e51b81526004016106f090612a68565b6103e861ffff831611156117295760405162461bcd60e51b815260206004820152604860248201527f736574526566657272616c436f6d6d697373696f6e526174653a20696e76616c60448201527f696420726566657272616c20636f6d6d697373696f6e207261746520626173696064820152677320706f696e747360c01b608482015260a4016106f0565b60008111801561173a5750600a8111155b6117975760405162461bcd60e51b815260206004820152602860248201527f736574526566657272616c436f6d6d697373696f6e526174653a20696e76616c6044820152671a59081b195d995b60c21b60648201526084016106f0565b6000908152600e6020526040902061ffff9091169055565b60006117c060016111cb8486612145565b9392505050565b600260015414156117ea5760405162461bcd60e51b81526004016106f090612ae6565b600260018190555060006006848154811061180757611807612b1d565b60009182526020808320878452600782526040808520338652909252922060069091029091019150611838856110d3565b6000841180156118525750600d546001600160a01b031615155b801561186657506001600160a01b03831615155b801561187b57506001600160a01b0383163314155b156118e657600d54604051630c7f7b6b60e01b81523360048201526001600160a01b03858116602483015290911690630c7f7b6b90604401600060405180830381600087803b1580156118cd57600080fd5b505af11580156118e1573d6000803e3d6000fd5b505050505b6118ef85611fa7565b8315611a6657815461190c906001600160a01b031633308761222d565b60025482546001600160a01b03908116911614156119c15760006119b1612710610a6e600260009054906101000a90046001600160a01b03166001600160a01b031663b65d08b06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611982573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a69190612b4c565b889061ffff166121b9565b90506119bd8582612145565b9450505b600482015461ffff1615611a445760048201546000906119ee9061271090610a6e90889061ffff166121b9565b6004548454919250611a0d916001600160a01b03908116911683612151565b8154611a1f90829061157f90886121d1565b8255601054861415611a3e57611a3e33611a398784612145565b612265565b50611a66565b8054611a5090856121d1565b8155601054851415611a6657611a663385612265565b60038201548154611a819164e8d4a5100091610a6e916121b9565b6001820155604051848152859033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a3505060018055505050565b6000546001600160a01b03163314611af25760405162461bcd60e51b81526004016106f090612a68565b6102da811115611b445760405162461bcd60e51b815260206004820152601f60248201527f7365744c6f636b54696d653a2074696d652065786365656473206c696d69740060448201526064016106f0565b600f55565b6000546001600160a01b03163314611b735760405162461bcd60e51b81526004016106f090612a68565b6127108461ffff161115611bd75760405162461bcd60e51b815260206004820152602560248201527f6164643a20696e76616c6964206465706f7369742066656520626173697320706044820152646f696e747360d81b60648201526084016106f0565b62127500831115611c2a5760405162461bcd60e51b815260206004820152601d60248201527f6164643a20696e76616c6964206861727665737420696e74657276616c00000060448201526064016106f0565b6002811115611c7b5760405162461bcd60e51b815260206004820152601860248201527f6164643a20696e76616c69642074797065206e756d626572000000000000000060448201526064016106f0565b8115611c8957611c896113cb565b6000600a544311611c9c57600a54611c9e565b435b600954909150611cae90886121d1565b6009556040805160c0810182526001600160a01b0388811680835260208084018c815284860187815260006060870181815261ffff8e811660808a0190815260a08a018f8152600680546001810182558187529b517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f9c9091029b8c0180546001600160a01b031916918c1691909117905595517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d408b015593517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d418a015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d4289015591517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d438801805461ffff1916919093161790915590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d44909501949094558184526008905292909120849055600254161415611e3b57600654611e3790600190612b69565b6010555b50505050505050565b6003546001600160a01b03163314611e9e5760405162461bcd60e51b815260206004820152601860248201527f736574446576416464726573733a20464f5242494444454e000000000000000060448201526064016106f0565b6001600160a01b038116611eea5760405162461bcd60e51b8152602060048201526013602482015272736574446576416464726573733a205a45524f60681b60448201526064016106f0565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611f365760405162461bcd60e51b81526004016106f090612a68565b6001600160a01b038116611f9b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106f0565b611fa4816121dd565b50565b600060068281548110611fbc57611fbc612b1d565b600091825260208083208584526007825260408085203386529092529220600381015460069092029092019250612003576005820154611ffd9042906121d1565b60038201555b6000612031826001015461157f64e8d4a51000610a6e876003015487600001546121b990919063ffffffff16565b600085815260076020908152604080832033845290915290206003015490915042106120dd57600081118061206a575060008260020154115b156120d85760006120888360020154836121d190919063ffffffff16565b90506120a38360020154600b5461214590919063ffffffff16565b600b556000600284015560058401546120bd9042906121d1565b60038401556120cc33826122ce565b6120d633826123f6565b505b61213f565b801561213f5760028201546120f290826121d1565b6002830155600b5461210490826121d1565b600b55604051818152849033907fee470483107f579a55c754fa00613c45a9a3b617a418b39cb0be97e5381ba7c19060200160405180910390a35b50505050565b60006117c08284612b69565b6040516001600160a01b0383166024820152604481018290526121b490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612613565b505050565b60006117c08284612b80565b60006117c08284612b9f565b60006117c08284612ab3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b038085166024830152831660448201526064810182905261213f9085906323b872dd60e01b9060840161217d565b6040805180820182528281524260208083019182526001600160a01b038616600081815260128352858120601180855287832080548452918552968220865181559451600190950194909455908152939052805491926122c483612acb565b9190505550505050565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612317573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233b9190612b33565b9050808211156123bd5760025460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018490529091169063a9059cbb906044015b6020604051808303816000875af1158015612399573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213f9190612bc1565b60025460405163a9059cbb60e01b81526001600160a01b038581166004830152602482018590529091169063a9059cbb9060440161237a565b600d546001600160a01b0316156113f25760008060015b600c54811161260c57600d54604051634a9fefc760e01b81526001600160a01b03878116600483015290911690634a9fefc790602401602060405180830381865afa158015612460573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124849190612bde565b92506001600160a01b03831661249b575050505050565b6000818152600e60205260409020546124bd9061271090610a6e9087906121b9565b91506001600160a01b038316158015906124d75750600082115b156125f6576002546040516340c10f1960e01b81526001600160a01b03858116600483015260248201859052909116906340c10f1990604401600060405180830381600087803b15801561252a57600080fd5b505af115801561253e573d6000803e3d6000fd5b5050600d54604051631b82d29760e31b81526001600160a01b03878116600483015260248201879052909116925063dc1694b89150604401600060405180830381600087803b15801561259057600080fd5b505af11580156125a4573d6000803e3d6000fd5b50505050826001600160a01b0316856001600160a01b03167f86ddab457291316e0f5496737e5ca67c4037234c32c3be04c48ae96186893a7b846040516125ed91815260200190565b60405180910390a35b829450808061260490612acb565b91505061240d565b5050505050565b6000612668826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126e59092919063ffffffff16565b8051909150156121b457808060200190518101906126869190612bc1565b6121b45760405162461bcd60e51b815260206004820152602a60248201527f5361666542455032303a204245503230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106f0565b60606126f484846000856126fc565b949350505050565b60608247101561275d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106f0565b843b6127ab5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106f0565b600080866001600160a01b031685876040516127c79190612c27565b60006040518083038185875af1925050503d8060008114612804576040519150601f19603f3d011682016040523d82523d6000602084013e612809565b606091505b5091509150612819828286612824565b979650505050505050565b606083156128335750816117c0565b8251156128435782518084602001fd5b8160405162461bcd60e51b81526004016106f09190612c43565b60006020828403121561286f57600080fd5b5035919050565b6001600160a01b0381168114611fa457600080fd5b60006020828403121561289d57600080fd5b81356117c081612876565b600080604083850312156128bb57600080fd5b82356128c681612876565b946020939093013593505050565b600080604083850312156128e757600080fd5b8235915060208301356128f981612876565b809150509250929050565b61ffff81168114611fa457600080fd5b8015158114611fa457600080fd5b60008060008060008060c0878903121561293b57600080fd5b8635955060208701359450604087013561295481612904565b935060608701359250608087013561296b81612914565b8092505060a087013590509295509295509295565b6000806040838503121561299357600080fd5b823561299e81612876565b9150602083013560ff811681146128f957600080fd5b600080604083850312156129c757600080fd5b50508035926020909101359150565b600080604083850312156129e957600080fd5b82356128c681612904565b600080600060608486031215612a0957600080fd5b83359250602084013591506040840135612a2281612876565b809150509250925092565b60008060008060008060c08789031215612a4657600080fd5b863595506020870135612a5881612876565b9450604087013561295481612904565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612ac657612ac6612a9d565b500190565b6000600019821415612adf57612adf612a9d565b5060010190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612b4557600080fd5b5051919050565b600060208284031215612b5e57600080fd5b81516117c081612904565b600082821015612b7b57612b7b612a9d565b500390565b6000816000190483118215151615612b9a57612b9a612a9d565b500290565b600082612bbc57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215612bd357600080fd5b81516117c081612914565b600060208284031215612bf057600080fd5b81516117c081612876565b60005b83811015612c16578181015183820152602001612bfe565b8381111561213f5750506000910152565b60008251612c39818460208701612bfb565b9190910192915050565b6020815260008251806020840152612c62816040850160208701612bfb565b601f01601f1916919091016040019291505056fea26469706673582212202ca28a1064e393744d898858eda5cd11b83dc2033492c0ef1f83286fd0b8bdd064736f6c634300080a00330000000000000000000000005ac5e6af46ef285b3536833e65d245c49b608d9b0000000000000000000000000000000000000000000000000000000000d1274f000000000000000000000000000000000000000000000002b5e3af16b188000000000000000000000000000000000000000000000000000000000000000000b4

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

0000000000000000000000005ac5e6af46ef285b3536833e65d245c49b608d9b0000000000000000000000000000000000000000000000000000000000d1274f000000000000000000000000000000000000000000000002b5e3af16b188000000000000000000000000000000000000000000000000000000000000000000b4

-----Decoded View---------------
Arg [0] : _niob (address): 0x5ac5e6af46ef285b3536833e65d245c49b608d9b
Arg [1] : _startBlock (uint256): 13707087
Arg [2] : _niobPerBlock (uint256): 50000000000000000000
Arg [3] : _days (uint256): 180

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000005ac5e6af46ef285b3536833e65d245c49b608d9b
Arg [1] : 0000000000000000000000000000000000000000000000000000000000d1274f
Arg [2] : 000000000000000000000000000000000000000000000002b5e3af16b1880000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000b4


Deployed ByteCode Sourcemap

71257:19146:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75857:95;75929:8;:15;75857:95;;;160:25:1;;;148:2;133:18;75857:95:0;;;;;;;;87085:219;;;;;;:::i;:::-;;:::i;:::-;;74548:23;;;;;;87375:118;;;;;;:::i;:::-;;:::i;73581:26::-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;1138:32:1;;;1120:51;;1202:2;1187:18;;1180:34;;;;1230:18;;;1223:34;;;;1288:2;1273:18;;1266:34;1349:6;1337:19;1331:3;1316:19;;1309:48;1158:3;1373:19;;1366:35;1107:3;1092:19;73581:26:0;820:587:1;73918:34:0;;;;;;73130:21;;;;;-1:-1:-1;;;;;73130:21:0;;;;;;-1:-1:-1;;;;;1602:32:1;;;1584:51;;1572:2;1557:18;73130:21:0;1412:229:1;74680:60:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2155:25:1;;;2211:2;2196:18;;2189:34;;;;2128:18;74680:60:0;1981:248:1;89962:438:0;;;;;;:::i;:::-;;:::i;79156:198::-;;;;;;:::i;:::-;79226:4;79267:14;;;:8;:14;;;;;;;;-1:-1:-1;;;;;79267:21:0;;;;;;;;;;;79325;;;79306:15;:40;;;79156:198;;;;3001:14:1;;2994:22;2976:41;;2964:2;2949:18;79156:198:0;2836:187:1;82863:1018:0;;;;;;:::i;:::-;;:::i;77271:718::-;;;;;;:::i;:::-;;:::i;88059:246::-;;;;;;:::i;:::-;;:::i;73179:25::-;;;;;-1:-1:-1;;;;;73179:25:0;;;88578:374;;;;;;:::i;:::-;;:::i;73245:25::-;;;;;-1:-1:-1;;;;;73245:25:0;;;82158:670;;;;;;:::i;:::-;;:::i;74073:35::-;;;;;;74432:62;;74490:4;74432:62;;;;;5015:6:1;5003:19;;;4985:38;;4973:2;4958:18;74432:62:0;4841:188:1;74009:25:0;;;;;;79693:808;;;;;;:::i;:::-;;:::i;83952:468::-;;;;;;:::i;:::-;;:::i;71380:46::-;;71421:5;71380:46;;79437:180;;;:::i;13739:103::-;;;:::i;78272:820::-;;;;;;:::i;:::-;;:::i;86718:234::-;;;;;;:::i;:::-;;:::i;87554:433::-;;;;;;:::i;:::-;;:::i;73397:44::-;;73440:1;73397:44;;13088:87;13134:7;13161:6;-1:-1:-1;;;;;13161:6:0;13088:87;;78065:143;;;;;;:::i;:::-;;:::i;80570:1536::-;;;;;;:::i;:::-;;:::i;73663:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6014:25:1;;;6070:2;6055:18;;6048:34;;;;6098:18;;;6091:34;;;;6156:2;6141:18;;6134:34;6199:3;6184:19;;6177:35;6001:3;5986:19;73663:64:0;5755:463:1;74578:21:0;;;;;;74501:38;;74537:2;74501:38;;88358:167;;;;;;:::i;:::-;;:::i;73783:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;76121:1038;;;;;;:::i;:::-;;:::i;74163:23::-;;;;;;86476:234;;;;;;:::i;:::-;;:::i;73487:58::-;;73538:7;73487:58;;74606:44;;;;;;:::i;:::-;;;;;;;;;;;;;;74235:33;;;;;-1:-1:-1;;;;;74235:33:0;;;74325:57;;;;;;:::i;:::-;;;;;;;;;;;;;;73316:27;;;;;;13997:201;;;;;;:::i;:::-;;:::i;87085:219::-;13134:7;13161:6;-1:-1:-1;;;;;13161:6:0;11892:10;13308:23;13300:68;;;;-1:-1:-1;;;13300:68:0;;;;;;;:::i;:::-;;;;;;;;;87164:17:::1;:15;:17::i;:::-;87229:12;::::0;87197:60:::1;::::0;;2155:25:1;;;2211:2;2196:18;;2189:34;;;87217:10:0::1;::::0;87197:60:::1;::::0;2128:18:1;87197:60:0::1;;;;;;;87268:12;:28:::0;87085:219::o;87375:118::-;13134:7;13161:6;-1:-1:-1;;;;;13161:6:0;11892:10;13308:23;13300:68;;;;-1:-1:-1;;;13300:68:0;;;;;;;:::i;:::-;87457:12:::1;:28:::0;;-1:-1:-1;;;;;;87457:28:0::1;-1:-1:-1::0;;;;;87457:28:0;;;::::1;::::0;;;::::1;::::0;;87375:118::o;73581:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;73581:26:0;;;;-1:-1:-1;73581:26:0;;;;;;;;;;:::o;89962:438::-;90110:6;;90026:7;90101:16;;;:8;:16;;;;;;;;-1:-1:-1;;;;;90101:23:0;;;;;;;;;:33;;;90026:7;;;;90145:214;-1:-1:-1;;;;;90155:16:0;;;;;;:9;:16;;;;;;90152:19;;90145:214;;;90218:8;;-1:-1:-1;;;;;90196:11:0;;;;;;:4;:11;;;;;;;;:14;;;;;;;;:19;;;90230:15;;90196:30;;;:::i;:::-;:49;90193:154;;-1:-1:-1;;;;;90281:11:0;;;;;;:4;:11;;;;;;;;:14;;;;;;;;:21;90266:36;;;;:::i;:::-;;;90193:154;;;90342:5;;90193:154;90173:3;;;;:::i;:::-;;;;90145:214;;;90377:11;;90390:1;;-1:-1:-1;89962:438:0;-1:-1:-1;;89962:438:0:o;82863:1018::-;10186:1;10784:7;;:19;;10776:63;;;;-1:-1:-1;;;10776:63:0;;;;;;;:::i;:::-;10186:1;10917:7;:18;82966:6:::1;::::0;82957:8:::1;:16:::0;;82933:21:::1;::::0;82966:6;82957:16;::::1;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;83017:6:::1;::::0;83008:16;;:8:::1;:16:::0;;;;;;83025:10:::1;83008:28:::0;;;;;;;83055:11;;82957:16:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;83055:22:0;-1:-1:-1;83055:22:0::1;83047:53;;;::::0;-1:-1:-1;;;83047:53:0;;8675:2:1;83047:53:0::1;::::0;::::1;8657:21:1::0;8714:2;8694:18;;;8687:30;-1:-1:-1;;;8733:18:1;;;8726:48;8791:18;;83047:53:0::1;8473:342:1::0;83047:53:0::1;83111:18;83122:6;;83111:10;:18::i;:::-;83140:30;83163:6;;83140:22;:30::i;:::-;83184:11:::0;;83181:564:::1;;83256:14;::::0;::::1;::::0;83212:13:::1;::::0;;83305:31:::1;83325:10;83305:19;:31::i;:::-;83285:51;;;83351:158;83360:6;83358:1;:8;83351:158;;;83406:10;83401:16;::::0;;;:4:::1;:16;::::0;;;;;;;:19;;;;;;;;:26;83392:35:::1;::::0;;::::1;:::i;:::-;;;83457:7;83449:5;:15;83446:47;;;83488:5;;83446:47;83368:3:::0;::::1;::::0;::::1;:::i;:::-;;;;83351:158;;;83552:18;:5:::0;83562:7;83552:9:::1;:18::i;:::-;83528:10;83523:16;::::0;;;:4:::1;:16;::::0;;;;;;;:19;;;;;;;;:47;83602:8:::1;83540:1:::0;83608::::1;83602:5;:8::i;:::-;83585:14;::::0;::::1;:25:::0;83639:11;;:24:::1;::::0;83655:7;83639:15:::1;:24::i;:::-;83625:38:::0;;83678:12;;:55:::1;::::0;-1:-1:-1;;;;;83678:12:0::1;83712:10;83725:7:::0;83678:25:::1;:55::i;:::-;83197:548;;;83181:564;83789:20;::::0;::::1;::::0;83773:11;;:47:::1;::::0;83815:4:::1;::::0;83773:37:::1;::::0;:15:::1;:37::i;:::-;:41:::0;::::1;:47::i;:::-;83755:15;::::0;::::1;:65:::0;83857:6:::1;::::0;83836:37:::1;::::0;160:25:1;;;83845:10:0::1;::::0;83836:37:::1;::::0;148:2:1;133:18;83836:37:0::1;;;;;;;-1:-1:-1::0;;10142:1:0;11096:22;;-1:-1:-1;82863:1018:0:o;77271:718::-;13134:7;13161:6;-1:-1:-1;;;;;13161:6:0;11892:10;13308:23;13300:68;;;;-1:-1:-1;;;13300:68:0;;;;;;;:::i;:::-;77450:5:::1;77433:13;:22;;;;77425:72;;;::::0;-1:-1:-1;;;77425:72:0;;9022:2:1;77425:72:0::1;::::0;::::1;9004:21:1::0;9061:2;9041:18;;;9034:30;9100:34;9080:18;;;9073:62;-1:-1:-1;;;9151:18:1;;;9144:35;9196:19;;77425:72:0::1;8820:401:1::0;77425:72:0::1;73538:7;77516:16;:44;;77508:86;;;::::0;-1:-1:-1;;;77508:86:0;;9428:2:1;77508:86:0::1;::::0;::::1;9410:21:1::0;9467:2;9447:18;;;9440:30;9506:31;9486:18;;;9479:59;9555:18;;77508:86:0::1;9226:353:1::0;77508:86:0::1;77609:11;77605:61;;;77637:17;:15;:17::i;:::-;77694:63;77745:11;77694:46;77714:8;77723:4;77714:14;;;;;;;;:::i;:::-;;;;;;;;;;;:25;;;77694:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;77676:15;:81;;;;77796:11;77768:8;77777:4;77768:14;;;;;;;;:::i;:::-;;;;;;;;;;;:25;;:39;;;;77848:13;77818:8;77827:4;77818:14;;;;;;;;:::i;:::-;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;77905:16;77872:8;77881:4;77872:14;;;;;;;;:::i;:::-;;;;;;;;;;;:30;;:49;;;;77976:5;77932:8;:41;77949:8;77958:4;77949:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;::::1;:22:::0;-1:-1:-1;;;;;77949:22:0::1;77932:41:::0;;;::::1;::::0;;;;;;;;:49;-1:-1:-1;;;;;;77271:718:0:o;88059:246::-;13134:7;13161:6;-1:-1:-1;;;;;13161:6:0;11892:10;13308:23;13300:68;;;;-1:-1:-1;;;13300:68:0;;;;;;;:::i;:::-;88143:1:::1;88134:6;:10;:33;;;;;74537:2;88148:6;:19;;88134:33;88126:72;;;::::0;-1:-1:-1;;;88126:72:0;;9786:2:1;88126:72:0::1;::::0;::::1;9768:21:1::0;9825:2;9805:18;;;9798:30;9864:28;9844:18;;;9837:56;9910:18;;88126:72:0::1;9584:350:1::0;88126:72:0::1;88227:8;;88217:6;:18;;88209:58;;;::::0;-1:-1:-1;;;88209:58:0;;10141:2:1;88209:58:0::1;::::0;::::1;10123:21:1::0;10180:2;10160:18;;;10153:30;10219:29;10199:18;;;10192:57;10266:18;;88209:58:0::1;9939:351:1::0;88209:58:0::1;88280:8;:17:::0;88059:246::o;88578:374::-;13134:7;13161:6;-1:-1:-1;;;;;13161:6:0;11892:10;13308:23;13300:68;;;;-1:-1:-1;;;13300:68:0;;;;;;;:::i;:::-;88674:1:::1;88665:5;:10;;;;88657:56;;;::::0;-1:-1:-1;;;88657:56:0;;10497:2:1;88657:56:0::1;::::0;::::1;10479:21:1::0;10536:2;10516:18;;;10509:30;10575:34;10555:18;;;10548:62;-1:-1:-1;;;10626:18:1;;;10619:31;10667:19;;88657:56:0::1;10295:397:1::0;88657:56:0::1;-1:-1:-1::0;;;;;88732:27:0;::::1;;::::0;;;:8:::1;:27;::::0;;;;;88724:80:::1;;;::::0;-1:-1:-1;;;88724:80:0;;10899:2:1;88724:80:0::1;::::0;::::1;10881:21:1::0;10938:2;10918:18;;;10911:30;10977:34;10957:18;;;10950:62;-1:-1:-1;;;11028:18:1;;;11021:33;11071:19;;88724:80:0::1;10697:399:1::0;88724:80:0::1;-1:-1:-1::0;;;;;88823:27:0;::::1;;::::0;;;:8:::1;:27;::::0;;;;;:36:::1;::::0;::::1;;;88815:83;;;::::0;-1:-1:-1;;;88815:83:0;;11303:2:1;88815:83:0::1;::::0;::::1;11285:21:1::0;11342:2;11322:18;;;11315:30;11381:34;11361:18;;;11354:62;-1:-1:-1;;;11432:18:1;;;11425:32;11474:19;;88815:83:0::1;11101:398:1::0;88815:83:0::1;-1:-1:-1::0;;;;;88909:27:0;;::::1;;::::0;;;:8:::1;:27;::::0;;;;:35:::1;::::0;;::::1;::::0;;88578:374::o;82158:670::-;10186:1;10784:7;;:19;;10776:63;;;;-1:-1:-1;;;10776:63:0;;;;;;;:::i;:::-;10186:1;10917:7;:18;;;;82238:21:::1;82262:8;82271:4;82262:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;82311;;;:8:::1;:14:::0;;;;;;82326:10:::1;82311:26:::0;;;;;;;82356:11;;82262:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;82356:22:0;-1:-1:-1;82356:22:0::1;82348:53;;;::::0;-1:-1:-1;;;82348:53:0;;8675:2:1;82348:53:0::1;::::0;::::1;8657:21:1::0;8714:2;8694:18;;;8687:30;-1:-1:-1;;;8733:18:1;;;8726:48;8791:18;;82348:53:0::1;8473:342:1::0;82348:53:0::1;82428:6;;82420:4;:14;;82412:49;;;::::0;-1:-1:-1;;;82412:49:0;;11706:2:1;82412:49:0::1;::::0;::::1;11688:21:1::0;11745:2;11725:18;;;11718:30;-1:-1:-1;;;11764:18:1;;;11757:52;11826:18;;82412:49:0::1;11504:346:1::0;82412:49:0::1;82472:16;82483:4;82472:10;:16::i;:::-;82499:28;82522:4;82499:22;:28::i;:::-;82542:11:::0;;82538:156:::1;;82584:11:::0;;:24:::1;::::0;82600:7;82584:15:::1;:24::i;:::-;82570:38:::0;;82623:12;;:55:::1;::::0;-1:-1:-1;;;;;82623:12:0::1;82657:10;82670:7:::0;82623:25:::1;:55::i;:::-;82738:20;::::0;::::1;::::0;82722:11;;:47:::1;::::0;82764:4:::1;::::0;82722:37:::1;::::0;:15:::1;:37::i;:47::-;82704:15;::::0;::::1;:65:::0;82785:35:::1;::::0;160:25:1;;;82806:4:0;;82794:10:::1;::::0;82785:35:::1;::::0;148:2:1;133:18;82785:35:0::1;;;;;;;;-1:-1:-1::0;;10142:1:0;11096:22;;-1:-1:-1;;82158:670:0:o;79693:808::-;79745:21;79769:8;79778:4;79769:14;;;;;;;;:::i;:::-;;;;;;;;;;;79745:38;;79814:4;:20;;;79798:12;:36;79794:75;;79851:7;79693:808;:::o;79794:75::-;79898:12;;:37;;-1:-1:-1;;;79898:37:0;;79929:4;79898:37;;;1584:51:1;79879:16:0;;-1:-1:-1;;;;;79898:12:0;;:22;;1557:18:1;;79898:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79879:56;-1:-1:-1;79950:13:0;;;:37;;-1:-1:-1;79967:15:0;;;;:20;79950:37;79946:126;;;-1:-1:-1;80027:12:0;80004:20;;;;:35;-1:-1:-1;79693:808:0:o;79946:126::-;80082:18;80103:49;80117:4;:20;;;80139:12;80103:13;:49::i;:::-;80082:70;;80163:18;80184:70;80238:15;;80184:49;80217:4;:15;;;80184:28;80199:12;;80184:10;:14;;:28;;;;:::i;:::-;:32;;:49::i;:70::-;80265:4;;80275:10;;80163:91;;-1:-1:-1;;;;;;80265:4:0;;;;:9;;80275:10;80287:18;80163:91;80302:2;80287:14;:18::i;:::-;80265:41;;-1:-1:-1;;;;;;80265:41:0;;;;;;;-1:-1:-1;;;;;12236:32:1;;;80265:41:0;;;12218:51:1;12285:18;;;12278:34;12191:18;;80265:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;80317:4:0;;:36;;-1:-1:-1;;;80317:36:0;;80335:4;80317:36;;;12218:51:1;12285:18;;;12278:34;;;-1:-1:-1;;;;;80317:4:0;;;;-1:-1:-1;80317:9:0;;-1:-1:-1;12191:18:1;;80317:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80387:60;80412:34;80437:8;80412:20;80427:4;80412:10;:14;;:20;;;;:::i;:34::-;80387:20;;;;;:24;:60::i;:::-;80364:20;;;:83;-1:-1:-1;;80481:12:0;80458:20;;;;:35;;;;-1:-1:-1;;79693:808:0:o;83952:468::-;10186:1;10784:7;;:19;;10776:63;;;;-1:-1:-1;;;10776:63:0;;;;;;;:::i;:::-;10186:1;10917:7;:18;;;;84024:21:::1;84048:8;84057:4;84048:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;84097;;;:8:::1;:14:::0;;;;;;84112:10:::1;84097:26:::0;;;;;;;84151:11;;84173:15;;;-1:-1:-1;84199:15:0;::::1;:19:::0;;;84229::::1;::::0;::::1;:23:::0;;;84263:21:::1;::::0;::::1;:25:::0;;;;84048:14:::1;::::0;;::::1;;84299:12:::0;;84048:14;;-1:-1:-1;84097:26:0;;84151:11;84299:54:::1;::::0;-1:-1:-1;;;;;84299:12:0;;;::::1;::::0;84151:11;84299:25:::1;:54::i;:::-;84369:43;::::0;160:25:1;;;84399:4:0;;84387:10:::1;::::0;84369:43:::1;::::0;148:2:1;133:18;84369:43:0::1;14:177:1::0;79437:180:0;79499:8;:15;79482:14;79525:85;79553:6;79547:3;:12;79525:85;;;79583:15;79594:3;79583:10;:15::i;:::-;79561:5;;;:::i;:::-;;;79525:85;;;;79471:146;79437:180::o;13739:103::-;13134:7;13161:6;-1:-1:-1;;;;;13161:6:0;11892:10;13308:23;13300:68;;;;-1:-1:-1;;;13300:68:0;;;;;;;:::i;:::-;13804:30:::1;13831:1;13804:18;:30::i;:::-;13739:103::o:0;78272:820::-;78345:7;78365:21;78389:8;78398:4;78389:14;;;;;;;;:::i;:::-;;;;;;;;;78438;;;:8;:14;;;;;;-1:-1:-1;;;;;78438:21:0;;;;;;;;;;78389:14;;;;;;;;78496:20;;;;78546:12;;:37;;-1:-1:-1;;;78546:37:0;;78577:4;78546:37;;;1584:51:1;78389:14:0;;-1:-1:-1;78438:21:0;;78389:14;78546:12;;;;;:22;;1557:18:1;;78546:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;78527:56;;78613:4;:20;;;78598:12;:35;:52;;;;-1:-1:-1;78637:13:0;;;78598:52;78594:349;;;78667:18;78688:49;78702:4;:20;;;78724:12;78688:13;:49::i;:::-;78667:70;;78752:18;78773:70;78827:15;;78773:49;78806:4;:15;;;78773:28;78788:12;;78773:10;:14;;:28;;;;:::i;:70::-;78752:91;-1:-1:-1;78876:55:0;78896:34;78921:8;78896:20;78752:91;78911:4;78896:14;:20::i;:34::-;78876:15;;:19;:55::i;:::-;78858:73;;78652:291;;78594:349;78953:15;78971:63;79018:4;:15;;;78971:42;79008:4;78971:32;78987:15;78971:4;:11;;;:15;;:32;;;;:::i;:42::-;:46;;:63::i;:::-;78953:81;;79052:32;79064:4;:19;;;79052:7;:11;;:32;;;;:::i;:::-;79045:39;78272:820;-1:-1:-1;;;;;;;;78272:820:0:o;86718:234::-;86802:10;;-1:-1:-1;;;;;86802:10:0;86788;:24;86780:61;;;;-1:-1:-1;;;86780:61:0;;12525:2:1;86780:61:0;;;12507:21:1;12564:2;12544:18;;;12537:30;12603:26;12583:18;;;12576:54;12647:18;;86780:61:0;12323:348:1;86780:61:0;-1:-1:-1;;;;;86860:25:0;;86852:57;;;;-1:-1:-1;;;86852:57:0;;12878:2:1;86852:57:0;;;12860:21:1;12917:2;12897:18;;;12890:30;-1:-1:-1;;;12936:18:1;;;12929:49;12995:18;;86852:57:0;12676:343:1;86852:57:0;86920:10;:24;;-1:-1:-1;;;;;;86920:24:0;-1:-1:-1;;;;;86920:24:0;;;;;;;;;;86718:234::o;87554:433::-;13134:7;13161:6;-1:-1:-1;;;;;13161:6:0;11892:10;13308:23;13300:68;;;;-1:-1:-1;;;13300:68:0;;;;;;;:::i;:::-;74490:4:::1;87672:59;::::0;::::1;;;87664:144;;;::::0;-1:-1:-1;;;87664:144:0;;13226:2:1;87664:144:0::1;::::0;::::1;13208:21:1::0;13265:2;13245:18;;;13238:30;13304:34;13284:18;;;13277:62;13375:34;13355:18;;;13348:62;-1:-1:-1;;;13426:19:1;;;13419:39;13475:19;;87664:144:0::1;13024:476:1::0;87664:144:0::1;87835:1;87827:5;:9;:31;;;;;74537:2;87840:5;:18;;87827:31;87819:84;;;::::0;-1:-1:-1;;;87819:84:0;;13707:2:1;87819:84:0::1;::::0;::::1;13689:21:1::0;13746:2;13726:18;;;13719:30;13785:34;13765:18;;;13758:62;-1:-1:-1;;;13836:18:1;;;13829:38;13884:19;;87819:84:0::1;13505:404:1::0;87819:84:0::1;87924:29;::::0;;;:22:::1;:29;::::0;;;;:55:::1;::::0;;::::1;::::0;;87554:433::o;78065:143::-;78137:7;78164:36;73440:1;78164:14;:3;78172:5;78164:7;:14::i;:36::-;78157:43;78065:143;-1:-1:-1;;;78065:143:0:o;80570:1536::-;10186:1;10784:7;;:19;;10776:63;;;;-1:-1:-1;;;10776:63:0;;;;;;;:::i;:::-;10186:1;10917:7;:18;;;;80668:21:::1;80692:8;80701:4;80692:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;80741;;;:8:::1;:14:::0;;;;;;80756:10:::1;80741:26:::0;;;;;;;80692:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;80778:16:0::1;80750:4:::0;80778:10:::1;:16::i;:::-;80819:1;80809:7;:11;:50;;;;-1:-1:-1::0;80832:12:0::1;::::0;-1:-1:-1;;;;;80832:12:0::1;80824:35:::0;::::1;80809:50;:77;;;;-1:-1:-1::0;;;;;;80863:23:0;::::1;::::0;::::1;80809:77;:104;;;;-1:-1:-1::0;;;;;;80890:23:0;::::1;80903:10;80890:23;;80809:104;80805:187;;;80930:12;::::0;:50:::1;::::0;-1:-1:-1;;;80930:50:0;;80958:10:::1;80930:50;::::0;::::1;14126:34:1::0;-1:-1:-1;;;;;14196:15:1;;;14176:18;;;14169:43;80930:12:0;;::::1;::::0;:27:::1;::::0;14061:18:1;;80930:50:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;80805:187;81002:28;81025:4;81002:22;:28::i;:::-;81045:11:::0;;81041:932:::1;;81073:12:::0;;:74:::1;::::0;-1:-1:-1;;;;;81073:12:0::1;81111:10;81132:4;81139:7:::0;81073:29:::1;:74::i;:::-;81199:4;::::0;81174:12;;-1:-1:-1;;;;;81174:12:0;;::::1;81199:4:::0;::::1;81166:38;81162:200;;;81225:19;81247:46;81287:5;81247:35;81259:4;;;;;;;;;-1:-1:-1::0;;;;;81259:4:0::1;-1:-1:-1::0;;;;;81259:20:0::1;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;81247:7:::0;;:35:::1;;:11;:35::i;:46::-;81225:68:::0;-1:-1:-1;81322:24:0::1;:7:::0;81225:68;81322:11:::1;:24::i;:::-;81312:34;;81206:156;81162:200;81380:17;::::0;::::1;::::0;::::1;;:21:::0;81376:586:::1;;81455:17;::::0;::::1;::::0;81422:18:::1;::::0;81443:41:::1;::::0;81478:5:::1;::::0;81443:30:::1;::::0;:7;;81455:17:::1;;81443:11;:30::i;:41::-;81529:10;::::0;81503:12;;81422:62;;-1:-1:-1;81503:49:0::1;::::0;-1:-1:-1;;;;;81503:12:0;;::::1;::::0;81529:10:::1;81422:62:::0;81503:25:::1;:49::i;:::-;81585:11:::0;;:40:::1;::::0;81614:10;;81585:24:::1;::::0;81601:7;81585:15:::1;:24::i;:40::-;81571:54:::0;;81655:6:::1;::::0;81647:14;::::1;81644:111;;;81686:49;81700:10;81711:23;:7:::0;81723:10;81711:11:::1;:23::i;:::-;81686:13;:49::i;:::-;81403:367;81376:586;;;81809:11:::0;;:24:::1;::::0;81825:7;81809:15:::1;:24::i;:::-;81795:38:::0;;81863:6:::1;::::0;81855:14;::::1;81852:95;;;81894:33;81908:10;81919:7;81894:13;:33::i;:::-;82017:20;::::0;::::1;::::0;82001:11;;:47:::1;::::0;82043:4:::1;::::0;82001:37:::1;::::0;:15:::1;:37::i;:47::-;81983:15;::::0;::::1;:65:::0;82064:34:::1;::::0;160:25:1;;;82084:4:0;;82072:10:::1;::::0;82064:34:::1;::::0;148:2:1;133:18;82064:34:0::1;;;;;;;-1:-1:-1::0;;10142:1:0;11096:22;;-1:-1:-1;;;80570:1536:0:o;88358:167::-;13134:7;13161:6;-1:-1:-1;;;;;13161:6:0;11892:10;13308:23;13300:68;;;;-1:-1:-1;;;13300:68:0;;;;;;;:::i;:::-;88441:3:::1;88432:5;:12;;88424:56;;;::::0;-1:-1:-1;;;88424:56:0;;14679:2:1;88424:56:0::1;::::0;::::1;14661:21:1::0;14718:2;14698:18;;;14691:30;14757:33;14737:18;;;14730:61;14808:18;;88424:56:0::1;14477:355:1::0;88424:56:0::1;88501:8;:16:::0;88358:167::o;76121:1038::-;13134:7;13161:6;-1:-1:-1;;;;;13161:6:0;11892:10;13308:23;13300:68;;;;-1:-1:-1;;;13300:68:0;;;;;;;:::i;:::-;76303:5:::1;76286:13;:22;;;;76278:72;;;::::0;-1:-1:-1;;;76278:72:0;;15039:2:1;76278:72:0::1;::::0;::::1;15021:21:1::0;15078:2;15058:18;;;15051:30;15117:34;15097:18;;;15090:62;-1:-1:-1;;;15168:18:1;;;15161:35;15213:19;;76278:72:0::1;14837:401:1::0;76278:72:0::1;73538:7;76369:16;:44;;76361:86;;;::::0;-1:-1:-1;;;76361:86:0;;15445:2:1;76361:86:0::1;::::0;::::1;15427:21:1::0;15484:2;15464:18;;;15457:30;15523:31;15503:18;;;15496:59;15572:18;;76361:86:0::1;15243:353:1::0;76361:86:0::1;76475:1;76466:5;:10;;76458:47;;;::::0;-1:-1:-1;;;76458:47:0;;15803:2:1;76458:47:0::1;::::0;::::1;15785:21:1::0;15842:2;15822:18;;;15815:30;15881:26;15861:18;;;15854:54;15925:18;;76458:47:0::1;15601:348:1::0;76458:47:0::1;76520:11;76516:61;;;76548:17;:15;:17::i;:::-;76587:23;76628:10;;76613:12;:25;:53;;76656:10;;76613:53;;;76641:12;76613:53;76695:15;::::0;76587:79;;-1:-1:-1;76695:32:0::1;::::0;76715:11;76695:19:::1;:32::i;:::-;76677:15;:50:::0;76752:261:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;76752:261:0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;;;;;;;-1:-1:-1;76752:261:0;;;;;;::::1;::::0;;::::1;::::0;;;;;;;;;;;;76738:8:::1;:276:::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;76738:276:0::1;::::0;;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;76738:276:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;77025:27;;;:8:::1;:27:::0;;;;;;:35;;;76738:276:::1;77103:4:::0;::::1;77074:34;77071:80;;;77132:8;:15:::0;:19:::1;::::0;77150:1:::1;::::0;77132:19:::1;:::i;:::-;77123:6;:28:::0;77071:80:::1;76267:892;76121:1038:::0;;;;;;:::o;86476:234::-;86560:10;;-1:-1:-1;;;;;86560:10:0;86546;:24;86538:61;;;;-1:-1:-1;;;86538:61:0;;16286:2:1;86538:61:0;;;16268:21:1;16325:2;16305:18;;;16298:30;16364:26;16344:18;;;16337:54;16408:18;;86538:61:0;16084:348:1;86538:61:0;-1:-1:-1;;;;;86618:25:0;;86610:57;;;;-1:-1:-1;;;86610:57:0;;16639:2:1;86610:57:0;;;16621:21:1;16678:2;16658:18;;;16651:30;-1:-1:-1;;;16697:18:1;;;16690:49;16756:18;;86610:57:0;16437:343:1;86610:57:0;86678:10;:24;;-1:-1:-1;;;;;;86678:24:0;-1:-1:-1;;;;;86678:24:0;;;;;;;;;;86476:234::o;13997:201::-;13134:7;13161:6;-1:-1:-1;;;;;13161:6:0;11892:10;13308:23;13300:68;;;;-1:-1:-1;;;13300:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;14086:22:0;::::1;14078:73;;;::::0;-1:-1:-1;;;14078:73:0;;16987:2:1;14078:73:0::1;::::0;::::1;16969:21:1::0;17026:2;17006:18;;;16999:30;17065:34;17045:18;;;17038:62;-1:-1:-1;;;17116:18:1;;;17109:36;17162:19;;14078:73:0::1;16785:402:1::0;14078:73:0::1;14162:28;14181:8;14162:18;:28::i;:::-;13997:201:::0;:::o;84770:1258::-;84836:21;84860:8;84869:4;84860:14;;;;;;;;:::i;:::-;;;;;;;;;84909;;;:8;:14;;;;;;84924:10;84909:26;;;;;;;84952:21;;;;84860:14;;;;;;;;-1:-1:-1;84948:124:0;;85039:20;;;;85019:41;;:15;;:19;:41::i;:::-;84995:21;;;:65;84948:124;85084:15;85102:68;85154:4;:15;;;85102:47;85144:4;85102:37;85118:4;:20;;;85102:4;:11;;;:15;;:37;;;;:::i;:68::-;79226:4;79267:14;;;:8;:14;;;;;;;;85202:10;79267:21;;;;;;;79325;;;85084:86;;-1:-1:-1;79306:15:0;:40;85181:840;;85244:1;85234:7;:11;:38;;;;85271:1;85249:4;:19;;;:23;85234:38;85230:544;;;85293:20;85316:32;85328:4;:19;;;85316:7;:11;;:32;;;;:::i;:::-;85293:55;;85425:45;85450:4;:19;;;85425:20;;:24;;:45;;;;:::i;:::-;85402:20;:68;85511:1;85489:19;;;:23;85575:20;;;;85555:41;;:15;;:19;:41::i;:::-;85531:21;;;:65;85650:42;85667:10;85679:12;85650:16;:42::i;:::-;85711:47;85733:10;85745:12;85711:21;:47::i;:::-;85274:500;85230:544;85181:840;;;85795:11;;85791:230;;85845:19;;;;:32;;85869:7;85845:23;:32::i;:::-;85823:19;;;:54;85915:20;;:33;;85940:7;85915:24;:33::i;:::-;85892:20;:56;85968:41;;160:25:1;;;85995:4:0;;85983:10;;85968:41;;148:2:1;133:18;85968:41:0;;;;;;;85791:230;84825:1203;;;84770:1258;:::o;29719:98::-;29777:7;29804:5;29808:1;29804;:5;:::i;67483:211::-;67627:58;;-1:-1:-1;;;;;12236:32:1;;67627:58:0;;;12218:51:1;12285:18;;;12278:34;;;67600:86:0;;67620:5;;-1:-1:-1;;;67650:23:0;12191:18:1;;67627:58:0;;;;-1:-1:-1;;67627:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;67627:58:0;-1:-1:-1;;;;;;67627:58:0;;;;;;;;;;67600:19;:86::i;:::-;67483:211;;;:::o;30076:98::-;30134:7;30161:5;30165:1;30161;:5;:::i;30475:98::-;30533:7;30560:5;30564:1;30560;:5;:::i;29338:98::-;29396:7;29423:5;29427:1;29423;:5;:::i;14358:191::-;14432:16;14451:6;;-1:-1:-1;;;;;14468:17:0;;;-1:-1:-1;;;;;;14468:17:0;;;;;;14501:40;;14451:6;;;;;;;14501:40;;14432:16;14501:40;14421:128;14358:191;:::o;67702:248::-;67873:68;;-1:-1:-1;;;;;17845:15:1;;;67873:68:0;;;17827:34:1;17897:15;;17877:18;;;17870:43;17929:18;;;17922:34;;;67846:96:0;;67866:5;;-1:-1:-1;;;67896:27:0;17762:18:1;;67873:68:0;17587:375:1;84476:249:0;-1:-1:-1;;;;;;;;84582:21:0;;;84626:15;-1:-1:-1;;;;84614:27:0;;;-1:-1:-1;;;;;84652:11:0;;-1:-1:-1;84652:11:0;;;:4;:11;;;;;84664:9;:16;;;;;;;;84652:29;;;;;;;;:36;;;;;;;;;;;;;;84699:16;;;;;;:18;;-1:-1:-1;;84699:18:0;;;:::i;:::-;;;;;;84540:185;84476:249;;:::o;86142:278::-;86236:4;;:29;;-1:-1:-1;;;86236:29:0;;86259:4;86236:29;;;1584:51:1;86218:15:0;;-1:-1:-1;;;;;86236:4:0;;:14;;1557:18:1;;86236:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;86218:47;;86290:7;86280;:17;86276:137;;;86314:4;;:27;;-1:-1:-1;;;86314:27:0;;-1:-1:-1;;;;;12236:32:1;;;86314:27:0;;;12218:51:1;12285:18;;;12278:34;;;86314:4:0;;;;:13;;12191:18:1;;86314:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;86276:137::-;86374:4;;:27;;-1:-1:-1;;;86374:27:0;;-1:-1:-1;;;;;12236:32:1;;;86374:27:0;;;12218:51:1;12285:18;;;12278:34;;;86374:4:0;;;;:13;;12191:18:1;;86374:27:0;12044:274:1;89032:922:0;89128:12;;-1:-1:-1;;;;;89128:12:0;89120:35;89116:831;;89172:16;;89256:1;89242:694;89264:8;;89259:1;:13;89242:694;;89306:12;;:31;;-1:-1:-1;;;89306:31:0;;-1:-1:-1;;;;;1602:32:1;;;89306:31:0;;;1584:51:1;89306:12:0;;;;:24;;1557:18:1;;89306:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;89295:42;-1:-1:-1;;;;;;89362:22:0;;89358:77;;89409:7;;;89032:922;;:::o;89358:77::-;89504:25;;;;:22;:25;;;;;;89490:52;;89536:5;;89491:39;;:8;;:12;:39::i;89490:52::-;89471:71;-1:-1:-1;;;;;;89583:22:0;;;;;;:46;;;89628:1;89609:16;:20;89583:46;89579:305;;;89654:4;;:37;;-1:-1:-1;;;89654:37:0;;-1:-1:-1;;;;;12236:32:1;;;89654:37:0;;;12218:51:1;12285:18;;;12278:34;;;89654:4:0;;;;:9;;12191:18:1;;89654:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;89714:12:0;;:65;;-1:-1:-1;;;89714:65:0;;-1:-1:-1;;;;;12236:32:1;;;89714:65:0;;;12218:51:1;12285:18;;;12278:34;;;89714:12:0;;;;-1:-1:-1;89714:37:0;;-1:-1:-1;12191:18:1;;89714:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89837:8;-1:-1:-1;;;;;89807:57:0;89830:5;-1:-1:-1;;;;;89807:57:0;;89847:16;89807:57;;;;160:25:1;;148:2;133:18;;14:177;89807:57:0;;;;;;;;89579:305;89912:8;89904:16;;89274:3;;;;;:::i;:::-;;;;89242:694;;;;89157:790;;89032:922;;:::o;70018:774::-;70442:23;70468:69;70496:4;70468:69;;;;;;;;;;;;;;;;;70476:5;-1:-1:-1;;;;;70468:27:0;;;:69;;;;;:::i;:::-;70552:17;;70442:95;;-1:-1:-1;70552:21:0;70548:237;;70707:10;70696:30;;;;;;;;;;;;:::i;:::-;70688:85;;;;-1:-1:-1;;;70688:85:0;;18690:2:1;70688:85:0;;;18672:21:1;18729:2;18709:18;;;18702:30;18768:34;18748:18;;;18741:62;-1:-1:-1;;;18819:18:1;;;18812:40;18869:19;;70688:85:0;18488:406:1;18723:229:0;18860:12;18892:52;18914:6;18922:4;18928:1;18931:12;18892:21;:52::i;:::-;18885:59;18723:229;-1:-1:-1;;;;18723:229:0:o;19843:510::-;20013:12;20071:5;20046:21;:30;;20038:81;;;;-1:-1:-1;;;20038:81:0;;19101:2:1;20038:81:0;;;19083:21:1;19140:2;19120:18;;;19113:30;19179:34;19159:18;;;19152:62;-1:-1:-1;;;19230:18:1;;;19223:36;19276:19;;20038:81:0;18899:402:1;20038:81:0;16240:20;;20130:60;;;;-1:-1:-1;;;20130:60:0;;19508:2:1;20130:60:0;;;19490:21:1;19547:2;19527:18;;;19520:30;19586:31;19566:18;;;19559:59;19635:18;;20130:60:0;19306:353:1;20130:60:0;20204:12;20218:23;20245:6;-1:-1:-1;;;;;20245:11:0;20264:5;20271:4;20245:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20203:73;;;;20294:51;20311:7;20320:10;20332:12;20294:16;:51::i;:::-;20287:58;19843:510;-1:-1:-1;;;;;;;19843:510:0:o;22529:712::-;22679:12;22708:7;22704:530;;;-1:-1:-1;22739:10:0;22732:17;;22704:530;22853:17;;:21;22849:374;;23051:10;23045:17;23112:15;23099:10;23095:2;23091:19;23084:44;22849:374;23194:12;23187:20;;-1:-1:-1;;;23187:20:0;;;;;;;;:::i;196:180:1:-;255:6;308:2;296:9;287:7;283:23;279:32;276:52;;;324:1;321;314:12;276:52;-1:-1:-1;347:23:1;;196:180;-1:-1:-1;196:180:1:o;381:146::-;-1:-1:-1;;;;;471:31:1;;461:42;;451:70;;517:1;514;507:12;532:283;612:6;665:2;653:9;644:7;640:23;636:32;633:52;;;681:1;678;671:12;633:52;720:9;707:23;739:46;779:5;739:46;:::i;1646:330::-;1714:6;1722;1775:2;1763:9;1754:7;1750:23;1746:32;1743:52;;;1791:1;1788;1781:12;1743:52;1830:9;1817:23;1849:46;1889:5;1849:46;:::i;:::-;1914:5;1966:2;1951:18;;;;1938:32;;-1:-1:-1;;;1646:330:1:o;2501:::-;2569:6;2577;2630:2;2618:9;2609:7;2605:23;2601:32;2598:52;;;2646:1;2643;2636:12;2598:52;2682:9;2669:23;2659:33;;2742:2;2731:9;2727:18;2714:32;2755:46;2795:5;2755:46;:::i;:::-;2820:5;2810:15;;;2501:330;;;;;:::o;3028:117::-;3113:6;3106:5;3102:18;3095:5;3092:29;3082:57;;3135:1;3132;3125:12;3150:118;3236:5;3229:13;3222:21;3215:5;3212:32;3202:60;;3258:1;3255;3248:12;3273:655;3373:6;3381;3389;3397;3405;3413;3466:3;3454:9;3445:7;3441:23;3437:33;3434:53;;;3483:1;3480;3473:12;3434:53;3519:9;3506:23;3496:33;;3576:2;3565:9;3561:18;3548:32;3538:42;;3630:2;3619:9;3615:18;3602:32;3643:30;3667:5;3643:30;:::i;:::-;3692:5;-1:-1:-1;3744:2:1;3729:18;;3716:32;;-1:-1:-1;3800:3:1;3785:19;;3772:33;3814:30;3772:33;3814:30;:::i;:::-;3863:7;3853:17;;;3917:3;3906:9;3902:19;3889:33;3879:43;;3273:655;;;;;;;;:::o;4141:442::-;4222:6;4230;4283:2;4271:9;4262:7;4258:23;4254:32;4251:52;;;4299:1;4296;4289:12;4251:52;4338:9;4325:23;4357:46;4397:5;4357:46;:::i;:::-;4422:5;-1:-1:-1;4479:2:1;4464:18;;4451:32;4527:4;4514:18;;4502:31;;4492:59;;4547:1;4544;4537:12;4588:248;4656:6;4664;4717:2;4705:9;4696:7;4692:23;4688:32;4685:52;;;4733:1;4730;4723:12;4685:52;-1:-1:-1;;4756:23:1;;;4826:2;4811:18;;;4798:32;;-1:-1:-1;4588:248:1:o;5034:313::-;5101:6;5109;5162:2;5150:9;5141:7;5137:23;5133:32;5130:52;;;5178:1;5175;5168:12;5130:52;5217:9;5204:23;5236:30;5260:5;5236:30;:::i;5352:398::-;5429:6;5437;5445;5498:2;5486:9;5477:7;5473:23;5469:32;5466:52;;;5514:1;5511;5504:12;5466:52;5550:9;5537:23;5527:33;;5607:2;5596:9;5592:18;5579:32;5569:42;;5661:2;5650:9;5646:18;5633:32;5674:46;5714:5;5674:46;:::i;:::-;5739:5;5729:15;;;5352:398;;;;;:::o;6223:758::-;6338:6;6346;6354;6362;6370;6378;6431:3;6419:9;6410:7;6406:23;6402:33;6399:53;;;6448:1;6445;6438:12;6399:53;6484:9;6471:23;6461:33;;6544:2;6533:9;6529:18;6516:32;6557:46;6597:5;6557:46;:::i;:::-;6622:5;-1:-1:-1;6679:2:1;6664:18;;6651:32;6692;6651;6692;:::i;7215:356::-;7417:2;7399:21;;;7436:18;;;7429:30;7495:34;7490:2;7475:18;;7468:62;7562:2;7547:18;;7215:356::o;7576:127::-;7637:10;7632:3;7628:20;7625:1;7618:31;7668:4;7665:1;7658:15;7692:4;7689:1;7682:15;7708:128;7748:3;7779:1;7775:6;7772:1;7769:13;7766:39;;;7785:18;;:::i;:::-;-1:-1:-1;7821:9:1;;7708:128::o;7841:135::-;7880:3;-1:-1:-1;;7901:17:1;;7898:43;;;7921:18;;:::i;:::-;-1:-1:-1;7968:1:1;7957:13;;7841:135::o;7981:355::-;8183:2;8165:21;;;8222:2;8202:18;;;8195:30;8261:33;8256:2;8241:18;;8234:61;8327:2;8312:18;;7981:355::o;8341:127::-;8402:10;8397:3;8393:20;8390:1;8383:31;8433:4;8430:1;8423:15;8457:4;8454:1;8447:15;11855:184;11925:6;11978:2;11966:9;11957:7;11953:23;11949:32;11946:52;;;11994:1;11991;11984:12;11946:52;-1:-1:-1;12017:16:1;;11855:184;-1:-1:-1;11855:184:1:o;14223:249::-;14292:6;14345:2;14333:9;14324:7;14320:23;14316:32;14313:52;;;14361:1;14358;14351:12;14313:52;14393:9;14387:16;14412:30;14436:5;14412:30;:::i;15954:125::-;15994:4;16022:1;16019;16016:8;16013:34;;;16027:18;;:::i;:::-;-1:-1:-1;16064:9:1;;15954:125::o;17192:168::-;17232:7;17298:1;17294;17290:6;17286:14;17283:1;17280:21;17275:1;17268:9;17261:17;17257:45;17254:71;;;17305:18;;:::i;:::-;-1:-1:-1;17345:9:1;;17192:168::o;17365:217::-;17405:1;17431;17421:132;;17475:10;17470:3;17466:20;17463:1;17456:31;17510:4;17507:1;17500:15;17538:4;17535:1;17528:15;17421:132;-1:-1:-1;17567:9:1;;17365:217::o;17967:245::-;18034:6;18087:2;18075:9;18066:7;18062:23;18058:32;18055:52;;;18103:1;18100;18093:12;18055:52;18135:9;18129:16;18154:28;18176:5;18154:28;:::i;18217:266::-;18287:6;18340:2;18328:9;18319:7;18315:23;18311:32;18308:52;;;18356:1;18353;18346:12;18308:52;18388:9;18382:16;18407:46;18447:5;18407:46;:::i;19664:258::-;19736:1;19746:113;19760:6;19757:1;19754:13;19746:113;;;19836:11;;;19830:18;19817:11;;;19810:39;19782:2;19775:10;19746:113;;;19877:6;19874:1;19871:13;19868:48;;;-1:-1:-1;;19912:1:1;19894:16;;19887:27;19664:258::o;19927:274::-;20056:3;20094:6;20088:13;20110:53;20156:6;20151:3;20144:4;20136:6;20132:17;20110:53;:::i;:::-;20179:16;;;;;19927:274;-1:-1:-1;;19927:274:1:o;20206:383::-;20355:2;20344:9;20337:21;20318:4;20387:6;20381:13;20430:6;20425:2;20414:9;20410:18;20403:34;20446:66;20505:6;20500:2;20489:9;20485:18;20480:2;20472:6;20468:15;20446:66;:::i;:::-;20573:2;20552:15;-1:-1:-1;;20548:29:1;20533:45;;;;20580:2;20529:54;;20206:383;-1:-1:-1;;20206:383:1:o

Swarm Source

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