Contract 0x24FCa8f651E9930Fe02F4F4592593523Df322AA0 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc11538ca48ea4d73be807cb73eb8b6f8315857a377b0fc6cdae5a67378493301Withdraw120455772021-10-24 8:49:301 hr 43 mins ago0x9c60ae63ed6dbed21114241d967cf090139dc464 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.00068944
0xe0342458abf26e20acf01e7c95f208ad44b1ac8c8958987ac85646b0cde9aa38Deposit120450742021-10-24 8:24:172 hrs 8 mins ago0x9c60ae63ed6dbed21114241d967cf090139dc464 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.001087185
0x9dea0b123e24c9851f66bb5a550c5734173e36d821d62bb6e3a86fc165940dbaDeposit120270082021-10-23 17:16:1517 hrs 17 mins ago0x3fa9f1185bd0b4f97d711d8c63aa855cef041565 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000758035
0xa43d9c16da6e3a1e83ed59797fbe30d10a5bb3cfbdad40dc7abaeb83d5d9f33bDeposit120270002021-10-23 17:15:5117 hrs 17 mins ago0x3fa9f1185bd0b4f97d711d8c63aa855cef041565 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000758065
0x6188eb677c429f5db43d174ec32ee245ad409357251734e7a243d79bb7d3e27eDeposit120251192021-10-23 15:40:4518 hrs 52 mins ago0xcaecbb65e67f76f16053fe45c13eda2127b381b1 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000833065
0xa91631cda5ae986ae8e7a561d545b47385431c90ce0ae7912d3a52bf4b22081cWithdraw120203622021-10-23 11:41:3522 hrs 51 mins ago0x065736017795bceccf65475375614aa645c3d5ef IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000793245
0x6d31344110d554924970b9d94fb8035714cb76d0752619b8a03d4c24a9284014Withdraw120203532021-10-23 11:41:0822 hrs 52 mins ago0x065736017795bceccf65475375614aa645c3d5ef IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000718185
0xea0145ed283c27a15aa36a508911d51a1f60542aa772318c5cf023e2f7568084Withdraw120203092021-10-23 11:38:5522 hrs 54 mins ago0x065736017795bceccf65475375614aa645c3d5ef IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000772245
0xbec3afd21ab5852242d86cc04d0558dfe904ca2332cab7426a212e38e6e8f909Withdraw120202892021-10-23 11:37:5522 hrs 55 mins ago0x065736017795bceccf65475375614aa645c3d5ef IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000847185
0x1cc0c5c9e63c3574e7bc7864f9365ca8f5a98f5d7b026ba86642b6b146eeb1ecWithdraw120202762021-10-23 11:37:1622 hrs 56 mins ago0x065736017795bceccf65475375614aa645c3d5ef IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000772245
0xa2efb73718d689913a1e975682598889d6be118985e1c6235f551b009357ffd9Withdraw120202632021-10-23 11:36:3722 hrs 56 mins ago0x065736017795bceccf65475375614aa645c3d5ef IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000772125
0x0e102721cffd9c9812c522dbfbfed6ed27557b6b22c3f41e30082f433c5587b5Withdraw120202492021-10-23 11:35:5522 hrs 57 mins ago0x065736017795bceccf65475375614aa645c3d5ef IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000772185
0xc1e0d8b0e689418dbf220e0491cd0b9c917295e3035c01be26d6579fc8735afdDeposit120190162021-10-23 10:34:1223 hrs 59 mins ago0xe442ed9da30bbcbcaea3ed27e781168ddb329b86 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.00101383
0x471eb05fa02227e95df6a45c41331bf2b1fccc1ecd57720a6fce213df0c40a31Withdraw120189812021-10-23 10:32:261 day ago0xe442ed9da30bbcbcaea3ed27e781168ddb329b86 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000793055
0x698ac2234625e7d56067f00d277bc1ea0d06646b4734fa73c7805e5cd0c03969Deposit120177242021-10-23 9:29:201 day 1 hr ago0x2d0f0586114db523aea7b56e6c291ef99ad8c81c IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.00102501
0xc110951693f1216194b1299f8c2a3855b1f0f14f98bfb99d95719a3d6da1d8afDeposit120177032021-10-23 9:28:171 day 1 hr ago0x2d0f0586114db523aea7b56e6c291ef99ad8c81c IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000758035
0xfc4a98104a7ea4c4de55dae4c3e7dbfaa3b2a6bdcbe976314ab759d2093dd684Deposit119941202021-10-22 13:37:201 day 20 hrs ago0x3fa9f1185bd0b4f97d711d8c63aa855cef041565 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000758035
0x79d5d36497093245d0f6576af82ff81288a4ebbd6a0039ddbed763b08f201d09Deposit119941092021-10-22 13:36:471 day 20 hrs ago0x3fa9f1185bd0b4f97d711d8c63aa855cef041565 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000758065
0x00fde0561a4a6669bc35074cba21fa8606c43cfe3d45aa5f7b4f478a1014703dDeposit119849272021-10-22 5:47:462 days 4 hrs ago0xe442ed9da30bbcbcaea3ed27e781168ddb329b86 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000758035
0xbba11481fd152474ff82ce5cefe3f73f3dfe1c98bc533efb5b5ce80671c8e9bdDeposit119777242021-10-21 23:28:282 days 11 hrs ago0x8f0053269d1ac7dcb6385fb73b04fc48289940fd IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.00101383
0x0d7a5aad8f906dea2d349fd05072188f8f5f0aadd3b9386648654f8e5b33da55Deposit119668602021-10-21 14:19:082 days 20 hrs ago0x96cc7cd6de2f739a18d9914015a6eabbd6cdb6e3 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.001087125
0x48b488fb2b6b811cdfc9607f951b71fbddf8819587db276b1042b4afbb328f7aDeposit119668062021-10-21 14:15:552 days 20 hrs ago0x96cc7cd6de2f739a18d9914015a6eabbd6cdb6e3 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.001012125
0x76a9fccb63379916edb673060ae157d3cd4a82e0f008d525f1a84015406333e2Deposit119520432021-10-21 1:37:463 days 8 hrs ago0x3fa9f1185bd0b4f97d711d8c63aa855cef041565 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.001050705
0x4980dc3bd4f2d70c57670bdb78f9a9eda064c1eee9011f1416ed6b35d3d6da66Deposit119519052021-10-21 1:30:473 days 9 hrs ago0x3fa9f1185bd0b4f97d711d8c63aa855cef041565 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.000833035
0x6440a26d168787887c9edf9f2264fa65cfe0766464558c3a37310a46184f1c89Deposit119414822021-10-20 16:44:023 days 17 hrs ago0x3fa9f1185bd0b4f97d711d8c63aa855cef041565 IN  0x24fca8f651e9930fe02f4f4592593523df322aa00 BNB0.001012245
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MasterChef

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-10-08
*/

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



pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @salmondefi/core/contracts/libs/IBEP20.sol

// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.4.0;

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

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

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

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

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

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

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

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

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

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

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

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

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



pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @salmondefi/core/contracts/libs/SafeBEP20.sol



pragma solidity ^0.6.0;




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

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

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

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

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

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

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

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

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



pragma solidity >=0.6.0 <0.8.0;

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

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

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



pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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



pragma solidity >=0.6.0 <0.8.0;

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

// File: @salmondefi/core/contracts/libs/BEP20.sol



pragma solidity >=0.4.0;






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

    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity >=0.6.2;

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

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

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

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

pragma solidity >=0.6.2;


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

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

// File: @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-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: @salmondefi/core/contracts/SalmonDefiToken.sol



pragma solidity 0.6.12;





