Contract 0xc76ae83626becd1bf793c096acc82faf8f2a5253

 

Contract Overview

Balance:
1.996520153007479299 BNB

BNB Value:
$1,158.70 (@ $580.36/BNB)

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xebe932cd4c4e7a26403932ceb3b0710d27c13133228628266e7d6c4176ecc078Transfer128145282021-11-20 20:04:5217 days 16 hrs ago0x171bf9bdecdaa811aa4d1087f7f9fc2633e56092 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.00083031
0x8affc2081852a14383dd3d4ec13b278ee9b82dbc05ff430135bc31df98a3e294Approve126594322021-11-15 3:48:5523 days 9 hrs ago0xcabf32504b3557a7ed88edd5f57dfc4a3a98e999 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000177751
0x42780effda810cc4ab39d5608984e29beca7aac97ba2ef19f9bbdab9090ad932Approve126594252021-11-15 3:48:3423 days 9 hrs ago0xcabf32504b3557a7ed88edd5f57dfc4a3a98e999 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000312151
0x564de0ea7f561a14ca58d8f380d508f2485557f3df155cc9f1ff6ce21da95a1dTransfer125887242021-11-12 15:02:5725 days 22 hrs ago0xf2b006f60561faf1b2f66e34eea522c812992aaf IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.00070828
0x2311dba854b5c783b178911132b2c4e2b9c68f007127cfef629bd32a48fcd30eTransfer Ownersh...125887032021-11-12 15:01:5025 days 22 hrs ago0xf2b006f60561faf1b2f66e34eea522c812992aaf IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000154955
0x184eb92e1465deaa97b339d0600ec2f1f1b9615c49f74679852d04c21207f38bApprove125813932021-11-12 8:34:4426 days 4 hrs ago0x7b4da9e985ab0c4d568260cfbe085ee9e5cda3ae IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0xb0b22b7a9ba6816997299c6d50dd3c75afaa66a9e77e35ae1d7990f1ede6a140Approve122144412021-10-30 7:53:2839 days 5 hrs ago0x4ee62df8dc94ad5c9439b58a96c3828ef704b9cb IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000073025
0xdebab926173df86af531b378e7535c5d4d42c1b1e2894ae76394c3fc4af227daApprove120255022021-10-23 16:00:2945 days 21 hrs ago0x7354022486daea19728e9d9e4c0946ef85a572eb IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000073025
0xf4666d19222c50b31310a4f317d0d3510871237a05bae3e6bb89453abc0d24d9Approve117734442021-10-14 19:32:2954 days 17 hrs ago0x90c80b7eae4e13109d52f98679b980babe0f8e57 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0x85dbd341e66aab0cf97aae279a62b5878a75c7d54d91b962d2499cf67a225df3Transfer113970322021-10-01 15:36:1767 days 21 hrs ago0xf2b006f60561faf1b2f66e34eea522c812992aaf IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000699765
0x793a8ce665f28d8be2de459da7d969bc77f27b78f1d16f0953c6338f197c146bApprove113406362021-09-29 16:08:4269 days 20 hrs ago0x306fc0094d97de94860c72b6c28771ce0ab93d0c IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0x2ff8156b2dd8c42454c70dfa7ab229b02c38d1a4f64992ea714de5a805aa5336Approve111085212021-09-21 13:09:3177 days 23 hrs ago0x10f1f29e529009d5612e3c864a76419c9c1af9c0 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000073025
0xab586de6b8755fd608411327efaf26d73f2e2c9300b81901eea348cd3849b5b0Approve109290952021-09-15 7:03:2084 days 6 hrs ago0x7354022486daea19728e9d9e4c0946ef85a572eb IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0x1e7a87f37a72f8652ca892f34e431ce80346037ad5ddf2ccb8ac394479eaf170Approve108500762021-09-12 13:04:2486 days 23 hrs ago0xc949cedd3714e525d1e8342193717b4ad3b3db60 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0x7a244d20a9cb21f216eb363d2ff683b76d6e559bb0efabe27cae287fe07e8cb4Approve106540742021-09-05 16:00:3693 days 21 hrs ago0x9fc8031493e82f483eaba4ed1de085062154fdb7 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0xc9291c2fa50fa92ec271ad9becc64513e992bcdbfe96a40f74fa5e893dfb8e27Transfer106478272021-09-05 10:47:1094 days 2 hrs ago0x5d36997f948f74e64e792e387d3f1218243d9566 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.00083031
0x1d079873c594ac56be2c7bc52519c43a082ef150893b2ddbb2ebdbd394a9f309Approve105486992021-09-01 23:28:4297 days 13 hrs ago0x70722a03d171b226aed7cd82b7193b06e6681845 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0x83b0f27b7477458eb74c2b94e919c993f444b750f477feb4603ba04dfb85d2e5Transfer105023682021-08-31 8:17:0099 days 4 hrs ago0xe9b5c2e7fa6dae1cbe6dba974ba56623f02fa9d8 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000110975
0x2899c796fc4a969abc8dc1f05eb6d8024eeda8e8b2e2164ad191278e5426c191Approve103844362021-08-27 4:09:33103 days 8 hrs ago0xe473f7611bea1db1615e57c8859f185939d0c411 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0xcdb7446080472278b3eddb3e3ea3ffd024c04d11138d6f341d8dfb0212a67db6Approve103618192021-08-26 9:17:31104 days 3 hrs ago0xd8df902f2004370751d3362881960671b2d75c11 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0x6bf708514474b40c3662310588da715057c7f4eebceb4e5b87593d22f3096ba9Approve103135062021-08-24 16:53:16105 days 20 hrs ago0x8291e2578eb64211a95fbc0ac2deb504682a0bb7 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0xc0c7801f764f284acaf19c9fcbf123fe1f0c18ea84e1afe976fdedc33028b236Approve102812562021-08-23 13:46:52106 days 23 hrs ago0x50c1ae0d97520b2f2889791f7b519ccead248e51 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0x6f92195434fdbf8ad52c705f81a2d5618598e1b27391655157aac01c521627e8Approve102784562021-08-23 11:24:27107 days 1 hr ago0x85e1ac3c15f48852c1bcdf6d8af162615b95e435 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000267558
0x8f6a9c982995d4485f8ac32c96e645bd34c4fc182e5fa23499bf5d4c2b768ba6Approve101679562021-08-19 14:49:36110 days 22 hrs ago0x771c2dc7d29d1a6515e4ac49403830750fd80c6e IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
0x4d50f688650883910974af734a944c250a99620b143d974be8d9546d3eb75c8eApprove101598592021-08-19 7:55:05111 days 5 hrs ago0x66e36397ca45c25934d76ad849b4193c4ac22804 IN  0xc76ae83626becd1bf793c096acc82faf8f2a52530 BNB0.000222965
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x60813cc7915e6ded332a04bdd3abf1186497e910c8295dcecb74a4715bbc01f3128155122021-11-20 20:55:1817 days 16 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a5253 PancakeSwap: Router v20.001152024176207135 BNB
0x60813cc7915e6ded332a04bdd3abf1186497e910c8295dcecb74a4715bbc01f3128155122021-11-20 20:55:1817 days 16 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a52530x020f10ca913ccbfa333377e4a58c3050d10a511d0.000359996445987082 BNB
0x60813cc7915e6ded332a04bdd3abf1186497e910c8295dcecb74a4715bbc01f3128155122021-11-20 20:55:1817 days 16 hrs ago PancakeSwap: Router v2 0xc76ae83626becd1bf793c096acc82faf8f2a52530.008999911149677073 BNB
0x46a7e75f203570fcd5e8e58575cc6eaca8c21c7ed646eec74864129465afbaef126594372021-11-15 3:49:1023 days 9 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a5253 PancakeSwap: Router v20.000467395171439483 BNB
0x46a7e75f203570fcd5e8e58575cc6eaca8c21c7ed646eec74864129465afbaef126594372021-11-15 3:49:1023 days 9 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a52530x020f10ca913ccbfa333377e4a58c3050d10a511d0.000381707495042344 BNB
0x46a7e75f203570fcd5e8e58575cc6eaca8c21c7ed646eec74864129465afbaef126594372021-11-15 3:49:1023 days 9 hrs ago PancakeSwap: Router v2 0xc76ae83626becd1bf793c096acc82faf8f2a52530.00954268737605862 BNB
0x14d9822fb5aa95f7c0583fc05aa8ce440fae301e8693f6b9029aeb6f2dc11d79126097842021-11-13 9:01:3625 days 4 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a5253 PancakeSwap: Router v20.004925060582106542 BNB
0x14d9822fb5aa95f7c0583fc05aa8ce440fae301e8693f6b9029aeb6f2dc11d79126097842021-11-13 9:01:3625 days 4 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a52530x020f10ca913ccbfa333377e4a58c3050d10a511d0.000386137718749929 BNB
0x14d9822fb5aa95f7c0583fc05aa8ce440fae301e8693f6b9029aeb6f2dc11d79126097842021-11-13 9:01:3625 days 4 hrs ago PancakeSwap: Router v2 0xc76ae83626becd1bf793c096acc82faf8f2a52530.009653442968748235 BNB
0xc9b3748064d0d5d2e7c2cdb9d84fbcaed209c2de7856188136725505928a9994117734582021-10-14 19:33:1154 days 17 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a5253 PancakeSwap: Router v20.004415679244452581 BNB
0xc9b3748064d0d5d2e7c2cdb9d84fbcaed209c2de7856188136725505928a9994117734582021-10-14 19:33:1154 days 17 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a52530x020f10ca913ccbfa333377e4a58c3050d10a511d0.000390197881221203 BNB
0xc9b3748064d0d5d2e7c2cdb9d84fbcaed209c2de7856188136725505928a9994117734582021-10-14 19:33:1154 days 17 hrs ago PancakeSwap: Router v2 0xc76ae83626becd1bf793c096acc82faf8f2a52530.009754947030530082 BNB
0x9b57692c65fc61420cf32512ecc64b13c06067e4f9737f36b510f5f925a2c7fd116216792021-10-09 11:33:5160 days 1 hr ago 0xc76ae83626becd1bf793c096acc82faf8f2a5253 PancakeSwap: Router v20.001128800311788298 BNB
0x9b57692c65fc61420cf32512ecc64b13c06067e4f9737f36b510f5f925a2c7fd116216792021-10-09 11:33:5160 days 1 hr ago 0xc76ae83626becd1bf793c096acc82faf8f2a52530x020f10ca913ccbfa333377e4a58c3050d10a511d0.000391426815163919 BNB
0x9b57692c65fc61420cf32512ecc64b13c06067e4f9737f36b510f5f925a2c7fd116216792021-10-09 11:33:5160 days 1 hr ago PancakeSwap: Router v2 0xc76ae83626becd1bf793c096acc82faf8f2a52530.009785670379097979 BNB
0x144f045903f64fa16528ac36648e6bd52fe32ad861b93341ae67ba9fd6771bbd114773152021-10-04 11:02:3965 days 2 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a5253 PancakeSwap: Router v20.001258390074255825 BNB
0x144f045903f64fa16528ac36648e6bd52fe32ad861b93341ae67ba9fd6771bbd114773152021-10-04 11:02:3965 days 2 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a52530x020f10ca913ccbfa333377e4a58c3050d10a511d0.00039268539842046 BNB
0x144f045903f64fa16528ac36648e6bd52fe32ad861b93341ae67ba9fd6771bbd114773152021-10-04 11:02:3965 days 2 hrs ago PancakeSwap: Router v2 0xc76ae83626becd1bf793c096acc82faf8f2a52530.009817134960511504 BNB
0x01797df9dee2967847d30960a3c87b399df3c4a34a5f7d9cffdafd91d556bd08113975992021-10-01 16:05:3267 days 20 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a5253 PancakeSwap: Router v20.002764741508936546 BNB
0x01797df9dee2967847d30960a3c87b399df3c4a34a5f7d9cffdafd91d556bd08113975992021-10-01 16:05:3267 days 20 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a52530x020f10ca913ccbfa333377e4a58c3050d10a511d0.000393462503637278 BNB
0x01797df9dee2967847d30960a3c87b399df3c4a34a5f7d9cffdafd91d556bd08113975992021-10-01 16:05:3267 days 20 hrs ago PancakeSwap: Router v2 0xc76ae83626becd1bf793c096acc82faf8f2a52530.009836562590931952 BNB
0xe07a9606fb47524005e57804547b0de989431b8da37b4f59dc9cdd188ee65058113975672021-10-01 16:03:5667 days 20 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a5253 PancakeSwap: Router v20.00383843754804096 BNB
0x088c45f73e6b52f843673d89ea0dc3b8b4a408d1020035d8a3c99c40225d8508113975562021-10-01 16:03:2367 days 21 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a5253 PancakeSwap: Router v20.00391104302452829 BNB
0x088c45f73e6b52f843673d89ea0dc3b8b4a408d1020035d8a3c99c40225d8508113975562021-10-01 16:03:2367 days 21 hrs ago 0xc76ae83626becd1bf793c096acc82faf8f2a52530x020f10ca913ccbfa333377e4a58c3050d10a511d0.000398824210802323 BNB
0x088c45f73e6b52f843673d89ea0dc3b8b4a408d1020035d8a3c99c40225d8508113975562021-10-01 16:03:2367 days 21 hrs ago PancakeSwap: Router v2 0xc76ae83626becd1bf793c096acc82faf8f2a52530.009970605270058099 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CharityApe

