Contract 0x9b6A7FbDb18bbf35eC75b3E088F716417CdFE84D

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x9654ac0d5198a40fe37b43fa992c3b49e57d46d64b0cd5001e20e37f6c763237Transfer128639092021-11-22 14:07:2664 days 15 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00050173
0x0d25ae8edb5cf5844b8012f35d95527c20fa74a36d158307c359eed2d8b86275Set Can Transfer...128586542021-11-22 9:31:2164 days 19 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00012347
0x618fb81cd9edb0d24cfe1d8130c3371df6245b5409dd2b64cfdca8a3e5bcca70Exclude From Fee128582052021-11-22 9:08:3564 days 20 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00021842
0xd1ffa799f34a2aa7ec99b0b54087d3f98dfe034eedb6a9c413fc0619ff5a5d7fExclude From Fee128581622021-11-22 9:06:2664 days 20 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00021842
0xbe53ab584cc5c9b5a03ff6e379221b877620797a581fc79b52ab5fcb5065f036Exclude From Fee128581522021-11-22 9:05:5664 days 20 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00021842
0x0b08020fb82abaa375b3c810f6abaaba7706a84b086370780ae0f37080bcc452Set Can Transfer...128581442021-11-22 9:05:3264 days 20 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00021941
0xfca155c15490da1ecb0129b84a804e31b7f48187d23dbbd977e8b2b5359b54ffExclude From Fee128581402021-11-22 9:05:2064 days 20 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00021836
0xf7b0dc3a0a24636c47f09d28255a5821b0171622af710dd8701a04b62239185aSet Can Transfer...128576562021-11-22 8:40:3764 days 20 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00012347
0x95a67e19a66773c695647ac2977d999c16b855a66b99bed5cefbf207c3665b9aSet Can Transfer...128576472021-11-22 8:40:1064 days 20 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00021947
0x08c58dbf84fe03aefb48bddc353c03ebc2a877a0466fd3ee0eeac30b931ad193Set Can Transfer...128575752021-11-22 8:36:3464 days 20 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00021947
0x29f62c29a8d5ec81e2ff765e7247b7aa053d4efabfc84e09aedbcecc2a3ab558Approve128546942021-11-22 6:11:5564 days 23 hrs ago0xbcd094e9b1536ad14559b95539ab8ca54d770b63 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00022172
0x6e1b591abd433c5bf91e3db8051732508c0905784917db2d94fa09eb8fe609afApprove127798102021-11-19 13:38:4167 days 15 hrs ago0xca8d25197f2739025180296eb8552f6bdbd08e13 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00022172
0xc91c626a7df617fcd2616ddb4eb4a1d0af57f2a3c808128cdc0a80223190e1dcTransfer127793542021-11-19 13:15:0367 days 15 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00050173
0x0770c5ec90bfd7a118271a7e7d1c91de0287b8989b3319677fa023ebe9559112Transfer127793312021-11-19 13:13:5367 days 15 hrs ago0x71adc290d002111778def37eda783ec427c71fe4 IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00050173
0x6631934e53302ce9a3adf87b8456922fe36bd2acdf09874cc8cfc696d7044b3eTransfer Ownersh...127064892021-11-16 21:28:1570 days 7 hrs agoOMAX TOKEN: Deployer IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.000151095
0x0e16bc0ac498ad0a234a30a2c617f8da2531873586e489f0e58a40e70088a2efTransfer127064872021-11-16 21:28:0970 days 7 hrs agoOMAX TOKEN: Deployer IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00042679
0xf1344365e8e4493c353c1b9f621090fb73543aef5c2fabf8008d2e1e0ca8fb95Exclude From Fee127064602021-11-16 21:26:4370 days 7 hrs agoOMAX TOKEN: Deployer IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00021842
0x7c9a34bc8cde453dce4d8a73cc1a80b3fc6d96b8f03ebc6c4e185458c4496b74Set Can Transfer...127063632021-11-16 21:21:2570 days 7 hrs agoOMAX TOKEN: Deployer IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00021947
0x05e40ce141d49db7023cc58e92192054a4aa0b688ff657d8496431d6f2a5e81dSet Can Transfer...127063542021-11-16 21:20:5570 days 7 hrs agoOMAX TOKEN: Deployer IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00021947
0x5b3aa53aa3f71868463554e13d24b0311a828b1f1336cce97fa0d737a697770bExclude From Fee127063482021-11-16 21:20:3570 days 7 hrs agoOMAX TOKEN: Deployer IN  0x9b6a7fbdb18bbf35ec75b3e088f716417cdfe84d0 BNB0.00021842
0xe6fe50eb3079a3648cf0f84b63120822eb78e8ac808a40b03b4677979e97f0a40x60e06040127061022021-11-16 21:06:2770 days 8 hrs agoOMAX TOKEN: Deployer IN  Create: FNB0 BNB0.030804335
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FNB

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 8 : FNB.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./interfaces/IUniswapV2.sol";


