Contract 0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c34

Contract Overview

Balance:
0 BNB
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x0329db4c5235200eb6ea100a795fffcf55bddd244976020eb9641877f9529416Transfer88988592021-05-16 18:14:38125 days 22 hrs ago0xb017c481575318017dc2122b59759b25d21f6721 IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.00150224
0xa823d62d8d69d44d7438477bbfb51ca0f3c8b5afb9cbfa503081ac859f3f4dbeTransfer88987762021-05-16 18:10:29125 days 22 hrs ago0xb017c481575318017dc2122b59759b25d21f6721 IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.0007923
0x97b35fcba1cae9a3039e08b07ea08561d0f544f785ed87eff703ae83539cb4a4Transfer88987642021-05-16 18:09:53125 days 22 hrs ago0xb017c481575318017dc2122b59759b25d21f6721 IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.00079206
0x0bdcadd2353b13975b7b4abb8feb00c1dfdd4435bb3f3426d67627fee63e6304Transfer88987532021-05-16 18:09:20125 days 22 hrs ago0xb017c481575318017dc2122b59759b25d21f6721 IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.00135224
0xfa0688193d74caafab18f997b1059108c02eaa17dcd175f0d2f1df3469f32ad7Set Tax Fee Perc...88984382021-05-16 17:53:35125 days 22 hrs ago0x45670e7a43df1380322acf1f6db857a0052e196b IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.00013682
0x38e222b7aee8f984cc31fe59b263d4b38e3251e329a2a717e81b9408379b43f7Set Liquidity Fe...88984342021-05-16 17:53:23125 days 22 hrs ago0x45670e7a43df1380322acf1f6db857a0052e196b IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.0001367
0xb48d1f57e332b1f827f1b6d0a794d4c7404423fd28a7a2b72996d1b602dd9212Activate Contrac...88984242021-05-16 17:52:53125 days 22 hrs ago0x45670e7a43df1380322acf1f6db857a0052e196b IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.00058908
0x5e0eab5683888ff7785cdddae0b0efd05d7d43f54ae80120aff25d5784d4230cTransfer88983972021-05-16 17:51:32125 days 22 hrs ago0x45670e7a43df1380322acf1f6db857a0052e196b IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.00156537
0xa2f9e38e7011a6a575773b20b59eb16a031259bd43dbb8c056f0d894970e0319Approve88983722021-05-16 17:50:17125 days 22 hrs ago0xb017c481575318017dc2122b59759b25d21f6721 IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.00044491
0xff08da7875a18ecabaf59913bb6e51083939ae267c6a24182f5bc33b18d87ea5Approve88983412021-05-16 17:48:44125 days 22 hrs ago0xb017c481575318017dc2122b59759b25d21f6721 IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.00044635
0x16f4d7eb845dce0db2778caf0d574f7c7fb0d66dbfe809810f3b5285c80f6b4eTransfer88983132021-05-16 17:47:20125 days 22 hrs ago0xb017c481575318017dc2122b59759b25d21f6721 IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.00144453
0xd5b5774e1b2d5101ed6ccc8e69e1df56504a95f902d279cec995489f692a4fecTransfer88983002021-05-16 17:46:41125 days 22 hrs ago0x45670e7a43df1380322acf1f6db857a0052e196b IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.00156525
0xe0581519b1293a7a56b00f9196640669485337363fe3b4faa0a6da6dca1bb56bApprove88982642021-05-16 17:44:53125 days 22 hrs ago0x45670e7a43df1380322acf1f6db857a0052e196b IN  0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB0.00044503
0xe0bed1d52513ecc92fc0155259e6d1d50ee7fcc3f15b0203e1aae56216258df60x60a0604088982092021-05-16 17:42:08125 days 22 hrs ago0x45670e7a43df1380322acf1f6db857a0052e196b IN  Contract Creation0 BNB0.11425586
[ Download CSV Export 
Latest 4 internal transactions
Parent Txn Hash Block From To Value
0x794ecec084330e6e0dfd48e9d1c51fb12b2b26ced91b87c223698bb1e532d1bf88983902021-05-16 17:51:11125 days 22 hrs ago 0xd99d1c33f9fc3444f8101754abc46c52416550d1 0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c340 BNB
0xe0bed1d52513ecc92fc0155259e6d1d50ee7fcc3f15b0203e1aae56216258df688982092021-05-16 17:42:08125 days 22 hrs ago 0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c34 0x6725f303b657a9451d8ba641348b6761a6cc7a170 BNB
0xe0bed1d52513ecc92fc0155259e6d1d50ee7fcc3f15b0203e1aae56216258df688982092021-05-16 17:42:08125 days 22 hrs ago 0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c34 0xd99d1c33f9fc3444f8101754abc46c52416550d10 BNB
0xe0bed1d52513ecc92fc0155259e6d1d50ee7fcc3f15b0203e1aae56216258df688982092021-05-16 17:42:08125 days 22 hrs ago 0x1b56ab76bc7e65a97d1eff11918cb84a7bd91c34 0xd99d1c33f9fc3444f8101754abc46c52416550d10 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CosbyCoin

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : CosbyCoin.sol
/**

CosbyCoin - $COSBY

10% Tax
- 3% Reflect
- 1% Burn
- 6% Liquidity
    - 2% for Marketing Wallet
    - 3% reserved for Jackpot
    - 1% for liquidity lock

*/

//SPDX-License-Identifier: MIT

pragma solidity >=0.6.8;

interface IBEP20 {

    function totalSupply() external view returns (uint256);

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



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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function getUnlockTime() public view returns (uint256) {
        return _lockTime;
    }

    //Locks the contract for owner for the amount of time provided
    function lock(uint256 time) public virtual onlyOwner {
        _previousOwner = _owner;
        _owner = address(0);
        _lockTime = now + time;
        emit OwnershipTransferred(_owner, address(0));
    }

    //Unlocks the contract for owner when _lockTime is exceeds
    function unlock() public virtual {
        require(_previousOwner == msg.sender, "You don't have permission to unlock");
        require(now > _lockTime , "Contract is locked until 7 days");
        emit OwnershipTransferred(_owner, _previousOwner);
        _owner = _previousOwner;
    }
}

interface IPancakeFactory {
    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;
}

interface IPancakePair {
    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;
}

interface IPancakeRouter01 {
    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);
}

