Contract 0x61fed67c5ec0be09482a026ee75e764bf71752b7

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x32e173b9c41f28498e5bc63409b533be727891867c9647580d480824b7a2ff47Withdraw120466322021-10-24 9:42:1823 mins ago0x03aa5c321360d15aea2dc2f5e754dfc243e88acd IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.0007362
0x150a177e78092ac2981dee32489d814b752f5b67629da35e1e1139c44b816b6cWithdraw120465522021-10-24 9:38:1827 mins ago0x03aa5c321360d15aea2dc2f5e754dfc243e88acd IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.00081132
0x2929d4fc619c440d9553ea98c4ca521a166364eb73119c17e617bccf54915a44Deposit120465312021-10-24 9:37:1528 mins ago0x03aa5c321360d15aea2dc2f5e754dfc243e88acd IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000670795
0x4c1c3f399c8ba0ca2267be187132e29b799706ac26063f16056283569c2f724dDeposit120429272021-10-24 6:36:113 hrs 29 mins ago0xefd7ad596863f4859a499cc99eed2f45cbe7de3a IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.001
0x92e754ac48961e05de872fd30cce04c8d9429f02d39703077d833d9f8377aa3aDeposit120429172021-10-24 6:35:413 hrs 29 mins ago0xefd7ad596863f4859a499cc99eed2f45cbe7de3a IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.001
0x1c99aa37aab84bb0f31b1d4bf49ceb796bb518749cf3e679849007447f29803fLeave Staking120427902021-10-24 6:29:203 hrs 36 mins ago0xefd7ad596863f4859a499cc99eed2f45cbe7de3a IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.00072097
0x720bdce1f797ffd810436ba752473e5326bea8333bf8e457f37e497d955ac26aEnter Staking120414162021-10-24 5:19:004 hrs 46 mins ago0x19821c85d0e99789dcfc3fff9926438ebc366160 IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000816705
0xb2dd118eaa0dac5b416c4c676aeb6709841a8617ed9cc77bac185fb67fee0a4fEnter Staking120400232021-10-24 4:09:155 hrs 56 mins ago0x19821c85d0e99789dcfc3fff9926438ebc366160 IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000816645
0xeef734cd052299096399b88e25910b0d16e9928a42fe5dca0074b40ad5fc6826Enter Staking120390352021-10-24 3:19:506 hrs 45 mins ago0x19821c85d0e99789dcfc3fff9926438ebc366160 IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000816525
0xbd15e431e6ed1e7c831d528bb5d14b6a248fc263813ee325bc243d462aa10801Enter Staking120389532021-10-24 3:15:446 hrs 49 mins ago0x19821c85d0e99789dcfc3fff9926438ebc366160 IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000816525
0xc5324fdc2f7d3db3ff6298b58aabaca89b9c5980405456eb1ca89a56d34f6394Enter Staking120388452021-10-24 3:10:206 hrs 55 mins ago0x19821c85d0e99789dcfc3fff9926438ebc366160 IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000816465
0xfea1d866906769cd0e65f1dd7819b60391dfd146fc00344cfb3012fad4338870Enter Staking120388382021-10-24 3:09:596 hrs 55 mins ago0x19821c85d0e99789dcfc3fff9926438ebc366160 IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000762465
0x091b5a77a86c29360f7aef676017d9f5d47e2c76698cc7f7d9567e2814f1e934Deposit120387922021-10-24 3:07:416 hrs 57 mins ago0x19821c85d0e99789dcfc3fff9926438ebc366160 IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000732225
0x496c114d446c1cd93a011a83eb14259a412c7b14c249fc189d2b33f43000a523Deposit120387842021-10-24 3:07:176 hrs 58 mins ago0x19821c85d0e99789dcfc3fff9926438ebc366160 IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.00089155
0x579f661198a7e124a02e6e2358cdc16bf7e12280f5ec0275dec6afc56d22109fDeposit120262062021-10-23 16:35:4117 hrs 29 mins ago0xb3d419bff6dc582b46fb57862df5b0c383acf3ee IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000732225
0x37a0ef898048851631f698b4c45d5a41e2f28c947e0b041aa10217062a351646Withdraw120259762021-10-23 16:24:1117 hrs 41 mins ago0xb3d419bff6dc582b46fb57862df5b0c383acf3ee IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.00073626
0x9172990fa175d65b907327948e15a3b89640c94264b5a44b6dca03295b73da43Deposit120259652021-10-23 16:23:3817 hrs 42 mins ago0xb3d419bff6dc582b46fb57862df5b0c383acf3ee IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.00076673
0x9f222ed3f9cd35487eccaab3c9f32d7853f45606992b95bb689bf48cb449511cWithdraw120215532021-10-23 12:41:1821 hrs 24 mins ago0x19821c85d0e99789dcfc3fff9926438ebc366160 IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000640385
0xbdea2e3abd9f1bc4ebe6332758ab209450a378a5d1c3f40b9b31410c054d534bWithdraw120215362021-10-23 12:40:2721 hrs 25 mins ago0x19821c85d0e99789dcfc3fff9926438ebc366160 IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000715325
0x8f92356189975ef4fdcc59f056d14cdf023cf4db1f1ff024afa35c30a767cb32Enter Staking120214972021-10-23 12:38:3021 hrs 27 mins ago0x19821c85d0e99789dcfc3fff9926438ebc366160 IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000816225
0x30f84857ad662825468bbcf28f3798d69d16d3aac854ec2ffe7ff1505fc4788fLeave Staking120140762021-10-23 6:26:441 day 3 hrs ago0xefd7ad596863f4859a499cc99eed2f45cbe7de3a IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.00072097
0x5bd6015e4909895dbae7a6bd6d5e0556d4e481cb5a088963a31cd387d6f52dfcLeave Staking120059142021-10-22 23:32:061 day 10 hrs ago0xb3d419bff6dc582b46fb57862df5b0c383acf3ee IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.00074197
0xf2934e438fc1963fd711b7be3c9a3cc6fd8780ad6dcb374e9508fd66b5ff54d7Deposit119960932021-10-22 15:16:071 day 18 hrs ago0xb3d419bff6dc582b46fb57862df5b0c383acf3ee IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.000807225
0x1b3488857a4e0205e5fbcf17a3ad0555ba4c1714f128c46522a2c2114c5dbab7Leave Staking119959702021-10-22 15:09:581 day 18 hrs ago0xb3d419bff6dc582b46fb57862df5b0c383acf3ee IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.00072097
0x536ac816a50aa75d3cb4a5979e8f100a0fe1c51777952678428d56193e8d4533Leave Staking119933662021-10-22 12:59:311 day 21 hrs ago0x03aa5c321360d15aea2dc2f5e754dfc243e88acd IN  0x61fed67c5ec0be09482a026ee75e764bf71752b70 BNB0.00072097
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

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

Contract Name:
MasterChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-09-30
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;


// 
/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, 'SafeMath: addition overflow');

        return c;
    }

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

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

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

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

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

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

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

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

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

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

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{value: weiValue}(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

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

pragma solidity 0.6.12;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}


pragma solidity 0.6.12;