contract FNB is Context, IERC20, Ownable {
    using Address for address;

    struct RValuesStruct {
        uint256 rAmount;
        uint256 rTransferAmount;
        uint256 rFee;
        uint256 rBurn;
        uint256 rMarketing;
    }

    struct TValuesStruct {
        uint256 tTransferAmount;
        uint256 tFee;
        uint256 tBurn;
        uint256 tMarketing;
    }

    struct ValuesStruct {
        uint256 rAmount;
        uint256 rTransferAmount;
        uint256 rFee;
        uint256 rBurn;
        uint256 rMarketing;
        uint256 tTransferAmount;
        uint256 tFee;
        uint256 tBurn;
        uint256 tMarketing;
    }

    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;

    string private _name = "First NFT Bar";
    string private _symbol = "FNB";
    uint8 private _decimals = 18;
    uint256 private constant MAX = ~uint256(0);
    uint256 private _tTotal =  10 ** 9 * 10 ** uint256(_decimals);
    uint256 private _rTotal = (MAX - (MAX % _tTotal));
    uint256 private _tFeeTotal;
    uint256 private _tBurnTotal;

    uint256 public _taxFee = 500;
    uint256 private _previousTaxFee = _taxFee;

    uint256 public _sellTaxFee = 1000;
    uint256 private _previousSellTaxFee = _sellTaxFee;

    uint256 public _marketFee = 300;
    uint256 private _previousMarketFee = _marketFee;

    uint256 public _sellMarketFee = 300;
    uint256 private _previousSellMarketFee = _sellMarketFee;

    uint256 public _burnFee = 500;
    uint256 private _previousBurnFee = _burnFee;

    bool public tradingEnabled = false;
    mapping (address => bool) private canTransferBeforeTradingIsEnabled;

    uint256 public constant DENOMINATOR = 10000;

    address public marketingWallet = 0xc1Ab25b8621626336F01b2Ebe731BFbBF046aE06;

    IUniswapV2Router02 public immutable uniswapV2Router;
    address public uniswapV2Pair;


    uint256 public _maxTxAmount = 4 * 10 ** 7 * 10 ** uint256(_decimals);


    constructor() {
        _rOwned[_msgSender()] = _rTotal;
        address routerAddress = 0x10ED43C718714eb63d5aA57B78B54704E256024E; // pcs V2

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

        // set the rest of the contract variables
        uniswapV2Router = _uniswapV2Router;

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

        canTransferBeforeTradingIsEnabled[owner()] = true;
        canTransferBeforeTradingIsEnabled[address(this)] = true;
        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()] - amount);
        return true;
    }

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

    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] - subtractedValue);
        return true;
    }

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

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

    function totalBurn() public view returns (uint256) {
        return _tBurnTotal;
    }

    function deliver(uint256 tAmount) public {
        address sender = _msgSender();
        require(!_isExcluded[sender], "Excluded addresses cannot call this function");
        uint256 rAmount = tAmount * _getRate();
        _rOwned[sender] -= rAmount;
        _rTotal -= rAmount;
        _tFeeTotal += tAmount;
    }

    function reflectionFromToken(uint256 tAmount, bool deductTransferFee) public view returns (uint256) {
        require(tAmount <= _tTotal, "Amount must be less than supply");
        if (!deductTransferFee) {
            uint256 rAmount = tAmount * _getRate();
            return rAmount;
        } else {
            uint256 rTransferAmount = _getValues(tAmount, false).rTransferAmount;
            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 / currentRate;
    }

    function excludeFromReward(address account) public onlyOwner() {
        require(account != 0x10ED43C718714eb63d5aA57B78B54704E256024E, 'We can not exclude Pancake router.');
        require(!_isExcluded[account], "Account is already excluded");
        require(_excluded.length < 50, "Excluded list is too long");
        if (_rOwned[account] > 0) {
            _tOwned[account] = tokenFromReflection(_rOwned[account]);
        }
        _isExcluded[account] = true;
        _excluded.push(account);
    }

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

    //to recieve ETH from uniswapV2Router when swaping
    receive() external payable {}

    function _distributeFee(uint256 rFee, uint256 rBurn, uint256 rMarketing, uint256 tFee, uint256 tBurn, uint256 tMarketing) private {
        _rTotal -= (rFee + rBurn);
        _tFeeTotal += tFee;
        _tTotal -= tBurn;
        _tBurnTotal += tBurn;

        _rOwned[marketingWallet] += rMarketing;
        if (_isExcluded[marketingWallet]) {
            _tOwned[marketingWallet] += tMarketing;
        }
    }

    function _getValues(uint256 tAmount, bool isSell) private view returns (ValuesStruct memory) {
        TValuesStruct memory tvs = _getTValues(tAmount, isSell);
        RValuesStruct memory rvs = _getRValues(tAmount, tvs.tFee, tvs.tBurn, tvs.tMarketing, _getRate());

        return ValuesStruct(
            rvs.rAmount,
            rvs.rTransferAmount,
            rvs.rFee,
            rvs.rBurn,
            rvs.rMarketing,
            tvs.tTransferAmount,
            tvs.tFee,
            tvs.tBurn,
            tvs.tMarketing
        );
    }

    function _getTValues(uint256 tAmount, bool isSell) private view returns (TValuesStruct memory) {
        uint256 tFee = calculateTaxFee(tAmount, isSell);
        uint256 tBurn = calculateBurnFee(tAmount, isSell);
        uint256 tMarketing = calculateMarketingFee(tAmount, isSell);
        uint256 tTransferAmount = tAmount - tFee - tBurn - tMarketing;
        return TValuesStruct(tTransferAmount, tFee, tBurn, tMarketing);
    }

    function _getRValues(uint256 tAmount, uint256 tFee, uint256 tBurn, uint256 tMarketing, uint256 currentRate) private pure returns (RValuesStruct memory) {
        uint256 rAmount = tAmount * currentRate;
        uint256 rFee = tFee * currentRate;
        uint256 rBurn = tBurn * currentRate;
        uint256 rMarketing = tMarketing * currentRate;
        uint256 rTransferAmount = rAmount - rFee - rBurn - rMarketing;
        return RValuesStruct(rAmount, rTransferAmount, rFee, rBurn, rMarketing);
    }

    function _getRate() private view returns (uint256) {
        (uint256 rSupply, uint256 tSupply) = _getCurrentSupply();
        return rSupply / 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 - _rOwned[_excluded[i]];
            tSupply = tSupply - _tOwned[_excluded[i]];
        }
        if (rSupply < _rTotal / _tTotal) return (_rTotal, _tTotal);
        return (rSupply, tSupply);
    }


    function calculateTaxFee(uint256 _amount, bool isSell) private view returns (uint256) {
        return _amount * (isSell? _sellTaxFee : _taxFee) / DENOMINATOR;
    }

    function calculateBurnFee(uint256 _amount, bool isSell) private view returns (uint256) {
        return _amount *  (isSell ? _burnFee : 0) / DENOMINATOR;
    }

    function calculateMarketingFee(uint256 _amount, bool isSell) private view returns (uint256) {
        return _amount * (isSell ? _sellMarketFee : _marketFee) / DENOMINATOR;
    }


    function removeAllFee() private {
        _previousTaxFee = _taxFee;
        _previousBurnFee = _burnFee;
        _previousMarketFee = _marketFee;
        _previousSellTaxFee = _sellTaxFee;
        _previousSellMarketFee = _sellMarketFee;
        _taxFee = 0;
        _burnFee = 0;
        _marketFee = 0;
        _sellTaxFee = 0;
        _sellMarketFee = 0;
    }

    function restoreAllFee() private {
        _taxFee = _previousTaxFee;
        _marketFee = _previousMarketFee;
        _burnFee = _previousBurnFee;
        _sellTaxFee = _previousSellTaxFee;
        _sellMarketFee = _previousSellMarketFee;

    }

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

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

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

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

        if(!tradingEnabled) {
            require(canTransferBeforeTradingIsEnabled[from], "This account cannot send tokens until trading is enabled");
        }

        _tokenTransfer(from, to, amount);
    }




    //this method is responsible for taking all fee, if takeFee is true
    function _tokenTransfer(address sender, address recipient, uint256 amount) private {
        if (_isExcludedFromFee[sender] || _isExcludedFromFee[recipient]) {
            removeAllFee();
        }
        else {
            require(amount <= _maxTxAmount, "Transfer amount exceeds the maxTxAmount.");
        }


        bool isSell = (recipient == uniswapV2Pair);
        ValuesStruct memory vs = _getValues(amount, isSell);
        _distributeFee(vs.rFee, vs.rBurn, vs.rMarketing, vs.tFee, vs.tBurn, vs.tMarketing);

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

        if (_isExcludedFromFee[sender] || _isExcludedFromFee[recipient])
            restoreAllFee();
    }

    function _transferStandard(address sender, address recipient, ValuesStruct memory vs) private {
        _rOwned[sender] -= vs.rAmount;
        _rOwned[recipient] += vs.rTransferAmount;
        emit Transfer(sender, recipient, vs.tTransferAmount);
    }

    function _transferToExcluded(address sender, address recipient, ValuesStruct memory vs) private {
        _rOwned[sender] -= vs.rAmount;
        _tOwned[recipient] += vs.tTransferAmount;
        _rOwned[recipient] += vs.rTransferAmount;
        emit Transfer(sender, recipient, vs.tTransferAmount);
    }

    function _transferFromExcluded(address sender, address recipient, uint256 tAmount, ValuesStruct memory vs) private {
        _tOwned[sender] -= tAmount;
        _rOwned[sender] -= vs.rAmount;
        _rOwned[recipient] += vs.rTransferAmount;
        emit Transfer(sender, recipient, vs.tTransferAmount);
    }

    function _transferBothExcluded(address sender, address recipient, uint256 tAmount, ValuesStruct memory vs) private {
        _tOwned[sender] -= tAmount;
        _rOwned[sender] -= vs.rAmount;
        _tOwned[recipient] += vs.tTransferAmount;
        _rOwned[recipient] += vs.rTransferAmount;
        emit Transfer(sender, recipient, vs.tTransferAmount);
    }

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

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

    //Call this function after finalizing the presale
    function enableAllFees() external onlyOwner() {
        restoreAllFee();
        _previousTaxFee = _taxFee;
        _previousBurnFee = _taxFee;
        _previousMarketFee = _marketFee;
        _previousSellTaxFee = _sellTaxFee;
        _previousSellMarketFee = _sellMarketFee;
    }

    function disableAllFees() external onlyOwner() {
        removeAllFee();
    }

    function setMarketingWallet(address newWallet) external onlyOwner {
        marketingWallet = newWallet;
    }

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


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

    function setSellTaxFee(uint256 sellTaxFee) external onlyOwner {
        _sellTaxFee = sellTaxFee;
    }

    function setBurnFee(uint256 burnFee) external onlyOwner {
        _burnFee = burnFee;
    }

    function setMarketFee(uint256 marketFee) external onlyOwner {
        _marketFee = marketFee;
    }

    function setSellMarketFee(uint256 sellMarketFee) external onlyOwner {
        _sellMarketFee = sellMarketFee;
    }

    function setTradingIsEnabled(bool status) external onlyOwner {
        tradingEnabled = status;
        emit UpdateTradingStatus(status);
    }

    function setCanTransferBeforeTradingIsEnabled(address account, bool status) external onlyOwner {
        canTransferBeforeTradingIsEnabled[account] = status;
    }

    event UpdateTradingStatus(bool status);
    event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap);

    event UpdateSellFeeMultiplier(uint256 oldSellFeeMultiplier, uint256 newSellFeeMultiplier);
}