interface IPancakeRouter02 is IPancakeRouter01 {
    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: contracts/protocols/bep/ReentrancyGuard.sol

pragma solidity >=0.6.8;

/**
 * @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 () public {
        _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, "nonReentrant:: 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;
    }

    modifier isHuman() {
        require(tx.origin == msg.sender, "isHuman:: sorry humans only");
        _;
    }
}

// File: contracts/CosbyCoin.sol

pragma solidity >=0.6.8;
pragma experimental ABIEncoderV2;



contract CosbyCoin is Context, IBEP20, Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using Address for address;

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

    mapping(address => bool) private _isExcludedFromFee;
    mapping(address => bool) private _isExcluded;
    mapping(address => bool) private _isExcludedFromMaxTx;

    // Anti-bot and anti-whale mappings and variables
    mapping(address => uint256) private _holderLastTransferTimestamp; // to hold last Transfers temporarily during launch

    address[] private _excluded;

    uint256 private constant MAX = ~uint256(0);
    uint256 private _tTotal = 1 * 10 ** 15 * 10 ** 9; // 1 Quadrillion tokens (12 0's, 9 decimal places)
    uint256 private _rTotal = (MAX - (MAX % _tTotal));
    uint256 private _tFeeTotal;
    bool public swapAndLiquifyEnabled = false; // make true after launch

    uint256 public _taxFee = 4; // 3% reflect, 1% burn
    uint256 private _previousTaxFee = _taxFee;

    uint256 public _liquidityFee = 6; // 3% added to Jackpot Pool, 2% to Marketing Wallet, 1% to locked liquidity
    uint256 private _previousLiquidityFee = _liquidityFee;
    
    // BNB Jackpot variables and mappings
    mapping(address => bool) private isIncludedInWalletIndex;
    mapping(uint256 => address) private walletIndex;
    uint256 private walletIndexLength;
    uint256 public weeklyJackpotCycleBlock = 7 days;
    uint256 public dailyJackpotCycleBlock = 1 days;
    uint256 public nextDailyJackpotTime = 0;
    uint256 public nextWeeklyJackpotTime = 0;
    uint256 public _maxTxAmount = _tTotal;
    bool public jackpotEnabled = false; // make true after launch

    uint256 private minTokenNumberToSell = _tTotal.mul(50).div(10000).div(10); // 0.05% min liquidity to sell to trigger liquidity locking

    address payable marketingAddress;

    string private _name = "Cosby Coin";
    string private _symbol = "COSBY";
    uint8 private _decimals = 9;

    IPancakeRouter02 public immutable pancakeRouter;
    address public pancakePair;
    // address public pancakeRouterAddress = address(0x10ED43C718714eb63d5aA57B78B54704E256024E); // PCS V2 Mainnet Router 
    address public pancakeRouterAddress = address(0xD99D1c33F9fC3444f8101754aBC46c52416550D1); // PCS Testnet Router


    bool inSwapAndLiquify = false;

    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event JackpotEnabledUpdated(bool enabled);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );

    event ClaimedBNB(
        address recipient,
        uint256 ethReceived,
        uint256 nextAvailableClaimDate
    );

    constructor (
    ) public {
        _rOwned[_msgSender()] = _rTotal.div(4).mul(3);
        _rOwned[address(0x000000000000000000000000000000000000dEaD)] = _rTotal.div(4);
        walletIndex[0] = address(0x000000000000000000000000000000000000dEaD); // set to exclude from winning
        walletIndex[1] = address(this); // set to exclude from winning
        walletIndexLength = 2;

        IPancakeRouter02 _pancakeRouter = IPancakeRouter02(pancakeRouterAddress);
        // Create a pancake pair for this new token
        pancakePair = IPancakeFactory(_pancakeRouter.factory())
        .createPair(address(this), _pancakeRouter.WETH());

        // set the rest of the contract variables
        pancakeRouter = _pancakeRouter;

        marketingAddress = payable(0x5ecbeC6E33CE3e3D90793B7066c0e71bF7380E3b);

        // exclude dead address, contract, pancake pair, contract creator, and marketing address from winning Jackpot
        walletIndex[0] = address(0x000000000000000000000000000000000000dEaD); // set to exclude from winning
        walletIndex[1] = address(this); // set to exclude from winning
        walletIndex[2] = address(pancakePair);
        walletIndex[3] = address(marketingAddress);
        walletIndex[4] = address(msg.sender);
        isIncludedInWalletIndex[address(0x000000000000000000000000000000000000dEaD)] = true;
        isIncludedInWalletIndex[address(this)] = true;
        isIncludedInWalletIndex[address(pancakePair)] = true;
        isIncludedInWalletIndex[address(marketingAddress)] = true;
        isIncludedInWalletIndex[address(msg.sender)] = true;

        walletIndexLength = 5;

        nextDailyJackpotTime = block.timestamp;
        nextWeeklyJackpotTime = block.timestamp + 1 weeks;

        // exclude owner and this contract from fee
        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;
        _isExcludedFromFee[address(marketingAddress)] = true;

        // exclude from max tx
        _isExcludedFromMaxTx[owner()] = true;
        _isExcludedFromMaxTx[address(this)] = true;
        _isExcludedFromMaxTx[address(0x000000000000000000000000000000000000dEaD)] = true;
        _isExcludedFromMaxTx[address(0)] = true;

        emit Transfer(address(0), _msgSender(), _tTotal.div(4).mul(3));
        emit Transfer(address(0), address(0x000000000000000000000000000000000000dEaD), _tTotal.div(4));
    }

    function setMarketingAddress(address _marketingAddress) external onlyOwner() returns (bool){
        marketingAddress = payable(_marketingAddress);
        return true;
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function decimals() public view returns (uint8) {
        return _decimals;
    }

    function totalSupply() public view override returns (uint256) {
        return _tTotal;
    }

    function balanceOf(address account) public view override returns (uint256) {
        if (_isExcluded[account]) return _tOwned[account];
        return tokenFromReflection(_rOwned[account]);
    }

    function transfer(address recipient, uint256 amount) public override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function allowance(address owner, address spender) public view override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "transferFrom: transfer amount exceeds allowance"));
        return true;
    }

    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "decreaseAllowance: decreased allowance below zero"));
        return true;
    }

    function isExcludedFromReward(address account) public view returns (bool) {
        return _isExcluded[account];
    }

    function totalFees() public view returns (uint256) {
        return _tFeeTotal;
    }

    function deliver(uint256 tAmount) public {
        address sender = _msgSender();
        require(!_isExcluded[sender], "deliver:: Excluded addresses cannot call this function");
        (uint256 rAmount,,,,,) = _getValues(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _rTotal = _rTotal.sub(rAmount);
        _tFeeTotal = _tFeeTotal.add(tAmount);
    }

    function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns (uint256) {
        require(tAmount <= _tTotal, "reflectionFromToken:: Amount must be less than supply");
        if (!deductTransferFee) {
            (uint256 rAmount,,,,,) = _getValues(tAmount);
            return rAmount;
        } else {
            (,uint256 rTransferAmount,,,,) = _getValues(tAmount);
            return rTransferAmount;
        }
    }

    function tokenFromReflection(uint256 rAmount) public view returns (uint256) {
        require(rAmount <= _rTotal, "tokenFromReflection:: Amount must be less than total reflections");
        uint256 currentRate = _getRate();
        return rAmount.div(currentRate);
    }

    function excludeFromReward(address account) public onlyOwner() {
        require(!_isExcluded[account], "excludeFromReward:: Account is already excluded from reward");
        if (_rOwned[account] > 0) {
            _tOwned[account] = tokenFromReflection(_rOwned[account]);
        }
        _isExcluded[account] = true;
        _excluded.push(account);
    }

    function includeInReward(address account) external onlyOwner() {
        require(_isExcluded[account], "includeInReward:: Account is already included in reward");
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_excluded[i] == account) {
                _excluded[i] = _excluded[_excluded.length - 1];
                _tOwned[account] = 0;
                _isExcluded[account] = false;
                _excluded.pop();
                break;
            }
        }
    }

    function _transferBothExcluded(address sender, address recipient, uint256 tAmount) private {
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function excludeFromFee(address account) public onlyOwner {
        _isExcludedFromFee[account] = true;
    }

    function includeInFee(address account) public onlyOwner {
        _isExcludedFromFee[account] = false;
    }

    function setTaxFeePercent(uint256 taxFee) external onlyOwner() {
        _taxFee = taxFee;
    }

    function setLiquidityFeePercent(uint256 liquidityFee) external onlyOwner() {
        _liquidityFee = liquidityFee;
    }

    function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
        swapAndLiquifyEnabled = _enabled;
        emit SwapAndLiquifyEnabledUpdated(_enabled);
    }

    function setJackpotEnabled(bool _enabled) public onlyOwner {
        jackpotEnabled = _enabled;
        emit JackpotEnabledUpdated(_enabled);
    }

    //to receive BNB from pancakeRouter when swapping
    receive() external payable {}

    function _reflectFee(uint256 rFee, uint256 tFee) private {
        _rTotal = _rTotal.sub(rFee);
        _tFeeTotal = _tFeeTotal.add(tFee);
    }

    function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256, uint256) {
        (uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getTValues(tAmount);
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, tLiquidity, _getRate());
        return (rAmount, rTransferAmount, rFee, tTransferAmount, tFee, tLiquidity);
    }

    function _getTValues(uint256 tAmount) private view returns (uint256, uint256, uint256) {
        uint256 tFee = calculateTaxFee(tAmount);
        uint256 tLiquidity = calculateLiquidityFee(tAmount);
        uint256 tTransferAmount = tAmount.sub(tFee).sub(tLiquidity);
        return (tTransferAmount, tFee, tLiquidity);
    }

    function _getRValues(uint256 tAmount, uint256 tFee, uint256 tLiquidity, uint256 currentRate) private pure returns (uint256, uint256, uint256) {
        uint256 rAmount = tAmount.mul(currentRate);
        uint256 rFee = tFee.mul(currentRate);
        uint256 rLiquidity = tLiquidity.mul(currentRate);
        uint256 rTransferAmount = rAmount.sub(rFee).sub(rLiquidity);
        return (rAmount, rTransferAmount, rFee);
    }

    function _getRate() private view returns (uint256) {
        (uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
        return rSupply.div(tSupply);
    }

    function _getCurrentSupply() private view returns (uint256, uint256) {
        uint256 rSupply = _rTotal;
        uint256 tSupply = _tTotal;
        for (uint256 i = 0; i < _excluded.length; i++) {
            if (_rOwned[_excluded[i]] > rSupply || _tOwned[_excluded[i]] > tSupply) return (_rTotal, _tTotal);
            rSupply = rSupply.sub(_rOwned[_excluded[i]]);
            tSupply = tSupply.sub(_tOwned[_excluded[i]]);
        }
        if (rSupply < _rTotal.div(_tTotal)) return (_rTotal, _tTotal);
        return (rSupply, tSupply);
    }

    function _takeLiquidity(uint256 tLiquidity) private {
        uint256 currentRate = _getRate();
        uint256 rLiquidity = tLiquidity.mul(currentRate);
        _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity);
        if (_isExcluded[address(this)])
            _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity);
    }

    function calculateTaxFee(uint256 _amount) private view returns (uint256) {
        return _amount.mul(_taxFee).div(
            10 ** 2
        );
    }

    function calculateLiquidityFee(uint256 _amount) private view returns (uint256) {
        return _amount.mul(_liquidityFee).div(
            10 ** 2
        );
    }

    function removeAllFee() private {
        if (_taxFee == 0 && _liquidityFee == 0) return;

        _previousTaxFee = _taxFee;
        _previousLiquidityFee = _liquidityFee;

        _taxFee = 0;
        _liquidityFee = 0;
    }

    function restoreAllFee() private {
        _taxFee = _previousTaxFee;
        _liquidityFee = _previousLiquidityFee;
    }

    function isExcludedFromFee(address account) public view returns (bool) {
        return _isExcludedFromFee[account];
    }

    function _approve(address owner, address spender, uint256 amount) private {
        require(owner != address(0), "_approve:: approve from the zero address");
        require(spender != address(0), "_approve:: approve to the zero address");

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

    function _transfer(
        address from,
        address to,
        uint256 amount
    ) private {
        require(from != address(0), "_transfer:: Cannot transfer from the zero address");
        require(to != address(0), "_transfer:: Cannot transfer to the zero address");
        require(amount > 0, "_transfer:: Transfer amount must be greater than zero");

        
        ensureMaxTxAmount(from, to, amount);
        jackpotDrawing();
        // swap and liquify
        swapAndLiquify(from, to);

        //indicates if fee should be deducted from transfer
        bool takeFee = true;

        //if any account belongs to _isExcludedFromFee account then remove the fee
        if (_isExcludedFromFee[from] || _isExcludedFromFee[to]) {
            takeFee = false;
        }

        //transfer amount, it will take tax, burn, liquidity fee
        _tokenTransfer(from, to, amount, takeFee);

        // 10 Billion minimum to be included in drawing.
        if(!isIncludedInWalletIndex[to] && balanceOf(to) > 10 * 10 ** 9 * 10 ** 9){
            isIncludedInWalletIndex[to] = true;
            walletIndex[walletIndexLength] = to;
            walletIndexLength += 1;
        }
    }

    //this method is responsible for taking all fee, if takeFee is true
    function _tokenTransfer(address sender, address recipient, uint256 amount, bool takeFee) private {
        if (!takeFee)
            removeAllFee();

        if (_isExcluded[sender] && !_isExcluded[recipient]) {
            _transferFromExcluded(sender, recipient, amount);
        } else if (!_isExcluded[sender] && _isExcluded[recipient]) {
            _transferToExcluded(sender, recipient, amount);
        } else if (!_isExcluded[sender] && !_isExcluded[recipient]) {
            _transferStandard(sender, recipient, amount);
        } else if (_isExcluded[sender] && _isExcluded[recipient]) {
            _transferBothExcluded(sender, recipient, amount);
        } else {
            _transferStandard(sender, recipient, amount);
        }

        if (!takeFee)
            restoreAllFee();
    }

    function _transferStandard(address sender, address recipient, uint256 tAmount) private {
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function _transferToExcluded(address sender, address recipient, uint256 tAmount) private {
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function _transferFromExcluded(address sender, address recipient, uint256 tAmount) private {
        (uint256 rAmount, uint256 rTransferAmount, uint256 rFee, uint256 tTransferAmount, uint256 tFee, uint256 tLiquidity) = _getValues(tAmount);
        _tOwned[sender] = _tOwned[sender].sub(tAmount);
        _rOwned[sender] = _rOwned[sender].sub(rAmount);
        _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount);
        _takeLiquidity(tLiquidity);
        _reflectFee(rFee, tFee);
        emit Transfer(sender, recipient, tTransferAmount);
    }

    function setMaxTxPercent(uint256 maxTxPercent) public onlyOwner() { // Example: 5 maxTxPercent = .05% (500M tokens per txn)
        require(maxTxPercent > 0, "setMaxTxPercent:: May not set maxTxPercent to 0 to always allow people to buy / sell");
        _maxTxAmount = _tTotal.mul(maxTxPercent).div(10000);
    }

    function setExcludeFromMaxTx(address _address, bool value) public onlyOwner {
        _isExcludedFromMaxTx[_address] = value;
    }

    function calculateBNBReward(address ofAddress) public view returns (uint256) {
        uint256 ttlSupply = uint256(_tTotal)
        .sub(balanceOf(address(0)))
        .sub(balanceOf(0x000000000000000000000000000000000000dEaD)) // exclude burned wallet
        .sub(balanceOf(address(pancakePair)));
        // exclude liquidity wallet

        uint256 bnbPool = address(this).balance;

        // now calculate reward
        uint256 reward = bnbPool.mul(balanceOf(address(ofAddress))).div(100).div(ttlSupply);
        return reward;
    }

    function random(uint256 from, uint256 to) private view returns (uint256) {
        uint256 salty = balanceOf(msg.sender);
        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 +
                    salty
                )
            )
        );
        return seed.mod(to - from) + from;
    }

    function weeklyJackpot() internal {
        uint256 jackpotBalance = address(this).balance;
        uint256 amountToWin = jackpotBalance;
        uint256 winner = random(5, walletIndexLength.sub(1));
        address winningAddress = payable(walletIndex[winner]);
        // must hold tokens to win
        if(balanceOf(walletIndex[winner]) > 0){
            nextDailyJackpotTime = block.timestamp + dailyJackpotCycleBlock;
            nextWeeklyJackpotTime += weeklyJackpotCycleBlock;
            (bool sent,) = winningAddress.call{value : amountToWin}("");
            require(sent, 'claimBNBReward:: Error: Cannot withdraw reward');    
        }
    }

    function dailyJackpot() internal {
        uint256 jackpotBalance = address(this).balance;
        uint256 amountToWin = jackpotBalance.div(100).mul(70); // 70% of pool daily
        uint256 winner = random(5, walletIndexLength.sub(1));
        address winningAddress = payable(walletIndex[winner]);
        // must hold tokens to win
        if(balanceOf(walletIndex[winner]) > 0){
            nextDailyJackpotTime = block.timestamp + dailyJackpotCycleBlock;
            (bool sent,) = winningAddress.call{value : amountToWin}("");
            require(sent, 'claimBNBReward:: Error: Cannot withdraw reward');
            
        }
    }

    // Jackpot
    function jackpotDrawing() isHuman nonReentrant private {
        if(jackpotEnabled){
            // time to draw?
            if(nextDailyJackpotTime <= block.timestamp || nextWeeklyJackpotTime <= block.timestamp){
                if(nextWeeklyJackpotTime <= block.timestamp){
                    weeklyJackpot();
                } else {
                    dailyJackpot();
                }         
            }
        }
    }


    function ensureMaxTxAmount(
        address from,
        address to,
        uint256 amount
    ) private view {
        if (
            _isExcludedFromMaxTx[from] == false && // default will be false
            _isExcludedFromMaxTx[to] == false // default will be false
        ) {
            require(amount <= _maxTxAmount, "ensureMaxTxAmount:: Transfer amount exceeds the maxTxAmount.");
        }
    }

     function sendBnbToMarketingAddress(
        uint256 amount
    ) internal {
        (bool sent,) = marketingAddress.call{value : amount}("");
        require(sent, 'claimBNBReward:: Error: Cannot withdraw reward');
    }


    function swapAndLiquify(address from, address to) private {
        // is the token balance of this contract address over the min number of
        // tokens that we need to initiate a swap + liquidity lock?
        // also, don't get caught in a circular liquidity event.
        // also, don't swap & liquify if sender is pancake pair.
        uint256 contractTokenBalance = balanceOf(address(this));

        if (contractTokenBalance >= _maxTxAmount) {
            contractTokenBalance = _maxTxAmount;
        }

        bool shouldSell = contractTokenBalance >= minTokenNumberToSell;

        if (
            !inSwapAndLiquify &&
        shouldSell &&
        from != pancakePair &&
        swapAndLiquifyEnabled &&
        !(from == address(this) && to == address(pancakePair)) // swap 1 time
        ) {
            // only sell for minTokenNumberToSell, decouple from _maxTxAmount
            contractTokenBalance = minTokenNumberToSell;

            // add liquidity
            // split the contract balance into 3 pieces
            uint256 pooledBNB = contractTokenBalance.div(2);
            uint256 piece = contractTokenBalance.sub(pooledBNB).div(2);
            uint256 otherPiece = contractTokenBalance.sub(piece);

            uint256 tokenAmountToBeSwapped = pooledBNB.add(piece);

            uint256 initialBalance = address(this).balance;

            // now is to lock into staking pool
            swapTokensForEth(address(pancakeRouter), tokenAmountToBeSwapped);

            // how much BNB did we just swap into?

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

            uint256 bnbToBeAddedToLiquidity = deltaBalance.div(2);

            // Send BNB to Marketing Address if new BNB is sufficient (Should always be true after the first send)
            if(deltaBalance > bnbToBeAddedToLiquidity){
               sendBnbToMarketingAddress(deltaBalance.sub(bnbToBeAddedToLiquidity).div(5).mul(2));
            }

            // add liquidity to pancake
            addLiquidity(address(pancakeRouter), owner(), otherPiece, bnbToBeAddedToLiquidity);

            emit SwapAndLiquify(piece, deltaBalance, otherPiece);
        }
    }

    // contract Activation for DxSale
    function activateContractForDxSale(address dxSaleAddress) external onlyOwner {
        _isExcludedFromFee[dxSaleAddress] = true;

        // jackpot set
        weeklyJackpotCycleBlock = 7 days;
        dailyJackpotCycleBlock = 1 days;

        //set variables
        setMaxTxPercent(100); // 1% of total supply, but dxSale is excluded from txn.
        setSwapAndLiquifyEnabled(false);

        // approve contract
        _approve(address(this), address(pancakeRouter), 2 ** 256 - 1);
    }

    function swapTokensForEth(
        address routerAddress,
        uint256 tokenAmount
    ) private {
        IPancakeRouter02 _pancakeRouter = IPancakeRouter02(routerAddress);

        // generate the pancake pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = pancakeRouter.WETH();

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

    function swapETHForTokens(
        address routerAddress,
        address recipient,
        uint256 ethAmount
    ) private {
        IPancakeRouter02 _pancakeRouter = IPancakeRouter02(routerAddress);

        // generate the pancake pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = _pancakeRouter.WETH();
        path[1] = address(this);

        // make the swap
        _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(
            0, // accept any amount of BNB
            path,
            address(recipient),
            block.timestamp + 360
        );
    }

    function addLiquidity(
        address routerAddress,
        address owner,
        uint256 tokenAmount,
        uint256 ethAmount
    ) private {
        IPancakeRouter02 _pancakeRouter = IPancakeRouter02(routerAddress);

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nextAvailableClaimDate","type":"uint256"}],"name":"ClaimedBNB","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"JackpotEnabledUpdated","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":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"SwapAndLiquifyEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_liquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dxSaleAddress","type":"address"}],"name":"activateContractForDxSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ofAddress","type":"address"}],"name":"calculateBNBReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dailyJackpotCycleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"}],"name":"deliver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getUnlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jackpotEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextDailyJackpotTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextWeeklyJackpotTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pancakePair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pancakeRouter","outputs":[{"internalType":"contract IPancakeRouter02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pancakeRouterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"},{"internalType":"bool","name":"deductTransferFee","type":"bool"}],"name":"reflectionFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setExcludeFromMaxTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setJackpotEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"liquidityFee","type":"uint256"}],"name":"setLiquidityFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_marketingAddress","type":"address"}],"name":"setMarketingAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTxPercent","type":"uint256"}],"name":"setMaxTxPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapAndLiquifyEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"taxFee","type":"uint256"}],"name":"setTaxFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weeklyJackpotCycleBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405269d3c21bcecceda1000000600c81905569085afffa6ff50bffffff19600d55600f805460ff19908116909155600460108190556011556006601281905560135562093a806017556201518060185560006019819055601a55601b829055601c80549091169055620000a590600a9062000091906127109082906032620007aa602090811b6200166b17901c565b620007fc60201b620016a51790919060201c565b601d5560408051808201909152600a8082526921b7b9b13c9021b7b4b760b11b6020909201918252620000db91601f9162000894565b5060408051808201909152600580825264434f53425960d81b602092830190815262000108929162000894565b506021805460ff191660091790556022805460ff60a01b196001600160a01b031990911673d99d1c33f9fc3444f8101754abc46c52416550d1171690553480156200015257600080fd5b5060006200015f62000846565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600381905550620001e86003620001d46004600d54620007fc60201b620016a51790919060201c565b620007aa60201b6200166b1790919060201c565b60046000620001f662000846565b6001600160a01b03166001600160a01b0316815260200190815260200160002081905550620002376004600d54620007fc60201b620016a51790919060201c565b7f42c63635470f1fb1d6d4b6441c413cb435b1ebb6fedd1896dd5e25d1399147dd556015602090815260008051602062003d9983398151915280546001600160a01b031990811661dead17909155600160005260008051602062003dd983398151915280549091163017905560026016556022546040805163c45a015560e01b815290516001600160a01b039290921692839263c45a0155926004818101939291829003018186803b158015620002ed57600080fd5b505afa15801562000302573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000328919062000930565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200037157600080fd5b505afa15801562000386573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003ac919062000930565b6040518363ffffffff1660e01b8152600401620003cb92919062000959565b602060405180830381600087803b158015620003e657600080fd5b505af1158015620003fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000421919062000930565b60218054610100600160a81b0319166101006001600160a01b03938416810291909117808355606085901b6001600160601b031916608052601e8054735ecbec6e33ce3e3d90793b7066c0e71bf7380e3b6001600160a01b03199182161780835560008051602062003d99833981519152805461dead90841617905560008051602062003dd983398151915280543090841681179091557f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b8054958790048916958416959095179094557fb3a65e8276bd33b3e4f7d6081ebd9899187264822358758dca2e2bc37b2a9c2780549188169183169190911790557f8191f4eb6b8bafbfe9a5389c8d07d7f5fd81137a7ee653fc4358269845ee1d2e80543392168217905560146020527f8b9e18c5e04efe171d1e4f682ad90d753958a5ffe56db5290b0236c8e0b6db00805460ff199081166001908117909255600094855260408086208054831684179055965495909504871684528584208054861682179055915490951682528382208054841682179055938152918220805490911683179055600560165542601981905562093a8001601a55600790620005e26200084a565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790553081526007909352818320805485166001908117909155601e54909116835290822080549093168117909255600990620006496200084a565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff19958616179055308152600990925281208054831660019081179091557f960b1051749987b45b5679007fff577a1c2f763ec21c15a6c5eb19307500378580548416821790559080527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b8054909216179055620006ea62000846565b6001600160a01b031660006001600160a01b031660008051602062003db9833981519152620007316003620001d46004600c54620007fc60201b620016a51790919060201c565b60405162000740919062000a0a565b60405180910390a361dead6001600160a01b031660006001600160a01b031660008051602062003db98339815191526200078c6004600c54620007fc60201b620016a51790919060201c565b6040516200079b919062000a0a565b60405180910390a35062000a13565b600082620007bb57506000620007f6565b82820282848281620007c957fe5b0414620007f35760405162461bcd60e51b8152600401620007ea90620009c9565b60405180910390fd5b90505b92915050565b6000620007f383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506200085960201b60201c565b3390565b6000546001600160a01b031690565b600081836200087d5760405162461bcd60e51b8152600401620007ea919062000973565b5060008385816200088a57fe5b0495945050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620008d757805160ff191683800117855562000907565b8280016001018555821562000907579182015b8281111562000907578251825591602001919060010190620008ea565b506200091592915062000919565b5090565b5b808211156200091557600081556001016200091a565b60006020828403121562000942578081fd5b81516001600160a01b0381168114620007f3578182fd5b6001600160a01b0392831681529116602082015260400190565b6000602080835283518082850152825b81811015620009a15785810183015185820160400152820162000983565b81811115620009b35783604083870101525b50601f01601f1916929092016040019392505050565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b90815260200190565b60805160601c61335462000a4560003980611298528061159d5280611c315280611ca2528061223552506133546000f3fe6080604052600436106102975760003560e01c8063705f5f071161015a578063a9059cbb116100c1578063d543dbeb1161007a578063d543dbeb14610748578063dd46706414610768578063dd62ed3e14610788578063ea2f0b37146107a8578063ea72645f146107c8578063f2fde38b146107e85761029e565b8063a9059cbb146106a9578063b4054b44146106c9578063b8c9d25c146106de578063c21ebd07146106f3578063c49b9a8014610708578063c8b68875146107285761029e565b80638ee88c53116101135780638ee88c531461060a578063906e9dd01461062a57806395d89b411461064a5780639d2aee5f1461065f578063a457c2d714610674578063a69df4b5146106945761029e565b8063705f5f071461056957806370a082311461057e578063715018a61461059e5780637d1db4a5146105b357806388f82020146105c85780638da5cb5b146105e85761029e565b806339509351116101fe57806352390c02116101b757806352390c02146104ca5780635342acb4146104ea57806355562fc01461050a5780635b89029c1461051f578063602bc62b1461053f5780636bc87c3a146105545761029e565b806339509351146104205780633b124fe7146104405780633bd5d17314610455578063437823ec146104755780634549b039146104955780634a74bb02146104b55761029e565b80631ac3e674116102505780631ac3e674146103695780632060995e1461037e57806323b872dd1461039e5780632d838119146103be578063313ce567146103de5780633685d419146104005761029e565b806305b22e6f146102a3578063061c82d0146102ce57806306fdde03146102f0578063095ea7b31461031257806313114a9d1461033f57806318160ddd146103545761029e565b3661029e57005b600080fd5b3480156102af57600080fd5b506102b8610808565b6040516102c59190612aeb565b60405180910390f35b3480156102da57600080fd5b506102ee6102e9366004612a62565b61080e565b005b3480156102fc57600080fd5b50610305610851565b6040516102c59190612b4e565b34801561031e57600080fd5b5061033261032d366004612a1b565b6108e6565b6040516102c59190612b43565b34801561034b57600080fd5b506102b8610904565b34801561036057600080fd5b506102b861090a565b34801561037557600080fd5b506102b8610910565b34801561038a57600080fd5b506102b861039936600461293a565b610916565b3480156103aa57600080fd5b506103326103b93660046129aa565b610994565b3480156103ca57600080fd5b506102b86103d9366004612a62565b610a1b565b3480156103ea57600080fd5b506103f3610a5c565b6040516102c5919061326d565b34801561040c57600080fd5b506102ee61041b36600461293a565b610a65565b34801561042c57600080fd5b5061033261043b366004612a1b565b610bce565b34801561044c57600080fd5b506102b8610c1c565b34801561046157600080fd5b506102ee610470366004612a62565b610c22565b34801561048157600080fd5b506102ee61049036600461293a565b610cdd565b3480156104a157600080fd5b506102b86104b0366004612a7a565b610d36565b3480156104c157600080fd5b50610332610d93565b3480156104d657600080fd5b506102ee6104e536600461293a565b610d9c565b3480156104f657600080fd5b5061033261050536600461293a565b610eca565b34801561051657600080fd5b506102b8610ee8565b34801561052b57600080fd5b506102ee61053a3660046129ea565b610eee565b34801561054b57600080fd5b506102b8610f4e565b34801561056057600080fd5b506102b8610f54565b34801561057557600080fd5b506102b8610f5a565b34801561058a57600080fd5b506102b861059936600461293a565b610f60565b3480156105aa57600080fd5b506102ee610fc2565b3480156105bf57600080fd5b506102b861102f565b3480156105d457600080fd5b506103326105e336600461293a565b611035565b3480156105f457600080fd5b506105fd611053565b6040516102c59190612af4565b34801561061657600080fd5b506102ee610625366004612a62565b611062565b34801561063657600080fd5b5061033261064536600461293a565b61109c565b34801561065657600080fd5b506103056110f8565b34801561066b57600080fd5b50610332611154565b34801561068057600080fd5b5061033261068f366004612a1b565b61115d565b3480156106a057600080fd5b506102ee6111c5565b3480156106b557600080fd5b506103326106c4366004612a1b565b61125f565b3480156106d557600080fd5b506105fd611273565b3480156106ea57600080fd5b506105fd611282565b3480156106ff57600080fd5b506105fd611296565b34801561071457600080fd5b506102ee610723366004612a46565b6112ba565b34801561073457600080fd5b506102ee610743366004612a46565b611338565b34801561075457600080fd5b506102ee610763366004612a62565b6113ab565b34801561077457600080fd5b506102ee610783366004612a62565b611421565b34801561079457600080fd5b506102b86107a3366004612972565b61149c565b3480156107b457600080fd5b506102ee6107c336600461293a565b6114c7565b3480156107d457600080fd5b506102ee6107e336600461293a565b61151d565b3480156107f457600080fd5b506102ee61080336600461293a565b6115c7565b60195481565b6108166116e7565b6000546001600160a01b0390811691161461084c5760405162461bcd60e51b815260040161084390612f36565b60405180910390fd5b601055565b601f80546040805160206002600019610100600187161502019094169390930480850184900484028201840190925281815260609390929091908301828280156108dc5780601f106108b1576101008083540402835291602001916108dc565b820191906000526020600020905b8154815290600101906020018083116108bf57829003601f168201915b5050505050905090565b60006108fa6108f36116e7565b84846116eb565b5060015b92915050565b600e5490565b600c5490565b60175481565b60008061096461093a602160019054906101000a90046001600160a01b0316610f60565b61095e61094861dead610f60565b61095e6109556000610f60565b600c549061179f565b9061179f565b90504760006109898361098360648161097c8a610f60565b879061166b565b906116a5565b93505050505b919050565b60006109a18484846117e1565b610a11846109ad6116e7565b610a0c856040518060600160405280602f81526020016132f0602f91396001600160a01b038a166000908152600660205260408120906109eb6116e7565b6001600160a01b031681526020810191909152604001600020549190611952565b6116eb565b5060019392505050565b6000600d54821115610a3f5760405162461bcd60e51b815260040161084390612c8d565b6000610a4961197e565b9050610a5583826116a5565b9392505050565b60215460ff1690565b610a6d6116e7565b6000546001600160a01b03908116911614610a9a5760405162461bcd60e51b815260040161084390612f36565b6001600160a01b03811660009081526008602052604090205460ff16610ad25760405162461bcd60e51b815260040161084390612d31565b60005b600b54811015610bca57816001600160a01b0316600b8281548110610af657fe5b6000918252602090912001546001600160a01b03161415610bc257600b80546000198101908110610b2357fe5b600091825260209091200154600b80546001600160a01b039092169183908110610b4957fe5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600582526040808220829055600890925220805460ff19169055600b805480610b9b57fe5b600082815260209020810160001990810180546001600160a01b0319169055019055610bca565b600101610ad5565b5050565b60006108fa610bdb6116e7565b84610a0c8560066000610bec6116e7565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906119a1565b60105481565b6000610c2c6116e7565b6001600160a01b03811660009081526008602052604090205490915060ff1615610c685760405162461bcd60e51b815260040161084390612e9f565b6000610c73836119c6565b505050506001600160a01b038416600090815260046020526040902054919250610c9f9190508261179f565b6001600160a01b038316600090815260046020526040902055600d54610cc5908261179f565b600d55600e54610cd590846119a1565b600e55505050565b610ce56116e7565b6000546001600160a01b03908116911614610d125760405162461bcd60e51b815260040161084390612f36565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6000600c54831115610d5a5760405162461bcd60e51b815260040161084390612c38565b81610d79576000610d6a846119c6565b509395506108fe945050505050565b6000610d84846119c6565b509295506108fe945050505050565b600f5460ff1681565b610da46116e7565b6000546001600160a01b03908116911614610dd15760405162461bcd60e51b815260040161084390612f36565b6001600160a01b03811660009081526008602052604090205460ff1615610e0a5760405162461bcd60e51b815260040161084390612fff565b6001600160a01b03811660009081526004602052604090205415610e64576001600160a01b038116600090815260046020526040902054610e4a90610a1b565b6001600160a01b0382166000908152600560205260409020555b6001600160a01b03166000818152600860205260408120805460ff19166001908117909155600b805491820181559091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b0319169091179055565b6001600160a01b031660009081526007602052604090205460ff1690565b60185481565b610ef66116e7565b6000546001600160a01b03908116911614610f235760405162461bcd60e51b815260040161084390612f36565b6001600160a01b03919091166000908152600960205260409020805460ff1916911515919091179055565b60025490565b60125481565b601a5481565b6001600160a01b03811660009081526008602052604081205460ff1615610fa057506001600160a01b03811660009081526005602052604090205461098f565b6001600160a01b0382166000908152600460205260409020546108fe90610a1b565b610fca6116e7565b6000546001600160a01b03908116911614610ff75760405162461bcd60e51b815260040161084390612f36565b600080546040516001600160a01b03909116906000805160206132d0833981519152908390a3600080546001600160a01b0319169055565b601b5481565b6001600160a01b031660009081526008602052604090205460ff1690565b6000546001600160a01b031690565b61106a6116e7565b6000546001600160a01b039081169116146110975760405162461bcd60e51b815260040161084390612f36565b601255565b60006110a66116e7565b6000546001600160a01b039081169116146110d35760405162461bcd60e51b815260040161084390612f36565b50601e80546001600160a01b0383166001600160a01b03199091161790556001919050565b602080546040805160026001841615610100026000190190931692909204601f810184900484028301840190915280825260609290828201828280156108dc5780601f106108b1576101008083540402835291602001916108dc565b601c5460ff1681565b60006108fa61116a6116e7565b84610a0c8560405180606001604052806031815260200161329f60319139600660006111946116e7565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611952565b6001546001600160a01b031633146111ef5760405162461bcd60e51b815260040161084390613155565b60025442116112105760405162461bcd60e51b8152600401610843906130d6565b600154600080546040516001600160a01b0393841693909116916000805160206132d083398151915291a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b60006108fa61126c6116e7565b84846117e1565b6022546001600160a01b031681565b60215461010090046001600160a01b031681565b7f000000000000000000000000000000000000000000000000000000000000000081565b6112c26116e7565b6000546001600160a01b039081169116146112ef5760405162461bcd60e51b815260040161084390612f36565b600f805460ff19168215151790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1599061132d908390612b43565b60405180910390a150565b6113406116e7565b6000546001600160a01b0390811691161461136d5760405162461bcd60e51b815260040161084390612f36565b601c805460ff19168215151790556040517f2c7ee57e721f4b89303d5dca293b355f357c13c060c858ca0b4f716ff33c85e19061132d908390612b43565b6113b36116e7565b6000546001600160a01b039081169116146113e05760405162461bcd60e51b815260040161084390612f36565b600081116114005760405162461bcd60e51b81526004016108439061305c565b61141b61271061098383600c5461166b90919063ffffffff16565b601b5550565b6114296116e7565b6000546001600160a01b039081169116146114565760405162461bcd60e51b815260040161084390612f36565b60008054600180546001600160a01b03199081166001600160a01b0384161790915516815542820160025560405181906000805160206132d0833981519152908290a350565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6114cf6116e7565b6000546001600160a01b039081169116146114fc5760405162461bcd60e51b815260040161084390612f36565b6001600160a01b03166000908152600760205260409020805460ff19169055565b6115256116e7565b6000546001600160a01b039081169116146115525760405162461bcd60e51b815260040161084390612f36565b6001600160a01b0381166000908152600760205260409020805460ff1916600117905562093a806017556201518060185561158d60646113ab565b61159760006112ba565b6115c4307f00000000000000000000000000000000000000000000000000000000000000006000196116eb565b50565b6115cf6116e7565b6000546001600160a01b039081169116146115fc5760405162461bcd60e51b815260040161084390612f36565b6001600160a01b0381166116225760405162461bcd60e51b815260040161084390612ceb565b600080546040516001600160a01b03808516939216916000805160206132d083398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008261167a575060006108fe565b8282028284828161168757fe5b0414610a555760405162461bcd60e51b815260040161084390612ef5565b6000610a5583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611a15565b3390565b6001600160a01b0383166117115760405162461bcd60e51b81526004016108439061310d565b6001600160a01b0382166117375760405162461bcd60e51b815260040161084390612ba1565b6001600160a01b0380841660008181526006602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611792908590612aeb565b60405180910390a3505050565b6000610a5583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611952565b6001600160a01b0383166118075760405162461bcd60e51b815260040161084390612be7565b6001600160a01b03821661182d5760405162461bcd60e51b815260040161084390613198565b6000811161184d5760405162461bcd60e51b815260040161084390612d8e565b611858838383611a4c565b611860611aba565b61186a8383611b49565b6001600160a01b03831660009081526007602052604090205460019060ff16806118ac57506001600160a01b03831660009081526007602052604090205460ff165b156118b5575060005b6118c184848484611d18565b6001600160a01b03831660009081526014602052604090205460ff161580156118f95750678ac7230489e800006118f784610f60565b115b1561194c576001600160a01b0383166000818152601460209081526040808320805460ff191660019081179091556016805485526015909352922080546001600160a01b03191690931790925581540190555b50505050565b600081848411156119765760405162461bcd60e51b81526004016108439190612b4e565b505050900390565b600080600061198b611e86565b909250905061199a82826116a5565b9250505090565b600082820183811015610a555760405162461bcd60e51b815260040161084390612de3565b60008060008060008060008060006119dd8a611fe9565b92509250925060008060006119fb8d86866119f661197e565b612025565b919f909e50909c50959a5093985091965092945050505050565b60008183611a365760405162461bcd60e51b81526004016108439190612b4e565b506000838581611a4257fe5b0495945050505050565b6001600160a01b03831660009081526009602052604090205460ff16158015611a8e57506001600160a01b03821660009081526009602052604090205460ff16155b15611ab557601b54811115611ab55760405162461bcd60e51b815260040161084390612f6b565b505050565b323314611ad95760405162461bcd60e51b815260040161084390612e68565b60026003541415611afc5760405162461bcd60e51b815260040161084390612fc8565b6002600355601c5460ff1615611b425742601954111580611b1f575042601a5411155b15611b425742601a5411611b3a57611b35612075565b611b42565b611b4261215d565b6001600355565b6000611b5430610f60565b9050601b548110611b645750601b545b601d546022549082101590600160a01b900460ff16158015611b835750805b8015611ba257506021546001600160a01b038581166101009092041614155b8015611bb05750600f5460ff165b8015611be357506001600160a01b03841630148015611be157506021546001600160a01b0384811661010090920416145b155b1561194c57601d5491506000611bfa8360026116a5565b90506000611c0d6002610983868561179f565b90506000611c1b858361179f565b90506000611c2984846119a1565b905047611c567f0000000000000000000000000000000000000000000000000000000000000000836121e0565b6000611c62478361179f565b90506000611c718260026116a5565b905080821115611c9d57611c9d611c986002611c926005610983878761179f565b9061166b565b61234d565b611cd07f0000000000000000000000000000000000000000000000000000000000000000611cc9611053565b87846123ce565b7f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb561868387604051611d0393929190613257565b60405180910390a15050505050505050505050565b80611d2557611d2561245f565b6001600160a01b03841660009081526008602052604090205460ff168015611d6657506001600160a01b03831660009081526008602052604090205460ff16155b15611d7b57611d76848484612491565b611e79565b6001600160a01b03841660009081526008602052604090205460ff16158015611dbc57506001600160a01b03831660009081526008602052604090205460ff165b15611dcc57611d768484846125b5565b6001600160a01b03841660009081526008602052604090205460ff16158015611e0e57506001600160a01b03831660009081526008602052604090205460ff16155b15611e1e57611d7684848461265e565b6001600160a01b03841660009081526008602052604090205460ff168015611e5e57506001600160a01b03831660009081526008602052604090205460ff165b15611e6e57611d768484846126a2565b611e7984848461265e565b8061194c5761194c612715565b600d54600c546000918291825b600b54811015611fb7578260046000600b8481548110611eaf57fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020541180611f1457508160056000600b8481548110611eed57fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15611f2b57600d54600c5494509450505050611fe5565b611f6b60046000600b8481548110611f3f57fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054849061179f565b9250611fad60056000600b8481548110611f8157fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054839061179f565b9150600101611e93565b50600c54600d54611fc7916116a5565b821015611fdf57600d54600c54935093505050611fe5565b90925090505b9091565b600080600080611ff885612723565b905060006120058661273f565b905060006120178261095e898661179f565b979296509094509092505050565b6000808080612034888661166b565b90506000612042888761166b565b90506000612050888861166b565b905060006120628261095e868661179f565b939b939a50919850919650505050505050565b601654479081906000906120969060059061209190600161179f565b61275b565b6000818152601560205260408120549192506001600160a01b03909116906120bd82610f60565b111561194c576018544201601955601754601a805490910190556040516000906001600160a01b0383169085906120f390612ae8565b60006040518083038185875af1925050503d8060008114612130576040519150601f19603f3d011682016040523d82523d6000602084013e612135565b606091505b50509050806121565760405162461bcd60e51b815260040161084390612e1a565b5050505050565b4760006121706046611c928460646116a5565b9050600061218f6005612091600160165461179f90919063ffffffff16565b6000818152601560205260408120549192506001600160a01b03909116906121b682610f60565b111561194c5760185442016019819055506000816001600160a01b0316846040516120f390612ae8565b60408051600280825260608083018452859390929190602083019080368337019050509050308160008151811061221357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561228c57600080fd5b505afa1580156122a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c49190612956565b816001815181106122d157fe5b6001600160a01b03928316602091820292909201015260405163791ac94760e01b81529083169063791ac947906123159086906000908690309042906004016131e7565b600060405180830381600087803b15801561232f57600080fd5b505af1158015612343573d6000803e3d6000fd5b5050505050505050565b601e546040516000916001600160a01b031690839061236b90612ae8565b60006040518083038185875af1925050503d80600081146123a8576040519150601f19603f3d011682016040523d82523d6000602084013e6123ad565b606091505b5050905080610bca5760405162461bcd60e51b815260040161084390612e1a565b60405163f305d71960e01b815284906001600160a01b0382169063f305d71990849061240d903090889060009081908c90610168420190600401612b08565b6060604051808303818588803b15801561242657600080fd5b505af115801561243a573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906123439190612a9e565b60105415801561246f5750601254155b156124795761248f565b6010805460115560128054601355600091829055555b565b6000806000806000806124a3876119c6565b6001600160a01b038f16600090815260056020526040902054959b509399509197509550935091506124d5908861179f565b6001600160a01b038a16600090815260056020908152604080832093909355600490522054612504908761179f565b6001600160a01b03808b1660009081526004602052604080822093909355908a168152205461253390866119a1565b6001600160a01b0389166000908152600460205260409020556125558161281d565b61255f84836128a5565b876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040516125a29190612aeb565b60405180910390a3505050505050505050565b6000806000806000806125c7876119c6565b6001600160a01b038f16600090815260046020526040902054959b509399509197509550935091506125f9908761179f565b6001600160a01b03808b16600090815260046020908152604080832094909455918b1681526005909152205461262f90846119a1565b6001600160a01b03891660009081526005602090815260408083209390935560049052205461253390866119a1565b600080600080600080612670876119c6565b6001600160a01b038f16600090815260046020526040902054959b50939950919750955093509150612504908761179f565b6000806000806000806126b4876119c6565b6001600160a01b038f16600090815260056020526040902054959b509399509197509550935091506126e6908861179f565b6001600160a01b038a166000908152600560209081526040808320939093556004905220546125f9908761179f565b601154601055601354601255565b60006108fe60646109836010548561166b90919063ffffffff16565b60006108fe60646109836012548561166b90919063ffffffff16565b60008061276733610f60565b905060008143423360405160200161277f9190612acb565b6040516020818303038152906040528051906020012060001c8161279f57fe5b044542416040516020016127b39190612acb565b6040516020818303038152906040528051906020012060001c816127d357fe5b0444420101010101016040516020016127ec9190612aeb565b60408051601f198184030181529190528051602090910120905084612813828287036128c9565b0195945050505050565b600061282761197e565b90506000612835838361166b565b3060009081526004602052604090205490915061285290826119a1565b3060009081526004602090815260408083209390935560089052205460ff1615611ab5573060009081526005602052604090205461289090846119a1565b30600090815260056020526040902055505050565b600d546128b2908361179f565b600d55600e546128c290826119a1565b600e555050565b6000610a5583836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f0000000000000000815250600081836129275760405162461bcd60e51b81526004016108439190612b4e565b5082848161293157fe5b06949350505050565b60006020828403121561294b578081fd5b8135610a558161327b565b600060208284031215612967578081fd5b8151610a558161327b565b60008060408385031215612984578081fd5b823561298f8161327b565b9150602083013561299f8161327b565b809150509250929050565b6000806000606084860312156129be578081fd5b83356129c98161327b565b925060208401356129d98161327b565b929592945050506040919091013590565b600080604083850312156129fc578182fd5b8235612a078161327b565b91506020830135801515811461299f578182fd5b60008060408385031215612a2d578182fd5b8235612a388161327b565b946020939093013593505050565b600060208284031215612a57578081fd5b8135610a5581613290565b600060208284031215612a73578081fd5b5035919050565b60008060408385031215612a8c578182fd5b82359150602083013561299f81613290565b600080600060608486031215612ab2578283fd5b8351925060208401519150604084015190509250925092565b60609190911b6bffffffffffffffffffffffff1916815260140190565b90565b90815260200190565b6001600160a01b0391909116815260200190565b6001600160a01b039687168152602081019590955260408501939093526060840191909152909216608082015260a081019190915260c00190565b901515815260200190565b6000602080835283518082850152825b81811015612b7a57858101830151858201604001528201612b5e565b81811115612b8b5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526026908201527f5f617070726f76653a3a20617070726f766520746f20746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526031908201527f5f7472616e736665723a3a2043616e6e6f74207472616e736665722066726f6d60408201527020746865207a65726f206164647265737360781b606082015260800190565b60208082526035908201527f7265666c656374696f6e46726f6d546f6b656e3a3a20416d6f756e74206d757360408201527474206265206c657373207468616e20737570706c7960581b606082015260800190565b602080825260409082018190527f746f6b656e46726f6d5265666c656374696f6e3a3a20416d6f756e74206d7573908201527f74206265206c657373207468616e20746f74616c207265666c656374696f6e73606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526037908201527f696e636c756465496e5265776172643a3a204163636f756e7420697320616c7260408201527f6561647920696e636c7564656420696e20726577617264000000000000000000606082015260800190565b60208082526035908201527f5f7472616e736665723a3a205472616e7366657220616d6f756e74206d7573746040820152742062652067726561746572207468616e207a65726f60581b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252602e908201527f636c61696d424e425265776172643a3a204572726f723a2043616e6e6f74207760408201526d1a5d1a191c985dc81c995dd85c9960921b606082015260800190565b6020808252601b908201527f697348756d616e3a3a20736f7272792068756d616e73206f6e6c790000000000604082015260600190565b60208082526036908201527f64656c697665723a3a204578636c75646564206164647265737365732063616e6040820152753737ba1031b0b636103a3434b990333ab731ba34b7b760511b606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252603c908201527f656e737572654d61785478416d6f756e743a3a205472616e7366657220616d6f60408201527f756e74206578636565647320746865206d61785478416d6f756e742e00000000606082015260800190565b6020808252601d908201527f6e6f6e5265656e7472616e743a3a207265656e7472616e742063616c6c000000604082015260600190565b6020808252603b908201527f6578636c75646546726f6d5265776172643a3a204163636f756e74206973206160408201527f6c7265616479206578636c756465642066726f6d207265776172640000000000606082015260800190565b60208082526054908201527f7365744d6178547850657263656e743a3a204d6179206e6f7420736574206d6160408201527f78547850657263656e7420746f203020746f20616c7761797320616c6c6f77206060820152731c195bdc1b19481d1bc8189d5e480bc81cd95b1b60621b608082015260a00190565b6020808252601f908201527f436f6e7472616374206973206c6f636b656420756e74696c2037206461797300604082015260600190565b60208082526028908201527f5f617070726f76653a3a20617070726f76652066726f6d20746865207a65726f604082015267206164647265737360c01b606082015260800190565b60208082526023908201527f596f7520646f6e27742068617665207065726d697373696f6e20746f20756e6c6040820152626f636b60e81b606082015260800190565b6020808252602f908201527f5f7472616e736665723a3a2043616e6e6f74207472616e7366657220746f207460408201526e6865207a65726f206164647265737360881b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b818110156132365784516001600160a01b031683529383019391830191600101613211565b50506001600160a01b03969096166060850152505050608001529392505050565b9283526020830191909152604082015260600190565b60ff91909116815260200190565b6001600160a01b03811681146115c457600080fd5b80151581146115c457600080fdfe6465637265617365416c6c6f77616e63653a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e07472616e7366657246726f6d3a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365a26469706673582212207453bef87963c13749e636f214acde7de8f91fddf14b89ab9754716f310ebe7564736f6c634300060c0033a31547ce6245cdb9ecea19cf8c7eb9f5974025bb4075011409251ae855b30aedddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading