Contract 0x99E3259d1D780746c62B4a90833d607b40Fb36Ce 3

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x509108a7a2f5f2c1b39412b34e9f94481d270c46dc0d6d55ff079caa2061af70Approve118506872021-10-17 12:08:351 hr 3 mins ago0x5382486d58675429ecd5b43cdebc4847eef11608 IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0x1846cde2cbcd2fa77e0197910906e76e9446e872456968dba2c7bae3d55de598Approve118500002021-10-17 11:33:491 hr 38 mins ago0x22a68aef5f136d3c46a94473decd7dd6aac509f2 IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0xc971daf2428a154b64d8fc4398bd65a760342a1bdeee94002b64822356fbd2b0Approve118496662021-10-17 11:16:361 hr 55 mins ago0x209abf2cb61baf3fdc2c1f7311a11a1ea4a88050 IN  Community Doge Coin: CCDOGE Token0 BNB0.00022263
0x6052066b1edfa2812f45f3f45e63a610ef928ee5ff4bf8e469d2bbb9b7a72402Approve118489382021-10-17 10:40:122 hrs 32 mins ago0x36ba378aab53e44c8a6d836baa0fc3f2325ba9f8 IN  Community Doge Coin: CCDOGE Token0 BNB0.00022263
0x399ad7682eb2a342aa99747e3a61d79fc1c681efab6f94e8f3ebe317c021357dApprove118482602021-10-17 10:06:183 hrs 6 mins ago0xcf20429c216ded776ec204b507e70cd0acf7e96f IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0x963b7d2af8919abeb373d7daa54142224d5938951905dc7972c6311b46f637cbApprove118481652021-10-17 10:01:333 hrs 10 mins ago0xe266d2ff8c7b4441a5ceaea5838de3edb1299847 IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0x1a035fe61ca0c42266764a13d1311d86e1f9a92bbdf3d0ca9cb473dbb151653fTransfer118477842021-10-17 9:42:303 hrs 29 mins ago0x038bd335367b8c15b185dfe79e0022be4b32009e IN  Community Doge Coin: CCDOGE Token0 BNB0.0036305931
0x47ee8a82d72c6e3ed56d17a66d7ed3817c922cbe81c513a885db3670d263fb79Approve118470262021-10-17 9:04:364 hrs 7 mins ago0x7fd94b8e0d1920c102f735b5cd588c92de9e2860 IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0x0158820ad24740da53963f6ce9d069f062e58a741b58f33345186540d9c7e4acApprove118459862021-10-17 8:12:364 hrs 59 mins ago0xa89bce2d2a35b8bfceaab337bc02d79b8d9357fc IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0x2b3586b0f0529429e533112f2bb153754a9d7217de3b5331b80e7803d7c327bbTransfer118455222021-10-17 7:49:245 hrs 22 mins ago0x225de65961eea8b3b508ede2d79df180404e0109 IN  Community Doge Coin: CCDOGE Token0 BNB0.000896935
0x24c0bdee10722e866891f67146de5bfae7d757496d038a89ad13c9fa29ad467fApprove118452552021-10-17 7:36:035 hrs 36 mins ago0x219ccdad0bb6c3a7430532f9ab82755545238c7a IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0x58d3c0f2d9b5451e29673e2ccfd2f610f4b396695a834c7ac221f86cd540f63eApprove118448992021-10-17 7:18:155 hrs 54 mins ago0xb633f598197ff842e5c0a849808262cd9b8cafa6 IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0xcbd7395f4fdb6914b9287a3d68bdabaa96dad767c14b53ef1205c3ef7c29841eApprove118443242021-10-17 6:49:306 hrs 22 mins ago0x7ea1c0241ddc346a51ac530ad846d7a8e37724c8 IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0x5aea70e774a059dffe9b3f4a086ab7295f2be3c111155900ae9ad19392f51e96Approve118427962021-10-17 5:33:067 hrs 39 mins ago0xddc3f57020bf9f89759f83ae50b52a524ef6fa05 IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0xb50a10950a8c4df0725c4b11dec65d69f7db0b5ea5a2c122cea509766db5a88bTransfer118406962021-10-17 3:48:029 hrs 24 mins ago0x8cca81410aabd5a3a5b0f87b4275b53d3ac953c5 IN  Community Doge Coin: CCDOGE Token0 BNB0.003463345
0xd11573a0f272f1f0af17c8ed153708148f35e35dfc3392bb61f98f1b497acc16Approve118395572021-10-17 2:51:0510 hrs 21 mins ago0xc73a539a169eb02fb5c737613881f648f4ce9de0 IN  Community Doge Coin: CCDOGE Token0 BNB0.00022263
0x73fef4b82df99e4fa37c88c067ddc010b70a89092eec60d940f0a4be290aa66eApprove118361982021-10-17 0:03:0813 hrs 9 mins ago0x7c63f3c7815bbc53777a12e95455b52f793aa28e IN  Community Doge Coin: CCDOGE Token0 BNB0.00012621
0x491393301571e324d27956dac1909cb8d8034340c76a3d2a0c13176841fc926aApprove118361592021-10-17 0:01:1113 hrs 11 mins ago0x7c63f3c7815bbc53777a12e95455b52f793aa28e IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0x11a3e99fbe4d03a6febcdc8686bb4f26fd89012cd6460e3a5fdc23fea81c2788Approve118351992021-10-16 23:13:1113 hrs 59 mins ago0x0bd018acb4668be4729713df28521b819e56a558 IN  Community Doge Coin: CCDOGE Token0 BNB0.00014721
0xba37acb50d647dc48f87f368b81f6f68fbacbc13e071ab90e75b3b1832d124bbTransfer118346662021-10-16 22:46:2014 hrs 26 mins ago0xeb596ec7821a4696be7da4b8d429bd29a2c27f75 IN  Community Doge Coin: CCDOGE Token0 BNB0.003559465
0x94f6b875742457f7fbb32fe166323dd9f6d20dcd176154ad5f129c77e13a8de4Approve118343902021-10-16 22:32:3214 hrs 39 mins ago0x0bd018acb4668be4729713df28521b819e56a558 IN  Community Doge Coin: CCDOGE Token0 BNB0.00022221
0x15b31de17c9131bf633dca407a6cd776c96d1e48a370d10137d8240e61ce62deApprove118339302021-10-16 22:09:3215 hrs 2 mins ago0x3a89c9f6b2928a3ce4b0773534a482548fe529cb IN  Community Doge Coin: CCDOGE Token0 BNB0.00022263
0x9c8c27bc60e57818992a0b3cba517838c4b50fa0ae3b7233eb6543181e5e454dTransfer118337512021-10-16 22:00:3515 hrs 11 mins ago0xeb596ec7821a4696be7da4b8d429bd29a2c27f75 IN  Community Doge Coin: CCDOGE Token0 BNB0.000896935
0xed75dee34fd98f83ab5b49dc5599a1e7c4deb45951ef7d5cf5f0907015da5ce6Transfer118337332021-10-16 21:59:4115 hrs 12 mins ago0xeb596ec7821a4696be7da4b8d429bd29a2c27f75 IN  Community Doge Coin: CCDOGE Token0 BNB0.000896935
0xbccfcad9c7b7f301e1aa87d5ab494a8171611a710fcb558866c51b04367e0d5dTransfer118331802021-10-16 21:32:0215 hrs 40 mins ago0x258232f70b68121b0efe3673386be34c839af35a IN  Community Doge Coin: CCDOGE Token0 BNB0.00031212
[ Download CSV Export 

OVERVIEW

Community Doge Coin is the world’s first 3A type token with auto-deflation, auto-farming, and auto-market-maker mechanisms. Users could get rewards simply by holding it, and CCDOGE will be added to liquidity and burn address automatically at the same time of each transaction.

Latest 4 internal transactions
Parent Txn Hash Block From To Value
0x97f0d83ddd3317bde50d978c2bb6eeb306b3137f8c2cef9633c1d84ab328a47c104216062021-08-28 12:11:3650 days 1 hr ago Community Doge Coin: CCDOGE TokenCommunity Doge Coin: Deployer0.10005 BNB
0x97ef13e4a20b1d384c2dbc3097f117b79836cf957afbeb207d42f03d2d8e1295103916662021-08-27 10:11:0351 days 3 hrs ago Community Doge Coin: CCDOGE TokenCommunity Doge Coin: Deployer0.00045 BNB
0x5f9d1de4f0885125952f450717ec3e628accc05998fe64cb03c477b7d6b55162103722412021-08-26 17:59:4751 days 19 hrs ago Community Doge Coin: CCDOGE TokenCommunity Doge Coin: Deployer0.145480645 BNB
0x1110830a5e7b71083373611c88762ee637991e3fbc08bcde293bf662b1459460103413282021-08-25 16:08:0352 days 21 hrs ago Community Doge Coin: CCDOGE TokenCommunity Doge Coin: Deployer0.379482023739196104 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CCDOGE

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : Coin.sol
/**
 *Submitted for verification at BscScan.com on 2021-05-22
*/

pragma solidity >=0.7.0 <0.9.0;
// SPDX-License-Identifier: Unlicensed
interface IERC20 {

    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 payable(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 ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

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

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

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

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

/**
 * @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 internal _owner;
    address private _previousOwner;
    uint256 private _lockTime;

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

    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    function owner() public view returns (address) {
        return _owner;
    }   
    
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }
    
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    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;
    }
    
    function getTime() public view returns (uint256) {
        return block.timestamp;
    }

    function lock(uint256 time) public virtual onlyOwner {
        _previousOwner = _owner;
        _owner = address(0);
        _lockTime = block.timestamp + time;
        emit OwnershipTransferred(_owner, address(0));
    }
    
    function unlock() public virtual {
        require(_previousOwner == msg.sender, "You don't have permission to unlock");
        require(block.timestamp > _lockTime , "Contract is locked until 7 days");
        emit OwnershipTransferred(_owner, _previousOwner);
        _owner = _previousOwner;
    }
}

// pragma solidity >=0.5.0;

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

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

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

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

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


// pragma solidity >=0.5.0;

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

// pragma solidity >=0.6.2;

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

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

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



// pragma solidity >=0.6.2;

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

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


contract LockDataExt {
    using SafeMath for uint256;

    struct LockData{
        uint256 lockTData;
        uint256 lockStamp;
    }
    mapping (address => LockData[]) internal _lockList;
    mapping (address => uint256) internal _lockTValue;
    uint256 internal _lockTValueAll;

    function _getAllLocks() internal view returns(uint256) {
  
        return _lockTValueAll;
    }

    function getLocks(address account) public view returns(uint256) {
  
        return (_lockTValue[account]);
    }

    function getLockSize(address account) public view returns(uint256) {
  
        return (_lockList[account].length);
    }

    function getLockInfo(address account, uint256 lockIndex) public view returns(uint256, uint256) {
        require(lockIndex<_lockList[account].length, "the index of locks no vaild");
        uint256 tempValue = _lockList[account][lockIndex].lockTData;
        uint256 tempStamp = _lockList[account][lockIndex].lockStamp;
        return (tempValue, tempStamp);
    }

    function _doLock(address account,uint256 lockTData, uint256 lockStamp) internal returns(bool){

        
        _lockList[account].push(LockData(lockTData,lockStamp));
        _lockTValue[account] = _lockTValue[account].add(lockTData);
        
        _lockTValueAll = _lockTValueAll.add(lockTData);

        return true;
    }

    function _checkLockStatus(address account) internal {
        
        for(uint i=0;i<_lockList[account].length;i++){
            
            if(block.timestamp > _lockList[account][i].lockStamp){
                
                _lockTValue[account] = _lockTValue[account].sub(_lockList[account][i].lockTData);
                
                _lockTValueAll = _lockTValueAll.sub(_lockList[account][i].lockTData);

                _lockList[account][i] = _lockList[account][_lockList[account].length-1];
                _lockList[account].pop();
                
            }
            
        }
   
    }
}


contract LockProjectExt is LockDataExt{
    using SafeMath for uint256;

    struct LockProject{
        uint256 lockRate;
        uint256 lockStamp;
    }
    LockProject[] internal projectList;

    function _getProjects() internal view returns(uint256) {
  
        return projectList.length;
    }
    function _getProjectInfo(uint projectIndex) internal view returns(uint256, uint256){
        
        if(projectIndex<projectList.length){
             return (projectList[projectIndex].lockRate,projectList[projectIndex].lockStamp);
        }

       return (0,0);

    }
    
    function _clearAllProject() internal {
        delete projectList;
    }

    function _getProject(uint256 lockStamp) internal view returns(uint256){
        
        for(uint256 i=0;i<projectList.length;i++) {
           if(lockStamp == projectList[i].lockStamp){
                return projectList[i].lockRate;
            }
        }
        
        return 0;
    }

    function _newProject(uint256 lockRate, uint256 lockStamp) internal returns(bool){
        
        for(uint256 i=0;i<projectList.length;i++) {
           if(lockStamp == projectList[i].lockStamp){
                return false;
            }
        }
        
        LockProject memory tempLock;
        tempLock.lockRate = lockRate;
        tempLock.lockStamp = lockStamp;
        
        projectList.push(tempLock);
        
        return true;
    }

    function _delProject(uint256 lockStamp) internal returns(bool){
       
       bool bDel = false;
        for(uint256 i=0;i<projectList.length;i++) {
           if(lockStamp == projectList[i].lockStamp){
               
                projectList[i] = projectList[projectList.length-1];
                projectList.pop();
                
                bDel = true;
                break;
            }
        }
        
        return true;
    }
}

contract CCDOGE is Context, IERC20, Ownable, LockProjectExt {
    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;


    address private deadAddress = 0x000000000000000000000000000000000000dEaD;

    
    mapping (address => bool) private _isExcludedFromFee;

    mapping (address => bool) private _isExcluded;
    address[] private _excluded;
   
    uint256 private constant MAX = ~uint256(0);
    uint256 private _tTotal;
    uint256 private _rTotal;
    uint256 private _tFeeTotal;

    string private _name;
    string private _symbol;
    uint256 private _decimals;
    
    uint256 public _taxFee;
    uint256 private _previousTaxFee;
    
    uint256 public _liquidityFee;
    uint256 private _previousLiquidityFee;

    //testnet
    //address private constant routerAddress = 0xD99D1c33F9fC3444f8101754aBC46c52416550D1;
    //main net
    address private constant routerAddress = 0x10ED43C718714eb63d5aA57B78B54704E256024E;
    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;
    
    bool inSwapAndLiquify;
    bool public swapAndLiquifyEnabled = true;
    
    uint256 public _maxTxAmount;
    uint256 public numTokensSellToAddToLiquidity;
    
    event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);
    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );
    
    modifier lockTheSwap {
        inSwapAndLiquify = true;
        _;
        inSwapAndLiquify = false;
    }
    
    constructor () {
        _name = "Community Doge Coin";
        _symbol = "CCDOGE";
        _decimals = 9;
        _tTotal = 2100000000000000000000000;
        _rTotal = (MAX - (MAX % _tTotal));
        _taxFee = 5;
        _liquidityFee = 5;
        _previousTaxFee = 5;
        _previousLiquidityFee = 5;
        _maxTxAmount = 1000000000000000000000000;
        numTokensSellToAddToLiquidity = 2100000000000000000000;
        
        address tokenOwner = msg.sender;
        _rOwned[tokenOwner] = _rTotal;


        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(routerAddress);
         // Create a uniswap pair for this new token
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        // set the rest of the contract variables
        uniswapV2Router = _uniswapV2Router;
        
        //exclude owner and this contract from fee
        _isExcludedFromFee[tokenOwner] = true;
        _isExcludedFromFee[address(this)] = true;
        
        _isExcluded[deadAddress]= true;
        //_isExcluded[uniswapV2Pair]= true;
        _excluded.push(deadAddress);
    
        _owner = tokenOwner;
        emit Transfer(address(0), tokenOwner, _tTotal);
    }


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

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

    function decimals() public view returns (uint256) {
        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) {
        uint256 tempBalance = _getAccountExpBalance(_msgSender());
        require(amount < tempBalance, "balance not enough");

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

    // lock coin
    function lockCoin(uint256 lockTime, uint256 lAmount) public {
        address sender = _msgSender();
        if(sender == uniswapV2Pair) {
            return;
        }

        uint256 tempBalance = _getAccountExpBalance(sender);
        
        require(lAmount < tempBalance, "balance not enough");
        
        uint256 tempRate = _getProject(lockTime);
        require(tempRate!=0, "project error");

        uint256 tempTProfit = lAmount.mul(tempRate).div(100);
        uint256 tempRProfit = _toRewardValue(tempTProfit);
 

        tempBalance = balanceOf(sender);

        require (_tTotal > tempBalance.add(tempTProfit), "too rich");

        //add user balance
        if (_isExcluded[sender]) {
            _tOwned[sender] = _tOwned[sender].add(tempTProfit);
        }else{
            _rOwned[sender] = _rOwned[sender].add(tempRProfit);
        }
        

        uint256 tempLockValue = lAmount.add(tempTProfit);
        uint256 tempLockStamp = block.timestamp+lockTime;
        _doLock(sender,  tempLockValue,  tempLockStamp);

     // return true;
    }
    // all locks
    function getAllLocks() public view returns(uint256) { 
        return _getAllLocks();
    }
    // get all projects
    function getAllProjects() public onlyOwner view returns (uint256){
        return _getProjects();
    }
    // get project info
    function getProject(uint256 projectIndex) public onlyOwner view returns (uint256, uint256){
        return _getProjectInfo(projectIndex);
    }
    // create lock project
    function createLockProject(uint32 lockStamp, uint32 lockRate) public onlyOwner returns(bool){
       require(msg.sender==_owner, "onlyOwner");
       
        uint256 tempRate = _getProject(lockStamp);
        require(tempRate==0, "project has created!");
       
        bool bValid = _newProject(lockRate, lockStamp);
        require(bValid, "project create error!");

        return bValid;
    }
    // delete lock project
    function deleteLockProject(uint32 lockStamp) public onlyOwner returns(bool){
        require(msg.sender==_owner, "onlyOwner");
        

        bool bValid = _delProject(lockStamp);
        return bValid;
    }


    function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
        uint256 tempBalance = _getAccountExpBalance(sender);
        require(amount < tempBalance, "balance not enough");
        
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

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

    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: 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], "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, "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, "Amount must be less than total reflections");
        uint256 currentRate =  _getRate();
        return rAmount.div(currentRate);
    }

    function excludeFromReward(address account) public onlyOwner() {
        // require(account != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 'We can not exclude Uniswap router.');
        require(!_isExcluded[account], "Account is already excluded");
        if(_rOwned[account] > 0) {
            _tOwned[account] = tokenFromReflection(_rOwned[account]);
        }
        _isExcluded[account] = true;
        _excluded.push(account);
    }

    function includeInReward(address account) external onlyOwner() {
        require(_isExcluded[account], "Account is already excluded");
        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 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 setNumTokensSellToAddToLiquidity(uint256 swapNumber) public onlyOwner {
        numTokensSellToAddToLiquidity = swapNumber * 10 ** _decimals;
    }
   
    function setMaxTxPercent(uint256 maxTxPercent) public onlyOwner {
        _maxTxAmount = maxTxPercent  * 10 ** _decimals;
    }

    function setSwapAndLiquifyEnabled(bool _enabled) public onlyOwner {
        swapAndLiquifyEnabled = _enabled;
        emit SwapAndLiquifyEnabledUpdated(_enabled);
    }
    
     //to recieve ETH from uniswapV2Router when swaping
    receive() external payable {}
    function changeRouterVersion(address _router) public onlyOwner returns(address _pair) {
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(_router);
        
        _pair = IUniswapV2Factory(_uniswapV2Router.factory()).getPair(address(this), _uniswapV2Router.WETH());
        if(_pair == address(0)){
            // Pair doesn't exist
            _pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());
        }
        uniswapV2Pair = _pair;

        // Set the router of the contract variables
        uniswapV2Router = _uniswapV2Router;
    }
       
    function transferForeignToken(address _token, address _to) public onlyOwner returns(bool _sent){
        require(_token != address(this), "Can't let you take all native token");
        uint256 _contractBalance = IERC20(_token).balanceOf(address(this));
        _sent = IERC20(_token).transfer(_to, _contractBalance);
    }
    
    function Sweep() external onlyOwner {
        uint256 balance = address(this).balance;
        payable(owner()).transfer(balance);
    }

    function swapTokensForEth(uint256 tokenAmount) external onlyOwner  {
        // generate the uniswap pair path of token -> weth
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

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

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

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) external onlyOwner  {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

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

    function _reflectFee(uint256 rFee, uint256 tFee) private {
        
        _rTotal = _rTotal.sub(rFee.div(2));
        _tFeeTotal = _tFeeTotal.add(tFee.div(2));
        
        _tOwned[deadAddress] = _tOwned[deadAddress].add(tFee.div(2));
    }

    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(_excluded[i] == deadAddress) {
                continue;
            }
            
            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), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: 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), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(amount > 0, "Transfer amount must be greater than zero");
        if(from != owner() && to != owner()){
            require(amount <= _maxTxAmount, "Transfer amount exceeds the maxTxAmount.");
        }
        
        // 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 uniswap pair.
        uint256 contractTokenBalance = balanceOf(address(this));
        
        if(contractTokenBalance >= _maxTxAmount)
        {
            contractTokenBalance = _maxTxAmount;
        }
        
        bool overMinTokenBalance = contractTokenBalance >= numTokensSellToAddToLiquidity;
        if (
            overMinTokenBalance &&
            !inSwapAndLiquify &&
            from != uniswapV2Pair &&
            swapAndLiquifyEnabled
        ) {
            contractTokenBalance = numTokensSellToAddToLiquidity;
            //add liquidity
            _swapAndLiquify(contractTokenBalance);
        }
        
        //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);
    }

    function _swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
        // split the contract balance into halves
        uint256 half = contractTokenBalance.div(2);
        uint256 otherHalf = contractTokenBalance.sub(half);

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

        // swap tokens for ETH
        _swapTokensForEth(half); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered

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

        // add liquidity to uniswap
        _addLiquidity(otherHalf, newBalance);
        
        emit SwapAndLiquify(half, newBalance, otherHalf);
    }

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

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

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

    function _addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        // approve token transfer to cover all possible scenarios
        _approve(address(this), address(uniswapV2Router), tokenAmount);

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

    //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 _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 _toRewardValue(uint256 tValue) private view returns(uint256) {
        uint256 tempRate = _getRate();
        uint256 tempRewardValue = tValue.mul(tempRate);
        return tempRewardValue;
    }

    function _getAccountExpBalance(address account) private returns(uint256) {
        _checkLockStatus(account);
        uint256 tempTValue = getLocks(account);
        uint256 tempBalance = balanceOf(account);
 
        
        if(tempTValue == 0){
            return tempBalance;
        }
        
        if (tempTValue >= tempBalance) {
            return 0;
        }

        return tempBalance.sub(tempTValue);        
    }    
}

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

Contract Security Audit

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":"uint256","name":"minTokensBeforeSwap","type":"uint256"}],"name":"MinTokensBeforeSwapUpdated","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":"Sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"addLiquidity","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":"_router","type":"address"}],"name":"changeRouterVersion","outputs":[{"internalType":"address","name":"_pair","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"lockStamp","type":"uint32"},{"internalType":"uint32","name":"lockRate","type":"uint32"}],"name":"createLockProject","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint32","name":"lockStamp","type":"uint32"}],"name":"deleteLockProject","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":"getAllLocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllProjects","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"lockIndex","type":"uint256"}],"name":"getLockInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getLockSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getLocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"projectIndex","type":"uint256"}],"name":"getProject","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockTime","type":"uint256"},{"internalType":"uint256","name":"lAmount","type":"uint256"}],"name":"lockCoin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTokensSellToAddToLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"uint256","name":"liquidityFee","type":"uint256"}],"name":"setLiquidityFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTxPercent","type":"uint256"}],"name":"setMaxTxPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapNumber","type":"uint256"}],"name":"setNumTokensSellToAddToLiquidity","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":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"swapTokensForEth","outputs":[],"stateMutability":"nonpayable","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":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"transferForeignToken","outputs":[{"internalType":"bool","name":"_sent","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":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600a80546001600160a01b03191661dead1790556019805460ff60a81b1916600160a81b1790553480156200003857600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506040805180820190915260138082527f436f6d6d756e69747920446f676520436f696e000000000000000000000000006020909201918252620000c091601191620003f7565b50604080518082019091526006808252654343444f474560d01b6020909201918252620000f091601291620003f7565b5060096013556a01bcb13a657b2638800000600e81905562000115906000196200052e565b6200012390600019620004cd565b600f819055600560148190556016819055601581905560175569d3c21bcecceda1000000601a556871d75ab9b920500000601b553360008181526007602090815260409182902093909355805163c45a015560e01b8152905191927310ed43c718714eb63d5aa57b78b54704e256024e92839263c45a0155926004808301939192829003018186803b158015620001b957600080fd5b505afa158015620001ce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001f491906200049d565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200023d57600080fd5b505afa15801562000252573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200027891906200049d565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b158015620002c157600080fd5b505af1158015620002d6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002fc91906200049d565b601980546001600160a01b03199081166001600160a01b03938416179091556018805482168484161790558382166000818152600b60209081526040808320805460ff1990811660019081179092553085528285208054821683179055600a805489168652600c85528386208054909216831790915554600d8054928301815585527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb590910180549190971690861617909555815490931682178155600e549351938452909290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350506200054f565b8280546200040590620004f1565b90600052602060002090601f01602090048101928262000429576000855562000474565b82601f106200044457805160ff191683800117855562000474565b8280016001018555821562000474579182015b828111156200047457825182559160200191906001019062000457565b506200048292915062000486565b5090565b5b8082111562000482576000815560010162000487565b600060208284031215620004af578081fd5b81516001600160a01b0381168114620004c6578182fd5b9392505050565b600082821015620004ec57634e487b7160e01b81526011600452602481fd5b500390565b600181811c908216806200050657607f821691505b602082108114156200052857634e487b7160e01b600052602260045260246000fd5b50919050565b6000826200054a57634e487b7160e01b81526012600452602481fd5b500690565b613ef9806200055f6000396000f3fe6080604052600436106103395760003560e01c80637088fb7f116101ab578063a457c2d7116100f7578063dd46706411610095578063f0f165af1161006f578063f0f165af146109c4578063f0f3f2c8146109e4578063f2fde38b14610a04578063ffa2fd0214610a2457600080fd5b8063dd4670641461093e578063dd62ed3e1461095e578063ea2f0b37146109a457600080fd5b8063b28805f4116100d1578063b28805f4146108c8578063c49b9a80146108e8578063d12a768814610908578063d543dbeb1461091e57600080fd5b8063a457c2d714610873578063a69df4b514610893578063a9059cbb146108a857600080fd5b806380d03829116101645780638da5cb5b1161013e5780638da5cb5b146108005780638ee88c531461081e57806395d89b411461083e5780639cd441da1461085357600080fd5b806380d03829146107925780638366e79a146107a757806388f82020146107c757600080fd5b80637088fb7f146106dc57806370a08231146106f1578063715018a614610711578063719f3089146107265780637628c0431461075c5780637d1db4a51461077c57600080fd5b80633685d419116102855780634a74bb0211610223578063557ed1ba116101fd578063557ed1ba1461067e5780635881f3ef14610691578063602bc62b146106b15780636bc87c3a146106c657600080fd5b80634a74bb021461060457806352390c02146106255780635342acb41461064557600080fd5b80633bd5d1731161025f5780633bd5d17314610584578063437823ec146105a45780634549b039146105c457806349bd5a5e146105e457600080fd5b80633685d4191461052e578063395093511461054e5780633b124fe71461056e57600080fd5b806318160ddd116102f25780632d838119116102cc5780632d838119146104a35780633098861f146104c3578063313ce567146104e35780633248687a146104f857600080fd5b806318160ddd1461044e5780631b76a51b1461046357806323b872dd1461048357600080fd5b8063061c82d01461034557806306fdde0314610367578063095ea7b31461039257806313114a9d146103c257806315b9672c146103e15780631694505e1461041657600080fd5b3661034057005b600080fd5b34801561035157600080fd5b50610365610360366004613a59565b610a39565b005b34801561037357600080fd5b5061037c610a71565b6040516103899190613b47565b60405180910390f35b34801561039e57600080fd5b506103b26103ad3660046139f6565b610b03565b6040519015158152602001610389565b3480156103ce57600080fd5b506010545b604051908152602001610389565b3480156103ed57600080fd5b506104016103fc3660046139f6565b610b1a565b60408051928352602083019190915201610389565b34801561042257600080fd5b50601854610436906001600160a01b031681565b6040516001600160a01b039091168152602001610389565b34801561045a57600080fd5b50600e546103d3565b34801561046f57600080fd5b506103b261047e366004613b15565b610c28565b34801561048f57600080fd5b506103b261049e3660046139b6565b610d58565b3480156104af57600080fd5b506103d36104be366004613a59565b610ded565b3480156104cf57600080fd5b506103b26104de366004613afb565b610e71565b3480156104ef57600080fd5b506013546103d3565b34801561050457600080fd5b506103d3610513366004613946565b6001600160a01b031660009081526003602052604090205490565b34801561053a57600080fd5b50610365610549366004613946565b610efc565b34801561055a57600080fd5b506103b26105693660046139f6565b6110eb565b34801561057a57600080fd5b506103d360145481565b34801561059057600080fd5b5061036561059f366004613a59565b611121565b3480156105b057600080fd5b506103656105bf366004613946565b61120b565b3480156105d057600080fd5b506103d36105df366004613a89565b611259565b3480156105f057600080fd5b50601954610436906001600160a01b031681565b34801561061057600080fd5b506019546103b290600160a81b900460ff1681565b34801561063157600080fd5b50610365610640366004613946565b6112e6565b34801561065157600080fd5b506103b2610660366004613946565b6001600160a01b03166000908152600b602052604090205460ff1690565b34801561068a57600080fd5b50426103d3565b34801561069d57600080fd5b506104366106ac366004613946565b611439565b3480156106bd57600080fd5b506002546103d3565b3480156106d257600080fd5b506103d360165481565b3480156106e857600080fd5b50610365611790565b3480156106fd57600080fd5b506103d361070c366004613946565b611805565b34801561071d57600080fd5b50610365611864565b34801561073257600080fd5b506103d3610741366004613946565b6001600160a01b031660009081526004602052604090205490565b34801561076857600080fd5b50610365610777366004613aad565b6118c6565b34801561078857600080fd5b506103d3601a5481565b34801561079e57600080fd5b506103d3611a9e565b3480156107b357600080fd5b506103b26107c236600461397e565b611ad5565b3480156107d357600080fd5b506103b26107e2366004613946565b6001600160a01b03166000908152600c602052604090205460ff1690565b34801561080c57600080fd5b506000546001600160a01b0316610436565b34801561082a57600080fd5b50610365610839366004613a59565b611c65565b34801561084a57600080fd5b5061037c611c94565b34801561085f57600080fd5b5061036561086e366004613aad565b611ca3565b34801561087f57600080fd5b506103b261088e3660046139f6565b611db1565b34801561089f57600080fd5b50610365611e00565b3480156108b457600080fd5b506103b26108c33660046139f6565b611f06565b3480156108d457600080fd5b506103656108e3366004613a59565b611f48565b3480156108f457600080fd5b50610365610903366004613a21565b6120f7565b34801561091457600080fd5b506103d3601b5481565b34801561092a57600080fd5b50610365610939366004613a59565b612179565b34801561094a57600080fd5b50610365610959366004613a59565b6121c1565b34801561096a57600080fd5b506103d361097936600461397e565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205490565b3480156109b057600080fd5b506103656109bf366004613946565b612246565b3480156109d057600080fd5b506103656109df366004613a59565b612291565b3480156109f057600080fd5b506104016109ff366004613a59565b6122d9565b348015610a1057600080fd5b50610365610a1f366004613946565b612318565b348015610a3057600080fd5b506103d36123f0565b6000546001600160a01b03163314610a6c5760405162461bcd60e51b8152600401610a6390613bc6565b60405180910390fd5b601455565b606060118054610a8090613dc4565b80601f0160208091040260200160405190810160405280929190818152602001828054610aac90613dc4565b8015610af95780601f10610ace57610100808354040283529160200191610af9565b820191906000526020600020905b815481529060010190602001808311610adc57829003601f168201915b5050505050905090565b6000610b103384846123fb565b5060015b92915050565b6001600160a01b03821660009081526003602052604081205481908310610b835760405162461bcd60e51b815260206004820152601b60248201527f74686520696e646578206f66206c6f636b73206e6f207661696c6400000000006044820152606401610a63565b6001600160a01b0384166000908152600360205260408120805485908110610bbb57634e487b7160e01b600052603260045260246000fd5b600091825260208083206002909202909101546001600160a01b038816835260039091526040822080549193509086908110610c0757634e487b7160e01b600052603260045260246000fd5b60009182526020909120600160029092020101549196919550909350505050565b600080546001600160a01b03163314610c535760405162461bcd60e51b8152600401610a6390613bc6565b6000546001600160a01b03163314610c995760405162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b6044820152606401610a63565b6000610caa8463ffffffff1661251f565b90508015610cf15760405162461bcd60e51b815260206004820152601460248201527370726f6a6563742068617320637265617465642160601b6044820152606401610a63565b6000610d098463ffffffff168663ffffffff166125bd565b905080610d505760405162461bcd60e51b815260206004820152601560248201527470726f6a65637420637265617465206572726f722160581b6044820152606401610a63565b949350505050565b600080610d64856126a1565b9050808310610d855760405162461bcd60e51b8152600401610a6390613b9a565b610d908585856126f8565b610de28533610ddd86604051806060016040528060288152602001613e57602891396001600160a01b038b1660009081526009602090815260408083203384529091529020549190612986565b6123fb565b506001949350505050565b6000600f54821115610e545760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610a63565b6000610e5e6129c0565b9050610e6a83826129e3565b9392505050565b600080546001600160a01b03163314610e9c5760405162461bcd60e51b8152600401610a6390613bc6565b6000546001600160a01b03163314610ee25760405162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b6044820152606401610a63565b6000610ef38363ffffffff16612a25565b9150505b919050565b6000546001600160a01b03163314610f265760405162461bcd60e51b8152600401610a6390613bc6565b6001600160a01b0381166000908152600c602052604090205460ff16610f8e5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610a63565b60005b600d548110156110e757816001600160a01b0316600d8281548110610fc657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614156110d557600d8054610ff190600190613dad565b8154811061100f57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600d80546001600160a01b03909216918390811061104957634e487b7160e01b600052603260045260246000fd5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600882526040808220829055600c90925220805460ff19169055600d8054806110af57634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555050565b806110df81613dff565b915050610f91565b5050565b3360008181526009602090815260408083206001600160a01b03871684529091528120549091610b10918590610ddd9086612b44565b336000818152600c602052604090205460ff16156111965760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b6064820152608401610a63565b60006111a183612ba3565b505050506001600160a01b0384166000908152600760205260409020549192506111cd91905082612bf2565b6001600160a01b038316600090815260076020526040902055600f546111f39082612bf2565b600f556010546112039084612b44565b601055505050565b6000546001600160a01b031633146112355760405162461bcd60e51b8152600401610a6390613bc6565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b6000600e548311156112ad5760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610a63565b816112cc5760006112bd84612ba3565b50939550610b14945050505050565b60006112d784612ba3565b50929550610b14945050505050565b6000546001600160a01b031633146113105760405162461bcd60e51b8152600401610a6390613bc6565b6001600160a01b0381166000908152600c602052604090205460ff16156113795760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610a63565b6001600160a01b038116600090815260076020526040902054156113d3576001600160a01b0381166000908152600760205260409020546113b990610ded565b6001600160a01b0382166000908152600860205260409020555b6001600160a01b03166000818152600c60205260408120805460ff19166001908117909155600d805491820181559091527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b0319169091179055565b600080546001600160a01b031633146114645760405162461bcd60e51b8152600401610a6390613bc6565b6000829050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156114a257600080fd5b505afa1580156114b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114da9190613962565b6001600160a01b031663e6a4390530836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561152257600080fd5b505afa158015611536573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155a9190613962565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b1580156115a057600080fd5b505afa1580156115b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d89190613962565b91506001600160a01b03821661175c57806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561162157600080fd5b505afa158015611635573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116599190613962565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156116a157600080fd5b505afa1580156116b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d99190613962565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b15801561172157600080fd5b505af1158015611735573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117599190613962565b91505b601980546001600160a01b038085166001600160a01b03199283161790925560188054939092169216919091179055919050565b6000546001600160a01b031633146117ba5760405162461bcd60e51b8152600401610a6390613bc6565b476117cd6000546001600160a01b031690565b6001600160a01b03166108fc829081150290604051600060405180830381858888f193505050501580156110e7573d6000803e3d6000fd5b6001600160a01b0381166000908152600c602052604081205460ff161561184257506001600160a01b031660009081526008602052604090205490565b6001600160a01b038216600090815260076020526040902054610b1490610ded565b6000546001600160a01b0316331461188e5760405162461bcd60e51b8152600401610a6390613bc6565b600080546040516001600160a01b0390911690600080516020613e7f833981519152908390a3600080546001600160a01b0319169055565b60195433906001600160a01b03168114156118e057505050565b60006118eb826126a1565b905080831061190c5760405162461bcd60e51b8152600401610a6390613b9a565b60006119178561251f565b9050806119565760405162461bcd60e51b815260206004820152600d60248201526c383937b532b1ba1032b93937b960991b6044820152606401610a63565b600061196d60646119678785612c34565b906129e3565b9050600061197a82612cb3565b905061198585611805565b93506119918483612b44565b600e54116119cc5760405162461bcd60e51b81526020600482015260086024820152670e8dede40e4d2c6d60c31b6044820152606401610a63565b6001600160a01b0385166000908152600c602052604090205460ff1615611a2e576001600160a01b038516600090815260086020526040902054611a109083612b44565b6001600160a01b038616600090815260086020526040902055611a6b565b6001600160a01b038516600090815260076020526040902054611a519082612b44565b6001600160a01b0386166000908152600760205260409020555b6000611a778784612b44565b90506000611a858942613c6b565b9050611a92878383612ccc565b50505050505050505050565b600080546001600160a01b03163314611ac95760405162461bcd60e51b8152600401610a6390613bc6565b5060065490565b905090565b600080546001600160a01b03163314611b005760405162461bcd60e51b8152600401610a6390613bc6565b6001600160a01b038316301415611b655760405162461bcd60e51b815260206004820152602360248201527f43616e2774206c657420796f752074616b6520616c6c206e617469766520746f60448201526235b2b760e91b6064820152608401610a63565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015611ba757600080fd5b505afa158015611bbb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bdf9190613a71565b60405163a9059cbb60e01b81526001600160a01b038581166004830152602482018390529192509085169063a9059cbb90604401602060405180830381600087803b158015611c2d57600080fd5b505af1158015611c41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d509190613a3d565b6000546001600160a01b03163314611c8f5760405162461bcd60e51b8152600401610a6390613bc6565b601655565b606060128054610a8090613dc4565b6000546001600160a01b03163314611ccd5760405162461bcd60e51b8152600401610a6390613bc6565b601854611ce59030906001600160a01b0316846123fb565b6018546001600160a01b031663f305d719823085600080611d0e6000546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c4016060604051808303818588803b158015611d7157600080fd5b505af1158015611d85573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611daa9190613ace565b5050505050565b6000610b103384610ddd85604051806060016040528060258152602001613e9f602591393360009081526009602090815260408083206001600160a01b038d1684529091529020549190612986565b6001546001600160a01b03163314611e665760405162461bcd60e51b815260206004820152602360248201527f596f7520646f6e27742068617665207065726d697373696f6e20746f20756e6c6044820152626f636b60e81b6064820152608401610a63565b6002544211611eb75760405162461bcd60e51b815260206004820152601f60248201527f436f6e7472616374206973206c6f636b656420756e74696c20372064617973006044820152606401610a63565b600154600080546040516001600160a01b039384169390911691600080516020613e7f83398151915291a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b600080611f12336126a1565b9050808310611f335760405162461bcd60e51b8152600401610a6390613b9a565b611f3e3385856126f8565b5060019392505050565b6000546001600160a01b03163314611f725760405162461bcd60e51b8152600401610a6390613bc6565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611fb557634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201810191909152601854604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561200957600080fd5b505afa15801561201d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120419190613962565b8160018151811061206257634e487b7160e01b600052603260045260246000fd5b6001600160a01b03928316602091820292909201015260185461208891309116846123fb565b60185460405163791ac94760e01b81526001600160a01b039091169063791ac947906120c1908590600090869030904290600401613bfb565b600060405180830381600087803b1580156120db57600080fd5b505af11580156120ef573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146121215760405162461bcd60e51b8152600401610a6390613bc6565b60198054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc1599061216e90831515815260200190565b60405180910390a150565b6000546001600160a01b031633146121a35760405162461bcd60e51b8152600401610a6390613bc6565b6013546121b190600a613ce6565b6121bb9082613d8e565b601a5550565b6000546001600160a01b031633146121eb5760405162461bcd60e51b8152600401610a6390613bc6565b60008054600180546001600160a01b03199081166001600160a01b0384161790915516905561221a8142613c6b565b600255600080546040516001600160a01b0390911690600080516020613e7f833981519152908390a350565b6000546001600160a01b031633146122705760405162461bcd60e51b8152600401610a6390613bc6565b6001600160a01b03166000908152600b60205260409020805460ff19169055565b6000546001600160a01b031633146122bb5760405162461bcd60e51b8152600401610a6390613bc6565b6013546122c990600a613ce6565b6122d39082613d8e565b601b5550565b6000805481906001600160a01b031633146123065760405162461bcd60e51b8152600401610a6390613bc6565b61230f83612d5f565b91509150915091565b6000546001600160a01b031633146123425760405162461bcd60e51b8152600401610a6390613bc6565b6001600160a01b0381166123a75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a63565b600080546040516001600160a01b0380851693921691600080516020613e7f83398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000611ad060055490565b6001600160a01b03831661245d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a63565b6001600160a01b0382166124be5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a63565b6001600160a01b0383811660008181526009602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000805b6006548110156125b4576006818154811061254e57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101548314156125a2576006818154811061258857634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160000154915050919050565b806125ac81613dff565b915050612523565b50600092915050565b6000805b60065481101561262157600681815481106125ec57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600202016001015483141561260f576000915050610b14565b8061261981613dff565b9150506125c1565b50506040805180820190915291825260208201908152600680546001808201835560009290925292517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f60029094029384015590517ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d409092019190915590565b60006126ac82612de8565b6001600160a01b038216600090815260046020526040812054906126cf84611805565b9050816126dd579392505050565b8082106126ee575060009392505050565b610d508183612bf2565b6001600160a01b03831661275c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a63565b6001600160a01b0382166127be5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a63565b600081116128205760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610a63565b6000546001600160a01b0384811691161480159061284c57506000546001600160a01b03838116911614155b156128b457601a548111156128b45760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b6064820152608401610a63565b60006128bf30611805565b9050601a5481106128cf5750601a545b601b54811080159081906128ed5750601954600160a01b900460ff16155b801561290757506019546001600160a01b03868116911614155b801561291c5750601954600160a81b900460ff165b1561292f57601b54915061292f8261304b565b6001600160a01b0385166000908152600b602052604090205460019060ff168061297157506001600160a01b0385166000908152600b602052604090205460ff165b1561297a575060005b6120ef868686846130f2565b600081848411156129aa5760405162461bcd60e51b8152600401610a639190613b47565b5060006129b78486613dad565b95945050505050565b60008060006129cd61326f565b90925090506129dc82826129e3565b9250505090565b6000610e6a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061347b565b600080805b600654811015611f3e5760068181548110612a5557634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160010154841415612b325760068054612a7e90600190613dad565b81548110612a9c57634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160068281548110612acb57634e487b7160e01b600052603260045260246000fd5b6000918252602090912082546002909202019081556001918201549101556006805480612b0857634e487b7160e01b600052603160045260246000fd5b60008281526020812060026000199093019283020181815560019081019190915591559150611f3e565b80612b3c81613dff565b915050612a2a565b600080612b518385613c6b565b905083811015610e6a5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610a63565b6000806000806000806000806000612bba8a6134a9565b9250925092506000806000612bd88d8686612bd36129c0565b6134eb565b919f909e50909c50959a5093985091965092945050505050565b6000610e6a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612986565b600082612c4357506000610b14565b6000612c4f8385613d8e565b905082612c5c8583613c83565b14610e6a5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610a63565b600080612cbe6129c0565b90506000610d508483612c34565b6001600160a01b03831660008181526003602090815260408083208151808301835287815280840187815282546001818101855593875285872092516002909102909201918255519101559282526004905290812054612d2c9084612b44565b6001600160a01b038516600090815260046020526040902055600554612d529084612b44565b6005555060019392505050565b6006546000908190831015612ddd5760068381548110612d8f57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600202016000015460068481548110612dc257634e487b7160e01b600052603260045260246000fd5b90600052602060002090600202016001015491509150915091565b506000928392509050565b60005b6001600160a01b0382166000908152600360205260409020548110156110e7576001600160a01b0382166000908152600360205260409020805482908110612e4357634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160010154421115613039576001600160a01b03821660009081526003602052604090208054612ec9919083908110612e9957634e487b7160e01b600052603260045260246000fd5b600091825260208083206002909202909101546001600160a01b0386168352600490915260409091205490612bf2565b6001600160a01b03831660009081526004602090815260408083209390935560039052208054612f2c919083908110612f1257634e487b7160e01b600052603260045260246000fd5b600091825260209091206002909102015460055490612bf2565b6005556001600160a01b03821660009081526003602052604090208054612f5590600190613dad565b81548110612f7357634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160036000846001600160a01b03166001600160a01b031681526020019081526020016000208281548110612fc557634e487b7160e01b600052603260045260246000fd5b60009182526020808320845460029093020191825560019384015493909101929092556001600160a01b038416815260039091526040902080548061301a57634e487b7160e01b600052603160045260246000fd5b6000828152602081206002600019909301928302018181556001015590555b8061304381613dff565b915050612deb565b6019805460ff60a01b1916600160a01b179055600061306b8260026129e3565b905060006130798383612bf2565b90504761308583611f72565b60006130914783612bf2565b905061309d8382611ccd565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a150506019805460ff60a01b19169055505050565b806130ff576130ff61353b565b6001600160a01b0384166000908152600c602052604090205460ff16801561314057506001600160a01b0383166000908152600c602052604090205460ff16155b1561315557613150848484613569565b613253565b6001600160a01b0384166000908152600c602052604090205460ff1615801561319657506001600160a01b0383166000908152600c602052604090205460ff165b156131a65761315084848461368f565b6001600160a01b0384166000908152600c602052604090205460ff161580156131e857506001600160a01b0383166000908152600c602052604090205460ff16155b156131f857613150848484613738565b6001600160a01b0384166000908152600c602052604090205460ff16801561323857506001600160a01b0383166000908152600c602052604090205460ff165b156132485761315084848461377c565b613253848484613738565b8061326957613269601554601455601754601655565b50505050565b600f54600e546000918291825b600d5481101561344b57600a54600d80546001600160a01b0390921691839081106132b757634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614156132d757613439565b8260076000600d84815481106132fd57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054118061337657508160086000600d848154811061334f57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b1561338c57600f54600e54945094505050509091565b6133e060076000600d84815481106133b457634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020548490612bf2565b925061343660086000600d848154811061340a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020548390612bf2565b91505b8061344381613dff565b91505061327c565b50600e54600f5461345b916129e3565b82101561347257600f54600e549350935050509091565b90939092509050565b6000818361349c5760405162461bcd60e51b8152600401610a639190613b47565b5060006129b78486613c83565b6000806000806134b8856137ef565b905060006134c58661380b565b905060006134dd826134d78986612bf2565b90612bf2565b979296509094509092505050565b60008080806134fa8886612c34565b905060006135088887612c34565b905060006135168888612c34565b90506000613528826134d78686612bf2565b939b939a50919850919650505050505050565b60145415801561354b5750601654155b1561355257565b601480546015556016805460175560009182905555565b60008060008060008061357b87612ba3565b6001600160a01b038f16600090815260086020526040902054959b509399509197509550935091506135ad9088612bf2565b6001600160a01b038a166000908152600860209081526040808320939093556007905220546135dc9087612bf2565b6001600160a01b03808b1660009081526007602052604080822093909355908a168152205461360b9086612b44565b6001600160a01b03891660009081526007602052604090205561362d81613827565b61363784836138b0565b876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405161367c91815260200190565b60405180910390a3505050505050505050565b6000806000806000806136a187612ba3565b6001600160a01b038f16600090815260076020526040902054959b509399509197509550935091506136d39087612bf2565b6001600160a01b03808b16600090815260076020908152604080832094909455918b168152600890915220546137099084612b44565b6001600160a01b03891660009081526008602090815260408083209390935560079052205461360b9086612b44565b60008060008060008061374a87612ba3565b6001600160a01b038f16600090815260076020526040902054959b509399509197509550935091506135dc9087612bf2565b60008060008060008061378e87612ba3565b6001600160a01b038f16600090815260086020526040902054959b509399509197509550935091506137c09088612bf2565b6001600160a01b038a166000908152600860209081526040808320939093556007905220546136d39087612bf2565b6000610b14606461196760145485612c3490919063ffffffff16565b6000610b14606461196760165485612c3490919063ffffffff16565b60006138316129c0565b9050600061383f8383612c34565b3060009081526007602052604090205490915061385c9082612b44565b30600090815260076020908152604080832093909355600c9052205460ff16156138ab573060009081526008602052604090205461389a9084612b44565b306000908152600860205260409020555b505050565b6138c76138be8360026129e3565b600f5490612bf2565b600f556138e16138d88260026129e3565b60105490612b44565b6010556139136138f28260026129e3565b600a546001600160a01b031660009081526008602052604090205490612b44565b600a546001600160a01b03166000908152600860205260409020555050565b803563ffffffff81168114610ef757600080fd5b600060208284031215613957578081fd5b8135610e6a81613e30565b600060208284031215613973578081fd5b8151610e6a81613e30565b60008060408385031215613990578081fd5b823561399b81613e30565b915060208301356139ab81613e30565b809150509250929050565b6000806000606084860312156139ca578081fd5b83356139d581613e30565b925060208401356139e581613e30565b929592945050506040919091013590565b60008060408385031215613a08578182fd5b8235613a1381613e30565b946020939093013593505050565b600060208284031215613a32578081fd5b8135610e6a81613e48565b600060208284031215613a4e578081fd5b8151610e6a81613e48565b600060208284031215613a6a578081fd5b5035919050565b600060208284031215613a82578081fd5b5051919050565b60008060408385031215613a9b578182fd5b8235915060208301356139ab81613e48565b60008060408385031215613abf578182fd5b50508035926020909101359150565b600080600060608486031215613ae2578283fd5b8351925060208401519150604084015190509250925092565b600060208284031215613b0c578081fd5b610e6a82613932565b60008060408385031215613b27578182fd5b613b3083613932565b9150613b3e60208401613932565b90509250929050565b6000602080835283518082850152825b81811015613b7357858101830151858201604001528201613b57565b81811115613b845783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601290820152710c4c2d8c2dcc6ca40dcdee840cadcdeeaced60731b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b81811015613c4a5784516001600160a01b031683529383019391830191600101613c25565b50506001600160a01b03969096166060850152505050608001529392505050565b60008219821115613c7e57613c7e613e1a565b500190565b600082613c9e57634e487b7160e01b81526012600452602481fd5b500490565b600181815b80851115613cde578160001904821115613cc457613cc4613e1a565b80851615613cd157918102915b93841c9390800290613ca8565b509250929050565b6000610e6a8383600082613cfc57506001610b14565b81613d0957506000610b14565b8160018114613d1f5760028114613d2957613d45565b6001915050610b14565b60ff841115613d3a57613d3a613e1a565b50506001821b610b14565b5060208310610133831016604e8410600b8410161715613d68575081810a610b14565b613d728383613ca3565b8060001904821115613d8657613d86613e1a565b029392505050565b6000816000190483118215151615613da857613da8613e1a565b500290565b600082821015613dbf57613dbf613e1a565b500390565b600181811c90821680613dd857607f821691505b60208210811415613df957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613e1357613e13613e1a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0381168114613e4557600080fd5b50565b8015158114613e4557600080fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63658be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e045524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c60aa91e3152f12cca6805963292339557f10979160582f681ac936c2f21366564736f6c63430008040033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.