Compiler Version
v0.8.5+commit.a4f2e591

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : CharityApe.sol
// SPDX-License-Identifier: Unlicensed

pragma solidity ^0.8.5;

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


interface IERC20 {

    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);


}

library SafeMath {

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

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

        return c;
    }


    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by 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;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

library Address {

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

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


    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return _functionCallWithValue(target, data, 0, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {

            if (returndata.length > 0) {
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

contract Ownable is Context {
    address private _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 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 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 CharityApe is Context, IERC20, Ownable {
    using SafeMath for uint256;
    using Address for address;

    address payable public marketingAddress = payable(0x020f10Ca913cCbFa333377e4a58C3050D10a511D); // Marketing Address
    address public immutable deadAddress = 0x000000000000000000000000000000000000dEaD;
    mapping (address => uint256) private _rOwned;
    mapping (address => uint256) private _tOwned;
    mapping (address => mapping (address => uint256)) private _allowances;

    mapping (address => bool) private _isExcludedFromFee;

    mapping (address => bool) private _isExcluded;
    address[] private _excluded;

    uint256 private constant MAX = ~uint256(0);
    uint256 private _tTotal = 1000000000 * 10 * 10**18;
    uint256 private _rTotal = (MAX - (MAX % _tTotal));
    uint256 private _tFeeTotal;

    string private _name = "CharityApe";
    string private _symbol = "CTA";
    uint8 private _decimals = 18;

    struct AddressFee {
        bool enable;
        uint256 _taxFee;
        uint256 _liquidityFee;
        uint256 _buyTaxFee;
        uint256 _buyLiquidityFee;
        uint256 _sellTaxFee;
        uint256 _sellLiquidityFee;
    }

    struct SellHistories {
        uint256 time;
        uint256 bnbAmount;
    }

    uint256 public _taxFee = 2;
    uint256 private _previousTaxFee = _taxFee;

    uint256 public _liquidityFee = 10;
    uint256 private _previousLiquidityFee = _liquidityFee;

    uint256 public _buyTaxFee = 2;
    uint256 public _buyLiquidityFee = 10;

    uint256 public _sellTaxFee = 7;
    uint256 public _sellLiquidityFee = 11;

    uint256 public _startTimeForSwap;
    uint256 public _intervalMinutesForSwap = 1 * 1 minutes;

    uint256 public _buyBackRangeRate = 80;

    // Fee per address
    mapping (address => AddressFee) public _addressFees;

    uint256 public marketingDivisor = 4;

    uint256 public _maxTxAmount = 3000000 * 10 * 10**18;
    uint256 private minimumTokensBeforeSwap = 200000 * 10 * 10**18;
    uint256 public buyBackSellLimit = 10000 * 10**18;

    // LookBack into historical sale data
    SellHistories[] public _sellHistories;
    bool public _isAutoBuyBack = true;
    uint256 public _buyBackDivisor = 10;
    uint256 public _buyBackTimeInterval = 5 minutes;
    uint256 public _buyBackMaxTimeForHistories = 24 * 60 minutes;

    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;

    bool inSwapAndLiquify;
    bool public swapAndLiquifyEnabled = false;
    bool public buyBackEnabled = true;

    bool public _isEnabledBuyBackAndBurn = true;

    event RewardLiquidityProviders(uint256 tokenAmount);
    event BuyBackEnabledUpdated(bool enabled);
    event AutoBuyBackEnabledUpdated(bool enabled);
    event SwapAndLiquifyEnabledUpdated(bool enabled);
    event SwapAndLiquify(
        uint256 tokensSwapped,
        uint256 ethReceived,
        uint256 tokensIntoLiqudity
    );

    event SwapETHForTokens(
        uint256 amountIn,
        address[] path
    );

    event SwapTokensForETH(
        uint256 amountIn,
        address[] path
    );

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

    constructor () {

        _rOwned[_msgSender()] = _rTotal;

        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E);

        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        uniswapV2Router = _uniswapV2Router;


        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;

        _startTimeForSwap = block.timestamp;

        emit Transfer(address(0), _msgSender(), _tTotal);
    }

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

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

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

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

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

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

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

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

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

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

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "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 minimumTokensBeforeSwapAmount() public view returns (uint256) {
        return minimumTokensBeforeSwap;
    }

    function buyBackSellLimitAmount() public view returns (uint256) {
        return buyBackSellLimit;
    }

    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(!_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 not 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 _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.");
        }

        if(from != owner() && to == uniswapV2Pair) {
            require(IUniswapV2Pair(uniswapV2Pair).totalSupply() > 0, "Only Owner Can Add First Liquidity");
        }

        uint256 contractTokenBalance = balanceOf(address(this));
        bool overMinimumTokenBalance = contractTokenBalance >= minimumTokensBeforeSwap;

        if (to == uniswapV2Pair && balanceOf(uniswapV2Pair) > 0) {
            SellHistories memory sellHistory;
            sellHistory.time = block.timestamp;
            sellHistory.bnbAmount = _getSellBnBAmount(amount);

            _sellHistories.push(sellHistory);
        }

        // Sell tokens for ETH
        if (!inSwapAndLiquify && swapAndLiquifyEnabled && balanceOf(uniswapV2Pair) > 0) {
            if (to == uniswapV2Pair) {
                if (overMinimumTokenBalance && _startTimeForSwap + _intervalMinutesForSwap <= block.timestamp) {
                    _startTimeForSwap = block.timestamp;
                    contractTokenBalance = minimumTokensBeforeSwap;
                    swapTokens(contractTokenBalance);
                }

                if (buyBackEnabled) {

                    uint256 balance = address(this).balance;

                    uint256 _bBSLimitMax = buyBackSellLimit;

                    if (_isAutoBuyBack) {

                        uint256 sumBnbAmount = 0;
                        uint256 startTime = block.timestamp - _buyBackTimeInterval;
                        uint256 cnt = 0;

                        for (uint i = 0; i < _sellHistories.length; i ++) {

                            if (_sellHistories[i].time >= startTime) {
                                sumBnbAmount = sumBnbAmount.add(_sellHistories[i].bnbAmount);
                                cnt = cnt + 1;
                            }
                        }

                        if (cnt > 0 && _buyBackDivisor > 0) {
                            _bBSLimitMax = sumBnbAmount.div(cnt).div(_buyBackDivisor);
                        }

                        _removeOldSellHistories();
                    }

                    uint256 _bBSLimitMin = _bBSLimitMax.mul(_buyBackRangeRate).div(100);

                    uint256 _bBSLimit = _bBSLimitMin + uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty))) % (_bBSLimitMax - _bBSLimitMin + 1);

                    if (balance > _bBSLimit) {
                        buyBackTokens(_bBSLimit);
                    }
                }
            }

        }

        bool takeFee = true;

        // If any account belongs to _isExcludedFromFee account then remove the fee
        if(_isExcludedFromFee[from] || _isExcludedFromFee[to]){
            takeFee = false;
        }
        else{
            // Buy
            if(from == uniswapV2Pair){
                removeAllFee();
                _taxFee = _buyTaxFee;
                _liquidityFee = _buyLiquidityFee;
            }
            // Sell
            if(to == uniswapV2Pair){
                removeAllFee();
                _taxFee = _sellTaxFee;
                _liquidityFee = _sellLiquidityFee;
            }

            // If send account has a special fee
            if(_addressFees[from].enable){
                removeAllFee();
                _taxFee = _addressFees[from]._taxFee;
                _liquidityFee = _addressFees[from]._liquidityFee;

                // Sell
                if(to == uniswapV2Pair){
                    _taxFee = _addressFees[from]._sellTaxFee;
                    _liquidityFee = _addressFees[from]._sellLiquidityFee;
                }
            }
            else{
                // If buy account has a special fee
                if(_addressFees[to].enable){
                    //buy
                    removeAllFee();
                    if(from == uniswapV2Pair){
                        _taxFee = _addressFees[to]._buyTaxFee;
                        _liquidityFee = _addressFees[to]._buyLiquidityFee;
                    }
                }
            }
        }

        _tokenTransfer(from,to,amount,takeFee);
    }

    function swapTokens(uint256 contractTokenBalance) private lockTheSwap {

        uint256 initialBalance = address(this).balance;
        swapTokensForEth(contractTokenBalance);
        uint256 transferredBalance = address(this).balance.sub(initialBalance);

        // Send to Marketing address
        transferToAddressETH(marketingAddress, transferredBalance.mul(marketingDivisor).div(100));

    }


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

    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), // The contract
            block.timestamp
        );

        emit SwapTokensForETH(tokenAmount, path);
    }

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

      // Make the swap
        uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(
            0, // Accept any amount of Tokens
            path,
            deadAddress, // Burn address
            block.timestamp.add(300)
        );

        emit SwapETHForTokens(amount, path);
    }

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

    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]) {
            _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 _reflectFee(uint256 rFee, uint256 tFee) private {
        _rTotal = _rTotal.sub(rFee);
        _tFeeTotal = _tFeeTotal.add(tFee);
    }

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

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

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

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

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

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

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

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

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

        _previousTaxFee = _taxFee;
        _previousLiquidityFee = _liquidityFee;

        _taxFee = 0;
        _liquidityFee = 0;
    }

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

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

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

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


    function _getSellBnBAmount(uint256 tokenAmount) private view returns(uint256) {
        address[] memory path = new address[](2);

        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();

        uint[] memory amounts = uniswapV2Router.getAmountsOut(tokenAmount, path);

        return amounts[1];
    }

    function _removeOldSellHistories() private {
        uint256 i = 0;
        uint256 maxStartTimeForHistories = block.timestamp - _buyBackMaxTimeForHistories;

        for (uint256 j = 0; j < _sellHistories.length; j ++) {

            if (_sellHistories[j].time >= maxStartTimeForHistories) {

                _sellHistories[i].time = _sellHistories[j].time;
                _sellHistories[i].bnbAmount = _sellHistories[j].bnbAmount;

                i = i + 1;
            }
        }

        uint256 removedCnt = _sellHistories.length - i;

        for (uint256 j = 0; j < removedCnt; j ++) {

            _sellHistories.pop();
        }

    }

    function SetBuyBackMaxTimeForHistories(uint256 newMinutes) external onlyOwner {
        _buyBackMaxTimeForHistories = newMinutes * 1 minutes;
    }

    function SetBuyBackDivisor(uint256 newDivisor) external onlyOwner {
        _buyBackDivisor = newDivisor;
    }

    function GetBuyBackTimeInterval() public view returns(uint256) {
        return _buyBackTimeInterval.div(60);
    }

    function SetBuyBackTimeInterval(uint256 newMinutes) external onlyOwner {
        _buyBackTimeInterval = newMinutes * 1 minutes;
    }

    function SetBuyBackRangeRate(uint256 newPercent) external onlyOwner {
        require(newPercent <= 100, "The value must not be larger than 100.");
        _buyBackRangeRate = newPercent;
    }

    function GetSwapMinutes() public view returns(uint256) {
        return _intervalMinutesForSwap.div(60);
    }

    function SetSwapMinutes(uint256 newMinutes) external onlyOwner {
        _intervalMinutesForSwap = newMinutes * 1 minutes;
    }

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

    function setBuyFee(uint256 buyTaxFee, uint256 buyLiquidityFee) external onlyOwner {
        _buyTaxFee = buyTaxFee;
        _buyLiquidityFee = buyLiquidityFee;
    }

    function setSellFee(uint256 sellTaxFee, uint256 sellLiquidityFee) external onlyOwner {
        _sellTaxFee = sellTaxFee;
        _sellLiquidityFee = sellLiquidityFee;
    }

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

    function setBuyBackSellLimit(uint256 buyBackSellSetLimit) external onlyOwner {
        buyBackSellLimit = buyBackSellSetLimit;
    }

    function setMaxTxAmount(uint256 maxTxAmount) external onlyOwner {
        _maxTxAmount = maxTxAmount;
    }

    function setMarketingDivisor(uint256 divisor) external onlyOwner {
        marketingDivisor = divisor;
    }

    function setNumTokensSellToAddToBuyBack(uint256 _minimumTokensBeforeSwap) external onlyOwner {
        minimumTokensBeforeSwap = _minimumTokensBeforeSwap;
    }

    function setMarketingAddress(address _marketingAddress) external onlyOwner {
        marketingAddress = payable(_marketingAddress);
    }

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

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

    function setAutoBuyBackEnabled(bool _enabled) public onlyOwner {
        _isAutoBuyBack = _enabled;
        emit AutoBuyBackEnabledUpdated(_enabled);
    }

    function prepareForPreSale() external onlyOwner {
        setSwapAndLiquifyEnabled(false);
        _taxFee = 0;
        _liquidityFee = 0;
        _maxTxAmount = 1000000000 * 10 * 10**18;
    }

    function afterPreSale() external onlyOwner {
        setSwapAndLiquifyEnabled(true);
        _taxFee = 2;
        _liquidityFee = 10;
        _maxTxAmount = 3000000 * 10 * 10**18;
    }

    function transferToAddressETH(address payable recipient, uint256 amount) private {
        recipient.transfer(amount);
    }

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

     // To recieve ETH from uniswapV2Router when swapping
    receive() external payable {}


    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 setAddressFee(address _address, bool _enable, uint256 _addressTaxFee, uint256 _addressLiquidityFee) external onlyOwner {
        _addressFees[_address].enable = _enable;
        _addressFees[_address]._taxFee = _addressTaxFee;
        _addressFees[_address]._liquidityFee = _addressLiquidityFee;
    }

    function setBuyAddressFee(address _address, bool _enable, uint256 _addressTaxFee, uint256 _addressLiquidityFee) external onlyOwner {
        _addressFees[_address].enable = _enable;
        _addressFees[_address]._buyTaxFee = _addressTaxFee;
        _addressFees[_address]._buyLiquidityFee = _addressLiquidityFee;
    }

    function setSellAddressFee(address _address, bool _enable, uint256 _addressTaxFee, uint256 _addressLiquidityFee) external onlyOwner {
        _addressFees[_address].enable = _enable;
        _addressFees[_address]._sellTaxFee = _addressTaxFee;
        _addressFees[_address]._sellLiquidityFee = _addressLiquidityFee;
    }

}

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

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":"bool","name":"enabled","type":"bool"}],"name":"AutoBuyBackEnabledUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"BuyBackEnabledUpdated","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":"tokenAmount","type":"uint256"}],"name":"RewardLiquidityProviders","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":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"path","type":"address[]"}],"name":"SwapETHForTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"path","type":"address[]"}],"name":"SwapTokensForETH","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":"GetBuyBackTimeInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GetSwapMinutes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newDivisor","type":"uint256"}],"name":"SetBuyBackDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinutes","type":"uint256"}],"name":"SetBuyBackMaxTimeForHistories","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPercent","type":"uint256"}],"name":"SetBuyBackRangeRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinutes","type":"uint256"}],"name":"SetBuyBackTimeInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinutes","type":"uint256"}],"name":"SetSwapMinutes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"Sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_addressFees","outputs":[{"internalType":"bool","name":"enable","type":"bool"},{"internalType":"uint256","name":"_taxFee","type":"uint256"},{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_buyTaxFee","type":"uint256"},{"internalType":"uint256","name":"_buyLiquidityFee","type":"uint256"},{"internalType":"uint256","name":"_sellTaxFee","type":"uint256"},{"internalType":"uint256","name":"_sellLiquidityFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_buyBackDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_buyBackMaxTimeForHistories","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_buyBackRangeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_buyBackTimeInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_buyLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_buyTaxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_intervalMinutesForSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isAutoBuyBack","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isEnabledBuyBackAndBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_sellHistories","outputs":[{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"bnbAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_sellLiquidityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_sellTaxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_startTimeForSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_taxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"afterPreSale","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":[],"name":"buyBackEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBackSellLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyBackSellLimitAmount","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":[],"name":"deadAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"}],"name":"deliver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeFromReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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":[],"name":"marketingAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumTokensBeforeSwapAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prepareForPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"},{"internalType":"bool","name":"deductTransferFee","type":"bool"}],"name":"reflectionFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_enable","type":"bool"},{"internalType":"uint256","name":"_addressTaxFee","type":"uint256"},{"internalType":"uint256","name":"_addressLiquidityFee","type":"uint256"}],"name":"setAddressFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setAutoBuyBackEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_enable","type":"bool"},{"internalType":"uint256","name":"_addressTaxFee","type":"uint256"},{"internalType":"uint256","name":"_addressLiquidityFee","type":"uint256"}],"name":"setBuyAddressFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setBuyBackEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"buyBackSellSetLimit","type":"uint256"}],"name":"setBuyBackSellLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"buyTaxFee","type":"uint256"},{"internalType":"uint256","name":"buyLiquidityFee","type":"uint256"}],"name":"setBuyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"liquidityFee","type":"uint256"}],"name":"setLiquidityFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_marketingAddress","type":"address"}],"name":"setMarketingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"divisor","type":"uint256"}],"name":"setMarketingDivisor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTxAmount","type":"uint256"}],"name":"setMaxTxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minimumTokensBeforeSwap","type":"uint256"}],"name":"setNumTokensSellToAddToBuyBack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_enable","type":"bool"},{"internalType":"uint256","name":"_addressTaxFee","type":"uint256"},{"internalType":"uint256","name":"_addressLiquidityFee","type":"uint256"}],"name":"setSellAddressFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sellTaxFee","type":"uint256"},{"internalType":"uint256","name":"sellLiquidityFee","type":"uint256"}],"name":"setSellFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSwapAndLiquifyEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"taxFee","type":"uint256"}],"name":"setTaxFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_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"}]

