// File: contracts/SEH.sol



/*
https://t.me/Sendethhere
http://twitter.com/sendethhere
*/

/*
MMMMMMMMMMMMMMMMMMMMMMMNo,,;:ccc:cccccc:,,,',,;:cc;:k0000000000Ol::,,;,,',,;:ccccccccc::;,,xWMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMWN0dc:;;;:::cccccc:,,,'',;ccc:;cdkO00000Oko::;,;;,',,,;:ccccccc:;;;;:cxKWMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMWWWWMWNK0xollcc:;;,,;;::::;,,,,'',:cccc:;:cclllccccc:,;;,'',,,,;:::;;;,,;;:clllok0XNWMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMXkkkkkxdooolccccccccccccclccccccccclooooollllllllooolllllcccccccccllcc::ccccccccloolodxxxxxxxxKWMMMMMMMMMMMM
MMMMMMMMMMMW0olollooooooooooddxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdooooooooollllcc:ccc::cOWMMMMMMMMMMMM
MMMMMMMMMWN0dlloooooooooddxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdoooooooooooolcccccc:cOWMMMMMMMMMMMM
MMMMMMMMW0xlccoooolooodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdoooooooooololccccccckWMMMMMMMMMMMM
MMMMMMMWKdl:;cooooooodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxoooooooooooolccccc:oKMMMMMMMMMMMM
MMMMMMMXkoc;;coooolodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdoooooooooollcccc:lkNMMMMMMMMMMM
MMMMMMW0xoc:;cooooooxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdoooooooooolcccc:oxKWMMMMMMMMMM
MMMMMMNkoolc:cooolodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdooooooolollccc:lokNMMMMMMMMMM
WWWWNN0dlcll:cooooodxxxxxxxxxxxxxxxxxxxxxxdlccloxxdlcccc:cddlccdxxxxo;cxxolccloxxxxxxxxxxxxoooooooooolccc::lxKWWWWWWWWWW
xxxxxdoolccc:cooooodxxxxxxxxxxxxxxxxxxxxo;.....'ld;  .....l:.  .cxxx, .c'. .....:dxxxxxxxxxdolooloooolccc::looxxxxxxxxxx
lllllcldlccc:cooooodxxxxxxxxxxxxxxxxxxxx; .;looodx; .cdoodx:.    ,ox, .l;  ;doc. 'oxxxxxxxxxdooooooooolcc::ldlclllllllll
;;;;;;ldcccc:cooooodxxxxxxxxxxxxxxxxxxxxl'....':ox;  ....:xc. .;. .:' .dl. :xxxc. cxxxxxxxxxxolooooooolcc::ldc;;;;;;;;;;
ccccccooccc::cooooodxxxxxxxxxxxxxxxxxxxxddolc;. 'o; .,::coxc. .ld;.   'dl. cxxd, .lxxxxxxxxxxdoooooololcc::cdocccccccccc
llllcldl:ldxkO0Okxdxxxxxxxxxxxxxxxxxxxxx;.';::. .o: .,;;,;oc. .lxxl.  'xl. ':,. .cxxxxxxxxxxxxollooololcc:::odllllllllll
;;:;;ldcoOKK000KK0Okxxxxxxxxxxxxxxxxxxxxo:'....,lxo;'''',;ol;',oxxxo,.:xo,...';cdxxxxxxxxxxxxxdoloooooolc:::ldl;;;::;;;:
;;:;:ood0K00KKKK0Oxxxxxxxxxxxxxxxxxxxxxxxxxddddxxxxxxxxxxxxxxddxxxxxxxxxxxddxxxxxxxxxxxxxxxxxxdoloooooolc::ccoo;;::;;;;;
:::;cdk0K0000000KK0kxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxooooooollc::ccldc;::::;::
::::lk0K0KKKKKKK00Okxxxxxxxxxxxxxxxxxxxxxxxxxxdlcccccldocccccccccodclxxxxo:lxxxxxxxxxxxxxxxxxxxdooooooolc::c:ldl;:::::::
ooold0KK0000000KKK0Oxxxxxxxxxxxxxxxxxxxxxxxxxo'  ....,l;...   ...:; .oxxd' 'dxxxxxxxxxxxxxxxxxxdoollooolc::c:cdolooooooo
:::cx000KKXXXKKK0000kxxxxxxxxxxxxxxxxxxxxxxxxd' 'ododdxxdd:  .:ddd; .oxxd' 'dxxxxxxxxxxxxxxxxxxdooolodxkkxxdolddc:::::::
;;;ck0KXXXXXKKKXXK0Oxxxxxxxxxxxxxxxxxxxxxxxxxd'  ...'lxxxxc  .cxxx;  .''.  .cxxxxxxxxxxxxxxxxxxdooook0KKKKKK0Okdc;;;;;;,
;;;ckKXXXKK0OxxkO0KKOxxxxxxxxxxxxxxxxxxxxxxxxd' .;::cdxxxxc  .cxxx;  ',,'. .cxxxxxxxxxxxxxxxxxxdoooodk0000K00KKkc;:;;;;,
;;;lOKXXKK00Odloooxkkxxxxxxxxxxxxxxxxxxxxxxxxd' .;:;,:dxxxc. .cxxx; .okxd' 'dxxxxxxxxxxxxxxxxxxdooodk0KKKK0000KKd:;;;;,'
cc:lk0KKKK0KOdlooodxxxxxxxxxxxxxxxxxxxxxxxxxxxc'...',:dxxxl'.'oxxxc.;dxxx:.:xxxxxxxxxxxxxxxxxxxdoodkOO000KKKK00K0xcccc::
coccok00KKKKOdlooodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdddxxxxxxxxxxxxdxxxxxxxxxxxxxxxxxxxxdoooxO0KKK0000000K0dlc:::
,:;;clk0000KOdoooodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxolox00000KKKKKK0000d;,,,,
,:;;:cok0K0KOdlooodxxxxxxxxxxxxxxxxxxxxxo:ldxxxl:lxdoccc:::oxxo:;,',;ldxxdlccc::cdxxxxxxxxxxxxdooodxO0KXXXXXXXXXKKx;,,,,
,:;,;cccodk0Odoooodxxxxxxxxxxxxxxxxxxxxx; .oxxd' 'dc. .....:xo' .','. ,dd,  ....'lxxxxxxxxxxxxdooox0KK0OxxO0KKXXXXk:,,,,
;::;;::;,,;coooooodxxxxxxxxxxxxxxxxxxxxx; .lxxd' 'dc. :doodxxx, .okx: .cx, .ldoddxxxxxxxxxxxxxdooodxxdolccx000KXXKOl;;;;
cool:,;,,,,;:coooodxxxxxxxxxxxxxxxxxxxxx;  .'..  .cc. ....,dkx, .;:'. ,dx;  ....:xxxxxxxxxxxxdooooollool:cx0K00KKKkoclll
;ccc:,,,,,,::coooodxxxxxxxxxxxxxxxxxxxxx;  ';,,. .lc. ':::lxxx,  ..  ;dxx; .,::coxxxxxxxxxxxxdoooooooolcccx00000KOo;;;;;
,;;;;;,,,,,;:loooodxxxxxxxxxxxxxxxxxxxxx; .okxd' .dl. ';;,,cdx; .lo;. 'lx; .,;;,;oxxxxxxxxxxdolooooooolcccx0KK000o;,,,,,
,;;;;;;,',,,;coooooxxxxxxxxxxxxxxxxxxxxxc';dxxx:.:xd:''''';ldxc.;dxxo,.:xo;'''',:oxxxxxxxxxxdlooooooollc:lxKK000d;,,,,,,
,;;;;,''',;,,coooooxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdxxxxxxxxxxxxxxxxxxxxdolooooooollc:cx00kdc,'''''''
;ccc;''',clc:cooooodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxollooloooolccccdxl;',::::::::
:lc;''';cooollooooodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdoooooloololccc:col;'';;::::::
','''',coooollooooodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdooooooooooolccc:cllc;'''''''''
''''',cooooollooooodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxddooooooooooolcccc:clc::;''.'''''
.'''':odooolllooooodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxdooooooooooooolcccc:c::;;;,'..''''
.''''cxxooolllooooooxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxddooooooooooooolccccc:c:,,''''.',;;;
.'''':xkoloolloooooodxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxddoooooooooooooolcccccc:cc,'.....'clcl
.'''',lkdooollllllccloooolcccccccccccccclccccccccccccccccccccccccccccccccccccccccc::;::::::clllllllcccccccll;'......,;;;
.''''';dxolllcccccccloollc:,''''.'''''',,''''''......''''''''''.........'''....'''''''''',:loolloooolllloool;'.......'''
.''.''':xxlllllllllolllloooc;''..'''''''''''''''.....'''''''''........''''....'''''...',:loolollllllllclllll:'.......'.'
.''.''',lkdlloooooollcllooooc,''..'''''''''''''''.....''''''''........''.....'''''.'''':loloolollllcclccclol:...........
*/