File 2 of 8 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

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

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

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

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

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

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

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

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

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

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

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

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

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        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);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 3 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

File 4 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 8 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 8 : IUniswapV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.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;
}

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

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

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

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

File 7 of 8 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

File 8 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "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":"uint256","name":"minTokensBeforeSwap","type":"uint256"}],"name":"MinTokensBeforeSwapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldSellFeeMultiplier","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newSellFeeMultiplier","type":"uint256"}],"name":"UpdateSellFeeMultiplier","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"UpdateTradingStatus","type":"event"},{"inputs":[],"name":"DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_burnFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_marketFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_sellMarketFee","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":"_taxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"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":[],"name":"disableAllFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableAllFees","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":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"uint256","name":"tAmount","type":"uint256"},{"internalType":"bool","name":"deductTransferFee","type":"bool"}],"name":"reflectionFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"burnFee","type":"uint256"}],"name":"setBurnFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setCanTransferBeforeTradingIsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"marketFee","type":"uint256"}],"name":"setMarketFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"setMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTxAmount","type":"uint256"}],"name":"setMaxTxPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sellMarketFee","type":"uint256"}],"name":"setSellMarketFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sellTaxFee","type":"uint256"}],"name":"setSellTaxFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"taxFee","type":"uint256"}],"name":"setTaxFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setTradingIsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurn","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":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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"},{"stateMutability":"payable","type":"receive"}]