// SalmonDefiToken with Governance.
contract SalmonDefiToken is BEP20 {
    // Transfer tax rate in basis points. (default 1%)
    uint16 public transferTaxRate = 100;
    // Burn rate % of transfer tax. (default 20% x 1% = 0.2% of total amount).
    uint16 public burnRate = 20;
    // Max transfer tax rate: 10%.
    uint16 public constant MAXIMUM_TRANSFER_TAX_RATE = 100;
    // Burn address
    address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;

    // Max transfer amount rate in basis points. (default is 2% of total supply)
    uint16 public maxTransferAmountRate = 20;
    // 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 Sakes)
    uint256 public minAmountToLiquify = 500 ether;
    // The swap router, modifiable. Will be changed to SalmonDefi's router when our own AMM release
    IUniswapV2Router02 public salmonDefiRouter;
    // The trading pair
    address public salmonDefiPair;
    // In swap and liquify
    bool private _inSwapAndLiquify;

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

    // Events
    event OperatorTransferred(address indexed previousOperator, address indexed newOperator);
    event TransferTaxRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate);
    event BurnRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate);
    event MaxTransferAmountRateUpdated(address indexed operator, uint256 previousRate, uint256 newRate);
    event SwapAndLiquifyEnabledUpdated(address indexed operator, bool enabled);
    event MinAmountToLiquifyUpdated(address indexed operator, uint256 previousAmount, uint256 newAmount);
    event SalmonDefiRouterUpdated(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(), "SAKE::antiWhale: Transfer amount exceeds the maxTransferAmount");
            }
        }
        _;
    }

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

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

    /**
     * @notice Constructs the SalmonDefiToken contract.
     */
    constructor() public BEP20("SalmonDefi Token", "SAKE") {
        _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 owner (MasterChef).
    function mint(address _to, uint256 _amount) public onlyOwner {
        _mint(_to, _amount);
        _moveDelegates(address(0), _delegates[_to], _amount);
    }

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

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

            // default 95% of transfer sent to recipient
            uint256 sendAmount = amount.sub(taxAmount);
            require(amount == sendAmount + taxAmount, "SAKE::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 gentleman sake defi pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = salmonDefiRouter.WETH();

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

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

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

    /**
     * @dev Update the burn rate.
     * Can only be called by the current operator.
     */
    function updateBurnRate(uint16 _burnRate) public onlyOperator {
        require(_burnRate <= 100, "SAKE::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, "SAKE::updateMaxTransferAmountRate: Max transfer amount rate must not exceed the maximum rate.");
        emit MaxTransferAmountRateUpdated(msg.sender, maxTransferAmountRate, _maxTransferAmountRate);
        maxTransferAmountRate = _maxTransferAmountRate;
    }

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

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

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

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

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

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

        emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
    }

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

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

// File: @salmondefi/core/contracts/libs/IReferral.sol



pragma solidity 0.6.12;

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

    /**
     * @dev Record referral commission.
     */
    function recordReferralCommission(address referrer, uint256 commission) external;
    
    /**
     * @dev Get the referrer address that referred the user.
     */
    function getReferrer(address user) external view returns (address);
}

// File: contracts/MasterChef.sol

pragma solidity 0.6.12;








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

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

    // The SAKE TOKEN!
    SalmonDefiToken public sake;
    // Dev address.
    address public devAddress;
    // SAKE tokens created per block.
    uint256 public sakePerBlock;
    // Bonus muliplier for early sake makers.
    uint256 public constant BONUS_MULTIPLIER = 1;
    // Deposit Fee address
    address public feeAddress;

    // MAX TOKEN SUPPLY
    uint256 public maxSupply;

    // MAX POOL FEE
    uint256 public constant MAX_POOL_FEE = 400;

    // Max harvest interval: 14 days.
    uint256 public constant MAXIMUM_HARVEST_INTERVAL = 5 days;

    // Total locked up rewards
    uint256 public totalLockedUpRewards;

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

    IReferral public referral;
    // Referral commission rate in basis points.
    uint16 public referralCommissionRate = 200;
    // Max referral commission rate: 5%.
    uint16 public constant MAXIMUM_REFERRAL_COMMISSION_RATE = 500;

 
    event SetReferralAddress(address indexed user, IReferral indexed newAddress);
    event ReferralCommissionPaid(address indexed user, address indexed referrer, uint256 commissionAmount);

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event SetFeeAddress(address indexed user, address indexed newAddress);
    event SetDevAddress(address indexed user, address indexed newAddress);
    event UpdateEmissionRate(address indexed user, uint256 indexed sakePerBlock);
    event RewardLockedUp(address indexed user, uint256 indexed pid, uint256 amountLockedUp);
    event StartBlockChanged(uint256 oldStartBlock, uint256 newStartBlock);

    constructor(
        SalmonDefiToken _sake,
        address _devAddress,
        address _feeAddress,
        uint256 _sakePerBlock,
        uint256 _startBlock,
        uint256 _maxSupply
    ) public {
        sake = _sake;
        devAddress = _devAddress;
        feeAddress = _feeAddress;
        sakePerBlock = _sakePerBlock;
        startBlock = _startBlock;
        maxSupply = _maxSupply;
    }

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

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

    // Add a new lp to the pool. Can only be called by the owner.
    function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, uint256 _minHarvestInterval, uint256 _maxHarvestInterval, bool _withUpdate) public onlyOwner nonDuplicated(_lpToken) {
        require(_depositFeeBP <= MAX_POOL_FEE, "add: invalid deposit fee basis points");
        require(_minHarvestInterval <= _maxHarvestInterval, "add: invalid harvest interval");
        require(_minHarvestInterval <= MAXIMUM_HARVEST_INTERVAL, "add: invalid harvest interval");
        require(_maxHarvestInterval <= MAXIMUM_HARVEST_INTERVAL, "add: invalid harvest interval");

        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolExistence[_lpToken] = true;
        poolInfo.push(PoolInfo({
        lpToken : _lpToken,
        allocPoint : _allocPoint,
        lastRewardBlock : lastRewardBlock,
        accSakePerShare : 0,
        depositFeeBP : _depositFeeBP,
        minHarvestInterval : _minHarvestInterval,
        maxHarvestInterval : _maxHarvestInterval
        }));
    }


     // Update startBlock by the owner (added this to ensure that dev can delay startBlock due to the congestion in BSC). Only used if required. 
    function setStartBlock(uint256 _startBlock) public onlyOwner {   
        require(startBlock > block.number, 'setStartBlock: farm already started');
        require(_startBlock > block.number, 'setStartBlock: new start time must be future time');

        uint256 _previousStartBlock = startBlock;

        startBlock = _startBlock;
        for (uint i=0; i < poolInfo.length; i++) {
            poolInfo[i].lastRewardBlock = startBlock;
            emit StartBlockChanged(_previousStartBlock, _startBlock);
        }
    }

    // Update the given pool's SAKE allocation point and deposit fee. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP, uint256 _minHarvestInterval, uint256 _maxHarvestInterval, bool _withUpdate) public onlyOwner {
        require(_depositFeeBP <= MAX_POOL_FEE, "set: invalid deposit fee basis points");
        require(_minHarvestInterval <= _maxHarvestInterval, "add: invalid harvest interval");
        require(_minHarvestInterval <= MAXIMUM_HARVEST_INTERVAL, "add: invalid harvest interval");
        require(_maxHarvestInterval <= MAXIMUM_HARVEST_INTERVAL, "add: invalid harvest interval");

        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
        poolInfo[_pid].minHarvestInterval = _minHarvestInterval;
        poolInfo[_pid].maxHarvestInterval = _maxHarvestInterval;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        if (sake.totalSupply() + totalLockedUpRewards >= maxSupply) return 0;
        return _to.sub(_from).mul(BONUS_MULTIPLIER);
    }

    // View function to see pending SAKEs on frontend.
    function pendingSake(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accSakePerShare = pool.accSakePerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 sakeReward = multiplier.mul(sakePerBlock).mul(pool.allocPoint).div(totalAllocPoint);
            accSakePerShare = accSakePerShare.add(sakeReward.mul(1e18).div(lpSupply));
        }

        uint256 pending = user.amount.mul(accSakePerShare).div(1e18).sub(user.rewardDebt);
        return pending.add(user.rewardLockedUp);
    }


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

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

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 sakeReward = multiplier.mul(sakePerBlock).mul(pool.allocPoint).div(totalAllocPoint);
        sake.mint(devAddress, sakeReward.div(10));
        sake.mint(address(this), sakeReward);
        pool.accSakePerShare = pool.accSakePerShare.add(sakeReward.mul(1e18).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for SAKE allocation.
    function deposit(uint256 _pid, uint256 _amount, address _referrer) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        if (pool.minHarvestInterval != pool.maxHarvestInterval){
            require(msg.sender == tx.origin && !isContract(address(msg.sender)), "no indirect calls");
        }

        updatePool(_pid);
        payOrLockupPendingSake(_pid);

        if (_amount > 0 && address(referral) != address(0) && _referrer != address(0) && _referrer != msg.sender) {
            referral.recordReferral(msg.sender, _referrer);
        }

        if (_amount > 0) {
            uint256 _balanceBefore = pool.lpToken.balanceOf(address(this));
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            // for token that have transfer tax
            _amount = pool.lpToken.balanceOf(address(this)).sub(_balanceBefore);
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accSakePerShare).div(1e18);
        emit Deposit(msg.sender, _pid, _amount);
    }

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

        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accSakePerShare).div(1e18);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    function rand(uint256 userSeed) internal view returns (uint256) {
        uint256 seed = uint256(keccak256(abi.encodePacked(
                block.timestamp + block.difficulty +
                ((uint256(keccak256(abi.encodePacked(block.coinbase)))) / (now)) +
                block.gaslimit +
                ((uint256(keccak256(abi.encodePacked(msg.sender)))) / (now)) +
                block.number,
                blockhash(block.number - 1),
                blockhash(block.number + 1),
                block.timestamp,
                block.difficulty,
                block.timestamp,
                userSeed
            )));

        return seed;
    }

    function getPoolHarvestIntervalAmount(uint256 _pid) internal returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        if (pool.minHarvestInterval != pool.maxHarvestInterval){
            return block.timestamp.add(pool.minHarvestInterval).add(rand(uint256(keccak256(abi.encodePacked(totalLockedUpRewards, pool.lastRewardBlock)))) % pool.maxHarvestInterval.sub(pool.minHarvestInterval)).add(1);
        } else {
            return block.timestamp.add(pool.maxHarvestInterval);
        }
    }

    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

        if (user.nextHarvestUntil == 0) {
            user.nextHarvestUntil = getPoolHarvestIntervalAmount(_pid);
        }
        uint256 pending = user.amount.mul(pool.accSakePerShare).div(1e18).sub(user.rewardDebt);
        if (canHarvest(_pid, msg.sender)) {
            if (pending > 0 || user.rewardLockedUp > 0) {
                uint256 totalRewards = pending.add(user.rewardLockedUp);
                // reset lockup
                totalLockedUpRewards = totalLockedUpRewards.sub(user.rewardLockedUp);
                user.rewardLockedUp = 0;
                user.nextHarvestUntil = getPoolHarvestIntervalAmount(_pid);
                // send rewards
                safeSakeTransfer(msg.sender, totalRewards);
                payReferralCommission(msg.sender, totalRewards);
            }
        } else if (pending > 0) {
            user.rewardLockedUp = user.rewardLockedUp.add(pending);
            totalLockedUpRewards = totalLockedUpRewards.add(pending);
            emit RewardLockedUp(msg.sender, _pid, pending);
        }
    }

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

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

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

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

    //Pancake has to add hidden dummy pools inorder to alter the emission, here we make it simple and transparent to all.
    function updateEmissionRate(uint256 _sakePerBlock) public onlyOwner {
        massUpdatePools();
        sakePerBlock = _sakePerBlock;
        emit UpdateEmissionRate(msg.sender, _sakePerBlock);
    }
    
    // Update the referral contract address by the owner
    function setReferralAddress(IReferral _referral) external onlyOwner {
        referral = _referral;
        emit SetReferralAddress(msg.sender, _referral);
    }
    // Update referral commission rate by the owner
    function setReferralCommissionRate(uint16 _referralCommissionRate) external onlyOwner {
        require(_referralCommissionRate <= MAXIMUM_REFERRAL_COMMISSION_RATE, "setReferralCommissionRate: invalid referral commission rate basis points");
        referralCommissionRate = _referralCommissionRate;
    }
    // Pay referral commission to the referrer who referred this user.
    function payReferralCommission(address _user, uint256 _pending) internal {
        if (address(referral) != address(0) && referralCommissionRate > 0) {
            address referrer = referral.getReferrer(_user);
            uint256 commissionAmount = _pending.mul(referralCommissionRate).div(10000);
            if (referrer != address(0) && commissionAmount > 0) {
                sake.mint(referrer, commissionAmount); 
                referral.recordReferralCommission(referrer, commissionAmount);
                emit ReferralCommissionPaid(_user, referrer, commissionAmount);
            }
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract SalmonDefiToken","name":"_sake","type":"address"},{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"address","name":"_feeAddress","type":"address"},{"internalType":"uint256","name":"_sakePerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"},{"indexed":false,"internalType":"uint256","name":"commissionAmount","type":"uint256"}],"name":"ReferralCommissionPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountLockedUp","type":"uint256"}],"name":"RewardLockedUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetDevAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"SetFeeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"contract IReferral","name":"newAddress","type":"address"}],"name":"SetReferralAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldStartBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newStartBlock","type":"uint256"}],"name":"StartBlockChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"sakePerBlock","type":"uint256"}],"name":"UpdateEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_HARVEST_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_REFERRAL_COMMISSION_RATE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_POOL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IBEP20","name":"_lpToken","type":"address"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"_minHarvestInterval","type":"uint256"},{"internalType":"uint256","name":"_maxHarvestInterval","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"canHarvest","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_referrer","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_devAddress","type":"address"}],"name":"dev","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"getHarvestUntil","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"pendingSake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IBEP20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accSakePerShare","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"minHarvestInterval","type":"uint256"},{"internalType":"uint256","name":"maxHarvestInterval","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referral","outputs":[{"internalType":"contract IReferral","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referralCommissionRate","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sake","outputs":[{"internalType":"contract SalmonDefiToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sakePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"_minHarvestInterval","type":"uint256"},{"internalType":"uint256","name":"_maxHarvestInterval","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IReferral","name":"_referral","type":"address"}],"name":"setReferralAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_referralCommissionRate","type":"uint16"}],"name":"setReferralCommissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"name":"setStartBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLockedUpRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sakePerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"rewardLockedUp","type":"uint256"},{"internalType":"uint256","name":"nextHarvestUntil","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600a55600c805461ffff60a01b1916601960a31b1790553480156200002a57600080fd5b5060405162002f1438038062002f14833981810160405260c08110156200005057600080fd5b508051602082015160408301516060840151608085015160a090950151939492939192909160006200008162000122565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b03199081166001600160a01b039889161790915560038054821696881696909617909555600580549095169390951692909217909255600491909155600b5560065562000126565b3390565b612dde80620001366000396000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80638705fcd411610130578063c4305576116100b8578063d5abeb011161007c578063d5abeb0114610656578063de73149d1461065e578063ed9f4ba214610666578063f2fde38b1461066e578063f35e4a6e1461069457610232565b8063c4305576146105b3578063c7cc54d0146105df578063cbd258b5146105e7578063cc1977321461060d578063d30ef61b1461064e57610232565b80638dbb1e3a116100ff5780638dbb1e3a146104de5780638dbdbe6d1461050157806393f1a40b14610533578063a10959d214610585578063b3caba5a1461058d57610232565b80638705fcd4146104825780638aa28550146104a85780638d88a90e146104b05780638da5cb5b146104d657610232565b8063441a3e70116101be5780635312ea8e116101825780635312ea8e1461040857806355dbc82614610425578063630b5ba1146104465780636ec5ab121461044e578063715018a61461047a57610232565b8063441a3e7014610399578063474fa630146103bc57806348b22bfb146103c457806348cd4cb1146103e357806351eb05a6146103eb57610232565b806317caf6f11161020557806317caf6f1146102f75780632e6c998d146102ff578063330ae0031461033f5780633ad10ef614610389578063412753581461039157610232565b8063081e3eda146102375780630ba84cd2146102515780631441a5a9146102705780631526fe2714610294575b600080fd5b61023f6106b1565b60408051918252519081900360200190f35b61026e6004803603602081101561026757600080fd5b50356106b7565b005b610278610756565b604080516001600160a01b039092168252519081900360200190f35b6102b1600480360360208110156102aa57600080fd5b5035610765565b604080516001600160a01b039098168852602088019690965286860194909452606086019290925261ffff16608085015260a084015260c0830152519081900360e00190f35b61023f6107bf565b61032b6004803603604081101561031557600080fd5b50803590602001356001600160a01b03166107c5565b604080519115158252519081900360200190f35b61026e600480360360c081101561035557600080fd5b508035906001600160a01b036020820135169061ffff6040820135169060608101359060808101359060a0013515156107f5565b610278610bb4565b610278610bc3565b61026e600480360360408110156103af57600080fd5b5080359060200135610bd2565b61023f610d5a565b6103cc610d60565b6040805161ffff9092168252519081900360200190f35b61023f610d66565b61026e6004803603602081101561040157600080fd5b5035610d6c565b61026e6004803603602081101561041e57600080fd5b5035610fa5565b61026e6004803603602081101561043b57600080fd5b503561ffff166110b1565b61026e61117a565b61023f6004803603604081101561046457600080fd5b50803590602001356001600160a01b031661119d565b61026e6111c8565b61026e6004803603602081101561049857600080fd5b50356001600160a01b0316611274565b61023f61131f565b61026e600480360360208110156104c657600080fd5b50356001600160a01b0316611324565b6102786113bb565b61023f600480360360408110156104f457600080fd5b50803590602001356113ca565b61026e6004803603606081101561051757600080fd5b50803590602081013590604001356001600160a01b0316611470565b61055f6004803603604081101561054957600080fd5b50803590602001356001600160a01b0316611836565b604080519485526020850193909352838301919091526060830152519081900360800190f35b610278611868565b61026e600480360360208110156105a357600080fd5b50356001600160a01b0316611877565b61023f600480360360408110156105c957600080fd5b50803590602001356001600160a01b0316611925565b61023f611aa5565b61032b600480360360208110156105fd57600080fd5b50356001600160a01b0316611aab565b61026e600480360360c081101561062357600080fd5b5080359060208101359061ffff6040820135169060608101359060808101359060a001351515611ac0565b6103cc611d31565b61023f611d42565b61023f611d48565b61023f611d4f565b61026e6004803603602081101561068457600080fd5b50356001600160a01b0316611d55565b61026e600480360360208110156106aa57600080fd5b5035611e57565b60085490565b6106bf611fbd565b6001600160a01b03166106d06113bb565b6001600160a01b031614610719576040805162461bcd60e51b81526020600482018190526024820152600080516020612d35833981519152604482015290519081900360640190fd5b61072161117a565b6004819055604051819033907fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c405390600090a350565b600c546001600160a01b031681565b6008818154811061077257fe5b600091825260209091206007909102018054600182015460028301546003840154600485015460058601546006909601546001600160a01b03909516965092949193909261ffff16919087565b600a5481565b60008281526009602090815260408083206001600160a01b03851684529091529020600301544210155b92915050565b6107fd611fbd565b6001600160a01b031661080e6113bb565b6001600160a01b031614610857576040805162461bcd60e51b81526020600482018190526024820152600080516020612d35833981519152604482015290519081900360640190fd5b6001600160a01b0385166000908152600d6020526040902054859060ff16156108c7576040805162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c69636174656400000000000000604482015290519081900360640190fd5b6101908561ffff16111561090c5760405162461bcd60e51b8152600401808060200182810382526025815260200180612bcb6025913960400191505060405180910390fd5b8284111561094f576040805162461bcd60e51b815260206004820152601d6024820152600080516020612c62833981519152604482015290519081900360640190fd5b62069780841115610995576040805162461bcd60e51b815260206004820152601d6024820152600080516020612c62833981519152604482015290519081900360640190fd5b620697808311156109db576040805162461bcd60e51b815260206004820152601d6024820152600080516020612c62833981519152604482015290519081900360640190fd5b81156109e9576109e961117a565b6000600b5443116109fc57600b546109fe565b435b600a54909150610a0e9089611fc1565b600a556001600160a01b039687166000818152600d602090815260408083208054600160ff199091168117909155815160e0810183529485529184019b8c5283019384526060830182815261ffff998a166080850190815260a08501998a5260c0850198895260088054938401815590935292517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600790920291820180546001600160a01b03191691909b161790995598517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee489015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee5880155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee6870155505093517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee78401805461ffff19169190931617909155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee882015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee990910155565b6003546001600160a01b031681565b6005546001600160a01b031681565b60026001541415610c2a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600181905550600060088381548110610c4157fe5b600091825260208083208684526009825260408085203386529092529220805460079092029092019250831115610cb4576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610cbd84610d6c565b610cc68461201b565b8215610cf0578054610cd89084612193565b81558154610cf0906001600160a01b031633856121f0565b60038201548154610d1491670de0b6b3a764000091610d0e91612242565b9061229b565b6001820155604080518481529051859133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050600180555050565b60075481565b6101f481565b600b5481565b600060088281548110610d7b57fe5b9060005260206000209060070201905080600201544311610d9c5750610fa2565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610de657600080fd5b505afa158015610dfa573d6000803e3d6000fd5b505050506040513d6020811015610e1057600080fd5b50519050801580610e2357506001820154155b15610e35575043600290910155610fa2565b6000610e458360020154436113ca565b90506000610e72600a54610d0e8660010154610e6c6004548761224290919063ffffffff16565b90612242565b6002546003549192506001600160a01b03908116916340c10f199116610e9984600a61229b565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b158015610edf57600080fd5b505af1158015610ef3573d6000803e3d6000fd5b5050600254604080516340c10f1960e01b81523060048201526024810186905290516001600160a01b0390921693506340c10f19925060448082019260009290919082900301818387803b158015610f4a57600080fd5b505af1158015610f5e573d6000803e3d6000fd5b50505050610f8f610f8484610d0e670de0b6b3a76400008561224290919063ffffffff16565b600386015490611fc1565b6003850155505043600290920191909155505b50565b60026001541415610ffd576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260018190555060006008828154811061101457fe5b60009182526020808320858452600982526040808520338087529352909320805460079093029093018054909450611059926001600160a01b039190911691906121f0565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a3600080825560018083018290556002830182905560039092015580555050565b6110b9611fbd565b6001600160a01b03166110ca6113bb565b6001600160a01b031614611113576040805162461bcd60e51b81526020600482018190526024820152600080516020612d35833981519152604482015290519081900360640190fd5b6101f461ffff821611156111585760405162461bcd60e51b8152600401808060200182810382526048815260200180612bf06048913960600191505060405180910390fd5b600c805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b60085460005b818110156111995761119181610d6c565b600101611180565b5050565b60009182526009602090815260408084206001600160a01b0393909316845291905290206003015490565b6111d0611fbd565b6001600160a01b03166111e16113bb565b6001600160a01b03161461122a576040805162461bcd60e51b81526020600482018190526024820152600080516020612d35833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6005546001600160a01b031633146112d3576040805162461bcd60e51b815260206004820152601860248201527f736574466565416464726573733a20464f5242494444454e0000000000000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03831690811790915560405133907fd44190acf9d04bdb5d3a1aafff7e6dee8b40b93dfb8c5d3f0eea4b9f4539c3f790600090a350565b600181565b6003546001600160a01b0316331461136f576040805162461bcd60e51b81526020600482015260096024820152686465763a207775743f60b81b604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b03831690811790915560405133907f618c54559e94f1499a808aad71ee8729f8e74e8c48e979616328ce493a1a52e790600090a350565b6000546001600160a01b031690565b6000600654600754600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561142057600080fd5b505afa158015611434573d6000803e3d6000fd5b505050506040513d602081101561144a57600080fd5b5051011061145a575060006107ef565b6114696001610e6c8486612193565b9392505050565b600260015414156114c8576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055506000600884815481106114df57fe5b600091825260208083208784526009825260408085203386529092529220600660079092029092019081015460058201549193501461157257333214801561152d575061152b33612302565b155b611572576040805162461bcd60e51b81526020600482015260116024820152706e6f20696e6469726563742063616c6c7360781b604482015290519081900360640190fd5b61157b85610d6c565b6115848561201b565b60008411801561159e5750600c546001600160a01b031615155b80156115b257506001600160a01b03831615155b80156115c757506001600160a01b0383163314155b1561163957600c5460408051630c7f7b6b60e01b81523360048201526001600160a01b03868116602483015291519190921691630c7f7b6b91604480830192600092919082900301818387803b15801561162057600080fd5b505af1158015611634573d6000803e3d6000fd5b505050505b83156117d1578154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561168957600080fd5b505afa15801561169d573d6000803e3d6000fd5b505050506040513d60208110156116b357600080fd5b505183549091506116cf906001600160a01b031633308861230c565b8254604080516370a0823160e01b815230600482015290516117519284926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561171f57600080fd5b505afa158015611733573d6000803e3d6000fd5b505050506040513d602081101561174957600080fd5b505190612193565b600484015490955061ffff16156117c05760048301546000906117819061271090610d0e90899061ffff16612242565b60055485549192506117a0916001600160a01b039081169116836121f0565b82546117b89082906117b29089611fc1565b90612193565b8355506117cf565b81546117cc9086611fc1565b82555b505b600382015481546117ef91670de0b6b3a764000091610d0e91612242565b6001820155604080518581529051869133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a3505060018055505050565b600960209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b6002546001600160a01b031681565b61187f611fbd565b6001600160a01b03166118906113bb565b6001600160a01b0316146118d9576040805162461bcd60e51b81526020600482018190526024820152600080516020612d35833981519152604482015290519081900360640190fd5b600c80546001600160a01b0319166001600160a01b03831690811790915560405133907fee63201fedda9e28e92efef9abb99bd9d2f90208a4fd0d0186c14daf364a273190600090a350565b6000806008848154811061193557fe5b600091825260208083208784526009825260408085206001600160a01b0389811687529084528186206007959095029092016003810154815483516370a0823160e01b815230600482015293519298509596909590949316926370a082319260248082019391829003018186803b1580156119af57600080fd5b505afa1580156119c3573d6000803e3d6000fd5b505050506040513d60208110156119d957600080fd5b50516002850154909150431180156119f057508015155b15611a53576000611a058560020154436113ca565b90506000611a2c600a54610d0e8860010154610e6c6004548761224290919063ffffffff16565b9050611a4e611a4784610d0e84670de0b6b3a7640000612242565b8590611fc1565b935050505b6000611a8084600101546117b2670de0b6b3a7640000610d0e87896000015461224290919063ffffffff16565b9050611a99846002015482611fc190919063ffffffff16565b98975050505050505050565b60045481565b600d6020526000908152604090205460ff1681565b611ac8611fbd565b6001600160a01b0316611ad96113bb565b6001600160a01b031614611b22576040805162461bcd60e51b81526020600482018190526024820152600080516020612d35833981519152604482015290519081900360640190fd5b6101908461ffff161115611b675760405162461bcd60e51b8152600401808060200182810382526025815260200180612d106025913960400191505060405180910390fd5b81831115611baa576040805162461bcd60e51b815260206004820152601d6024820152600080516020612c62833981519152604482015290519081900360640190fd5b62069780831115611bf0576040805162461bcd60e51b815260206004820152601d6024820152600080516020612c62833981519152604482015290519081900360640190fd5b62069780821115611c36576040805162461bcd60e51b815260206004820152601d6024820152600080516020612c62833981519152604482015290519081900360640190fd5b8015611c4457611c4461117a565b611c8185611c7b60088981548110611c5857fe5b906000526020600020906007020160010154600a5461219390919063ffffffff16565b90611fc1565b600a819055508460088781548110611c9557fe5b9060005260206000209060070201600101819055508360088781548110611cb857fe5b906000526020600020906007020160040160006101000a81548161ffff021916908361ffff1602179055508260088781548110611cf157fe5b9060005260206000209060070201600501819055508160088781548110611d1457fe5b906000526020600020906007020160060181905550505050505050565b600c54600160a01b900461ffff1681565b60065481565b6206978081565b61019081565b611d5d611fbd565b6001600160a01b0316611d6e6113bb565b6001600160a01b031614611db7576040805162461bcd60e51b81526020600482018190526024820152600080516020612d35833981519152604482015290519081900360640190fd5b6001600160a01b038116611dfc5760405162461bcd60e51b8152600401808060200182810382526026815260200180612c826026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611e5f611fbd565b6001600160a01b0316611e706113bb565b6001600160a01b031614611eb9576040805162461bcd60e51b81526020600482018190526024820152600080516020612d35833981519152604482015290519081900360640190fd5b43600b5411611ef95760405162461bcd60e51b8152600401808060200182810382526023815260200180612d556023913960400191505060405180910390fd5b438111611f375760405162461bcd60e51b8152600401808060200182810382526031815260200180612d786031913960400191505060405180910390fd5b600b80549082905560005b600854811015611fb857600b5460088281548110611f5c57fe5b9060005260206000209060070201600201819055507f8774aa9221f02a7971c04902013456be92b6a521a2347a44ec6610e4b9a5d8fc8284604051808381526020018281526020019250505060405180910390a1600101611f42565b505050565b3390565b600082820183811015611469576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60006008828154811061202a57fe5b60009182526020808320858452600982526040808520338652909252922060038101546007909202909201925061206a5761206483612366565b60038201555b600061209b82600101546117b2670de0b6b3a7640000610d0e8760030154876000015461224290919063ffffffff16565b90506120a784336107c5565b1561212b5760008111806120bf575060008260020154115b156121265760006120dd836002015483611fc190919063ffffffff16565b90506120f8836002015460075461219390919063ffffffff16565b6007556000600284015561210b85612366565b600384015561211a338261242f565b61212433826125fc565b505b61218d565b801561218d5760028201546121409082611fc1565b60028301556007546121529082611fc1565b600755604080518281529051859133917fee470483107f579a55c754fa00613c45a9a3b617a418b39cb0be97e5381ba7c19181900360200190a35b50505050565b6000828211156121ea576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611fb890849061280c565b600082612251575060006107ef565b8282028284828161225e57fe5b04146114695760405162461bcd60e51b8152600401808060200182810382526021815260200180612cef6021913960400191505060405180910390fd5b60008082116122f1576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816122fa57fe5b049392505050565b803b15155b919050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261218d90859061280c565b6000806008838154811061237657fe5b90600052602060002090600702019050806006015481600501541461241f576124176001611c7b6123b88460050154856006015461219390919063ffffffff16565b6123f8600754866002015460405160200180838152602001828152602001925050506040516020818303038152906040528051906020012060001c6128bd565b816123ff57fe5b06611c7b856005015442611fc190919063ffffffff16565b915050612307565b6006810154612417904290611fc1565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561247a57600080fd5b505afa15801561248e573d6000803e3d6000fd5b505050506040513d60208110156124a457600080fd5b5051905060008183111561253b576002546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561250857600080fd5b505af115801561251c573d6000803e3d6000fd5b505050506040513d602081101561253257600080fd5b505190506125c0565b6002546040805163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561259157600080fd5b505af11580156125a5573d6000803e3d6000fd5b505050506040513d60208110156125bb57600080fd5b505190505b8061218d5760405162461bcd60e51b8152600401808060200182810382526021815260200180612cce6021913960400191505060405180910390fd5b600c546001600160a01b0316158015906126225750600c54600160a01b900461ffff1615155b1561119957600c5460408051634a9fefc760e01b81526001600160a01b03858116600483015291516000939290921691634a9fefc791602480820192602092909190829003018186803b15801561267857600080fd5b505afa15801561268c573d6000803e3d6000fd5b505050506040513d60208110156126a257600080fd5b5051600c549091506000906126cb9061271090610d0e908690600160a01b900461ffff16612242565b90506001600160a01b038216158015906126e55750600081115b1561218d57600254604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b15801561273f57600080fd5b505af1158015612753573d6000803e3d6000fd5b5050600c5460408051631b82d29760e31b81526001600160a01b03878116600483015260248201879052915191909216935063dc1694b89250604480830192600092919082900301818387803b1580156127ac57600080fd5b505af11580156127c0573d6000803e3d6000fd5b50506040805184815290516001600160a01b038087169450881692507f86ddab457291316e0f5496737e5ca67c4037234c32c3be04c48ae96186893a7b9181900360200190a350505050565b6060612861826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166129b39092919063ffffffff16565b805190915015611fb85780806020019051602081101561288057600080fd5b5051611fb85760405162461bcd60e51b815260040180806020018281038252602a815260200180612c38602a913960400191505060405180910390fd5b60008043423360405160200180826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012060001c816128ff57fe5b0445424160405160200180826001600160a01b031660601b81526014019150506040516020818303038152906040528051906020012060001c8161293f57fe5b04444201010101016001430340436001014042444288604051602001808881526020018781526020018681526020018581526020018481526020018381526020018281526020019750505050505050506040516020818303038152906040528051906020012060001c905080915050919050565b60606129c284846000856129ca565b949350505050565b606082471015612a0b5760405162461bcd60e51b8152600401808060200182810382526026815260200180612ca86026913960400191505060405180910390fd5b612a1485612302565b612a65576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612aa45780518252601f199092019160209182019101612a85565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612b06576040519150601f19603f3d011682016040523d82523d6000602084013e612b0b565b606091505b5091509150612b1b828286612b26565b979650505050505050565b60608315612b35575081611469565b825115612b455782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612b8f578181015183820152602001612b77565b50505050905090810190601f168015612bbc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe6164643a20696e76616c6964206465706f7369742066656520626173697320706f696e7473736574526566657272616c436f6d6d697373696f6e526174653a20696e76616c696420726566657272616c20636f6d6d697373696f6e207261746520626173697320706f696e74735361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565646164643a20696e76616c6964206861727665737420696e74657276616c0000004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c7361666553616b655472616e736665723a207472616e73666572206661696c6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f777365743a20696e76616c6964206465706f7369742066656520626173697320706f696e74734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65727365745374617274426c6f636b3a206661726d20616c726561647920737461727465647365745374617274426c6f636b3a206e65772073746172742074696d65206d757374206265206675747572652074696d65a26469706673582212206b72d486e05adf9f8b93ea32d0e8263a63a62c3d53d7805cfe1169616882d49a64736f6c634300060c003300000000000000000000000044d1d50443486aeda23551309578e114aa20f8d10000000000000000000000007e8f960e5c3c4e73f8394b4121c889a9c6044e4b000000000000000000000000d6f3e180c1fd877f4fe7f19b71cde48ce3a29a9e000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000b3ff8100000000000000000000000000000000000000000000d3c21bcecceda1000000

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

00000000000000000000000044d1d50443486aeda23551309578e114aa20f8d10000000000000000000000007e8f960e5c3c4e73f8394b4121c889a9c6044e4b000000000000000000000000d6f3e180c1fd877f4fe7f19b71cde48ce3a29a9e000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000b3ff8100000000000000000000000000000000000000000000d3c21bcecceda1000000

-----Decoded View---------------
Arg [0] : _sake (address): 0x44d1d50443486aeda23551309578e114aa20f8d1
Arg [1] : _devAddress (address): 0x7e8f960e5c3c4e73f8394b4121c889a9c6044e4b
Arg [2] : _feeAddress (address): 0xd6f3e180c1fd877f4fe7f19b71cde48ce3a29a9e
Arg [3] : _sakePerBlock (uint256): 100000000000000000
Arg [4] : _startBlock (uint256): 11796353
Arg [5] : _maxSupply (uint256): 1000000000000000000000000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000044d1d50443486aeda23551309578e114aa20f8d1
Arg [1] : 0000000000000000000000007e8f960e5c3c4e73f8394b4121c889a9c6044e4b
Arg [2] : 000000000000000000000000d6f3e180c1fd877f4fe7f19b71cde48ce3a29a9e
Arg [3] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000b3ff81
Arg [5] : 00000000000000000000000000000000000000000000d3c21bcecceda1000000


Deployed ByteCode Sourcemap

68874:18721:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73158:95;;;:::i;:::-;;;;;;;;;;;;;;;;86089:204;;;;;;;;;;;;;;;;-1:-1:-1;86089:204:0;;:::i;:::-;;71638:25;;;:::i;:::-;;;;-1:-1:-1;;;;;71638:25:0;;;;;;;;;;;;;;71272:26;;;;;;;;;;;;;;;;-1:-1:-1;71272:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;71272:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71513:34;;;:::i;77714:198::-;;;;;;;;;;;;;;;;-1:-1:-1;77714:198:0;;;;;;-1:-1:-1;;;;;77714:198:0;;:::i;:::-;;;;;;;;;;;;;;;;;;73528:1174;;;;;;;;;;;;;;;;-1:-1:-1;73528:1174:0;;;-1:-1:-1;;;;;73528:1174:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;70669:25::-;;;:::i;70900:::-;;;:::i;80899:608::-;;;;;;;;;;;;;;;;-1:-1:-1;80899:608:0;;;;;;;:::i;71201:35::-;;;:::i;71811:61::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;71604:25;;;:::i;78501:808::-;;;;;;;;;;;;;;;;-1:-1:-1;78501:808:0;;:::i;84501:439::-;;;;;;;;;;;;;;;;-1:-1:-1;84501:439:0;;:::i;86586:308::-;;;;;;;;;;;;;;;;-1:-1:-1;86586:308:0;;;;:::i;78245:180::-;;;:::i;77975:187::-;;;;;;;;;;;;;;;;-1:-1:-1;77975:187:0;;;;;;-1:-1:-1;;;;;77975:187:0;;:::i;25499:148::-;;;:::i;85738:220::-;;;;;;;;;;;;;;;;-1:-1:-1;85738:220:0;-1:-1:-1;;;;;85738:220:0;;:::i;70821:44::-;;;:::i;85535:195::-;;;;;;;;;;;;;;;;-1:-1:-1;85535:195:0;-1:-1:-1;;;;;85535:195:0;;:::i;24848:87::-;;;:::i;76538:222::-;;;;;;;;;;;;;;;;-1:-1:-1;76538:222:0;;;;;;;:::i;79378:1469::-;;;;;;;;;;;;;;;;-1:-1:-1;79378:1469:0;;;;;;;;;;;-1:-1:-1;;;;;79378:1469:0;;:::i;71354:64::-;;;;;;;;;;;;;;;;-1:-1:-1;71354:64:0;;;;;;-1:-1:-1;;;;;71354:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70614:27;;;:::i;86363:164::-;;;;;;;;;;;;;;;;-1:-1:-1;86363:164:0;-1:-1:-1;;;;;86363:164:0;;:::i;76824:822::-;;;;;;;;;;;;;;;;-1:-1:-1;76824:822:0;;;;;;-1:-1:-1;;;;;76824:822:0;;:::i;70740:27::-;;;:::i;73261:44::-;;;;;;;;;;;;;;;;-1:-1:-1;73261:44:0;-1:-1:-1;;;;;73261:44:0;;:::i;75505:957::-;;;;;;;;;;;;;;;;-1:-1:-1;75505:957:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;71720:42::-;;;:::i;70959:24::-;;;:::i;71103:57::-;;;:::i;71013:42::-;;;:::i;25802:244::-;;;;;;;;;;;;;;;;-1:-1:-1;25802:244:0;-1:-1:-1;;;;;25802:244:0;;:::i;74859:534::-;;;;;;;;;;;;;;;;-1:-1:-1;74859:534:0;;:::i;73158:95::-;73230:8;:15;73158:95;:::o;86089:204::-;25079:12;:10;:12::i;:::-;-1:-1:-1;;;;;25068:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25068:23:0;;25060:68;;;;;-1:-1:-1;;;25060:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25060:68:0;;;;;;;;;;;;;;;86168:17:::1;:15;:17::i;:::-;86196:12;:28:::0;;;86240:45:::1;::::0;86211:13;;86259:10:::1;::::0;86240:45:::1;::::0;;;::::1;86089:204:::0;:::o;71638:25::-;;;-1:-1:-1;;;;;71638:25:0;;:::o;71272:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;71272:26:0;;;;-1:-1:-1;71272:26:0;;;;;;;;;;;:::o;71513:34::-;;;;:::o;77714:198::-;77784:4;77825:14;;;:8;:14;;;;;;;;-1:-1:-1;;;;;77825:21:0;;;;;;;;;77883;;;77864:15;:40;;77714:198;;;;;:::o;73528:1174::-;25079:12;:10;:12::i;:::-;-1:-1:-1;;;;;25068:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25068:23:0;;25060:68;;;;;-1:-1:-1;;;25060:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25060:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;73371:23:0;::::1;;::::0;;;:13:::1;:23;::::0;;;;;73708:8;;73371:23:::1;;:32;73363:70;;;::::0;;-1:-1:-1;;;73363:70:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;71052:3:::2;73737:13;:29;;;;73729:79;;;;-1:-1:-1::0;;;73729:79:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73850:19;73827;:42;;73819:84;;;::::0;;-1:-1:-1;;;73819:84:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;;;;;;;;;73819:84:0;;;;;;;;;;;;;::::2;;71154:6;73922:19;:47;;73914:89;;;::::0;;-1:-1:-1;;;73914:89:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;;;;;;;;;73914:89:0;;;;;;;;;;;;;::::2;;71154:6;74022:19;:47;;74014:89;;;::::0;;-1:-1:-1;;;74014:89:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;;;;;;;;;74014:89:0;;;;;;;;;;;;;::::2;;74120:11;74116:61;;;74148:17;:15;:17::i;:::-;74187:23;74228:10;;74213:12;:25;:53;;74256:10;;74213:53;;;74241:12;74213:53;74295:15;::::0;74187:79;;-1:-1:-1;74295:32:0::2;::::0;74315:11;74295:19:::2;:32::i;:::-;74277:15;:50:::0;-1:-1:-1;;;;;74338:23:0;;::::2;;::::0;;;:13:::2;:23;::::0;;;;;;;:30;;74364:4:::2;-1:-1:-1::0;;74338:30:0;;::::2;::::0;::::2;::::0;;;74393:300;;::::2;::::0;::::2;::::0;;;;;;;::::2;::::0;;;;;;;;;;;;;;::::2;::::0;;::::2;::::0;;;;;;;;;;;;;;;;;;74379:8:::2;:315:::0;;;;::::2;::::0;;;;;;;;::::2;::::0;;::::2;::::0;;::::2;::::0;;-1:-1:-1;;;;;;74379:315:0::2;::::0;;;::::2;;::::0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;74379:315:0;;;;;;;-1:-1:-1;;74379:315:0::2;::::0;;;::::2;;::::0;;;;;;;;;;;;;;;73528:1174::o;70669:25::-;;;-1:-1:-1;;;;;70669:25:0;;:::o;70900:::-;;;-1:-1:-1;;;;;70900:25:0;;:::o;80899:608::-;27805:1;28411:7;;:19;;28403:63;;;;;-1:-1:-1;;;28403:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27805:1;28544:7;:18;;;;80979:21:::1;81003:8;81012:4;81003:14;;;;;;;;;::::0;;;::::1;::::0;;;81052;;;:8:::1;:14:::0;;;;;;81067:10:::1;81052:26:::0;;;;;;;81097:11;;81003:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;81097:22:0;-1:-1:-1;81097:22:0::1;81089:53;;;::::0;;-1:-1:-1;;;81089:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;81089:53:0;;;;;;;;;;;;;::::1;;81153:16;81164:4;81153:10;:16::i;:::-;81180:28;81203:4;81180:22;:28::i;:::-;81225:11:::0;;81221:152:::1;;81267:11:::0;;:24:::1;::::0;81283:7;81267:15:::1;:24::i;:::-;81253:38:::0;;81306:12;;:55:::1;::::0;-1:-1:-1;;;;;81306:12:0::1;81340:10;81353:7:::0;81306:25:::1;:55::i;:::-;81417:20;::::0;::::1;::::0;81401:11;;:47:::1;::::0;81443:4:::1;::::0;81401:37:::1;::::0;:15:::1;:37::i;:::-;:41:::0;::::1;:47::i;:::-;81383:15;::::0;::::1;:65:::0;81464:35:::1;::::0;;;;;;;81485:4;;81473:10:::1;::::0;81464:35:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;27761:1:0;28723:22;;-1:-1:-1;;80899:608:0:o;71201:35::-;;;;:::o;71811:61::-;71869:3;71811:61;:::o;71604:25::-;;;;:::o;78501:808::-;78553:21;78577:8;78586:4;78577:14;;;;;;;;;;;;;;;;;;78553:38;;78622:4;:20;;;78606:12;:36;78602:75;;78659:7;;;78602:75;78706:12;;:37;;;-1:-1:-1;;;78706:37:0;;78737:4;78706:37;;;;;;78687:16;;-1:-1:-1;;;;;78706:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78706:37:0;;-1:-1:-1;78758:13:0;;;:37;;-1:-1:-1;78775:15:0;;;;:20;78758:37;78754:126;;;-1:-1:-1;78835:12:0;78812:20;;;;:35;78862:7;;78754:126;78890:18;78911:49;78925:4;:20;;;78947:12;78911:13;:49::i;:::-;78890:70;;78971:18;78992:70;79046:15;;78992:49;79025:4;:15;;;78992:28;79007:12;;78992:10;:14;;:28;;;;:::i;:::-;:32;;:49::i;:70::-;79073:4;;79083:10;;78971:91;;-1:-1:-1;;;;;;79073:4:0;;;;:9;;79083:10;79095:18;78971:91;79110:2;79095:14;:18::i;:::-;79073:41;;;;;;;;;;;;;-1:-1:-1;;;;;79073:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;79125:4:0;;:36;;;-1:-1:-1;;;79125:36:0;;79143:4;79125:36;;;;;;;;;;;;-1:-1:-1;;;;;79125:4:0;;;;-1:-1:-1;79125:9:0;;-1:-1:-1;79125:36:0;;;;;:4;;:36;;;;;;;;:4;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79195:60;79220:34;79245:8;79220:20;79235:4;79220:10;:14;;:20;;;;:::i;:34::-;79195:20;;;;;:24;:60::i;:::-;79172:20;;;:83;-1:-1:-1;;79289:12:0;79266:20;;;;:35;;;;-1:-1:-1;78501:808:0;;:::o;84501:439::-;27805:1;28411:7;;:19;;28403:63;;;;;-1:-1:-1;;;28403:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27805:1;28544:7;:18;;;;84573:21:::1;84597:8;84606:4;84597:14;;;;;;;;;::::0;;;::::1;::::0;;;84646;;;:8:::1;:14:::0;;;;;;84661:10:::1;84646:26:::0;;;;;;;;84730:11;;84597:14:::1;::::0;;::::1;::::0;;::::1;84683:12:::0;;84597:14;;-1:-1:-1;84683:59:0::1;::::0;-1:-1:-1;;;;;84683:12:0;;;::::1;::::0;84661:10;84683:25:::1;:59::i;:::-;84794:11:::0;;84758:48:::1;::::0;;;;;;84788:4;;84776:10:::1;::::0;84758:48:::1;::::0;;;;::::1;::::0;;::::1;84831:1;84817:15:::0;;;84843::::1;::::0;;::::1;:19:::0;;;84873::::1;::::0;::::1;:23:::0;;;84907:21:::1;::::0;;::::1;:25:::0;28723:22;;-1:-1:-1;;84501:439:0:o;86586:308::-;25079:12;:10;:12::i;:::-;-1:-1:-1;;;;;25068:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25068:23:0;;25060:68;;;;;-1:-1:-1;;;25060:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25060:68:0;;;;;;;;;;;;;;;71869:3:::1;86691:59;::::0;::::1;;;86683:144;;;;-1:-1:-1::0;;;86683:144:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86838:22;:48:::0;;::::1;::::0;;::::1;-1:-1:-1::0;;;86838:48:0::1;-1:-1:-1::0;;;;86838:48:0;;::::1;::::0;;;::::1;::::0;;86586:308::o;78245:180::-;78307:8;:15;78290:14;78333:85;78361:6;78355:3;:12;78333:85;;;78391:15;78402:3;78391:10;:15::i;:::-;78369:5;;78333:85;;;;78245:180;:::o;77975:187::-;78050:7;78094:14;;;:8;:14;;;;;;;;-1:-1:-1;;;;;78094:21:0;;;;;;;;;;;78133;;;;77975:187::o;25499:148::-;25079:12;:10;:12::i;:::-;-1:-1:-1;;;;;25068:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25068:23:0;;25060:68;;;;;-1:-1:-1;;;25060:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25060:68:0;;;;;;;;;;;;;;;25606:1:::1;25590:6:::0;;25569:40:::1;::::0;-1:-1:-1;;;;;25590:6:0;;::::1;::::0;25569:40:::1;::::0;25606:1;;25569:40:::1;25637:1;25620:19:::0;;-1:-1:-1;;;;;;25620:19:0::1;::::0;;25499:148::o;85738:220::-;85822:10;;-1:-1:-1;;;;;85822:10:0;85808;:24;85800:61;;;;;-1:-1:-1;;;85800:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;85872:10;:24;;-1:-1:-1;;;;;;85872:24:0;-1:-1:-1;;;;;85872:24:0;;;;;;;;85912:38;;85926:10;;85912:38;;-1:-1:-1;;85912:38:0;85738:220;:::o;70821:44::-;70864:1;70821:44;:::o;85535:195::-;85609:10;;-1:-1:-1;;;;;85609:10:0;85595;:24;85587:46;;;;;-1:-1:-1;;;85587:46:0;;;;;;;;;;;;-1:-1:-1;;;85587:46:0;;;;;;;;;;;;;;;85644:10;:24;;-1:-1:-1;;;;;;85644:24:0;-1:-1:-1;;;;;85644:24:0;;;;;;;;85684:38;;85698:10;;85684:38;;-1:-1:-1;;85684:38:0;85535:195;:::o;24848:87::-;24894:7;24921:6;-1:-1:-1;;;;;24921:6:0;24848:87;:::o;76538:222::-;76610:7;76679:9;;76655:20;;76634:4;;;;;;;;;-1:-1:-1;;;;;76634:4:0;-1:-1:-1;;;;;76634:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;76634:18:0;:41;:54;76630:68;;-1:-1:-1;76697:1:0;76690:8;;76630:68;76716:36;70864:1;76716:14;:3;76724:5;76716:7;:14::i;:36::-;76709:43;76538:222;-1:-1:-1;;;76538:222:0:o;79378:1469::-;27805:1;28411:7;;:19;;28403:63;;;;;-1:-1:-1;;;28403:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27805:1;28544:7;:18;;;;79476:21:::1;79500:8;79509:4;79500:14;;;;;;;;;::::0;;;::::1;::::0;;;79549;;;:8:::1;:14:::0;;;;;;79564:10:::1;79549:26:::0;;;;;;;79619:23:::1;79500:14;::::0;;::::1;::::0;;::::1;79619:23:::0;;::::1;::::0;79592::::1;::::0;::::1;::::0;79500:14;;-1:-1:-1;79592:50:0::1;79588:171;;79666:10;79680:9;79666:23;:59:::0;::::1;;;;79694:31;79713:10;79694;:31::i;:::-;79693:32;79666:59;79658:89;;;::::0;;-1:-1:-1;;;79658:89:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;79658:89:0;;;;;;;;;;;;;::::1;;79771:16;79782:4;79771:10;:16::i;:::-;79798:28;79821:4;79798:22;:28::i;:::-;79853:1;79843:7;:11;:46;;;;-1:-1:-1::0;79866:8:0::1;::::0;-1:-1:-1;;;;;79866:8:0::1;79858:31:::0;::::1;79843:46;:73;;;;-1:-1:-1::0;;;;;;79893:23:0;::::1;::::0;::::1;79843:73;:100;;;;-1:-1:-1::0;;;;;;79920:23:0;::::1;79933:10;79920:23;;79843:100;79839:179;;;79960:8;::::0;:46:::1;::::0;;-1:-1:-1;;;79960:46:0;;79984:10:::1;79960:46;::::0;::::1;::::0;-1:-1:-1;;;;;79960:46:0;;::::1;::::0;;;;;;:8;;;::::1;::::0;:23:::1;::::0;:46;;;;;:8:::1;::::0;:46;;;;;;;:8;;:46;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;79839:179;80034:11:::0;;80030:684:::1;;80087:12:::0;;:37:::1;::::0;;-1:-1:-1;;;80087:37:0;;80118:4:::1;80087:37;::::0;::::1;::::0;;;80062:22:::1;::::0;-1:-1:-1;;;;;80087:12:0::1;::::0;:22:::1;::::0;:37;;;;;::::1;::::0;;;;;;;;:12;:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;80087:37:0;80139:12;;80087:37;;-1:-1:-1;80139:74:0::1;::::0;-1:-1:-1;;;;;80139:12:0::1;80177:10;80198:4;80205:7:::0;80139:29:::1;:74::i;:::-;80287:12:::0;;:37:::1;::::0;;-1:-1:-1;;;80287:37:0;;80318:4:::1;80287:37;::::0;::::1;::::0;;;:57:::1;::::0;80329:14;;-1:-1:-1;;;;;80287:12:0;;::::1;::::0;:22:::1;::::0;:37;;;;;::::1;::::0;;;;;;;;;:12;:37;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;80287:37:0;;:41:::1;:57::i;:::-;80363:17;::::0;::::1;::::0;80277:67;;-1:-1:-1;80363:17:0::1;;:21:::0;80359:344:::1;;80438:17;::::0;::::1;::::0;80405:18:::1;::::0;80426:41:::1;::::0;80461:5:::1;::::0;80426:30:::1;::::0;:7;;80438:17:::1;;80426:11;:30::i;:41::-;80512:10;::::0;80486:12;;80405:62;;-1:-1:-1;80486:49:0::1;::::0;-1:-1:-1;;;;;80486:12:0;;::::1;::::0;80512:10:::1;80405:62:::0;80486:25:::1;:49::i;:::-;80568:11:::0;;:40:::1;::::0;80597:10;;80568:24:::1;::::0;80584:7;80568:15:::1;:24::i;:::-;:28:::0;::::1;:40::i;:::-;80554:54:::0;;-1:-1:-1;80359:344:0::1;;;80663:11:::0;;:24:::1;::::0;80679:7;80663:15:::1;:24::i;:::-;80649:38:::0;;80359:344:::1;80030:684;;80758:20;::::0;::::1;::::0;80742:11;;:47:::1;::::0;80784:4:::1;::::0;80742:37:::1;::::0;:15:::1;:37::i;:47::-;80724:15;::::0;::::1;:65:::0;80805:34:::1;::::0;;;;;;;80825:4;;80813:10:::1;::::0;80805:34:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;27761:1:0;28723:22;;-1:-1:-1;;;79378:1469:0:o;71354:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;70614:27::-;;;-1:-1:-1;;;;;70614:27:0;;:::o;86363:164::-;25079:12;:10;:12::i;:::-;-1:-1:-1;;;;;25068:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25068:23:0;;25060:68;;;;;-1:-1:-1;;;25060:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25060:68:0;;;;;;;;;;;;;;;86442:8:::1;:20:::0;;-1:-1:-1;;;;;;86442:20:0::1;-1:-1:-1::0;;;;;86442:20:0;::::1;::::0;;::::1;::::0;;;86478:41:::1;::::0;86497:10:::1;::::0;86478:41:::1;::::0;-1:-1:-1;;86478:41:0::1;86363:164:::0;:::o;76824:822::-;76897:7;76917:21;76941:8;76950:4;76941:14;;;;;;;;;;;;;;;;76990;;;:8;:14;;;;;;-1:-1:-1;;;;;76990:21:0;;;;;;;;;;;76941:14;;;;;;;;77048:20;;;;77098:12;;:37;;-1:-1:-1;;;77098:37:0;;77129:4;77098:37;;;;;;76941:14;;-1:-1:-1;76990:21:0;;77048:20;;76941:14;;77098:12;;;:22;;:37;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77098:37:0;77165:20;;;;77098:37;;-1:-1:-1;77150:12:0;:35;:52;;;;-1:-1:-1;77189:13:0;;;77150:52;77146:349;;;77219:18;77240:49;77254:4;:20;;;77276:12;77240:13;:49::i;:::-;77219:70;;77304:18;77325:70;77379:15;;77325:49;77358:4;:15;;;77325:28;77340:12;;77325:10;:14;;:28;;;;:::i;:70::-;77304:91;-1:-1:-1;77428:55:0;77448:34;77473:8;77448:20;77304:91;77463:4;77448:14;:20::i;:34::-;77428:15;;:19;:55::i;:::-;77410:73;;77146:349;;;77507:15;77525:63;77572:4;:15;;;77525:42;77562:4;77525:32;77541:15;77525:4;:11;;;:15;;:32;;;;:::i;:63::-;77507:81;;77606:32;77618:4;:19;;;77606:7;:11;;:32;;;;:::i;:::-;77599:39;76824:822;-1:-1:-1;;;;;;;;76824:822:0:o;70740:27::-;;;;:::o;73261:44::-;;;;;;;;;;;;;;;:::o;75505:957::-;25079:12;:10;:12::i;:::-;-1:-1:-1;;;;;25068:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25068:23:0;;25060:68;;;;;-1:-1:-1;;;25060:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25060:68:0;;;;;;;;;;;;;;;71052:3:::1;75687:13;:29;;;;75679:79;;;;-1:-1:-1::0;;;75679:79:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75800:19;75777;:42;;75769:84;;;::::0;;-1:-1:-1;;;75769:84:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;75769:84:0;;;;;;;;;;;;;::::1;;71154:6;75872:19;:47;;75864:89;;;::::0;;-1:-1:-1;;;75864:89:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;75864:89:0;;;;;;;;;;;;;::::1;;71154:6;75972:19;:47;;75964:89;;;::::0;;-1:-1:-1;;;75964:89:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;75964:89:0;;;;;;;;;;;;;::::1;;76070:11;76066:61;;;76098:17;:15;:17::i;:::-;76155:63;76206:11;76155:46;76175:8;76184:4;76175:14;;;;;;;;;;;;;;;;;;:25;;;76155:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;76137:15;:81;;;;76257:11;76229:8;76238:4;76229:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;76309:13;76279:8;76288:4;76279:14;;;;;;;;;;;;;;;;;;:27;;;:43;;;;;;;;;;;;;;;;;;76369:19;76333:8;76342:4;76333:14;;;;;;;;;;;;;;;;;;:33;;:55;;;;76435:19;76399:8;76408:4;76399:14;;;;;;;;;;;;;;;;;;:33;;:55;;;;75505:957:::0;;;;;;:::o;71720:42::-;;;-1:-1:-1;;;71720:42:0;;;;;:::o;70959:24::-;;;;:::o;71103:57::-;71154:6;71103:57;:::o;71013:42::-;71052:3;71013:42;:::o;25802:244::-;25079:12;:10;:12::i;:::-;-1:-1:-1;;;;;25068:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25068:23:0;;25060:68;;;;;-1:-1:-1;;;25060:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25060:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;25891:22:0;::::1;25883:73;;;;-1:-1:-1::0;;;25883:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25993:6;::::0;;25972:38:::1;::::0;-1:-1:-1;;;;;25972:38:0;;::::1;::::0;25993:6;::::1;::::0;25972:38:::1;::::0;::::1;26021:6;:17:::0;;-1:-1:-1;;;;;;26021:17:0::1;-1:-1:-1::0;;;;;26021:17:0;;;::::1;::::0;;;::::1;::::0;;25802:244::o;74859:534::-;25079:12;:10;:12::i;:::-;-1:-1:-1;;;;;25068:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;25068:23:0;;25060:68;;;;;-1:-1:-1;;;25060:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25060:68:0;;;;;;;;;;;;;;;74955:12:::1;74942:10;;:25;74934:73;;;;-1:-1:-1::0;;;74934:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75040:12;75026:11;:26;75018:88;;;;-1:-1:-1::0;;;75018:88:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75149:10;::::0;;75172:24;;;;75119:27:::1;75207:179;75226:8;:15:::0;75222:19;::::1;75207:179;;;75293:10;;75263:8;75272:1;75263:11;;;;;;;;;;;;;;;;;;:27;;:40;;;;75323:51;75341:19;75362:11;75323:51;;;;;;;;;;;;;;;;;;;;;;;;75243:3;;75207:179;;;;25139:1;74859:534:::0;:::o;23383:106::-;23471:10;23383:106;:::o;2797:179::-;2855:7;2887:5;;;2911:6;;;;2903:46;;;;;-1:-1:-1;;;2903:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;83192:1238;83258:21;83282:8;83291:4;83282:14;;;;;;;;;;;;;;;;83331;;;:8;:14;;;;;;83346:10;83331:26;;;;;;;83374:21;;;;83282:14;;;;;;;;-1:-1:-1;83370:117:0;;83441:34;83470:4;83441:28;:34::i;:::-;83417:21;;;:58;83370:117;83497:15;83515:68;83567:4;:15;;;83515:47;83557:4;83515:37;83531:4;:20;;;83515:4;:11;;;:15;;:37;;;;:::i;:68::-;83497:86;;83598:28;83609:4;83615:10;83598;:28::i;:::-;83594:829;;;83657:1;83647:7;:11;:38;;;;83684:1;83662:4;:19;;;:23;83647:38;83643:533;;;83706:20;83729:32;83741:4;:19;;;83729:7;:11;;:32;;;;:::i;:::-;83706:55;;83836:45;83861:4;:19;;;83836:20;;:24;;:45;;;;:::i;:::-;83813:20;:68;83922:1;83900:19;;;:23;83966:34;83995:4;83966:28;:34::i;:::-;83942:21;;;:58;84052:42;84069:10;84081:12;84052:16;:42::i;:::-;84113:47;84135:10;84147:12;84113:21;:47::i;:::-;83643:533;;83594:829;;;84197:11;;84193:230;;84247:19;;;;:32;;84271:7;84247:23;:32::i;:::-;84225:19;;;:54;84317:20;;:33;;84342:7;84317:24;:33::i;:::-;84294:20;:56;84370:41;;;;;;;;84397:4;;84385:10;;84370:41;;;;;;;;;84193:230;83192:1238;;;;:::o;3259:158::-;3317:7;3350:1;3345;:6;;3337:49;;;;;-1:-1:-1;;;3337:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3404:5:0;;;3259:158::o;19431:211::-;19575:58;;;-1:-1:-1;;;;;19575:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19575:58:0;-1:-1:-1;;;19575:58:0;;;19548:86;;19568:5;;19548:19;:86::i;3676:220::-;3734:7;3758:6;3754:20;;-1:-1:-1;3773:1:0;3766:8;;3754:20;3797:5;;;3801:1;3797;:5;:1;3821:5;;;;;:10;3813:56;;;;-1:-1:-1;;;3813:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4374:153;4432:7;4464:1;4460;:5;4452:44;;;;;-1:-1:-1;;;4452:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;4518:1;4514;:5;;;;;;;4374:153;-1:-1:-1;;;4374:153:0:o;82726:422::-;83093:20;;83132:8;;82726:422;;;;:::o;19650:248::-;19821:68;;;-1:-1:-1;;;;;19821:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19821:68:0;-1:-1:-1;;;19821:68:0;;;19794:96;;19814:5;;19794:19;:96::i;82201:517::-;82271:7;82291:21;82315:8;82324:4;82315:14;;;;;;;;;;;;;;;;;;82291:38;;82371:4;:23;;;82344:4;:23;;;:50;82340:371;;82417:198;82613:1;82417:191;82555:52;82583:4;:23;;;82555:4;:23;;;:27;;:52;;;;:::i;:::-;82466:86;82506:20;;82528:4;:20;;;82489:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82479:71;;;;;;82471:80;;82466:4;:86::i;:::-;:141;;;;;;82417:44;82437:4;:23;;;82417:15;:19;;:44;;;;:::i;:198::-;82410:205;;;;;82340:371;82675:23;;;;82655:44;;:15;;:19;:44::i;85054:425::-;85148:4;;:29;;;-1:-1:-1;;;85148:29:0;;85171:4;85148:29;;;;;;85130:15;;-1:-1:-1;;;;;85148:4:0;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;85148:29:0;;-1:-1:-1;85188:20:0;85231:17;;;85227:173;;;85283:4;;:27;;;-1:-1:-1;;;85283:27:0;;-1:-1:-1;;;;;85283:27:0;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;85283:27:0;;-1:-1:-1;85227:173:0;;;85361:4;;:27;;;-1:-1:-1;;;85361:27:0;;-1:-1:-1;;;;;85361:27:0;;;;;;;;;;;;;;;:4;;;;;:13;;:27;;;;;;;;;;;;;;:4;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;85361:27:0;;-1:-1:-1;85227:173:0;85418:15;85410:61;;;;-1:-1:-1;;;85410:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86972:620;87068:8;;-1:-1:-1;;;;;87068:8:0;87060:31;;;;:61;;-1:-1:-1;87095:22:0;;-1:-1:-1;;;87095:22:0;;;;:26;;87060:61;87056:529;;;87157:8;;:27;;;-1:-1:-1;;;87157:27:0;;-1:-1:-1;;;;;87157:27:0;;;;;;;;;87138:16;;87157:8;;;;;:20;;:27;;;;;;;;;;;;;;;:8;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;87157:27:0;87239:22;;87157:27;;-1:-1:-1;87199:24:0;;87226:47;;87267:5;;87226:36;;:8;;-1:-1:-1;;;87239:22:0;;;;87226:12;:36::i;:47::-;87199:74;-1:-1:-1;;;;;;87292:22:0;;;;;;:46;;;87337:1;87318:16;:20;87292:46;87288:286;;;87359:4;;:37;;;-1:-1:-1;;;87359:37:0;;-1:-1:-1;;;;;87359:37:0;;;;;;;;;;;;;;;:4;;;;;:9;;:37;;;;;:4;;:37;;;;;;;:4;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;87416:8:0;;:61;;;-1:-1:-1;;;87416:61:0;;-1:-1:-1;;;;;87416:61:0;;;;;;;;;;;;;;;:8;;;;;-1:-1:-1;87416:33:0;;-1:-1:-1;87416:61:0;;;;;:8;;:61;;;;;;;:8;;:61;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;87501:57:0;;;;;;;;-1:-1:-1;;;;;87501:57:0;;;;-1:-1:-1;87501:57:0;;;-1:-1:-1;87501:57:0;;;;;;;;;87056:529;;86972:620;;:::o;21966:774::-;22390:23;22416:69;22444:4;22416:69;;;;;;;;;;;;;;;;;22424:5;-1:-1:-1;;;;;22416:27:0;;;:69;;;;;:::i;:::-;22500:17;;22390:95;;-1:-1:-1;22500:21:0;22496:237;;22655:10;22644:30;;;;;;;;;;;;;;;-1:-1:-1;22644:30:0;22636:85;;;;-1:-1:-1;;;22636:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81515:678;81570:7;81590:12;81910;81885:3;81867:10;81850:28;;;;;;-1:-1:-1;;;;;81850:28:0;;;;;;;;;;;;;;;;;;;;;;81840:39;;;;;;81832:48;;81831:58;;;;;;81796:14;81771:3;81749:14;81732:32;;;;;;-1:-1:-1;;;;;81732:32:0;;;;;;;;;;;;;;;;;;;;;;81722:43;;;;;;81714:52;;81713:62;;;;;;81676:16;81658:15;:34;:118;:152;:232;:264;81966:1;81951:12;:16;81941:27;81997:12;82012:1;81997:16;81987:27;82033:15;82067:16;82102:15;82136:8;81623:536;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81613:547;;;;;;81605:556;;81590:571;;82181:4;82174:11;;;81515:678;;;:::o;14436:195::-;14539:12;14571:52;14593:6;14601:4;14607:1;14610:12;14571:21;:52::i;:::-;14564:59;14436:195;-1:-1:-1;;;;14436:195:0:o;15488:530::-;15615:12;15673:5;15648:21;:30;;15640:81;;;;-1:-1:-1;;;15640:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15740:18;15751:6;15740:10;:18::i;:::-;15732:60;;;;;-1:-1:-1;;;15732:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15866:12;15880:23;15907:6;-1:-1:-1;;;;;15907:11:0;15927:5;15935:4;15907:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15907:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15865:75;;;;15958:52;15976:7;15985:10;15997:12;15958:17;:52::i;:::-;15951:59;15488:530;-1:-1:-1;;;;;;;15488:530:0:o;18028:742::-;18143:12;18172:7;18168:595;;;-1:-1:-1;18203:10:0;18196:17;;18168:595;18317:17;;:21;18313:439;;18580:10;18574:17;18641:15;18628:10;18624:2;18620:19;18613:44;18528:148;18723:12;18716:20;;-1:-1:-1;;;18716:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

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