contract MasterChefRole {
    using Roles for Roles.Role;

    event MasterChefAdded(address indexed account);
    event MasterChefRemoved(address indexed account);

    Roles.Role private _masterChefs;

    constructor () internal {
        _addMasterChef(msg.sender);
    }

    modifier onlyMasterChef() {
        require(isMasterChef(msg.sender), "MasterRole: caller does not have the Master role");
        _;
    }

    function isMasterChef(address account) public view returns (bool) {
        return _masterChefs.has(account);
    }

    function addMasterChef(address account) public onlyMasterChef {
        _addMasterChef(account);
    }

    function removeMasterChef(address account) public onlyMasterChef {
        _removeMasterChef(account);
    }

    function renounceMasterChef() public {
        _removeMasterChef(msg.sender);
    }

    function _addMasterChef(address account) internal {
        _masterChefs.add(account);
        emit MasterChefAdded(account);
    }

    function _removeMasterChef(address account) internal {
        _masterChefs.remove(account);
        emit MasterChefRemoved(account);
    }
}

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

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

    /**
     * @dev See {BEP20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public 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')
        );
    }
}

// CaribToken with Governance.
contract CaribToken is BEP20, MasterChefRole {
    
    // Transfer tax rate in basis points. (default 2%)
    uint16 public transferTaxRate = 200;

    // Sell transfer tax rate in basis points. (default 5%)
    uint16 public sellTransferTaxRate = 500;

    // Burn rate % of transfer tax. (default 50% x 2% = 1% of total amount).
    uint16 public burnRate = 50;
    // Max transfer tax rate: 10%.
    uint16 public constant MAXIMUM_TRANSFER_TAX_RATE = 1000;
    // 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 500 CARIB)
    uint256 public minAmountToLiquify = 500 ether;
    // The swap router, modifiable. Will be changed to CaribSwap's router when our own AMM release
    IUniswapV2Router02 public caribSwapRouter;
    // The trading pair
    address public caribSwapPair;
    // In swap and liquify
    bool private _inSwapAndLiquify;

    /**************** kyd0310 ***************/
    mapping(address => bool) public _isBlackList;
    uint256 private buyBackUpperLimit = 1 * 10**18;
    bool public buyBackEnabled = true;

    event BuyBackEnabledUpdated(bool enabled);
    event SwapETHForTokens(uint256 amountIn, address[] path);
    /*******************************/


    // 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 SellTransferTaxRateUpdated(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 CaribSwapRouterUpdated(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(), "CARIB::antiWhale: Transfer amount exceeds the maxTransferAmount");
            }
        }
        _;
    }

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

    modifier transferTaxFree {
        uint16 _transferTaxRate = transferTaxRate;
        uint16 _sellTransferTaxRate = sellTransferTaxRate;

        transferTaxRate = 0;
        sellTransferTaxRate = 0;
        _;
        transferTaxRate = _transferTaxRate;
        sellTransferTaxRate = _sellTransferTaxRate;
    }

    /**
     * @notice Constructs the CaribToken contract.
     */
    constructor() public BEP20("Carib", "CARIB") {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);

        _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 MasterChef.
    function mint(address _to, uint256 _amount) public onlyMasterChef {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

    /// @dev overrides transfer function to meet tokenomics of CARIB
    function _transfer(address sender, address recipient, uint256 amount) internal virtual override antiWhale(sender, recipient, amount) {
        // swap and liquify
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");
        require(!_isBlackList[sender] && !_isBlackList[recipient], "Black List: Try again later");

        if (
            swapAndLiquifyEnabled == true
            && _inSwapAndLiquify == false
            && address(caribSwapRouter) != address(0)
            && caribSwapPair != address(0)
            && sender != caribSwapPair
            && sender != owner()
        ) {
            swapAndLiquify();

            if(recipient == caribSwapPair)
                buyBack();
        }

        if (recipient == BURN_ADDRESS || transferTaxRate == 0) {
            super._transfer(sender, recipient, amount);
        } 
        else
        {
            uint256 taxAmount;
            
            if(recipient == caribSwapPair)
                taxAmount = amount.mul(sellTransferTaxRate).div(10000); // tax is 5% in case of token sell
            else
                taxAmount = amount.mul(transferTaxRate).div(10000); // default tax is 2% of every transfer

            uint256 burnAmount = taxAmount.mul(burnRate).div(100);
            uint256 liquidityAmount = taxAmount.sub(burnAmount);
            require(taxAmount == burnAmount + liquidityAmount, "CARIB::transfer: Burn value invalid");

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

            super._transfer(sender, BURN_ADDRESS, burnAmount);
            super._transfer(sender, address(this), liquidityAmount);
            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 caribSwap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = caribSwapRouter.WETH();

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

        // make the swap
        caribSwapRouter.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(caribSwapRouter), tokenAmount);

        // add the liquidity
        caribSwapRouter.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 caribSwapRouter 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, "CARIB::updateTransferTaxRate: Transfer tax rate must not exceed the maximum rate.");
        emit TransferTaxRateUpdated(msg.sender, transferTaxRate, _transferTaxRate);
        transferTaxRate = _transferTaxRate;
    }

    function updateSellTransferTaxRate(uint16 _sellTransferTaxRate) public onlyOperator {
        require(_sellTransferTaxRate <= MAXIMUM_TRANSFER_TAX_RATE, "CARIB::updateSellTransferTaxRate: Sell transfer tax rate must not exceed the maximum rate.");
        emit SellTransferTaxRateUpdated(msg.sender, sellTransferTaxRate, _sellTransferTaxRate);
        sellTransferTaxRate = _sellTransferTaxRate;
    }

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

    /**
     * @dev Update the max transfer amount rate.
     * Can only be called by the current operator.
     */
    function updateMaxTransferAmountRate(uint16 _maxTransferAmountRate) public onlyOperator {
        require(_maxTransferAmountRate <= 10000, "CARIB::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
     * set specific address as the black address to prevent the token dump attack of bot
     */
    function setBlackList(address[] calldata addresses, bool status) external onlyOperator {
        for (uint256 i; i < addresses.length; i++) {
            _isBlackList[addresses[i]] = status;
        }
    }

    function buyBackUpperLimitAmount() public view returns (uint256) {
        return buyBackUpperLimit;
    }

    function buyBack() private lockTheSwap transferTaxFree {
        uint256 balance = address(this).balance;

        if(buyBackEnabled && balance > uint256(1 * 10**18)) {
            
            if(balance > buyBackUpperLimit)
                balance = buyBackUpperLimit;
            
            buyBackTokens(balance.div(100));
        }
    }

    function buyBackTokens(uint256 amount) private lockTheSwap {
        if(amount > 0) {
            swapETHForTokens(amount);
        }
    }

    function swapETHForTokens(uint256 amount) private {
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = caribSwapRouter.WETH();
        path[1] = address(this);

        //make the swap
        caribSwapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount} (
            0, // accept any amount of Tokens
            path,
            BURN_ADDRESS,
            block.timestamp.add(300)
        );

        emit SwapETHForTokens(amount, path);
    }

    function setBuyBackEnabled(bool _enabled) public onlyOperator {
        buyBackEnabled = _enabled;
        emit BuyBackEnabledUpdated(_enabled);
    }

    function setBuyBackUpperLimit(uint256 buyBackLimit) external onlyOperator() {
        buyBackUpperLimit = buyBackLimit * 10**18;
    }

    function prepareForPreSale() external onlyOwner {
        updateSwapAndLiquifyEnabled(false);
        
        transferTaxRate = 0;
        sellTransferTaxRate = 0;
        burnRate = 0;
        maxTransferAmountRate = 10000;
    }

    function afterPreSale() external onlyOwner {
        updateSwapAndLiquifyEnabled(true);
        
        transferTaxRate = 200;
        sellTransferTaxRate = 500;
        burnRate = 50;
        maxTransferAmountRate = 50;
    }
    /***************************************************/

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

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

    /**
     * @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 onlyOwner onlyOperator {
        require(newOperator != address(0), "CARIB::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), "CARIB::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "CARIB::delegateBySig: invalid nonce");
        require(now <= expiry, "CARIB::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, "CARIB::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 CARIBs (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, "CARIB::_writeCheckpoint: block number exceeds 32 bits");

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

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

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

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

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

    function burn(address _from ,uint256 _amount) public onlyOwner {
        _burn(_from, _amount);
        _moveDelegates(address(0), _delegates[_from], _amount);
    }

    // The CARIB TOKEN!
    CaribToken public carib;


    constructor(
        CaribToken _carib
    ) public {
        carib = _carib;
    }

    // Safe carib transfer function, just in case if rounding error causes pool to not have enough CARIBs.
    function safeCaribTransfer(address _to, uint256 _amount) public onlyOwner {
        uint256 caribBal = carib.balanceOf(address(this));
        if (_amount > caribBal) {
            carib.transfer(_to, caribBal);
        } else {
            carib.transfer(_to, _amount);
        }
    }

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

    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), "CARIB::delegateBySig: invalid signature");
        require(nonce == nonces[signatory]++, "CARIB::delegateBySig: invalid nonce");
        require(now <= expiry, "CARIB::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, "CARIB::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 CARIBs (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, "CARIB::_writeCheckpoint: block number exceeds 32 bits");

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

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

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

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

// import "@nomiclabs/buidler/console.sol";
interface IMigratorChef {
    // Perform LP token migration from legacy CaribSwap to CaribSwap.
    // Take the current LP token address and return the new LP token address.
    // Migrator should have full access to the caller's LP token.
    // Return the new LP token address.
    //
    // XXX Migrator must have allowance access to CaribSwap LP tokens.
    // CaribSwap must mint EXACTLY the same amount of CaribSwap LP tokens or
    // else something bad will happen. Traditional CaribSwap does not
    // do that so be careful!
    function migrate(IBEP20 token) external returns (IBEP20);
}

// MasterChef is the master of Carib. He can make Carib 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 CARIB 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 {
    using SafeMath for uint256;
    using SafeBEP20 for IBEP20;

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

    // The CARIB TOKEN!
    CaribToken public carib;
    // The SYRUP TOKEN!
    SyrupBar public syrup;
    
    // Dev address.
    address public devaddr;
    uint16 public devFee;
    
    // Treasury address.
    address public treasuryaddr;

    // CARIB tokens created per block.
    uint256 public caribPerBlock;
    // Bonus muliplier for early carib makers.
    uint256 public BONUS_MULTIPLIER = 1;
    // The migrator contract. It has a lot of power. Can only be set through governance (owner).
    IMigratorChef public migrator;

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

    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);
    event EmissionRateUpdated(address indexed caller, uint256 previousAmount, uint256 newAmount);
    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);

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

    constructor(
        CaribToken _carib,
        SyrupBar _syrup,
        address _devaddr,
        address _treasuryaddr,
        uint256 _caribPerBlock,
        uint256 _startBlock
    ) public {
        _operator = _msgSender();
        emit OperatorTransferred(address(0), _operator);

        carib = _carib;
        syrup = _syrup;
        devaddr = _devaddr;
        treasuryaddr = _treasuryaddr;
        caribPerBlock = _caribPerBlock;
        startBlock = _startBlock;
        devFee = 5;

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

        totalAllocPoint = 1000;

    }

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

    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, bool _withUpdate) public onlyOwner {
        require(_depositFeeBP <= 10000, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(PoolInfo({
            lpToken: _lpToken,
            allocPoint: _allocPoint,
            lastRewardBlock: lastRewardBlock,
            accCaribPerShare: 0,
            depositFeeBP: _depositFeeBP
        }));
        updateStakingPool();
    }

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

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

    // Set the migrator contract. Can only be called by the owner.
    function setMigrator(IMigratorChef _migrator) public onlyOwner {
        migrator = _migrator;
    }

    // Migrate lp token to another lp contract. Can be called by anyone. We trust that migrator contract is good.
    function migrate(uint256 _pid) public {
        require(address(migrator) != address(0), "migrate: no migrator");
        PoolInfo storage pool = poolInfo[_pid];
        IBEP20 lpToken = pool.lpToken;
        uint256 bal = lpToken.balanceOf(address(this));
        lpToken.safeApprove(address(migrator), bal);
        IBEP20 newLpToken = migrator.migrate(lpToken);
        require(bal == newLpToken.balanceOf(address(this)), "migrate: bad");
        pool.lpToken = newLpToken;
    }

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

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

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


    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 caribReward = multiplier.mul(caribPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        
        carib.mint(devaddr, caribReward.div(10).mul(devFee).div(100));
        carib.mint(treasuryaddr, caribReward.div(10).mul(100-devFee).div(100));

        carib.mint(address(syrup), caribReward);
        pool.accCaribPerShare = pool.accCaribPerShare.add(caribReward.mul(1e12).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for CARIB allocation.
    function deposit(uint256 _pid, uint256 _amount) public {

        require (_pid != 0, 'deposit CARIB by staking');

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accCaribPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeCaribTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);

            if (pool.depositFeeBP > 0)
            {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);

                pool.lpToken.safeTransfer(devaddr, depositFee.mul(devFee).div(100));
                pool.lpToken.safeTransfer(treasuryaddr, depositFee.mul(100-devFee).div(100));
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accCaribPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) public {

        require (_pid != 0, 'withdraw CARIB by unstaking');

        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accCaribPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            safeCaribTransfer(msg.sender, pending);
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accCaribPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Stake CARIB tokens to MasterChef
    function enterStaking(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[0][msg.sender];
        updatePool(0);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accCaribPerShare).div(1e12).sub(user.rewardDebt);
            if(pending > 0) {
                safeCaribTransfer(msg.sender, pending);
            }
        }
        if(_amount > 0) {
            uint256 transferTax = _amount.mul(carib.transferTaxRate()).div(10000);
            _amount = _amount.sub(transferTax);

            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);

                pool.lpToken.safeTransfer(devaddr, depositFee.mul(devFee).div(100));
                pool.lpToken.safeTransfer(treasuryaddr, depositFee.mul(100-devFee).div(100));
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);    
            }
        }
        user.rewardDebt = user.amount.mul(pool.accCaribPerShare).div(1e12);

        syrup.mint(msg.sender, _amount);
        emit Deposit(msg.sender, 0, _amount);
    }

    // Withdraw CARIB tokens from STAKING.
    function leaveStaking(uint256 _amount) public {
        PoolInfo storage pool = poolInfo[0];
        UserInfo storage user = userInfo[0][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(0);
        uint256 pending = user.amount.mul(pool.accCaribPerShare).div(1e12).sub(user.rewardDebt);
        if(pending > 0) {
            safeCaribTransfer(msg.sender, pending);
        }
        if(_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accCaribPerShare).div(1e12);

        syrup.burn(msg.sender, _amount);
        emit Withdraw(msg.sender, 0, _amount);
    }

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

    // Safe carib transfer function, just in case if rounding error causes pool to not have enough CARIBs.
    function safeCaribTransfer(address _to, uint256 _amount) internal {
        syrup.safeCaribTransfer(_to, _amount);
    }

    // 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 _caribPerBlock) public onlyOperator {
        massUpdatePools();
        emit EmissionRateUpdated(msg.sender, caribPerBlock, _caribPerBlock);
        caribPerBlock = _caribPerBlock;
    }

    /*
     * @notice Stop rewards
     * @dev Needs to be for emergency.
     */
    function safeCaribManualTransfer(address _to, uint256 _amount) public onlyOperator {
        uint256 caribBal = carib.balanceOf(address(this));
        if (_amount > caribBal) {
            carib.transfer(_to, caribBal);
        } else {
            carib.transfer(_to, _amount);
        }
    }

    /**
     * @notice It allows the admin to recover wrong tokens sent to the contract
     * @param _token: the address of the token to withdraw
     * @param _amount: the number of tokens to withdraw
     * @dev This function is only callable by admin.
     */
    function recoverWrongTokens(address _token, address _to, uint256 _amount) public onlyOperator returns(bool _sent){
        require(_token != address(this), "Address error");
        uint256 _contractBalance = IBEP20(_token).balanceOf(address(this));
        if(_amount > _contractBalance)
            _sent = IBEP20(_token).transfer(_to, _contractBalance);
        else
            _sent = IBEP20(_token).transfer(_to, _amount);
    }

    /**
     * @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), "CARIB::transferOperator: new operator is the zero address");
        emit OperatorTransferred(_operator, newOperator);
        _operator = newOperator;
    }

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

    // Update dev fee
    function setDevFee(uint16 _devFee) public {
        require(msg.sender == devaddr, "setDevAddress: FORBIDDEN");
        require(_devFee < 100, "setDevFee: not good");
        devFee = _devFee;
    }

    function setTreasuryAddress(address _treasuryaddr) public {
        require(msg.sender == treasuryaddr, "setTreasuryAddress: FORBIDDEN");
        require(_treasuryaddr != address(0), "setTreasuryAddress: ZERO");
        treasuryaddr = _treasuryaddr;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract CaribToken","name":"_carib","type":"address"},{"internalType":"contract SyrupBar","name":"_syrup","type":"address"},{"internalType":"address","name":"_devaddr","type":"address"},{"internalType":"address","name":"_treasuryaddr","type":"address"},{"internalType":"uint256","name":"_caribPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"previousOperator","type":"address"},{"indexed":true,"internalType":"address","name":"newOperator","type":"address"}],"name":"OperatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"carib","outputs":[{"internalType":"contract CaribToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"caribPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"enterStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"leaveStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"contract IMigratorChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingCarib","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":"accCaribPerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recoverWrongTokens","outputs":[{"internalType":"bool","name":"_sent","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"safeCaribManualTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devaddr","type":"address"}],"name":"setDevAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_devFee","type":"uint16"}],"name":"setDevFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMigratorChef","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryaddr","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"syrup","outputs":[{"internalType":"contract SyrupBar","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator","type":"address"}],"name":"transferOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryaddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_caribPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"multiplierNumber","type":"uint256"}],"name":"updateMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260016006556000600a553480156200001b57600080fd5b50604051620030e2380380620030e2833981810160405260c08110156200004157600080fd5b508051602082015160408301516060840151608085015160a0909501519394929391929091600062000072620002a2565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000c6620002a2565b600c80546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed908290a3600180546001600160a01b03199081166001600160a01b039889169081178355600280548316988a169890981790975560038054600480548416978b16979097179096556005948555600b8490559481169588169590951761ffff60a01b1916600560a01b179093556040805160a0810182529586526103e8602087018181529187019283526000606088018181526080890182815260088054988901815590925297517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3969095029586018054909716949098169390931790945592517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee483015591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee582015591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee683015591517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee7909101805461ffff191661ffff909216919091179055600a55620002a6565b3390565b612e2c80620002b66000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80636605bfda116101305780638dbb1e3a116100b8578063d96384221161007c578063d963842214610612578063e18cb4fe14610647578063e2bbb15814610668578063f2fde38b1461068b578063f77015e4146106b157610232565b80638dbb1e3a1461057457806393f1a40b14610597578063cec5c85d146105dc578063d0d41fe1146105e4578063d49e77cd1461060a57610232565b80637cd07e47116100ff5780637cd07e471461051657806384e82a331461051e57806386a952c41461055c5780638aa28550146105645780638da5cb5b1461056c57610232565b80636605bfda146104c15780636827e764146104e75780636e99b75e14610506578063715018a61461050e57610232565b806329605e77116101be57806351eb05a61161018257806351eb05a61461043e5780635312ea8e1461045b578063570ca735146104785780635ffe61461461049c578063630b5ba1146104b957610232565b806329605e77146103b357806341441d3b146103d9578063441a3e70146103f6578063454b06081461041957806348cd4cb11461043657610232565b8063170d1c6b11610205578063170d1c6b146102e357806317a007da1461030f57806317caf6f1146103595780631bb1df681461036157806323cf31181461038d57610232565b8063081e3eda146102375780630ba84cd2146102515780631058d281146102705780631526fe271461028d575b600080fd5b61023f6106b9565b60408051918252519081900360200190f35b61026e6004803603602081101561026757600080fd5b50356106bf565b005b61026e6004803603602081101561028657600080fd5b5035610753565b6102aa600480360360208110156102a357600080fd5b5035610937565b604080516001600160a01b039096168652602086019490945284840192909252606084015261ffff166080830152519081900360a00190f35b61023f600480360360408110156102f957600080fd5b50803590602001356001600160a01b0316610983565b6103456004803603606081101561032557600080fd5b506001600160a01b03813581169160208101359091169060400135610ae9565b604080519115158252519081900360200190f35b61023f610d20565b61026e6004803603604081101561037757600080fd5b506001600160a01b038135169060200135610d26565b61026e600480360360208110156103a357600080fd5b50356001600160a01b0316610f00565b61026e600480360360208110156103c957600080fd5b50356001600160a01b0316610f7a565b61026e600480360360208110156103ef57600080fd5b5035611064565b61026e6004803603604081101561040c57600080fd5b5080359060200135611343565b61026e6004803603602081101561042f57600080fd5b50356114e8565b61023f611749565b61026e6004803603602081101561045457600080fd5b503561174f565b61026e6004803603602081101561047157600080fd5b5035611a2f565b610480611aca565b604080516001600160a01b039092168252519081900360200190f35b61026e600480360360208110156104b257600080fd5b5035611ad9565b61026e611b36565b61026e600480360360208110156104d757600080fd5b50356001600160a01b0316611b59565b6104ef611c35565b6040805161ffff9092168252519081900360200190f35b610480611c46565b61026e611c55565b610480611cf7565b61026e6004803603608081101561053457600080fd5b508035906001600160a01b036020820135169061ffff60408201351690606001351515611d06565b610480611f0f565b61023f611f1e565b610480611f24565b61023f6004803603604081101561058a57600080fd5b5080359060200135611f33565b6105c3600480360360408110156105ad57600080fd5b50803590602001356001600160a01b0316611f4e565b6040805192835260208301919091528051918290030190f35b61023f611f72565b61026e600480360360208110156105fa57600080fd5b50356001600160a01b0316611f78565b610480611fe5565b61026e6004803603608081101561062857600080fd5b5080359060208101359061ffff60408201351690606001351515611ff4565b61026e6004803603602081101561065d57600080fd5b503561ffff1661212b565b61026e6004803603604081101561067e57600080fd5b50803590602001356121fb565b61026e600480360360208110156106a157600080fd5b50356001600160a01b0316612420565b610480612481565b60085490565b600c546001600160a01b031633146107085760405162461bcd60e51b8152600401808060200182810382526024815260200180612dd36024913960400191505060405180910390fd5b610710611b36565b6005546040805191825260208201839052805133927feedc6338c9c1ad8f3cd6c90dd09dbe98dbd57e610d3e59a17996d07acb0d951192908290030190a2600555565b6000600860008154811061076357fe5b600091825260208083203384527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b90915260409092208054600590920290920192508311156107ee576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6107f8600061174f565b6000610832826001015461082c64e8d4a510006108268760030154876000015461249090919063ffffffff16565b906124e9565b9061252b565b9050801561084457610844338261256d565b831561086e578154610856908561252b565b8255825461086e906001600160a01b031633866125de565b600383015482546108899164e8d4a510009161082691612490565b600183015560025460408051632770a7eb60e21b81523360048201526024810187905290516001600160a01b0390921691639dc29fac9160448082019260009290919082900301818387803b1580156108e157600080fd5b505af11580156108f5573d6000803e3d6000fd5b5050604080518781529051600093503392507ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a350505050565b6008818154811061094457fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909161ffff1685565b6000806008848154811061099357fe5b600091825260208083208784526009825260408085206001600160a01b0389811687529084528186206005959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b158015610a0d57600080fd5b505afa158015610a21573d6000803e3d6000fd5b505050506040513d6020811015610a3757600080fd5b5051600285015490915043118015610a4e57508015155b15610ab4576000610a63856002015443611f33565b90506000610a90600a546108268860010154610a8a6005548761249090919063ffffffff16565b90612490565b9050610aaf610aa8846108268464e8d4a51000612490565b8590612630565b935050505b610adc836001015461082c64e8d4a5100061082686886000015461249090919063ffffffff16565b9450505050505b92915050565b600c546000906001600160a01b03163314610b355760405162461bcd60e51b8152600401808060200182810382526024815260200180612dd36024913960400191505060405180910390fd5b6001600160a01b038416301415610b83576040805162461bcd60e51b815260206004820152600d60248201526c20b2323932b9b99032b93937b960991b604482015290519081900360640190fd5b6000846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610bd257600080fd5b505afa158015610be6573d6000803e3d6000fd5b505050506040513d6020811015610bfc57600080fd5b5051905080831115610c9257846001600160a01b031663a9059cbb85836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015610c5f57600080fd5b505af1158015610c73573d6000803e3d6000fd5b505050506040513d6020811015610c8957600080fd5b50519150610d18565b846001600160a01b031663a9059cbb85856040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015610ce957600080fd5b505af1158015610cfd573d6000803e3d6000fd5b505050506040513d6020811015610d1357600080fd5b505191505b509392505050565b600a5481565b600c546001600160a01b03163314610d6f5760405162461bcd60e51b8152600401808060200182810382526024815260200180612dd36024913960400191505060405180910390fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610dba57600080fd5b505afa158015610dce573d6000803e3d6000fd5b505050506040513d6020811015610de457600080fd5b5051905080821115610e78576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015610e4657600080fd5b505af1158015610e5a573d6000803e3d6000fd5b505050506040513d6020811015610e7057600080fd5b50610efb9050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015610ece57600080fd5b505af1158015610ee2573d6000803e3d6000fd5b505050506040513d6020811015610ef857600080fd5b50505b505050565b610f0861268a565b6000546001600160a01b03908116911614610f58576040805162461bcd60e51b81526020600482018190526024820152600080516020612db3833981519152604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b03163314610fc35760405162461bcd60e51b8152600401808060200182810382526024815260200180612dd36024913960400191505060405180910390fd5b6001600160a01b0381166110085760405162461bcd60e51b8152600401808060200182810382526039815260200180612d236039913960400191505060405180910390fd5b600c546040516001600160a01b038084169216907f74da04524d50c64947f5dd5381ef1a4dca5cba8ed1d816243f9e48aa0b5617ed90600090a3600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000600860008154811061107457fe5b600091825260208083203384527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b909152604083206005909202019250906110bb9061174f565b8054156111045760006110f0826001015461082c64e8d4a510006108268760030154876000015461249090919063ffffffff16565b9050801561110257611102338261256d565b505b821561127b57600061119a612710610826600160009054906101000a90046001600160a01b03166001600160a01b031663b65d08b06040518163ffffffff1660e01b815260040160206040518083038186803b15801561116357600080fd5b505afa158015611177573d6000803e3d6000fd5b505050506040513d602081101561118d57600080fd5b5051879061ffff16612490565b90506111a6848261252b565b600484015490945061ffff161561126a5760048301546000906111d6906127109061082690889061ffff16612490565b60035490915061121a906001600160a01b0381169061120890606490610826908690600160a01b900461ffff16612490565b86546001600160a01b031691906125de565b600454600354611250916001600160a01b0316906112089060649061082690869061ffff600160a01b9091048116840316612490565b825461126290829061082c9088612630565b835550611279565b81546112769085612630565b82555b505b600382015481546112969164e8d4a510009161082691612490565b6001820155600254604080516340c10f1960e01b81523360048201526024810186905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b1580156112ee57600080fd5b505af1158015611302573d6000803e3d6000fd5b5050604080518681529051600093503392507f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505050565b81611395576040805162461bcd60e51b815260206004820152601b60248201527f776974686472617720434152494220627920756e7374616b696e670000000000604482015290519081900360640190fd5b6000600883815481106113a457fe5b600091825260208083208684526009825260408085203386529092529220805460059092029092019250831115611417576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6114208461174f565b600061144e826001015461082c64e8d4a510006108268760030154876000015461249090919063ffffffff16565b9050801561146057611460338261256d565b831561148a578154611472908561252b565b8255825461148a906001600160a01b031633866125de565b600383015482546114a59164e8d4a510009161082691612490565b6001830155604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b6007546001600160a01b031661153c576040805162461bcd60e51b815260206004820152601460248201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604482015290519081900360640190fd5b60006008828154811061154b57fe5b6000918252602080832060059092029091018054604080516370a0823160e01b815230600482015290519295506001600160a01b03909116939284926370a08231926024808201939291829003018186803b1580156115a957600080fd5b505afa1580156115bd573d6000803e3d6000fd5b505050506040513d60208110156115d357600080fd5b50516007549091506115f2906001600160a01b0384811691168361268e565b6007546040805163ce5494bb60e01b81526001600160a01b0385811660048301529151600093929092169163ce5494bb9160248082019260209290919082900301818787803b15801561164457600080fd5b505af1158015611658573d6000803e3d6000fd5b505050506040513d602081101561166e57600080fd5b5051604080516370a0823160e01b815230600482015290519192506001600160a01b038316916370a0823191602480820192602092909190829003018186803b1580156116ba57600080fd5b505afa1580156116ce573d6000803e3d6000fd5b505050506040513d60208110156116e457600080fd5b50518214611728576040805162461bcd60e51b815260206004820152600c60248201526b1b5a59dc985d194e8818985960a21b604482015290519081900360640190fd5b83546001600160a01b0319166001600160a01b039190911617909255505050565b600b5481565b60006008828154811061175e57fe5b906000526020600020906005020190508060020154431161177f5750611a2c565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156117c957600080fd5b505afa1580156117dd573d6000803e3d6000fd5b505050506040513d60208110156117f357600080fd5b5051905080611809575043600290910155611a2c565b6000611819836002015443611f33565b90506000611840600a546108268660010154610a8a6005548761249090919063ffffffff16565b6001546003549192506001600160a01b03908116916340c10f199181169061187f9060649061082690600160a01b900461ffff16610a8a88600a6124e9565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156118c557600080fd5b505af11580156118d9573d6000803e3d6000fd5b50506001546004546003546001600160a01b0392831694506340c10f199350911690611921906064906108269061ffff600160a01b9091048116830316610a8a88600a6124e9565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561196757600080fd5b505af115801561197b573d6000803e3d6000fd5b5050600154600254604080516340c10f1960e01b81526001600160a01b0392831660048201526024810187905290519190921693506340c10f199250604480830192600092919082900301818387803b1580156119d757600080fd5b505af11580156119eb573d6000803e3d6000fd5b50505050611a19611a0e8461082664e8d4a510008561249090919063ffffffff16565b600386015490612630565b6003850155505043600290920191909155505b50565b600060088281548110611a3e57fe5b60009182526020808320858452600982526040808520338087529352909320805460059093029093018054909450611a83926001600160a01b039190911691906125de565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a360008082556001909101555050565b600c546001600160a01b031690565b611ae161268a565b6000546001600160a01b03908116911614611b31576040805162461bcd60e51b81526020600482018190526024820152600080516020612db3833981519152604482015290519081900360640190fd5b600655565b60085460005b81811015611b5557611b4d8161174f565b600101611b3c565b5050565b6004546001600160a01b03163314611bb8576040805162461bcd60e51b815260206004820152601d60248201527f7365745472656173757279416464726573733a20464f5242494444454e000000604482015290519081900360640190fd5b6001600160a01b038116611c13576040805162461bcd60e51b815260206004820152601860248201527f7365745472656173757279416464726573733a205a45524f0000000000000000604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b600354600160a01b900461ffff1681565b6004546001600160a01b031681565b611c5d61268a565b6000546001600160a01b03908116911614611cad576040805162461bcd60e51b81526020600482018190526024820152600080516020612db3833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6007546001600160a01b031681565b611d0e61268a565b6000546001600160a01b03908116911614611d5e576040805162461bcd60e51b81526020600482018190526024820152600080516020612db3833981519152604482015290519081900360640190fd5b6127108261ffff161115611da35760405162461bcd60e51b8152600401808060200182810382526025815260200180612cae6025913960400191505060405180910390fd5b8015611db157611db1611b36565b6000600b544311611dc457600b54611dc6565b435b600a54909150611dd69086612630565b600a556040805160a0810182526001600160a01b0386811682526020820188815292820184815260006060840181815261ffff8981166080870190815260088054600181018255945295517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600590940293840180546001600160a01b031916919096161790945594517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee482015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee582015592517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee684015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee7909201805461ffff191692909116919091179055610ef86127a1565b6002546001600160a01b031681565b60065481565b6000546001600160a01b031690565b600654600090611f4790610a8a848661252b565b9392505050565b60096020908152600092835260408084209091529082529020805460019091015482565b60055481565b6003546001600160a01b03163314611fc3576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031681565b611ffc61268a565b6000546001600160a01b0390811691161461204c576040805162461bcd60e51b81526020600482018190526024820152600080516020612db3833981519152604482015290519081900360640190fd5b801561205a5761205a611b36565b612097836120916008878154811061206e57fe5b906000526020600020906005020160010154600a5461252b90919063ffffffff16565b90612630565b600a819055506000600885815481106120ac57fe5b906000526020600020906005020160010154905083600886815481106120ce57fe5b90600052602060002090600502016001018190555082600886815481106120f157fe5b906000526020600020906005020160040160006101000a81548161ffff021916908361ffff160217905550838114610ef857610ef86127a1565b6003546001600160a01b0316331461218a576040805162461bcd60e51b815260206004820152601860248201527f736574446576416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b60648161ffff16106121d9576040805162461bcd60e51b81526020600482015260136024820152721cd95d11195d9199594e881b9bdd0819dbdbd9606a1b604482015290519081900360640190fd5b6003805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b8161224d576040805162461bcd60e51b815260206004820152601860248201527f6465706f736974204341524942206279207374616b696e670000000000000000604482015290519081900360640190fd5b60006008838154811061225c57fe5b6000918252602080832086845260098252604080852033865290925292206005909102909101915061228d8461174f565b8054156122d65760006122c2826001015461082c64e8d4a510006108268760030154876000015461249090919063ffffffff16565b905080156122d4576122d4338261256d565b505b82156123c35781546122f3906001600160a01b0316333086612843565b600482015461ffff16156123b4576004820154600090612320906127109061082690879061ffff16612490565b600354909150612364906001600160a01b0381169061235290606490610826908690600160a01b900461ffff16612490565b85546001600160a01b031691906125de565b60045460035461239a916001600160a01b0316906123529060649061082690869061ffff600160a01b9091048116840316612490565b81546123ac90829061082c9087612630565b8255506123c3565b80546123c09084612630565b81555b600382015481546123de9164e8d4a510009161082691612490565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b61242861268a565b6000546001600160a01b03908116911614612478576040805162461bcd60e51b81526020600482018190526024820152600080516020612db3833981519152604482015290519081900360640190fd5b611a2c816128a3565b6001546001600160a01b031681565b60008261249f57506000610ae3565b828202828482816124ac57fe5b0414611f475760405162461bcd60e51b8152600401808060200182810382526021815260200180612d5c6021913960400191505060405180910390fd5b6000611f4783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612943565b6000611f4783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506129e5565b6002546040805163f083799f60e01b81526001600160a01b038581166004830152602482018590529151919092169163f083799f91604480830192600092919082900301818387803b1580156125c257600080fd5b505af11580156125d6573d6000803e3d6000fd5b505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610efb908490612a3f565b600082820183811015611f47576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b801580612714575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156126e657600080fd5b505afa1580156126fa573d6000803e3d6000fd5b505050506040513d602081101561271057600080fd5b5051155b61274f5760405162461bcd60e51b8152600401808060200182810382526036815260200180612d7d6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610efb908490612a3f565b600854600060015b828110156127ec576127e2600882815481106127c157fe5b9060005260206000209060050201600101548361263090919063ffffffff16565b91506001016127a9565b508015611b55576127fe8160036124e9565b905061281581612091600860008154811061206e57fe5b600a8190555080600860008154811061282a57fe5b9060005260206000209060050201600101819055505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261289d908590612a3f565b50505050565b6001600160a01b0381166128e85760405162461bcd60e51b8152600401808060200182810382526026815260200180612cfd6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081836129cf5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561299457818101518382015260200161297c565b50505050905090810190601f1680156129c15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816129db57fe5b0495945050505050565b60008184841115612a375760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561299457818101518382015260200161297c565b505050900390565b6060612a94826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612af09092919063ffffffff16565b805190915015610efb57808060200190516020811015612ab357600080fd5b5051610efb5760405162461bcd60e51b815260040180806020018281038252602a815260200180612cd3602a913960400191505060405180910390fd5b6060612aff8484600085612b07565b949350505050565b6060612b1285612c74565b612b63576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612ba25780518252601f199092019160209182019101612b83565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612c04576040519150601f19603f3d011682016040523d82523d6000602084013e612c09565b606091505b50915091508115612c1d579150612aff9050565b805115612c2d5780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561299457818101518382015260200161297c565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612aff57505015159291505056fe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e74735361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737343415249423a3a7472616e736665724f70657261746f723a206e6577206f70657261746f7220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666542455032303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657261746f72a26469706673582212208a5716286f2c08e965456e1337c06dca88317e779d2b5640077e0f5df06a51db64736f6c634300060c00330000000000000000000000002a6c4fa54167306c9bba1d3bce103b8f4543fa3b000000000000000000000000c28ee2b0a2ccf2f5317a4d70620e489f9312c5bb000000000000000000000000ad2fbd3c41e5cddb7f01857c3f936403d76517a50000000000000000000000009b18a26a8dbfdc703dead6d98c55f500b0de8dd000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

78868:16809:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82804:95;;;:::i;:::-;;;;;;;;;;;;;;;;93034:227;;;;;;;;;;;;;;;;-1:-1:-1;93034:227:0;;:::i;:::-;;91471:765;;;;;;;;;;;;;;;;-1:-1:-1;91471:765:0;;:::i;80887:26::-;;;;;;;;;;;;;;;;-1:-1:-1;80887:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;80887:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85925:768;;;;;;;;;;;;;;;;-1:-1:-1;85925:768:0;;;;;;-1:-1:-1;;;;;85925:768:0;;:::i;93935:441::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;93935:441:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;81130:34;;;:::i;93355:302::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;93355:302:0;;;;;;;;:::i;84925:102::-;;;;;;;;;;;;;;;;-1:-1:-1;84925:102:0;-1:-1:-1;;;;;84925:102:0;;:::i;94705:274::-;;;;;;;;;;;;;;;;-1:-1:-1;94705:274:0;-1:-1:-1;;;;;94705:274:0;;:::i;90171:1248::-;;;;;;;;;;;;;;;;-1:-1:-1;90171:1248:0;;:::i;89314:808::-;;;;;;;;;;;;;;;;-1:-1:-1;89314:808:0;;;;;;;:::i;85150:491::-;;;;;;;;;;;;;;;;-1:-1:-1;85150:491:0;;:::i;81222:25::-;;;:::i;87034:905::-;;;;;;;;;;;;;;;;-1:-1:-1;87034:905:0;;:::i;92307:356::-;;;;;;;;;;;;;;;;-1:-1:-1;92307:356:0;;:::i;94460:85::-;;;:::i;:::-;;;;-1:-1:-1;;;;;94460:85:0;;;;;;;;;;;;;;82673:123;;;;;;;;;;;;;;;;-1:-1:-1;82673:123:0;;:::i;86776:180::-;;;:::i;95415:259::-;;;;;;;;;;;;;;;;-1:-1:-1;95415:259:0;-1:-1:-1;;;;;95415:259:0;;:::i;80464:20::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;80523:27;;;:::i;30475:140::-;;;:::i;80822:29::-;;;:::i;83068:691::-;;;;;;;;;;;;;;;;-1:-1:-1;83068:691:0;;;-1:-1:-1;;;;;83068:691:0;;;;;;;;;;;;;;;;;;;:::i;80380:21::-;;;:::i;80682:35::-;;;:::i;29833:79::-;;;:::i;85717:143::-;;;;;;;;;;;;;;;;-1:-1:-1;85717:143:0;;;;;;;:::i;80969:66::-;;;;;;;;;;;;;;;;-1:-1:-1;80969:66:0;;;;;;-1:-1:-1;;;;;80969:66:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;80599:28;;;:::i;95035:139::-;;;;;;;;;;;;;;;;-1:-1:-1;95035:139:0;-1:-1:-1;;;;;95035:139:0;;:::i;80435:22::-;;;:::i;83856:532::-;;;;;;;;;;;;;;;;-1:-1:-1;83856:532:0;;;;;;;;;;;;;;;;;;;;;:::i;95205:202::-;;;;;;;;;;;;;;;;-1:-1:-1;95205:202:0;;;;:::i;88009:1253::-;;;;;;;;;;;;;;;;-1:-1:-1;88009:1253:0;;;;;;;:::i;30770:109::-;;;;;;;;;;;;;;;;-1:-1:-1;30770:109:0;-1:-1:-1;;;;;30770:109:0;;:::i;80325:23::-;;;:::i;82804:95::-;82876:8;:15;82804:95;:::o;93034:227::-;81775:9;;-1:-1:-1;;;;;81775:9:0;81788:10;81775:23;81767:72;;;;-1:-1:-1;;;81767:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93117:17:::1;:15;:17::i;:::-;93182:13;::::0;93150:62:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;93170:10:::1;::::0;93150:62:::1;::::0;;;;;;;::::1;93223:13;:30:::0;93034:227::o;91471:765::-;91528:21;91552:8;91561:1;91552:11;;;;;;;;;;;;;;;;91610:10;91598:23;;:11;:23;;;:11;:23;;;91640:11;;91552;;;;;;;;-1:-1:-1;91640:22:0;-1:-1:-1;91640:22:0;91632:53;;;;;-1:-1:-1;;;91632:53:0;;;;;;;;;;;;-1:-1:-1;;;91632:53:0;;;;;;;;;;;;;;;91696:13;91707:1;91696:10;:13::i;:::-;91720:15;91738:69;91791:4;:15;;;91738:48;91781:4;91738:38;91754:4;:21;;;91738:4;:11;;;:15;;:38;;;;:::i;:::-;:42;;:48::i;:::-;:52;;:69::i;:::-;91720:87;-1:-1:-1;91821:11:0;;91818:81;;91849:38;91867:10;91879:7;91849:17;:38::i;:::-;91912:11;;91909:151;;91954:11;;:24;;91970:7;91954:15;:24::i;:::-;91940:38;;91993:12;;:55;;-1:-1:-1;;;;;91993:12:0;92027:10;92040:7;91993:25;:55::i;:::-;92104:21;;;;92088:11;;:48;;92131:4;;92088:38;;:15;:38::i;:48::-;92070:15;;;:66;92149:5;;:31;;;-1:-1:-1;;;92149:31:0;;92160:10;92149:31;;;;;;;;;;;;-1:-1:-1;;;;;92149:5:0;;;;:10;;:31;;;;;:5;;:31;;;;;;;;:5;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;92196:32:0;;;;;;;;92217:1;;-1:-1:-1;92205:10:0;;-1:-1:-1;92196:32:0;;;;;;;;;91471:765;;;;:::o;80887:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;80887:26:0;;;;-1:-1:-1;80887:26:0;;;;;;;:::o;85925:768::-;85999:7;86019:21;86043:8;86052:4;86043:14;;;;;;;;;;;;;;;;86092;;;:8;:14;;;;;;-1:-1:-1;;;;;86092:21:0;;;;;;;;;;;86043:14;;;;;;;;86151:21;;;;86202:12;;:37;;-1:-1:-1;;;86202:37:0;;86233:4;86202:37;;;;;;86043:14;;-1:-1:-1;86092:21:0;;86151;;86043:14;;86202:12;;;:22;;:37;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;86202:37:0;86269:20;;;;86202:37;;-1:-1:-1;86254:12:0;:35;:52;;;;-1:-1:-1;86293:13:0;;;86254:52;86250:354;;;86323:18;86344:49;86358:4;:20;;;86380:12;86344:13;:49::i;:::-;86323:70;;86408:19;86430:71;86485:15;;86430:50;86464:4;:15;;;86430:29;86445:13;;86430:10;:14;;:29;;;;:::i;:::-;:33;;:50::i;:71::-;86408:93;-1:-1:-1;86535:57:0;86556:35;86582:8;86556:21;86408:93;86572:4;86556:15;:21::i;:35::-;86535:16;;:20;:57::i;:::-;86516:76;;86250:354;;;86621:64;86669:4;:15;;;86621:43;86659:4;86621:33;86637:16;86621:4;:11;;;:15;;:33;;;;:::i;:64::-;86614:71;;;;;;85925:768;;;;;:::o;93935:441::-;81775:9;;94037:10;;-1:-1:-1;;;;;81775:9:0;81788:10;81775:23;81767:72;;;;-1:-1:-1;;;81767:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;94067:23:0;::::1;94085:4;94067:23;;94059:49;;;::::0;;-1:-1:-1;;;94059:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;94059:49:0;;;;;;;;;;;;;::::1;;94119:24;94153:6;-1:-1:-1::0;;;;;94146:24:0::1;;94179:4;94146:39;;;;;;;;;;;;;-1:-1:-1::0;;;;;94146:39:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;94146:39:0;;-1:-1:-1;94199:26:0;;::::1;94196:172;;;94255:6;-1:-1:-1::0;;;;;94248:23:0::1;;94272:3;94277:16;94248:46;;;;;;;;;;;;;-1:-1:-1::0;;;;;94248:46:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;94248:46:0;;-1:-1:-1;94196:172:0::1;;;94338:6;-1:-1:-1::0;;;;;94331:23:0::1;;94355:3;94360:7;94331:37;;;;;;;;;;;;;-1:-1:-1::0;;;;;94331:37:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;94331:37:0;;-1:-1:-1;94196:172:0::1;81850:1;93935:441:::0;;;;;:::o;81130:34::-;;;;:::o;93355:302::-;81775:9;;-1:-1:-1;;;;;81775:9:0;81788:10;81775:23;81767:72;;;;-1:-1:-1;;;81767:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93468:5:::1;::::0;:30:::1;::::0;;-1:-1:-1;;;93468:30:0;;93492:4:::1;93468:30;::::0;::::1;::::0;;;93449:16:::1;::::0;-1:-1:-1;;;;;93468:5:0::1;::::0;:15:::1;::::0;:30;;;;;::::1;::::0;;;;;;;;:5;:30;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;93468:30:0;;-1:-1:-1;93513:18:0;;::::1;93509:141;;;93548:5;::::0;:29:::1;::::0;;-1:-1:-1;;;93548:29:0;;-1:-1:-1;;;;;93548:29:0;;::::1;;::::0;::::1;::::0;;;;;;;;;:5;;;::::1;::::0;:14:::1;::::0;:29;;;;;::::1;::::0;;;;;;;;:5:::1;::::0;:29;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;93509:141:0::1;::::0;-1:-1:-1;93509:141:0::1;;93610:5;::::0;:28:::1;::::0;;-1:-1:-1;;;93610:28:0;;-1:-1:-1;;;;;93610:28:0;;::::1;;::::0;::::1;::::0;;;;;;;;;:5;;;::::1;::::0;:14:::1;::::0;:28;;;;;::::1;::::0;;;;;;;;:5:::1;::::0;:28;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;93509:141:0::1;81850:1;93355:302:::0;;:::o;84925:102::-;30055:12;:10;:12::i;:::-;30045:6;;-1:-1:-1;;;;;30045:6:0;;;:22;;;30037:67;;;;;-1:-1:-1;;;30037:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;30037:67:0;;;;;;;;;;;;;;;84999:8:::1;:20:::0;;-1:-1:-1;;;;;;84999:20:0::1;-1:-1:-1::0;;;;;84999:20:0;;;::::1;::::0;;;::::1;::::0;;84925:102::o;94705:274::-;81775:9;;-1:-1:-1;;;;;81775:9:0;81788:10;81775:23;81767:72;;;;-1:-1:-1;;;81767:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;94791:25:0;::::1;94783:95;;;;-1:-1:-1::0;;;94783:95:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94914:9;::::0;94894:43:::1;::::0;-1:-1:-1;;;;;94894:43:0;;::::1;::::0;94914:9:::1;::::0;94894:43:::1;::::0;94914:9:::1;::::0;94894:43:::1;94948:9;:23:::0;;-1:-1:-1;;;;;;94948:23:0::1;-1:-1:-1::0;;;;;94948:23:0;;;::::1;::::0;;;::::1;::::0;;94705:274::o;90171:1248::-;90228:21;90252:8;90261:1;90252:11;;;;;;;;;;;;;;;;90310:10;90298:23;;:11;:23;;;:11;:23;;90252:11;;;;;;-1:-1:-1;90298:23:0;90332:13;;:10;:13::i;:::-;90360:11;;:15;90356:238;;90392:15;90410:69;90463:4;:15;;;90410:48;90453:4;90410:38;90426:4;:21;;;90410:4;:11;;;:15;;:38;;;;:::i;:69::-;90392:87;-1:-1:-1;90497:11:0;;90494:89;;90529:38;90547:10;90559:7;90529:17;:38::i;:::-;90356:238;;90607:11;;90604:640;;90635:19;90657:47;90698:5;90657:36;90669:5;;;;;;;;;-1:-1:-1;;;;;90669:5:0;-1:-1:-1;;;;;90669:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;90669:23:0;90657:7;;:36;;:11;:36::i;:47::-;90635:69;-1:-1:-1;90729:24:0;:7;90635:69;90729:11;:24::i;:::-;90774:17;;;;90719:34;;-1:-1:-1;90774:17:0;;:21;90770:463;;90849:17;;;;90816:18;;90837:41;;90872:5;;90837:30;;:7;;90849:17;;90837:11;:30::i;:41::-;90925:7;;90816:62;;-1:-1:-1;90899:67:0;;-1:-1:-1;;;;;90925:7:0;;;90934:31;;90961:3;;90934:22;;90816:62;;-1:-1:-1;;;90949:6:0;;;;90934:14;:22::i;:31::-;90899:12;;-1:-1:-1;;;;;90899:12:0;;:67;:25;:67::i;:::-;91011:12;;91044:6;;90985:76;;-1:-1:-1;;;;;91011:12:0;;91025:35;;91056:3;;91025:26;;:10;;91044:6;-1:-1:-1;;;91044:6:0;;;;;91040:10;;91025:26;:14;:26::i;90985:76::-;91094:11;;:40;;91123:10;;91094:24;;91110:7;91094:15;:24::i;:40::-;91080:54;;-1:-1:-1;90770:463:0;;;91189:11;;:24;;91205:7;91189:15;:24::i;:::-;91175:38;;90770:463;90604:640;;91288:21;;;;91272:11;;:48;;91315:4;;91272:38;;:15;:38::i;:48::-;91254:15;;;:66;91333:5;;:31;;;-1:-1:-1;;;91333:31:0;;91344:10;91333:31;;;;;;;;;;;;-1:-1:-1;;;;;91333:5:0;;;;:10;;:31;;;;;:5;;:31;;;;;;;;:5;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;91380:31:0;;;;;;;;91400:1;;-1:-1:-1;91388:10:0;;-1:-1:-1;91380:31:0;;;;;;;;;90171:1248;;;:::o;89314:808::-;89392:9;89383:50;;;;;-1:-1:-1;;;89383:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;89446:21;89470:8;89479:4;89470:14;;;;;;;;;;;;;;;;89519;;;:8;:14;;;;;;89534:10;89519:26;;;;;;;89564:11;;89470:14;;;;;;;;-1:-1:-1;89564:22:0;-1:-1:-1;89564:22:0;89556:53;;;;;-1:-1:-1;;;89556:53:0;;;;;;;;;;;;-1:-1:-1;;;89556:53:0;;;;;;;;;;;;;;;89620:16;89631:4;89620:10;:16::i;:::-;89647:15;89665:69;89718:4;:15;;;89665:48;89708:4;89665:38;89681:4;:21;;;89665:4;:11;;;:15;;:38;;;;:::i;:69::-;89647:87;-1:-1:-1;89748:11:0;;89745:81;;89776:38;89794:10;89806:7;89776:17;:38::i;:::-;89839:11;;89836:151;;89881:11;;:24;;89897:7;89881:15;:24::i;:::-;89867:38;;89920:12;;:55;;-1:-1:-1;;;;;89920:12:0;89954:10;89967:7;89920:25;:55::i;:::-;90031:21;;;;90015:11;;:48;;90058:4;;90015:38;;:15;:38::i;:48::-;89997:15;;;:66;90079:35;;;;;;;;90100:4;;90088:10;;90079:35;;;;;;;;;89314:808;;;;;:::o;85150:491::-;85215:8;;-1:-1:-1;;;;;85215:8:0;85199:64;;;;;-1:-1:-1;;;85199:64:0;;;;;;;;;;;;-1:-1:-1;;;85199:64:0;;;;;;;;;;;;;;;85274:21;85298:8;85307:4;85298:14;;;;;;;;;;;;;;;;;;;;;;;85340:12;;85377:32;;;-1:-1:-1;;;85377:32:0;;85403:4;85377:32;;;;;;85298:14;;-1:-1:-1;;;;;;85340:12:0;;;;85298:14;85340:12;;85377:17;;:32;;;;;85298:14;85377:32;;;;;;85340:12;85377:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;85377:32:0;85448:8;;85377:32;;-1:-1:-1;85420:43:0;;-1:-1:-1;;;;;85420:19:0;;;;85448:8;85377:32;85420:19;:43::i;:::-;85494:8;;:25;;;-1:-1:-1;;;85494:25:0;;-1:-1:-1;;;;;85494:25:0;;;;;;;;;85474:17;;85494:8;;;;;:16;;:25;;;;;;;;;;;;;;;85474:17;85494:8;:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;85494:25:0;85545:35;;;-1:-1:-1;;;85545:35:0;;85574:4;85545:35;;;;;;85494:25;;-1:-1:-1;;;;;;85545:20:0;;;;;:35;;;;;85494:25;;85545:35;;;;;;;;:20;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;85545:35:0;85538:42;;85530:67;;;;;-1:-1:-1;;;85530:67:0;;;;;;;;;;;;-1:-1:-1;;;85530:67:0;;;;;;;;;;;;;;;85608:25;;-1:-1:-1;;;;;;85608:25:0;-1:-1:-1;;;;;85608:25:0;;;;;;;;-1:-1:-1;;;85150:491:0:o;81222:25::-;;;;:::o;87034:905::-;87086:21;87110:8;87119:4;87110:14;;;;;;;;;;;;;;;;;;87086:38;;87155:4;:20;;;87139:12;:36;87135:75;;87192:7;;;87135:75;87239:12;;:37;;;-1:-1:-1;;;87239:37:0;;87270:4;87239:37;;;;;;87220:16;;-1:-1:-1;;;;;87239:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;87239:37:0;;-1:-1:-1;87291:13:0;87287:102;;-1:-1:-1;87344:12:0;87321:20;;;;:35;87371:7;;87287:102;87399:18;87420:49;87434:4;:20;;;87456:12;87420:13;:49::i;:::-;87399:70;;87480:19;87502:71;87557:15;;87502:50;87536:4;:15;;;87502:29;87517:13;;87502:10;:14;;:29;;;;:::i;:71::-;87594:5;;87605:7;;87480:93;;-1:-1:-1;;;;;;87594:5:0;;;;:10;;87605:7;;;87614:40;;87650:3;;87614:31;;-1:-1:-1;;;87638:6:0;;;;87614:19;87480:93;87630:2;87614:15;:19::i;:40::-;87594:61;;;;;;;;;;;;;-1:-1:-1;;;;;87594:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;87666:5:0;;87677:12;;87719:6;;-1:-1:-1;;;;;87666:5:0;;;;-1:-1:-1;87666:10:0;;-1:-1:-1;87677:12:0;;;87691:44;;87731:3;;87691:35;;87719:6;-1:-1:-1;;;87719:6:0;;;;;87715:10;;87691:35;:19;:11;87707:2;87691:15;:19::i;:44::-;87666:70;;;;;;;;;;;;;-1:-1:-1;;;;;87666:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;87749:5:0;;87768;;87749:39;;;-1:-1:-1;;;87749:39:0;;-1:-1:-1;;;;;87768:5:0;;;87749:39;;;;;;;;;;;;:5;;;;;-1:-1:-1;87749:10:0;;-1:-1:-1;87749:39:0;;;;;:5;;:39;;;;;;;:5;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87823:62;87849:35;87875:8;87849:21;87865:4;87849:11;:15;;:21;;;;:::i;:35::-;87823:21;;;;;:25;:62::i;:::-;87799:21;;;:86;-1:-1:-1;;87919:12:0;87896:20;;;;:35;;;;-1:-1:-1;87034:905:0;;:::o;92307:356::-;92366:21;92390:8;92399:4;92390:14;;;;;;;;;;;;;;;;92439;;;:8;:14;;;;;;92454:10;92439:26;;;;;;;;92523:11;;92390:14;;;;;;;92476:12;;92390:14;;-1:-1:-1;92476:59:0;;-1:-1:-1;;;;;92476:12:0;;;;;92454:10;92476:25;:59::i;:::-;92587:11;;92551:48;;;;;;;92581:4;;92569:10;;92551:48;;;;;;;;;92624:1;92610:15;;;92636;;;;:19;-1:-1:-1;;92307:356:0:o;94460:85::-;94528:9;;-1:-1:-1;;;;;94528:9:0;94460:85;:::o;82673:123::-;30055:12;:10;:12::i;:::-;30045:6;;-1:-1:-1;;;;;30045:6:0;;;:22;;;30037:67;;;;;-1:-1:-1;;;30037:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;30037:67:0;;;;;;;;;;;;;;;82753:16:::1;:35:::0;82673:123::o;86776:180::-;86838:8;:15;86821:14;86864:85;86892:6;86886:3;:12;86864:85;;;86922:15;86933:3;86922:10;:15::i;:::-;86900:5;;86864:85;;;;86776:180;:::o;95415:259::-;95506:12;;-1:-1:-1;;;;;95506:12:0;95492:10;:26;95484:68;;;;;-1:-1:-1;;;95484:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;95571:27:0;;95563:64;;;;;-1:-1:-1;;;95563:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;95638:12;:28;;-1:-1:-1;;;;;;95638:28:0;-1:-1:-1;;;;;95638:28:0;;;;;;;;;;95415:259::o;80464:20::-;;;-1:-1:-1;;;80464:20:0;;;;;:::o;80523:27::-;;;-1:-1:-1;;;;;80523:27:0;;:::o;30475:140::-;30055:12;:10;:12::i;:::-;30045:6;;-1:-1:-1;;;;;30045:6:0;;;:22;;;30037:67;;;;;-1:-1:-1;;;30037:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;30037:67:0;;;;;;;;;;;;;;;30574:1:::1;30558:6:::0;;30537:40:::1;::::0;-1:-1:-1;;;;;30558:6:0;;::::1;::::0;30537:40:::1;::::0;30574:1;;30537:40:::1;30605:1;30588:19:::0;;-1:-1:-1;;;;;;30588:19:0::1;::::0;;30475:140::o;80822:29::-;;;-1:-1:-1;;;;;80822:29:0;;:::o;83068:691::-;30055:12;:10;:12::i;:::-;30045:6;;-1:-1:-1;;;;;30045:6:0;;;:22;;;30037:67;;;;;-1:-1:-1;;;30037:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;30037:67:0;;;;;;;;;;;;;;;83212:5:::1;83195:13;:22;;;;83187:72;;;;-1:-1:-1::0;;;83187:72:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83274:11;83270:61;;;83302:17;:15;:17::i;:::-;83341:23;83382:10;;83367:12;:25;:53;;83410:10;;83367:53;;;83395:12;83367:53;83449:15;::::0;83341:79;;-1:-1:-1;83449:32:0::1;::::0;83469:11;83449:19:::1;:32::i;:::-;83431:15;:50:::0;83506:214:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;83506:214:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;83506:214:0;;;;;;::::1;::::0;;::::1;::::0;;;;;;83492:8:::1;:229:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;83492:229:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;83492:229:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;83732:19:::1;:17;:19::i;80380:21::-:0;;;-1:-1:-1;;;;;80380:21:0;;:::o;80682:35::-;;;;:::o;29833:79::-;29871:7;29898:6;-1:-1:-1;;;;;29898:6:0;29833:79;:::o;85717:143::-;85835:16;;85789:7;;85816:36;;:14;:3;85824:5;85816:7;:14::i;:36::-;85809:43;85717:143;-1:-1:-1;;;85717:143:0:o;80969:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;80599:28::-;;;;:::o;95035:139::-;95116:7;;-1:-1:-1;;;;;95116:7:0;95102:10;:21;95094:43;;;;;-1:-1:-1;;;95094:43:0;;;;;;;;;;;;-1:-1:-1;;;95094:43:0;;;;;;;;;;;;;;;95148:7;:18;;-1:-1:-1;;;;;;95148:18:0;-1:-1:-1;;;;;95148:18:0;;;;;;;;;;95035:139::o;80435:22::-;;;-1:-1:-1;;;;;80435:22:0;;:::o;83856:532::-;30055:12;:10;:12::i;:::-;30045:6;;-1:-1:-1;;;;;30045:6:0;;;:22;;;30037:67;;;;;-1:-1:-1;;;30037:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;30037:67:0;;;;;;;;;;;;;;;83976:11:::1;83972:61;;;84004:17;:15;:17::i;:::-;84061:63;84112:11;84061:46;84081:8;84090:4;84081:14;;;;;;;;;;;;;;;;;;:25;;;84061:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;84043:15;:81;;;;84135:22;84160:8;84169:4;84160:14;;;;;;;;;;;;;;;;;;:25;;;84135:50;;84224:11;84196:8;84205:4;84196:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;84276:13;84246:8;84255:4;84246:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;84322:11;84304:14;:29;84300:81;;84350:19;:17;:19::i;95205:202::-:0;95280:7;;-1:-1:-1;;;;;95280:7:0;95266:10;:21;95258:58;;;;;-1:-1:-1;;;95258:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;95345:3;95335:7;:13;;;95327:45;;;;;-1:-1:-1;;;95327:45:0;;;;;;;;;;;;-1:-1:-1;;;95327:45:0;;;;;;;;;;;;;;;95383:6;:16;;;;;;-1:-1:-1;;;95383:16:0;-1:-1:-1;;;;95383:16:0;;;;;;;;;95205:202::o;88009:1253::-;88086:9;88077:47;;;;;-1:-1:-1;;;88077:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;88137:21;88161:8;88170:4;88161:14;;;;;;;;;;;;;;;;88210;;;:8;:14;;;;;;88225:10;88210:26;;;;;;;88161:14;;;;;;;;-1:-1:-1;88247:16:0;88219:4;88247:10;:16::i;:::-;88278:11;;:15;88274:238;;88310:15;88328:69;88381:4;:15;;;88328:48;88371:4;88328:38;88344:4;:21;;;88328:4;:11;;;:15;;:38;;;;:::i;:69::-;88310:87;-1:-1:-1;88415:11:0;;88412:89;;88447:38;88465:10;88477:7;88447:17;:38::i;:::-;88274:238;;88526:11;;88522:606;;88554:12;;:74;;-1:-1:-1;;;;;88554:12:0;88592:10;88613:4;88620:7;88554:29;:74::i;:::-;88649:17;;;;;;:21;88645:472;;88737:17;;;;88704:18;;88725:41;;88760:5;;88725:30;;:7;;88737:17;;88725:11;:30::i;:41::-;88813:7;;88704:62;;-1:-1:-1;88787:67:0;;-1:-1:-1;;;;;88813:7:0;;;88822:31;;88849:3;;88822:22;;88704:62;;-1:-1:-1;;;88837:6:0;;;;88822:14;:22::i;:31::-;88787:12;;-1:-1:-1;;;;;88787:12:0;;:67;:25;:67::i;:::-;88899:12;;88932:6;;88873:76;;-1:-1:-1;;;;;88899:12:0;;88913:35;;88944:3;;88913:26;;:10;;88932:6;-1:-1:-1;;;88932:6:0;;;;;88928:10;;88913:26;:14;:26::i;88873:76::-;88982:11;;:40;;89011:10;;88982:24;;88998:7;88982:15;:24::i;:40::-;88968:54;;-1:-1:-1;88645:472:0;;;89077:11;;:24;;89093:7;89077:15;:24::i;:::-;89063:38;;88645:472;89172:21;;;;89156:11;;:48;;89199:4;;89156:38;;:15;:38::i;:48::-;89138:15;;;:66;89220:34;;;;;;;;89240:4;;89228:10;;89220:34;;;;;;;;;88009:1253;;;;:::o;30770:109::-;30055:12;:10;:12::i;:::-;30045:6;;-1:-1:-1;;;;;30045:6:0;;;:22;;;30037:67;;;;;-1:-1:-1;;;30037:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;30037:67:0;;;;;;;;;;;;;;;30843:28:::1;30862:8;30843:18;:28::i;80325:23::-:0;;;-1:-1:-1;;;;;80325:23:0;;:::o;2297:471::-;2355:7;2600:6;2596:47;;-1:-1:-1;2630:1:0;2623:8;;2596:47;2667:5;;;2671:1;2667;:5;:1;2691:5;;;;;:10;2683:56;;;;-1:-1:-1;;;2683:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3244:132;3302:7;3329:39;3333:1;3336;3329:39;;;;;;;;;;;;;;;;;:3;:39::i;1373:136::-;1431:7;1458:43;1462:1;1465;1458:43;;;;;;;;;;;;;;;;;:3;:43::i;92779:122::-;92856:5;;:37;;;-1:-1:-1;;;92856:37:0;;-1:-1:-1;;;;;92856:37:0;;;;;;;;;;;;;;;:5;;;;;:23;;:37;;;;;:5;;:37;;;;;;;:5;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92779:122;;:::o;24439:211::-;24583:58;;;-1:-1:-1;;;;;24583:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24583:58:0;-1:-1:-1;;;24583:58:0;;;24556:86;;24576:5;;24556:19;:86::i;909:181::-;967:7;999:5;;;1023:6;;;;1015:46;;;;;-1:-1:-1;;;1015:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;28483:98;28563:10;28483:98;:::o;25175:670::-;25593:10;;;25592:62;;-1:-1:-1;25609:39:0;;;-1:-1:-1;;;25609:39:0;;25633:4;25609:39;;;;-1:-1:-1;;;;;25609:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25609:39:0;:44;25592:62;25570:166;;;;-1:-1:-1;;;25570:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25774:62;;;-1:-1:-1;;;;;25774:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25774:62:0;-1:-1:-1;;;25774:62:0;;;25747:90;;25767:5;;25747:19;:90::i;84396:453::-;84462:8;:15;84445:14;84536:1;84517:115;84545:6;84539:3;:12;84517:115;;;84584:36;84595:8;84604:3;84595:13;;;;;;;;;;;;;;;;;;:24;;;84584:6;:10;;:36;;;;:::i;:::-;84575:45;-1:-1:-1;84553:5:0;;84517:115;;;-1:-1:-1;84646:11:0;;84642:200;;84683:13;:6;84694:1;84683:10;:13::i;:::-;84674:22;;84729:55;84777:6;84729:43;84749:8;84758:1;84749:11;;;;;;;84729:55;84711:15;:73;;;;84824:6;84799:8;84808:1;84799:11;;;;;;;;;;;;;;;;;;:22;;:31;;;;84396:453;;:::o;24658:248::-;24829:68;;;-1:-1:-1;;;;;24829:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24829:68:0;-1:-1:-1;;;24829:68:0;;;24802:96;;24822:5;;24802:19;:96::i;:::-;24658:248;;;;:::o;30985:229::-;-1:-1:-1;;;;;31059:22:0;;31051:73;;;;-1:-1:-1;;;31051:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31161:6;;;31140:38;;-1:-1:-1;;;;;31140:38:0;;;;31161:6;;;31140:38;;;31189:6;:17;;-1:-1:-1;;;;;;31189:17:0;-1:-1:-1;;;;;31189:17:0;;;;;;;;;;30985:229::o;3872:312::-;3992:7;4027:12;4020:5;4012:28;;;;-1:-1:-1;;;4012:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4051:9;4067:1;4063;:5;;;;;;;3872:312;-1:-1:-1;;;;;3872:312:0:o;1812:226::-;1932:7;1968:12;1960:6;;;;1952:29;;;;-1:-1:-1;;;1952:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2004:5:0;;;1812:226::o;26974:774::-;27398:23;27424:69;27452:4;27424:69;;;;;;;;;;;;;;;;;27432:5;-1:-1:-1;;;;;27424:27:0;;;:69;;;;;:::i;:::-;27508:17;;27398:95;;-1:-1:-1;27508:21:0;27504:237;;27663:10;27652:30;;;;;;;;;;;;;;;-1:-1:-1;27652:30:0;27644:85;;;;-1:-1:-1;;;27644:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21360:230;21497:12;21529:53;21552:6;21560:4;21566:1;21569:12;21529:22;:53::i;:::-;21522:60;21360:230;-1:-1:-1;;;;21360:230:0:o;22848:1020::-;23021:12;23054:18;23065:6;23054:10;:18::i;:::-;23046:60;;;;;-1:-1:-1;;;23046:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23180:12;23194:23;23221:6;-1:-1:-1;;;;;23221:11:0;23240:8;23250:4;23221:34;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23221:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23179:76;;;;23270:7;23266:595;;;23301:10;-1:-1:-1;23294:17:0;;-1:-1:-1;23294:17:0;23266:595;23415:17;;:21;23411:439;;23678:10;23672:17;23739:15;23726:10;23722:2;23718:19;23711:44;23626:148;23814:20;;-1:-1:-1;;;23814:20:0;;;;;;;;;;;;;;;;;23821:12;;23814:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18223:641;18283:4;18764:20;;18594:66;18813:23;;;;;;:42;;-1:-1:-1;;18840:15:0;;;18805:51;-1:-1:-1;;18223:641:0:o

Swarm Source

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