60e0604052600d60a08190526c2334b939ba1027232a102130b960991b60c0908152620000309160079190620004e0565b506040805180820190915260038082526223272160e91b60209092019182526200005d91600891620004e0565b506009805460ff1916601217908190556200007d9060ff16600a62000626565b6200008d90633b9aca006200070e565b600a819055620000a09060001962000787565b620000ae9060001962000730565b600b556101f4600e819055600f8190556103e8601081905560115561012c60128190556013819055601481905560155560168190556017556018805460ff19169055601a80546001600160a01b03191673c1ab25b8621626336f01b2ebe731bfbbf046ae06179055600954620001299060ff16600a62000626565b62000139906302625a006200070e565b601c553480156200014957600080fd5b506200015e620001586200047d565b62000481565b600b54600160006200016f6200047d565b6001600160a01b03166001600160a01b031681526020019081526020016000208190555060007310ed43c718714eb63d5aa57b78b54704e256024e90506000819050806001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015620001eb57600080fd5b505afa15801562000200573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000226919062000586565b6001600160a01b031663c9c6539630836001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200026f57600080fd5b505afa15801562000284573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002aa919062000586565b6040518363ffffffff1660e01b8152600401620002c9929190620005b6565b602060405180830381600087803b158015620002e457600080fd5b505af1158015620002f9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200031f919062000586565b601b80546001600160a01b0319166001600160a01b0392909216919091179055606081901b6001600160601b03191660805260016004600062000361620004d1565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790553081526004845282812080548616600190811790915587831682528382208054871682179055601b549092168152600590935290822080549093168117909255601990620003dc620004d1565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff199586161790553081526019909252902080549091166001179055620004266200047d565b6001600160a01b031660006001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600a546040516200046d9190620005d0565b60405180910390a35050620007be565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031690565b828054620004ee906200074a565b90600052602060002090601f0160209004810192826200051257600085556200055d565b82601f106200052d57805160ff19168380011785556200055d565b828001600101855582156200055d579182015b828111156200055d57825182559160200191906001019062000540565b506200056b9291506200056f565b5090565b5b808211156200056b576000815560010162000570565b60006020828403121562000598578081fd5b81516001600160a01b0381168114620005af578182fd5b9392505050565b6001600160a01b0392831681529116602082015260400190565b90815260200190565b80825b6001808611620005ed57506200061d565b818704821115620006025762000602620007a8565b808616156200061057918102915b9490941c938002620005dc565b94509492505050565b6000620005af60001984846000826200064257506001620005af565b816200065157506000620005af565b81600181146200066a57600281146200067557620006a9565b6001915050620005af565b60ff841115620006895762000689620007a8565b6001841b915084821115620006a257620006a2620007a8565b50620005af565b5060208310610133831016604e8410600b8410161715620006e1575081810a83811115620006db57620006db620007a8565b620005af565b620006f08484846001620005d9565b808604821115620007055762000705620007a8565b02949350505050565b60008160001904831182151516156200072b576200072b620007a8565b500290565b600082821015620007455762000745620007a8565b500390565b6002810460018216806200075f57607f821691505b602082108114156200078157634e487b7160e01b600052602260045260246000fd5b50919050565b600082620007a357634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fd5b60805160601c6129e1620007dd600039600061091501526129e16000f3fe60806040526004361061030c5760003560e01c80635d098b381161019a578063a457c2d7116100e1578063e27ad5eb1161008a578063f25fde5111610064578063f25fde5114610808578063f2fde38b14610828578063ffc786351461084857610313565b8063e27ad5eb146107a8578063e38870bf146107c8578063ea2f0b37146107e857610313565b8063c4081a4c116100bb578063c4081a4c14610748578063d543dbeb14610768578063dd62ed3e1461078857610313565b8063a457c2d7146106f3578063a9059cbb14610713578063c0b0fda21461073357610313565b80637d1db4a5116101435780638da5cb5b1161011d5780638da5cb5b146106b4578063918f8674146106c957806395d89b41146106de57610313565b80637d1db4a51461066a57806384d6ff2f1461067f57806388f820201461069457610313565b8063715018a611610174578063715018a61461062b578063741af87f1461064057806375f0a8741461065557610313565b80635d098b38146105d6578063701cf6f4146105f657806370a082311461060b57610313565b8063395093511161025e5780634549b039116102075780634bf2c7c9116101e15780634bf2c7c91461057657806352390c02146105965780635342acb4146105b657610313565b80634549b0391461052c57806349bd5a5e1461054c5780634ada218b1461056157610313565b80633c7691dc116102385780633c7691dc146104d75780633c9f861d146104f7578063437823ec1461050c57610313565b806339509351146104825780633b124fe7146104a25780633bd5d173146104b757610313565b8063200a692d116102c05780632d8381191161029a5780632d83811914610420578063313ce567146104405780633685d4191461046257610313565b8063200a692d146103c957806323b872dd146103de57806326b825d2146103fe57610313565b806313114a9d116102f157806313114a9d146103705780631694505e1461039257806318160ddd146103b457610313565b806306fdde0314610318578063095ea7b31461034357610313565b3661031357005b600080fd5b34801561032457600080fd5b5061032d61085d565b60405161033a919061238e565b60405180910390f35b34801561034f57600080fd5b5061036361035e3660046122f2565b6108ef565b60405161033a9190612383565b34801561037c57600080fd5b5061038561090d565b60405161033a91906128ba565b34801561039e57600080fd5b506103a7610913565b60405161033a919061236f565b3480156103c057600080fd5b50610385610937565b3480156103d557600080fd5b5061038561093d565b3480156103ea57600080fd5b506103636103f936600461228e565b610943565b34801561040a57600080fd5b5061041e610419366004612335565b6109b8565b005b34801561042c57600080fd5b5061038561043b366004612335565b610a05565b34801561044c57600080fd5b50610455610a48565b60405161033a91906128c3565b34801561046e57600080fd5b5061041e61047d366004612242565b610a51565b34801561048e57600080fd5b5061036361049d3660046122f2565b610c26565b3480156104ae57600080fd5b50610385610c75565b3480156104c357600080fd5b5061041e6104d2366004612335565b610c7b565b3480156104e357600080fd5b5061041e6104f23660046122c9565b610d3e565b34801561050357600080fd5b50610385610da8565b34801561051857600080fd5b5061041e610527366004612242565b610dae565b34801561053857600080fd5b5061038561054736600461234d565b610e11565b34801561055857600080fd5b506103a7610e71565b34801561056d57600080fd5b50610363610e80565b34801561058257600080fd5b5061041e610591366004612335565b610e89565b3480156105a257600080fd5b5061041e6105b1366004612242565b610ecd565b3480156105c257600080fd5b506103636105d1366004612242565b611064565b3480156105e257600080fd5b5061041e6105f1366004612242565b611082565b34801561060257600080fd5b506103856110e3565b34801561061757600080fd5b50610385610626366004612242565b6110e9565b34801561063757600080fd5b5061041e61114b565b34801561064c57600080fd5b5061041e611196565b34801561066157600080fd5b506103a76111dd565b34801561067657600080fd5b506103856111ec565b34801561068b57600080fd5b506103856111f2565b3480156106a057600080fd5b506103636106af366004612242565b6111f8565b3480156106c057600080fd5b506103a7611216565b3480156106d557600080fd5b50610385611225565b3480156106ea57600080fd5b5061032d61122b565b3480156106ff57600080fd5b5061036361070e3660046122f2565b61123a565b34801561071f57600080fd5b5061036361072e3660046122f2565b611289565b34801561073f57600080fd5b5061038561129d565b34801561075457600080fd5b5061041e610763366004612335565b6112a3565b34801561077457600080fd5b5061041e610783366004612335565b6112e7565b34801561079457600080fd5b506103856107a336600461225c565b61132b565b3480156107b457600080fd5b5061041e6107c336600461231b565b611356565b3480156107d457600080fd5b5061041e6107e3366004612335565b6113de565b3480156107f457600080fd5b5061041e610803366004612242565b611422565b34801561081457600080fd5b5061041e610823366004612335565b611482565b34801561083457600080fd5b5061041e610843366004612242565b6114c6565b34801561085457600080fd5b5061041e611537565b60606007805461086c9061293f565b80601f01602080910402602001604051908101604052809291908181526020018280546108989061293f565b80156108e55780601f106108ba576101008083540402835291602001916108e5565b820191906000526020600020905b8154815290600101906020018083116108c857829003601f168201915b5050505050905090565b60006109036108fc61159d565b84846115a1565b5060015b92915050565b600c5490565b7f000000000000000000000000000000000000000000000000000000000000000081565b600a5490565b60105481565b6000610950848484611655565b6109ae8461095c61159d565b6001600160a01b0387166000908152600360205260408120869161097e61159d565b6001600160a01b03166001600160a01b03168152602001908152602001600020546109a99190612928565b6115a1565b5060019392505050565b6109c061159d565b6001600160a01b03166109d1611216565b6001600160a01b031614610a005760405162461bcd60e51b81526004016109f790612620565b60405180910390fd5b601255565b6000600b54821115610a295760405162461bcd60e51b81526004016109f79061243e565b6000610a33611713565b9050610a3f81846128e9565b9150505b919050565b60095460ff1690565b610a5961159d565b6001600160a01b0316610a6a611216565b6001600160a01b031614610a905760405162461bcd60e51b81526004016109f790612620565b6001600160a01b03811660009081526005602052604090205460ff16610ac85760405162461bcd60e51b81526004016109f790612555565b60005b600654811015610c2257816001600160a01b031660068281548110610b0057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610c105760068054610b2b90600190612928565b81548110610b4957634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600680546001600160a01b039092169183908110610b8357634e487b7160e01b600052603260045260246000fd5b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559184168152600282526040808220829055600590925220805460ff191690556006805480610be957634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b0319169055019055610c22565b80610c1a8161297a565b915050610acb565b5050565b6000610903610c3361159d565b848460036000610c4161159d565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546109a991906128d1565b600e5481565b6000610c8561159d565b6001600160a01b03811660009081526005602052604090205490915060ff1615610cc15760405162461bcd60e51b81526004016109f790612826565b6000610ccb611713565b610cd59084612909565b6001600160a01b038316600090815260016020526040812080549293508392909190610d02908490612928565b9250508190555080600b6000828254610d1b9190612928565b9250508190555082600c6000828254610d3491906128d1565b9091555050505050565b610d4661159d565b6001600160a01b0316610d57611216565b6001600160a01b031614610d7d5760405162461bcd60e51b81526004016109f790612620565b6001600160a01b03919091166000908152601960205260409020805460ff1916911515919091179055565b600d5490565b610db661159d565b6001600160a01b0316610dc7611216565b6001600160a01b031614610ded5760405162461bcd60e51b81526004016109f790612620565b6001600160a01b03166000908152600460205260409020805460ff19166001179055565b6000600a54831115610e355760405162461bcd60e51b81526004016109f79061258c565b81610e57576000610e44611713565b610e4e9085612909565b91506109079050565b6000610e64846000611736565b6020015191506109079050565b601b546001600160a01b031681565b60185460ff1681565b610e9161159d565b6001600160a01b0316610ea2611216565b6001600160a01b031614610ec85760405162461bcd60e51b81526004016109f790612620565b601655565b610ed561159d565b6001600160a01b0316610ee6611216565b6001600160a01b031614610f0c5760405162461bcd60e51b81526004016109f790612620565b7310ed43c718714eb63d5aa57b78b54704e256024e6001600160a01b0382161415610f495760405162461bcd60e51b81526004016109f7906127c9565b6001600160a01b03811660009081526005602052604090205460ff1615610f825760405162461bcd60e51b81526004016109f790612555565b600654603211610fa45760405162461bcd60e51b81526004016109f790612883565b6001600160a01b03811660009081526001602052604090205415610ffe576001600160a01b038116600090815260016020526040902054610fe490610a05565b6001600160a01b0382166000908152600260205260409020555b6001600160a01b03166000818152600560205260408120805460ff191660019081179091556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b6001600160a01b031660009081526004602052604090205460ff1690565b61108a61159d565b6001600160a01b031661109b611216565b6001600160a01b0316146110c15760405162461bcd60e51b81526004016109f790612620565b601a80546001600160a01b0319166001600160a01b0392909216919091179055565b60145481565b6001600160a01b03811660009081526005602052604081205460ff161561112957506001600160a01b038116600090815260026020526040902054610a43565b6001600160a01b03821660009081526001602052604090205461090790610a05565b61115361159d565b6001600160a01b0316611164611216565b6001600160a01b03161461118a5760405162461bcd60e51b81526004016109f790612620565b61119460006117cf565b565b61119e61159d565b6001600160a01b03166111af611216565b6001600160a01b0316146111d55760405162461bcd60e51b81526004016109f790612620565b61119461181f565b601a546001600160a01b031681565b601c5481565b60125481565b6001600160a01b031660009081526005602052604090205460ff1690565b6000546001600160a01b031690565b61271081565b60606008805461086c9061293f565b600061090361124761159d565b84846003600061125561159d565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546109a99190612928565b600061090361129661159d565b8484611655565b60165481565b6112ab61159d565b6001600160a01b03166112bc611216565b6001600160a01b0316146112e25760405162461bcd60e51b81526004016109f790612620565b600e55565b6112ef61159d565b6001600160a01b0316611300611216565b6001600160a01b0316146113265760405162461bcd60e51b81526004016109f790612620565b601c55565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b61135e61159d565b6001600160a01b031661136f611216565b6001600160a01b0316146113955760405162461bcd60e51b81526004016109f790612620565b6018805460ff19168215151790556040517f049d94facfe6fd0e1b8fefa318ea1c6c437532d78e7c6affe74ec9866fa8ed42906113d3908390612383565b60405180910390a150565b6113e661159d565b6001600160a01b03166113f7611216565b6001600160a01b03161461141d5760405162461bcd60e51b81526004016109f790612620565b601455565b61142a61159d565b6001600160a01b031661143b611216565b6001600160a01b0316146114615760405162461bcd60e51b81526004016109f790612620565b6001600160a01b03166000908152600460205260409020805460ff19169055565b61148a61159d565b6001600160a01b031661149b611216565b6001600160a01b0316146114c15760405162461bcd60e51b81526004016109f790612620565b601055565b6114ce61159d565b6001600160a01b03166114df611216565b6001600160a01b0316146115055760405162461bcd60e51b81526004016109f790612620565b6001600160a01b03811661152b5760405162461bcd60e51b81526004016109f79061249b565b611534816117cf565b50565b61153f61159d565b6001600160a01b0316611550611216565b6001600160a01b0316146115765760405162461bcd60e51b81526004016109f790612620565b61157e611856565b600e54600f819055601755601254601355601054601155601454601555565b3390565b6001600160a01b0383166115c75760405162461bcd60e51b81526004016109f79061276c565b6001600160a01b0382166115ed5760405162461bcd60e51b81526004016109f7906124f8565b6001600160a01b0380841660008181526003602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906116489085906128ba565b60405180910390a3505050565b6001600160a01b03831661167b5760405162461bcd60e51b81526004016109f7906126b2565b6001600160a01b0382166116a15760405162461bcd60e51b81526004016109f7906123e1565b600081116116c15760405162461bcd60e51b81526004016109f790612655565b60185460ff16611703576001600160a01b03831660009081526019602052604090205460ff166117035760405162461bcd60e51b81526004016109f79061270f565b61170e838383611876565b505050565b6000806000611720611acd565b909250905061172f81836128e9565b9250505090565b61173e612178565b600061174a8484611c8b565b9050600061176e85836020015184604001518560600151611769611713565b611d08565b6040805161012081018252825181526020808401518183015283830151828401526060808501518184015260809485015194830194909452855160a083015285015160c08201529084015160e0820152920151610100830152509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600e8054600f5560168054601755601280546013556010805460115560148054601555600094859055928490559083905582905555565b600f54600e55601354601255601754601655601154601055601554601455565b6001600160a01b03831660009081526004602052604090205460ff16806118b557506001600160a01b03821660009081526004602052604090205460ff165b156118c7576118c261181f565b6118e9565b601c548111156118e95760405162461bcd60e51b81526004016109f7906125c3565b601b546001600160a01b0383811691161460006119068383611736565b905061192f8160400151826060015183608001518460c001518560e00151866101000151611d9d565b6001600160a01b03851660009081526005602052604090205460ff16801561197057506001600160a01b03841660009081526005602052604090205460ff16155b156119865761198185858584611e92565b611a7a565b6001600160a01b03851660009081526005602052604090205460ff161580156119c757506001600160a01b03841660009081526005602052604090205460ff165b156119d757611981858583611f79565b6001600160a01b03851660009081526005602052604090205460ff16158015611a1957506001600160a01b03841660009081526005602052604090205460ff16155b15611a2957611981858583612057565b6001600160a01b03851660009081526005602052604090205460ff168015611a6957506001600160a01b03841660009081526005602052604090205460ff165b15611a7a57611a7a85858584612081565b6001600160a01b03851660009081526004602052604090205460ff1680611ab957506001600160a01b03841660009081526004602052604090205460ff165b15611ac657611ac6611856565b5050505050565b600b54600a546000918291825b600654811015611c5857826001600060068481548110611b0a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040019020541180611b835750816002600060068481548110611b5c57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054115b15611b9a57600b54600a5494509450505050611c87565b6001600060068381548110611bbf57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054611bee9084612928565b92506002600060068381548110611c1557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902054611c449083612928565b915080611c508161297a565b915050611ada565b50600a54600b54611c6991906128e9565b821015611c8157600b54600a54935093505050611c87565b90925090505b9091565b611c936121c4565b6000611c9f848461210a565b90506000611cad858561213b565b90506000611cbb8686612159565b905060008183611ccb868a612928565b611cd59190612928565b611cdf9190612928565b604080516080810182529182526020820195909552938401929092526060830152509392505050565b611d106121ec565b6000611d1c8388612909565b90506000611d2a8488612909565b90506000611d388588612909565b90506000611d468688612909565b905060008183611d568688612928565b611d609190612928565b611d6a9190612928565b6040805160a081018252968752602087019190915285019390935260608401919091526080830152509695505050505050565b611da785876128d1565b600b6000828254611db89190612928565b9250508190555082600c6000828254611dd191906128d1565b9250508190555081600a6000828254611dea9190612928565b9250508190555081600d6000828254611e0391906128d1565b9091555050601a546001600160a01b031660009081526001602052604081208054869290611e329084906128d1565b9091555050601a546001600160a01b031660009081526005602052604090205460ff1615611e8a57601a546001600160a01b031660009081526002602052604081208054839290611e849084906128d1565b90915550505b505050505050565b6001600160a01b03841660009081526002602052604081208054849290611eba908490612928565b909155505080516001600160a01b03851660009081526001602052604081208054909190611ee9908490612928565b90915550506020808201516001600160a01b0385166000908152600190925260408220805491929091611f1d9084906128d1565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360a00151604051611f6b91906128ba565b60405180910390a350505050565b80516001600160a01b03841660009081526001602052604081208054909190611fa3908490612928565b909155505060a08101516001600160a01b03831660009081526002602052604081208054909190611fd59084906128d1565b90915550506020808201516001600160a01b03841660009081526001909252604082208054919290916120099084906128d1565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360a0015160405161164891906128ba565b80516001600160a01b03841660009081526001602052604081208054909190611fd5908490612928565b6001600160a01b038416600090815260026020526040812080548492906120a9908490612928565b909155505080516001600160a01b038516600090815260016020526040812080549091906120d8908490612928565b909155505060a08101516001600160a01b03841660009081526002602052604081208054909190611ee99084906128d1565b60006127108261211c57600e54612120565b6010545b61212a9085612909565b61213491906128e9565b9392505050565b60006127108261214c576000612120565b60165461212a9085612909565b60006127108261216b57601254612120565b60145461212a9085612909565b6040518061012001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b80356001600160a01b0381168114610a4357600080fd5b80358015158114610a4357600080fd5b600060208284031215612253578081fd5b6121348261221b565b6000806040838503121561226e578081fd5b6122778361221b565b91506122856020840161221b565b90509250929050565b6000806000606084860312156122a2578081fd5b6122ab8461221b565b92506122b96020850161221b565b9150604084013590509250925092565b600080604083850312156122db578182fd5b6122e48361221b565b915061228560208401612232565b60008060408385031215612304578182fd5b61230d8361221b565b946020939093013593505050565b60006020828403121561232c578081fd5b61213482612232565b600060208284031215612346578081fd5b5035919050565b6000806040838503121561235f578182fd5b8235915061228560208401612232565b6001600160a01b0391909116815260200190565b901515815260200190565b6000602080835283518082850152825b818110156123ba5785810183015185820160400152820161239e565b818111156123cb5783604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201527f6573730000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602a908201527f416d6f756e74206d757374206265206c657373207468616e20746f74616c207260408201527f65666c656374696f6e7300000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f4163636f756e7420697320616c7265616479206578636c756465640000000000604082015260600190565b6020808252601f908201527f416d6f756e74206d757374206265206c657373207468616e20737570706c7900604082015260600190565b60208082526028908201527f5472616e7366657220616d6f756e74206578636565647320746865206d61785460408201527f78416d6f756e742e000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f5472616e7366657220616d6f756e74206d75737420626520677265617465722060408201527f7468616e207a65726f0000000000000000000000000000000000000000000000606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460408201527f6472657373000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f54686973206163636f756e742063616e6e6f742073656e6420746f6b656e732060408201527f756e74696c2074726164696e6720697320656e61626c65640000000000000000606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f57652063616e206e6f74206578636c7564652050616e63616b6520726f75746560408201527f722e000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252602c908201527f4578636c75646564206164647265737365732063616e6e6f742063616c6c207460408201527f6869732066756e6374696f6e0000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4578636c75646564206c69737420697320746f6f206c6f6e6700000000000000604082015260600190565b90815260200190565b60ff91909116815260200190565b600082198211156128e4576128e4612995565b500190565b60008261290457634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561292357612923612995565b500290565b60008282101561293a5761293a612995565b500390565b60028104600182168061295357607f821691505b6020821081141561297457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561298e5761298e612995565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220be59066ffc130727ef881aaac3bfe9b2fb53efe105387a4a30d8784e46fafd6964736f6c63430008000033

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.