//SPDX-License-Identifier: Unlicensed

pragma solidity ^0.8.17;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

contract Ownable is Context {
    address private _owner;

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

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

interface IERC20Metadata is IERC20 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
}

contract ERC20 is Context, IERC20, IERC20Metadata {
    using SafeMath for uint256;

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

    uint256 private _totalSupply;
    string private _name;
    string private _symbol;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    function decimals() public view virtual override returns (uint8) {
        return 9;
    }

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

    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

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

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

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

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual 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 _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);

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

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

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

    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");
        _beforeTokenTransfer(account, address(0), amount);

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

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


    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

}

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;
        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 SafeMathInt {
    int256 private constant MIN_INT256 = int256(1) << 255;
    int256 private constant MAX_INT256 = ~(int256(1) << 255);

    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a * b;
        require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));
        require((b == 0) || (c / b == a));
        return c;
    }


    function div(int256 a, int256 b) internal pure returns (int256) {
        require(b != -1 || a != MIN_INT256);
        return a / b;
    }

    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a));
        return c;
    }


    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a));
        return c;
    }

    function abs(int256 a) internal pure returns (int256) {
        require(a != MIN_INT256);
        return a < 0 ? -a : a;
    }

    function toUint256Safe(int256 a) internal pure returns (uint256) {
        require(a >= 0);
        return uint256(a);
    }
}