60a0604052600380546001600160a01b03191673020f10ca913ccbfa333377e4a58c3050d10a511d1790556ddead0000000000000000000000006080526b204fce5e3e25026110000000600a8190556200005c906000196200058d565b6200006a906000196200052a565b600b5560408051808201909152600a808252694368617269747941706560b01b6020909201918252620000a091600d9162000452565b506040805180820190915260038082526243544160e81b6020909201918252620000cd91600e9162000452565b50600f8054601260ff199182168117909255600260108190556011819055600a92839055601383905560145560158290556007601655600b601755603c6019556050601a556004601c556a18d0bf423c03d8de000000601d556a01a784379d99db42000000601e5569021e19e0c9bab2400000601f5560218054909116600117905560225561012c602355620151806024556026805462ffffff60a81b191661010160b01b1790553480156200018257600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600b543360009081526004602081815260409283902093909355815163c45a015560e01b815291517310ed43c718714eb63d5aa57b78b54704e256024e93849363c45a0155938181019391829003018186803b1580156200022457600080fd5b505afa15801562000239573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200025f9190620004f8565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015620002a857600080fd5b505afa158015620002bd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e39190620004f8565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156200032c57600080fd5b505af115801562000341573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003679190620004f8565b602680546001600160a01b03199081166001600160a01b039384161790915560258054909116918316919091179055600160076000620003af6000546001600160a01b031690565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff19958616179055308152600790925290208054909116600117905542601855620003fb3390565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600a546040516200044391815260200190565b60405180910390a350620005b0565b828054620004609062000550565b90600052602060002090601f016020900481019282620004845760008555620004cf565b82601f106200049f57805160ff1916838001178555620004cf565b82800160010185558215620004cf579182015b82811115620004cf578251825591602001919060010190620004b2565b50620004dd929150620004e1565b5090565b5b80821115620004dd5760008155600101620004e2565b6000602082840312156200050b57600080fd5b81516001600160a01b03811681146200052357600080fd5b9392505050565b6000828210156200054b57634e487b7160e01b600052601160045260246000fd5b500390565b600181811c908216806200056557607f821691505b602082108114156200058757634e487b7160e01b600052602260045260246000fd5b50919050565b600082620005ab57634e487b7160e01b600052601260045260246000fd5b500690565b60805160601c61442d620005d6600039600081816106640152613a1d015261442d6000f3fe60806040526004361061048d5760003560e01c80637088fb7f11610255578063a9059cbb11610144578063dc44b6a0116100c1578063ea2f0b3711610085578063ea2f0b3714610e2b578063ec28438a14610e4b578063efcc52de14610e6b578063f2fde38b14610e81578063faccd1d714610ea1578063fb0ecfa414610eb757600080fd5b8063dc44b6a014610d6f578063dd46706414610d85578063dd62ed3e14610da5578063e3df003414610deb578063e79b032214610e0b57600080fd5b8063baf9035011610108578063baf9035014610cd8578063c49b9a8014610cf8578063c4a9baed14610d18578063d5a3eb5014610d38578063d6b513cf14610d5957600080fd5b8063a9059cbb14610c38578063ac7a2c9814610c58578063afabc8c614610c78578063b0cb81f114610c98578063b14869fb14610cb857600080fd5b806388f82020116101d25780639f39e4c1116101965780639f39e4c114610bb9578063a073d37f14610bce578063a457c2d714610be3578063a5ece94114610c03578063a69df4b514610c2357600080fd5b806388f8202014610b0d5780638da5cb5b14610b465780638ee88c5314610b64578063906e9dd014610b8457806395d89b4114610ba457600080fd5b80637d001732116102195780637d00173214610a185780637d1db4a514610aab57806380c1244514610ac15780638366e79a14610ad757806388790a6814610af757600080fd5b80637088fb7f146109a35780637090d9ae146109b857806370a08231146109ce578063715018a6146109ee5780637b5a931a14610a0357600080fd5b8063395093511161037c5780635342acb4116102f9578063602bc62b116102bd578063602bc62b1461090b5780636053a0e31461092057806365be043814610941578063690c22ca146109575780636ac9a8701461096d5780636bc87c3a1461098d57600080fd5b80635342acb414610869578063535acb7f146108a2578063557ed1ba146108c25780635881f3ef146108d55780635fa9ce3a146108f557600080fd5b80634906b560116103405780634906b560146107d357806349bd5a5e146107f35780634a74bb02146108135780635134f6ab1461083457806352390c021461084957600080fd5b8063395093511461073d5780633b124fe71461075d5780633bd5d17314610773578063437823ec146107935780634549b039146107b357600080fd5b80631908226e1161040a57806329370cc6116103ce57806329370cc6146106865780632d838119146106a65780632deb50fb146106c6578063313ce567146106fb5780633685d4191461071d57600080fd5b80631908226e146105e6578063200a692d146105fc578063239a093a1461061257806323b872dd1461063257806327c8f8351461065257600080fd5b80630f9b10e9116104515780630f9b10e91461054b57806313114a9d14610565578063137ae83e146105845780631694505e1461059957806318160ddd146105d157600080fd5b8063053bfcd114610499578063061c82d0146104bb57806306fdde03146104db57806307efbfdc14610506578063095ea7b31461051b57600080fd5b3661049457005b600080fd5b3480156104a557600080fd5b506104b96104b4366004614059565b610ed7565b005b3480156104c757600080fd5b506104b96104d6366004614059565b610f1b565b3480156104e757600080fd5b506104f0610f4a565b6040516104fd919061414b565b60405180910390f35b34801561051257600080fd5b506104b9610fdc565b34801561052757600080fd5b5061053b610536366004613f2e565b61102b565b60405190151581526020016104fd565b34801561055757600080fd5b5060215461053b9060ff1681565b34801561057157600080fd5b50600c545b6040519081526020016104fd565b34801561059057600080fd5b50610576611042565b3480156105a557600080fd5b506025546105b9906001600160a01b031681565b6040516001600160a01b0390911681526020016104fd565b3480156105dd57600080fd5b50600a54610576565b3480156105f257600080fd5b50610576601f5481565b34801561060857600080fd5b5061057660165481565b34801561061e57600080fd5b506104b961062d366004614059565b611058565b34801561063e57600080fd5b5061053b61064d366004613ea7565b6110e7565b34801561065e57600080fd5b506105b97f000000000000000000000000000000000000000000000000000000000000000081565b34801561069257600080fd5b506104b96106a136600461401f565b611150565b3480156106b257600080fd5b506105766106c1366004614059565b6111d2565b3480156106d257600080fd5b506106e66106e1366004614059565b611256565b604080519283526020830191909152016104fd565b34801561070757600080fd5b50600f5460405160ff90911681526020016104fd565b34801561072957600080fd5b506104b9610738366004613e34565b611284565b34801561074957600080fd5b5061053b610758366004613f2e565b61143b565b34801561076957600080fd5b5061057660105481565b34801561077f57600080fd5b506104b961078e366004614059565b611471565b34801561079f57600080fd5b506104b96107ae366004613e34565b61155b565b3480156107bf57600080fd5b506105766107ce36600461408b565b6115a9565b3480156107df57600080fd5b506104b96107ee366004613ee8565b611636565b3480156107ff57600080fd5b506026546105b9906001600160a01b031681565b34801561081f57600080fd5b5060265461053b90600160a81b900460ff1681565b34801561084057600080fd5b506104b9611694565b34801561085557600080fd5b506104b9610864366004613e34565b6116e4565b34801561087557600080fd5b5061053b610884366004613e34565b6001600160a01b031660009081526007602052604090205460ff1690565b3480156108ae57600080fd5b506104b96108bd366004614059565b611837565b3480156108ce57600080fd5b5042610576565b3480156108e157600080fd5b506105b96108f0366004613e34565b611866565b34801561090157600080fd5b5061057660195481565b34801561091757600080fd5b50600254610576565b34801561092c57600080fd5b5060265461053b90600160b01b900460ff1681565b34801561094d57600080fd5b50610576601a5481565b34801561096357600080fd5b5061057660185481565b34801561097957600080fd5b506104b96109883660046140b0565b611bbd565b34801561099957600080fd5b5061057660125481565b3480156109af57600080fd5b506104b9611bf2565b3480156109c457600080fd5b5061057660245481565b3480156109da57600080fd5b506105766109e9366004613e34565b611c67565b3480156109fa57600080fd5b506104b9611cc6565b348015610a0f57600080fd5b50601f54610576565b348015610a2457600080fd5b50610a74610a33366004613e34565b601b60205260009081526040902080546001820154600283015460038401546004850154600586015460069096015460ff9095169593949293919290919087565b6040805197151588526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016104fd565b348015610ab757600080fd5b50610576601d5481565b348015610acd57600080fd5b5061057660235481565b348015610ae357600080fd5b5061053b610af2366004613e6e565b611d28565b348015610b0357600080fd5b5061057660175481565b348015610b1957600080fd5b5061053b610b28366004613e34565b6001600160a01b031660009081526008602052604090205460ff1690565b348015610b5257600080fd5b506000546001600160a01b03166105b9565b348015610b7057600080fd5b506104b9610b7f366004614059565b611ec0565b348015610b9057600080fd5b506104b9610b9f366004613e34565b611eef565b348015610bb057600080fd5b506104f0611f3b565b348015610bc557600080fd5b50610576611f4a565b348015610bda57600080fd5b50601e54610576565b348015610bef57600080fd5b5061053b610bfe366004613f2e565b611f5b565b348015610c0f57600080fd5b506003546105b9906001600160a01b031681565b348015610c2f57600080fd5b506104b9611faa565b348015610c4457600080fd5b5061053b610c53366004613f2e565b6120b0565b348015610c6457600080fd5b506104b9610c73366004614059565b6120bd565b348015610c8457600080fd5b506104b9610c93366004613ee8565b6120f8565b348015610ca457600080fd5b506104b9610cb3366004614059565b612156565b348015610cc457600080fd5b506104b9610cd3366004614059565b612185565b348015610ce457600080fd5b506104b9610cf3366004614059565b6121b4565b348015610d0457600080fd5b506104b9610d1336600461401f565b6121ef565b348015610d2457600080fd5b506104b9610d33366004613ee8565b612266565b348015610d4457600080fd5b5060265461053b90600160b81b900460ff1681565b348015610d6557600080fd5b50610576601c5481565b348015610d7b57600080fd5b5061057660155481565b348015610d9157600080fd5b506104b9610da0366004614059565b6122c4565b348015610db157600080fd5b50610576610dc0366004613e6e565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b348015610df757600080fd5b506104b9610e0636600461401f565b612349565b348015610e1757600080fd5b506104b9610e26366004614059565b6123b4565b348015610e3757600080fd5b506104b9610e46366004613e34565b6123e3565b348015610e5757600080fd5b506104b9610e66366004614059565b61242e565b348015610e7757600080fd5b5061057660145481565b348015610e8d57600080fd5b506104b9610e9c366004613e34565b61245d565b348015610ead57600080fd5b5061057660225481565b348015610ec357600080fd5b506104b9610ed23660046140b0565b612535565b6000546001600160a01b03163314610f0a5760405162461bcd60e51b8152600401610f01906141a0565b60405180910390fd5b610f1581603c614256565b60245550565b6000546001600160a01b03163314610f455760405162461bcd60e51b8152600401610f01906141a0565b601055565b6060600d8054610f599061428c565b80601f0160208091040260200160405190810160405280929190818152602001828054610f859061428c565b8015610fd25780601f10610fa757610100808354040283529160200191610fd2565b820191906000526020600020905b815481529060010190602001808311610fb557829003601f168201915b5050505050905090565b6000546001600160a01b031633146110065760405162461bcd60e51b8152600401610f01906141a0565b61101060016121ef565b6002601055600a6012556a18d0bf423c03d8de000000601d55565b600061103833848461256a565b5060015b92915050565b60195460009061105390603c61268e565b905090565b6000546001600160a01b031633146110825760405162461bcd60e51b8152600401610f01906141a0565b60648111156110e25760405162461bcd60e51b815260206004820152602660248201527f5468652076616c7565206d757374206e6f74206265206c61726765722074686160448201526537101898181760d11b6064820152608401610f01565b601a55565b60006110f48484846126d0565b61114684336111418560405180606001604052806028815260200161438b602891396001600160a01b038a1660009081526006602090815260408083203384529091529020549190612e36565b61256a565b5060019392505050565b6000546001600160a01b0316331461117a5760405162461bcd60e51b8152600401610f01906141a0565b60268054821515600160b01b0260ff60b01b199091161790556040517f3794234fa370c9f3b948dda3e3040530785b2ef1eb27dda3ffde478f4e2643c0906111c790831515815260200190565b60405180910390a150565b6000600b548211156112395760405162461bcd60e51b815260206004820152602a60248201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260448201526965666c656374696f6e7360b01b6064820152608401610f01565b6000611243612e70565b905061124f838261268e565b9392505050565b6020818154811061126657600080fd5b60009182526020909120600290910201805460019091015490915082565b6000546001600160a01b031633146112ae5760405162461bcd60e51b8152600401610f01906141a0565b6001600160a01b03811660009081526008602052604090205460ff166113165760405162461bcd60e51b815260206004820152601760248201527f4163636f756e74206973206e6f74206578636c756465640000000000000000006044820152606401610f01565b60005b60095481101561143757816001600160a01b03166009828154811061134057611340614338565b6000918252602090912001546001600160a01b03161415611425576009805461136b90600190614275565b8154811061137b5761137b614338565b600091825260209091200154600980546001600160a01b0390921691839081106113a7576113a7614338565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600582526040808220829055600890925220805460ff1916905560098054806113ff576113ff614322565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b8061142f816142c7565b915050611319565b5050565b3360008181526006602090815260408083206001600160a01b038716845290915281205490916110389185906111419086612e93565b3360008181526008602052604090205460ff16156114e65760405162461bcd60e51b815260206004820152602c60248201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460448201526b3434b990333ab731ba34b7b760a11b6064820152608401610f01565b60006114f183612ef2565b505050506001600160a01b03841660009081526004602052604090205491925061151d91905082612f41565b6001600160a01b038316600090815260046020526040902055600b546115439082612f41565b600b55600c546115539084612e93565b600c55505050565b6000546001600160a01b031633146115855760405162461bcd60e51b8152600401610f01906141a0565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6000600a548311156115fd5760405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206d757374206265206c657373207468616e20737570706c79006044820152606401610f01565b8161161c57600061160d84612ef2565b5093955061103c945050505050565b600061162784612ef2565b5092955061103c945050505050565b6000546001600160a01b031633146116605760405162461bcd60e51b8152600401610f01906141a0565b6001600160a01b03939093166000908152601b60205260409020805460ff1916921515929092178255600582015560060155565b6000546001600160a01b031633146116be5760405162461bcd60e51b8152600401610f01906141a0565b6116c860006121ef565b600060108190556012556b204fce5e3e25026110000000601d55565b6000546001600160a01b0316331461170e5760405162461bcd60e51b8152600401610f01906141a0565b6001600160a01b03811660009081526008602052604090205460ff16156117775760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610f01565b6001600160a01b038116600090815260046020526040902054156117d1576001600160a01b0381166000908152600460205260409020546117b7906111d2565b6001600160a01b0382166000908152600560205260409020555b6001600160a01b03166000818152600860205260408120805460ff191660019081179091556009805491820181559091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0180546001600160a01b0319169091179055565b6000546001600160a01b031633146118615760405162461bcd60e51b8152600401610f01906141a0565b601f55565b600080546001600160a01b031633146118915760405162461bcd60e51b8152600401610f01906141a0565b6000829050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156118cf57600080fd5b505afa1580156118e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119079190613e51565b6001600160a01b031663e6a4390530836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b15801561194f57600080fd5b505afa158015611963573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119879190613e51565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b1580156119cd57600080fd5b505afa1580156119e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a059190613e51565b91506001600160a01b038216611b8957806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015611a4e57600080fd5b505afa158015611a62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a869190613e51565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015611ace57600080fd5b505afa158015611ae2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b069190613e51565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b158015611b4e57600080fd5b505af1158015611b62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b869190613e51565b91505b602680546001600160a01b038085166001600160a01b03199283161790925560258054939092169216919091179055919050565b6000546001600160a01b03163314611be75760405162461bcd60e51b8152600401610f01906141a0565b601691909155601755565b6000546001600160a01b03163314611c1c5760405162461bcd60e51b8152600401610f01906141a0565b47611c2f6000546001600160a01b031690565b6001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015611437573d6000803e3d6000fd5b6001600160a01b03811660009081526008602052604081205460ff1615611ca457506001600160a01b031660009081526005602052604090205490565b6001600160a01b03821660009081526004602052604090205461103c906111d2565b6000546001600160a01b03163314611cf05760405162461bcd60e51b8152600401610f01906141a0565b600080546040516001600160a01b03909116906000805160206143b3833981519152908390a3600080546001600160a01b0319169055565b600080546001600160a01b03163314611d535760405162461bcd60e51b8152600401610f01906141a0565b6001600160a01b038316301415611db85760405162461bcd60e51b815260206004820152602360248201527f43616e2774206c657420796f752074616b6520616c6c206e617469766520746f60448201526235b2b760e91b6064820152608401610f01565b6040516370a0823160e01b81523060048201526000906001600160a01b038516906370a082319060240160206040518083038186803b158015611dfa57600080fd5b505afa158015611e0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e329190614072565b60405163a9059cbb60e01b81526001600160a01b038581166004830152602482018390529192509085169063a9059cbb90604401602060405180830381600087803b158015611e8057600080fd5b505af1158015611e94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eb8919061403c565b949350505050565b6000546001600160a01b03163314611eea5760405162461bcd60e51b8152600401610f01906141a0565b601255565b6000546001600160a01b03163314611f195760405162461bcd60e51b8152600401610f01906141a0565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6060600e8054610f599061428c565b60235460009061105390603c61268e565b60006110383384611141856040518060600160405280602581526020016143d3602591393360009081526006602090815260408083206001600160a01b038d1684529091529020549190612e36565b6001546001600160a01b031633146120105760405162461bcd60e51b815260206004820152602360248201527f596f7520646f6e27742068617665207065726d697373696f6e20746f20756e6c6044820152626f636b60e81b6064820152608401610f01565b60025442116120615760405162461bcd60e51b815260206004820152601f60248201527f436f6e7472616374206973206c6f636b656420756e74696c20372064617973006044820152606401610f01565b600154600080546040516001600160a01b0393841693909116916000805160206143b383398151915291a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b60006110383384846126d0565b6000546001600160a01b031633146120e75760405162461bcd60e51b8152600401610f01906141a0565b6120f281603c614256565b60235550565b6000546001600160a01b031633146121225760405162461bcd60e51b8152600401610f01906141a0565b6001600160a01b03939093166000908152601b60205260409020805460ff1916921515929092178255600382015560040155565b6000546001600160a01b031633146121805760405162461bcd60e51b8152600401610f01906141a0565b601c55565b6000546001600160a01b031633146121af5760405162461bcd60e51b8152600401610f01906141a0565b601e55565b6000546001600160a01b031633146121de5760405162461bcd60e51b8152600401610f01906141a0565b6121e981603c614256565b60195550565b6000546001600160a01b031633146122195760405162461bcd60e51b8152600401610f01906141a0565b60268054821515600160a81b0260ff60a81b199091161790556040517f53726dfcaf90650aa7eb35524f4d3220f07413c8d6cb404cc8c18bf5591bc159906111c790831515815260200190565b6000546001600160a01b031633146122905760405162461bcd60e51b8152600401610f01906141a0565b6001600160a01b03939093166000908152601b60205260409020805460ff1916921515929092178255600182015560020155565b6000546001600160a01b031633146122ee5760405162461bcd60e51b8152600401610f01906141a0565b60008054600180546001600160a01b03199081166001600160a01b0384161790915516905561231d814261422a565b600255600080546040516001600160a01b03909116906000805160206143b3833981519152908390a350565b6000546001600160a01b031633146123735760405162461bcd60e51b8152600401610f01906141a0565b6021805460ff19168215159081179091556040519081527fa53c6be1202d17d11e250c717d12c9ab9ccb8f62ee9f34c8b8e2173e3d9c2c03906020016111c7565b6000546001600160a01b031633146123de5760405162461bcd60e51b8152600401610f01906141a0565b602255565b6000546001600160a01b0316331461240d5760405162461bcd60e51b8152600401610f01906141a0565b6001600160a01b03166000908152600760205260409020805460ff19169055565b6000546001600160a01b031633146124585760405162461bcd60e51b8152600401610f01906141a0565b601d55565b6000546001600160a01b031633146124875760405162461bcd60e51b8152600401610f01906141a0565b6001600160a01b0381166124ec5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f01565b600080546040516001600160a01b03808516939216916000805160206143b383398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461255f5760405162461bcd60e51b8152600401610f01906141a0565b601491909155601555565b6001600160a01b0383166125cc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610f01565b6001600160a01b03821661262d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610f01565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b600061124f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612f83565b6001600160a01b0383166127345760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610f01565b6001600160a01b0382166127965760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610f01565b600081116127f85760405162461bcd60e51b815260206004820152602960248201527f5472616e7366657220616d6f756e74206d7573742062652067726561746572206044820152687468616e207a65726f60b81b6064820152608401610f01565b6000546001600160a01b0384811691161480159061282457506000546001600160a01b03838116911614155b1561288c57601d5481111561288c5760405162461bcd60e51b815260206004820152602860248201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546044820152673c20b6b7bab73a1760c11b6064820152608401610f01565b6000546001600160a01b038481169116148015906128b757506026546001600160a01b038381169116145b1561299157602654604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561290157600080fd5b505afa158015612915573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129399190614072565b116129915760405162461bcd60e51b815260206004820152602260248201527f4f6e6c79204f776e65722043616e20416464204669727374204c697175696469604482015261747960f01b6064820152608401610f01565b600061299c30611c67565b601e54602654919250821015906001600160a01b0385811691161480156129d857506026546000906129d6906001600160a01b0316611c67565b115b15612a635760408051808201909152600060208201524281526129fa84612fb1565b6020828101918252805460018101825560009190915291517fc97bfaf2f8ee708c303a06d134f5ecd8389ae0432af62dc132a24118292866bb600290930292830155517fc97bfaf2f8ee708c303a06d134f5ecd8389ae0432af62dc132a24118292866bc909101555b602654600160a01b900460ff16158015612a865750602654600160a81b900460ff165b8015612aa75750602654600090612aa5906001600160a01b0316611c67565b115b15612c8a576026546001600160a01b0385811691161415612c8a57808015612ade575042601954601854612adb919061422a565b11155b15612af55742601855601e549150612af582613147565b602654600160b01b900460ff1615612c8a57601f5460215447919060ff1615612bfb5760008060235442612b299190614275565b90506000805b602054811015612bbd578260208281548110612b4d57612b4d614338565b90600052602060002090600202016000015410612bab57612b9b60208281548110612b7a57612b7a614338565b90600052602060002090600202016001015485612e9390919063ffffffff16565b9350612ba882600161422a565b91505b80612bb5816142c7565b915050612b2f565b50600081118015612bd057506000602254115b15612bef57602254612bec90612be6858461268e565b9061268e565b93505b612bf76131b2565b5050505b6000612c176064612be6601a548561331f90919063ffffffff16565b90506000612c258284614275565b612c3090600161422a565b6040805142602082015244918101919091526060016040516020818303038152906040528051906020012060001c612c6891906142e2565b612c72908361422a565b905080841115612c8557612c858161339e565b505050505b6001600160a01b03851660009081526007602052604090205460019060ff1680612ccc57506001600160a01b03851660009081526007602052604090205460ff165b15612cd957506000612e22565b6026546001600160a01b0387811691161415612d0457612cf76133d0565b6014546010556015546012555b6026546001600160a01b0386811691161415612d2f57612d226133d0565b6016546010556017546012555b6001600160a01b0386166000908152601b602052604090205460ff1615612dbb57612d586133d0565b6001600160a01b038087166000908152601b6020526040902060018101546010556002015460125560265486821691161415612db6576001600160a01b0386166000908152601b602052604090206005810154601055600601546012555b612e22565b6001600160a01b0385166000908152601b602052604090205460ff1615612e2257612de46133d0565b6026546001600160a01b0387811691161415612e22576001600160a01b0385166000908152601b602052604090206003810154601055600401546012555b612e2e868686846133fe565b505050505050565b60008184841115612e5a5760405162461bcd60e51b8152600401610f01919061414b565b506000612e678486614275565b95945050505050565b6000806000612e7d613523565b9092509050612e8c828261268e565b9250505090565b600080612ea0838561422a565b90508381101561124f5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610f01565b6000806000806000806000806000612f098a6136a5565b9250925092506000806000612f278d8686612f22612e70565b6136e7565b919f909e50909c50959a5093985091965092945050505050565b600061124f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612e36565b60008183612fa45760405162461bcd60e51b8152600401610f01919061414b565b506000612e678486614242565b604080516002808252606082018352600092839291906020830190803683370190505090503081600081518110612fea57612fea614338565b6001600160a01b03928316602091820292909201810191909152602554604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561303e57600080fd5b505afa158015613052573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130769190613e51565b8160018151811061308957613089614338565b6001600160a01b03928316602091820292909201015260255460405163d06ca61f60e01b8152600092919091169063d06ca61f906130cd90879086906004016141d5565b60006040518083038186803b1580156130e557600080fd5b505afa1580156130f9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131219190810190613f5a565b90508060018151811061313657613136614338565b602002602001015192505050919050565b6026805460ff60a01b1916600160a01b1790554761316482613737565b60006131704783612f41565b600354601c549192506131a0916001600160a01b039091169061319b90606490612be690869061331f565b6138d9565b50506026805460ff60a01b1916905550565b600080602454426131c39190614275565b905060005b6020548110156132b95781602082815481106131e6576131e6614338565b906000526020600020906002020160000154106132a7576020818154811061321057613210614338565b9060005260206000209060020201600001546020848154811061323557613235614338565b9060005260206000209060020201600001819055506020818154811061325d5761325d614338565b9060005260206000209060020201600101546020848154811061328257613282614338565b9060005260206000209060020201600101819055508260016132a4919061422a565b92505b806132b1816142c7565b9150506131c8565b506020546000906132cb908490614275565b905060005b818110156133195760208054806132e9576132e9614322565b60008281526020812060026000199093019283020181815560010155905580613311816142c7565b9150506132d0565b50505050565b60008261332e5750600061103c565b600061333a8385614256565b9050826133478583614242565b1461124f5760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b6064820152608401610f01565b6026805460ff60a01b1916600160a01b17905580156133c0576133c081613914565b506026805460ff60a01b19169055565b6010541580156133e05750601254155b156133e757565b601080546011556012805460135560009182905555565b8061340b5761340b6133d0565b6001600160a01b03841660009081526008602052604090205460ff16801561344c57506001600160a01b03831660009081526008602052604090205460ff16155b156134615761345c848484613aca565b61350d565b6001600160a01b03841660009081526008602052604090205460ff161580156134a257506001600160a01b03831660009081526008602052604090205460ff165b156134b25761345c848484613bf0565b6001600160a01b03841660009081526008602052604090205460ff1680156134f257506001600160a01b03831660009081526008602052604090205460ff165b156135025761345c848484613c99565b61350d848484613d0c565b8061331957613319601154601055601354601255565b600b54600a546000918291825b6009548110156136755782600460006009848154811061355257613552614338565b60009182526020808320909101546001600160a01b0316835282019290925260400190205411806135bd575081600560006009848154811061359657613596614338565b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b156135d357600b54600a54945094505050509091565b61361960046000600984815481106135ed576135ed614338565b60009182526020808320909101546001600160a01b031683528201929092526040019020548490612f41565b9250613661600560006009848154811061363557613635614338565b60009182526020808320909101546001600160a01b031683528201929092526040019020548390612f41565b91508061366d816142c7565b915050613530565b50600a54600b546136859161268e565b82101561369c57600b54600a549350935050509091565b90939092509050565b6000806000806136b485613d50565b905060006136c186613d6c565b905060006136d9826136d38986612f41565b90612f41565b979296509094509092505050565b60008080806136f6888661331f565b90506000613704888761331f565b90506000613712888861331f565b90506000613724826136d38686612f41565b939b939a50919850919650505050505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061376c5761376c614338565b6001600160a01b03928316602091820292909201810191909152602554604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b1580156137c057600080fd5b505afa1580156137d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137f89190613e51565b8160018151811061380b5761380b614338565b6001600160a01b039283166020918202929092010152602554613831913091168461256a565b60255460405163791ac94760e01b81526001600160a01b039091169063791ac9479061386a9085906000908690309042906004016141ee565b600060405180830381600087803b15801561388457600080fd5b505af1158015613898573d6000803e3d6000fd5b505050507f32cde87eb454f3a0b875ab23547023107cfad454363ec88ba5695e2c24aa52a782826040516138cd9291906141d5565b60405180910390a15050565b6040516001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561390f573d6000803e3d6000fd5b505050565b6040805160028082526060820183526000926020830190803683375050602554604080516315ab88c960e31b815290519394506001600160a01b039091169263ad5c464892506004808301926020929190829003018186803b15801561397957600080fd5b505afa15801561398d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139b19190613e51565b816000815181106139c4576139c4614338565b60200260200101906001600160a01b031690816001600160a01b03168152505030816001815181106139f8576139f8614338565b6001600160a01b0392831660209182029290920101526025541663b6f9de95836000847f0000000000000000000000000000000000000000000000000000000000000000613a484261012c612e93565b6040518663ffffffff1660e01b8152600401613a679493929190614116565b6000604051808303818588803b158015613a8057600080fd5b505af1158015613a94573d6000803e3d6000fd5b50505050507f6fd378a9d8b7345c2e5b18229aaf1e39d32b177b501d0a0d26a0a858a23a962482826040516138cd9291906141d5565b600080600080600080613adc87612ef2565b6001600160a01b038f16600090815260056020526040902054959b50939950919750955093509150613b0e9088612f41565b6001600160a01b038a16600090815260056020908152604080832093909355600490522054613b3d9087612f41565b6001600160a01b03808b1660009081526004602052604080822093909355908a1681522054613b6c9086612e93565b6001600160a01b038916600090815260046020526040902055613b8e81613d88565b613b988483613e10565b876001600160a01b0316896001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef85604051613bdd91815260200190565b60405180910390a3505050505050505050565b600080600080600080613c0287612ef2565b6001600160a01b038f16600090815260046020526040902054959b50939950919750955093509150613c349087612f41565b6001600160a01b03808b16600090815260046020908152604080832094909455918b16815260059091522054613c6a9084612e93565b6001600160a01b038916600090815260056020908152604080832093909355600490522054613b6c9086612e93565b600080600080600080613cab87612ef2565b6001600160a01b038f16600090815260056020526040902054959b50939950919750955093509150613cdd9088612f41565b6001600160a01b038a16600090815260056020908152604080832093909355600490522054613c349087612f41565b600080600080600080613d1e87612ef2565b6001600160a01b038f16600090815260046020526040902054959b50939950919750955093509150613b3d9087612f41565b600061103c6064612be66010548561331f90919063ffffffff16565b600061103c6064612be66012548561331f90919063ffffffff16565b6000613d92612e70565b90506000613da0838361331f565b30600090815260046020526040902054909150613dbd9082612e93565b3060009081526004602090815260408083209390935560089052205460ff161561390f5730600090815260056020526040902054613dfb9084612e93565b30600090815260056020526040902055505050565b600b54613e1d9083612f41565b600b55600c54613e2d9082612e93565b600c555050565b600060208284031215613e4657600080fd5b813561124f81614364565b600060208284031215613e6357600080fd5b815161124f81614364565b60008060408385031215613e8157600080fd5b8235613e8c81614364565b91506020830135613e9c81614364565b809150509250929050565b600080600060608486031215613ebc57600080fd5b8335613ec781614364565b92506020840135613ed781614364565b929592945050506040919091013590565b60008060008060808587031215613efe57600080fd5b8435613f0981614364565b93506020850135613f198161437c565b93969395505050506040820135916060013590565b60008060408385031215613f4157600080fd5b8235613f4c81614364565b946020939093013593505050565b60006020808385031215613f6d57600080fd5b825167ffffffffffffffff80821115613f8557600080fd5b818501915085601f830112613f9957600080fd5b815181811115613fab57613fab61434e565b8060051b604051601f19603f83011681018181108582111715613fd057613fd061434e565b604052828152858101935084860182860187018a1015613fef57600080fd5b600095505b83861015614012578051855260019590950194938601938601613ff4565b5098975050505050505050565b60006020828403121561403157600080fd5b813561124f8161437c565b60006020828403121561404e57600080fd5b815161124f8161437c565b60006020828403121561406b57600080fd5b5035919050565b60006020828403121561408457600080fd5b5051919050565b6000806040838503121561409e57600080fd5b823591506020830135613e9c8161437c565b600080604083850312156140c357600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b8381101561410b5781516001600160a01b0316875295820195908201906001016140e6565b509495945050505050565b84815260806020820152600061412f60808301866140d2565b6001600160a01b03949094166040830152506060015292915050565b600060208083528351808285015260005b818110156141785785810183015185820160400152820161415c565b8181111561418a576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b828152604060208201526000611eb860408301846140d2565b85815284602082015260a06040820152600061420d60a08301866140d2565b6001600160a01b0394909416606083015250608001529392505050565b6000821982111561423d5761423d6142f6565b500190565b6000826142515761425161430c565b500490565b6000816000190483118215151615614270576142706142f6565b500290565b600082821015614287576142876142f6565b500390565b600181811c908216806142a057607f821691505b602082108114156142c157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156142db576142db6142f6565b5060010190565b6000826142f1576142f161430c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461437957600080fd5b50565b801515811461437957600080fdfe45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63658be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e045524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122010a01c11c51b78f90cb533ef78ab107b5d6599cc3d8669c7c116913154cc4d9064736f6c63430008050033

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.