library SafeMathUint {
  function toInt256Safe(uint256 a) internal pure returns (int256) {
    int256 b = int256(a);
    require(b >= 0);
    return b;
  }
}

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

contract SEH is ERC20, Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable uniswapV2Router;
    address public immutable uniswapV2Pair;
    address public deployerAddress;
    address public sendEthHere;

    uint256 public mintAmount = 1000000 * 10 ** decimals();
    uint256 public maxHoldingAmount   = mintAmount / 40;   // 2.50% absolute max per wallet
    uint256 public swapTokensAtAmount = mintAmount / 2000; // 0.05% max before swapBack

    uint256 public buyTotalFees = 3;
    uint256 public buyLiquidityFee = 1;
    uint256 public buySendEthFee = 2;

    uint256 public sellTotalFees = 3;
    uint256 public sellLiquidityFee = 1;
    uint256 public sellSendEthFee = 2;

    uint256 public tokensForLiquidity;
    uint256 public tokensForSendEth;

    bool private swapping;
    bool public swapEnabled = true;
    bool public limitOn = true;

    mapping (address => bool) public blacklist;
    mapping (address => bool) public isExcludedFromFees;
    mapping (address => bool) public isExcludedMaxTxAmount;
    mapping (address => bool) public tradingPairs;

    event SwapAndLiquify(uint256 tokensSwapped, uint256 ethReceived, uint256 tokensIntoLiquidity);
    event ExcludeFromFees(address indexed account, bool isExcluded);
    event SendEthWalletUpdated(address indexed newWallet, address indexed oldWallet);
    event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);

    constructor() ERC20("SendEthHere", "SEH") {

        address newOwner = address(owner());

        uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory())
          .createPair(address(this), uniswapV2Router.WETH());
        excludeFromMaxTransaction(address(uniswapV2Router), true);
        excludeFromMaxTransaction(address(uniswapV2Pair), true);
        _setAutomatedMarketMakerPair(address(uniswapV2Pair), true);

        deployerAddress = address(owner());
      	sendEthHere = 0xA8BCC998F366de5248CfC5cC2C5e4bCD077699AE;

        excludeFromFees(newOwner, true); // Owner address
        excludeFromFees(address(this), true); // CA
        excludeFromFees(address(0xdead), true); // Burn address
        excludeFromFees(sendEthHere, true); // sendEth wallet
        excludeFromFees(deployerAddress, true); // Deployer Address

        excludeFromMaxTransaction(newOwner, true); // Owner address
        excludeFromMaxTransaction(address(this), true); // CA
        excludeFromMaxTransaction(address(0xdead), true); // Burn address
        excludeFromMaxTransaction(sendEthHere, true); // sendEth wallet
        excludeFromMaxTransaction(deployerAddress, true); // Deployer Address

        /* _mint only called once and CANNOT be called again */
        _mint(newOwner, mintAmount);

        transferOwnership(newOwner);
    }

    receive() external payable {}

    function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool) {
  	    require(newAmount >= totalSupply() / 100000, "Swap amount cannot be lower than 0.001% total supply.");
  	    require(newAmount <= totalSupply() / 200, "Swap amount cannot be higher than 0.5% total supply.");
  	    swapTokensAtAmount = newAmount;
  	    return true;
  	}

    function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner {
        isExcludedMaxTxAmount[updAds] = isEx;
    }

    function updateSwapEnabled(bool enabled) external onlyOwner {
        swapEnabled = enabled;
    }

    function updateBuyFees(uint256 _liquidityFee, uint256 _sendEthFee) external onlyOwner {
        buyLiquidityFee = _liquidityFee;
        buySendEthFee = _sendEthFee;
        buyTotalFees = buyLiquidityFee + buySendEthFee;
        require(buyTotalFees <= 10, "Must keep buy fees at 10% or less");
    }

    function updateSellFees(uint256 _liquidityFee, uint256 _sendEthFee) external onlyOwner {
        sellLiquidityFee = _liquidityFee;
        sellSendEthFee = _sendEthFee;
        sellTotalFees = sellLiquidityFee + sellSendEthFee;
        require(sellTotalFees <= 10, "Must keep sell fees at 10% or less");
    }

    function excludeFromFees(address account, bool excluded) public onlyOwner {
        isExcludedFromFees[account] = excluded;
        emit ExcludeFromFees(account, excluded);
    }

    function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner {
        require(pair != uniswapV2Pair, "The pair cannot be removed from tradingPairs");
        _setAutomatedMarketMakerPair(pair, value);
    }

    function _setAutomatedMarketMakerPair(address pair, bool value) private {
        tradingPairs[pair] = value;
        emit SetAutomatedMarketMakerPair(pair, value);
    }

    function updateSendEthWallet(address newSendEthWallet) external onlyOwner {
        emit SendEthWalletUpdated(newSendEthWallet, sendEthHere);
        sendEthHere = newSendEthWallet;
    }

    function setBlacklist(address _address, bool _isBlacklisted) external onlyOwner {
        blacklist[_address] = _isBlacklisted;
    }

    function finalize() external onlyOwner {
        limitOn = false;
    }

    function _transfer(address from, address to, uint256 amount) internal override {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(!blacklist[to] && !blacklist[from], "bl");

        if (amount == 0) {
          super._transfer(from, to, 0);
          return;
        }

        if (
            limitOn &&
            from != owner() &&
            to != owner() &&
            to != address(0xdead) &&
            !swapping &&
            tradingPairs[from] // when buy
        ) {
            require(amount + balanceOf(to) <= maxHoldingAmount, "Too many tokens");
        }

    		uint256 contractTokenBalance = balanceOf(address(this));
        bool canSwap = contractTokenBalance >= swapTokensAtAmount;

        if (
            canSwap &&
            swapEnabled &&
            !swapping &&
            !tradingPairs[from] &&
            !isExcludedFromFees[from] &&
            !isExcludedFromFees[to]
        ) {
            swapping = true;
            swapBack();
            swapping = false;
        }

        bool takeFee = !swapping;
        if (isExcludedFromFees[from] || isExcludedFromFees[to]) {
            takeFee = false;
        }

        uint256 fees = 0;
        // only take fees on buys/sells, do not take on wallet transfers
        if (takeFee) {
            if (tradingPairs[to] && sellTotalFees > 0) {
                // on sell
                fees = amount.mul(sellTotalFees).div(100);
                tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees;
                tokensForSendEth += fees * sellSendEthFee / sellTotalFees;
            } else if (tradingPairs[from] && buyTotalFees > 0) {
                // on buy
          	    fees = amount.mul(buyTotalFees).div(100);
          	    tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees;
                tokensForSendEth += fees * buySendEthFee / buyTotalFees;
            }

            if (fees > 0) {
                super._transfer(from, address(this), fees);
            }

          	amount -= fees;
        }

        super._transfer(from, to, 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,
            path,
            address(this),
            block.timestamp
        );
    }

    function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
        _approve(address(this), address(uniswapV2Router), tokenAmount);
        uniswapV2Router.addLiquidityETH{value: ethAmount}(
            address(this),
            tokenAmount,
            0,
            0,
            address(0xdead),
            block.timestamp
        );
    }

    function swapBack() private {
        uint256 contractBalance = balanceOf(address(this));
        if (contractBalance == 0 || tokensForLiquidity == 0 || tokensForSendEth == 0) {
          return;
        }
        uint256 _tokensForLiquidity = tokensForLiquidity.div(2);
        uint256 tokensToSwapForEth = contractBalance.sub(_tokensForLiquidity);
        swapTokensForEth(tokensToSwapForEth);
        uint256 divisor = buyTotalFees.add(sellTotalFees).sub(1);
        uint256 ethForLiquidity = address(this).balance.div(divisor);
        tokensForLiquidity = 0;
        tokensForSendEth = 0;
        if (_tokensForLiquidity > 0 && ethForLiquidity > 0) {
            addLiquidity(_tokensForLiquidity, ethForLiquidity);
            emit SwapAndLiquify(tokensToSwapForEth, ethForLiquidity, tokensForLiquidity);
        }
        (bool success,) = address(sendEthHere).call{value: address(this).balance}("");
        require(success, "failed to send to buyback wallet");
    }
}