creation_sourcecode: {{
    "language": "Solidity",
    "sources": {
      "contracts/CastleOfBlackwaterToken/CastleOfBlackwaterFactory.sol": {
        "content": "// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity 0.8.22;\n\nimport {CastleOfBlackwaterToken, IERC20, Ownable2Step} from \"./CastleOfBlackwaterToken.sol\";\n\ncontract CastleOfBlackwaterFactory is Ownable2Step {\n    CastleOfBlackwaterToken immutable token;\n\n    constructor(uint256 _salt, address _owner) {\n        bytes32 salt = keccak256(abi.encodePacked(_salt, _owner));\n        token = new CastleOfBlackwaterToken{salt: salt}(_owner);\n    }\n\n    receive() external payable {}\n\n    fallback() external payable {}\n\n    function launch(address _owner, address[] memory _bots)\n        external\n        payable\n        onlyOwner\n    {\n        token.setBots(_bots, true);\n\n        uint256 ethToLiquidity = msg.value;\n\n        token.launch{value: ethToLiquidity}();\n\n        token.transferOwnership(_owner);\n    }\n\n    function withdraw(address tkn) external onlyOwner {\n        bool success;\n        if (tkn == address(0))\n            (success, ) = address(msg.sender).call{\n                value: address(this).balance\n            }(\"\");\n        else {\n            require(IERC20(tkn).balanceOf(address(this)) > 0, \"No tokens\");\n            uint256 amount = IERC20(tkn).balanceOf(address(this));\n            IERC20(tkn).transfer(msg.sender, amount);\n        }\n    }\n}\n"
      },
      "contracts/CastleOfBlackwaterToken/CastleOfBlackwaterToken.sol": {
        "content": "// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity 0.8.22;\n\nimport \"@openzeppelin/contracts@4.9.6/access/Ownable2Step.sol\";\nimport \"@openzeppelin/contracts@4.9.6/token/ERC20/ERC20.sol\";\nimport \"@openzeppelin/contracts@4.9.6/token/ERC20/utils/SafeERC20.sol\";\nimport \"@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol\";\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\";\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\";\n\ninterface IUniswapV3Router {\n    function factory() external pure returns (address);\n}\n\ncontract CastleOfBlackwaterToken is ERC20, Ownable2Step {\n    using SafeERC20 for IERC20;\n\n    IUniswapV2Router02 public immutable uniswapV2Router;\n    IUniswapV3Router public immutable uniswapV3Router;\n\n    address public constant ZERO_ADDRESS = address(0);\n    address public constant DEAD_ADDRESS = address(0xdead);\n\n    bool private _v2LPProtectionEnabled;\n    bool private _v3LPProtectionEnabled;\n    bool public limitsEnabled;\n    bool public taxesEnabled;\n    bool public launched;\n    bool public migrated;\n\n    uint256 public constant MAX_BUY_FEE = 500;\n    uint256 public constant MAX_SELL_FEE = 500;\n    uint256 public constant FEES_PERCENT_DENOMINATOR = 10000;\n    uint256 public constant MAX_TRANSACTION_PERCENT_DENOMINATOR = 1000000;\n    uint256 public constant MAX_WALLET_PERCENT_DENOMINATOR = 100000;\n\n    uint256 public launchBlock;\n    uint256 public launchTime;\n\n    uint256 public maxTransaction;\n    uint256 public maxWallet;\n\n    uint256 public buyFees;\n\n    uint256 public sellFees;\n\n    mapping(address => bool) public isExcludedFromFees;\n    mapping(address => bool) public isExcludedMaxTransactionAmount;\n    mapping(address => bool) public automatedMarketMakerPairsV2;\n    mapping(address => bool) public automatedMarketMakerPairsV3;\n    mapping(address => bool) public isBot;\n\n    event Airdrop(address account, uint256 amount);\n    event Launch();\n    event PrepareForMigration();\n    event SetLimitsEnabled(bool status);\n    event SetTaxesEnabled(bool status);\n    event SetMaxTransaction(\n        uint256 oldValueMaxTransaction,\n        uint256 newValueMaxTransaction\n    );\n    event SetMaxWallet(uint256 oldValueMaxWallet, uint256 newValueMaxWallet);\n    event SetBuyFees(uint256 oldValue, uint256 newValue);\n    event SetSellFees(uint256 oldValue, uint256 newValue);\n    event WithdrawStuckTokens(address token, uint256 amount);\n    event ExcludeFromFees(address indexed account, bool isExcluded);\n    event ExcludeFromMaxTransaction(address indexed account, bool isExcluded);\n    event SetBots(address indexed account, bool isExcluded);\n    event SetAutomatedMarketMakerPairV2(\n        address indexed pair,\n        bool indexed value\n    );\n    event SetAutomatedMarketMakerPairV3(\n        address indexed pair,\n        bool indexed value\n    );\n\n    constructor(address _owner) ERC20(\"Castle of Blackwater\", \"COBE\") {\n        address sender = _msgSender();\n        uint256 tSupply = 100_000_000 ether;\n        uint256 supplyToLiquidity = (tSupply * 125) / 10000;\n        uint256 supplyLeftover = tSupply - supplyToLiquidity;\n\n        uniswapV2Router = IUniswapV2Router02(\n            0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n        );\n        uniswapV3Router = IUniswapV3Router(\n            0xE592427A0AEce92De3Edee1F18E0157C05861564\n        );\n\n        maxTransaction = tSupply;\n        maxWallet = tSupply;\n\n        buyFees = 500;\n        sellFees = 500;\n\n        _excludeFromFees(sender, true);\n        _excludeFromFees(_owner, true);\n        _excludeFromFees(address(this), true);\n        _excludeFromFees(DEAD_ADDRESS, true);\n\n        _excludeFromMaxTransaction(sender, true);\n        _excludeFromMaxTransaction(_owner, true);\n        _excludeFromMaxTransaction(address(this), true);\n        _excludeFromMaxTransaction(DEAD_ADDRESS, true);\n        _excludeFromMaxTransaction(address(uniswapV2Router), true);\n\n        _mint(sender, supplyToLiquidity);\n        _mint(_owner, supplyLeftover);\n    }\n\n    receive() external payable {}\n\n    function burn(uint256 amount) public virtual {\n        _burn(_msgSender(), amount);\n    }\n\n    /**\n     * @dev The new owner accepts the ownership transfer.\n     * Revoke exclusions from previous owner.\n     * Grand exclusions to new owner.\n     */\n    function acceptOwnership() public virtual override {\n        address sender = _msgSender();\n        require(\n            pendingOwner() == sender,\n            \"CastleOfBlackwaterToken: caller is not the new owner\"\n        );\n        address ownr = owner();\n        _excludeFromFees(ownr, false);\n        _excludeFromMaxTransaction(ownr, false);\n        _excludeFromFees(sender, true);\n        _excludeFromMaxTransaction(sender, true);\n        super.acceptOwnership();\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * Revoke exclusions from owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual override onlyOwner {\n        address sender = _msgSender();\n        _excludeFromFees(sender, false);\n        _excludeFromMaxTransaction(sender, false);\n        super.renounceOwnership();\n    }\n\n    /**\n     * @dev Transfer corresponding amounts of tokens owned by this owner to accounts\n     *\n     * Requirements:\n     *\n     * - `accounts` array length should be equal to `amounts` array length\n     */\n    function airdrop(\n        address[] memory accounts,\n        uint256[] memory amounts\n    ) public onlyOwner {\n        uint256 accountsLength = accounts.length;\n        require(\n            accountsLength == amounts.length,\n            \"CastleOfBlackwaterToken: Arrays must be the same length\"\n        );\n        for (uint256 i = 0; i < accountsLength; i++) {\n            address account = accounts[i];\n            uint256 amount = amounts[i];\n            _transfer(_msgSender(), account, amount);\n            emit Airdrop(account, amount);\n        }\n    }\n\n    /**\n     * @dev Trigger the launch of the token\n     */\n    function launch() public payable onlyOwner {\n        require(!launched, \"CastleOfBlackwaterToken: Already launched.\");\n        IUniswapV2Factory uniswapV2Factory = IUniswapV2Factory(\n            uniswapV2Router.factory()\n        );\n        IUniswapV3Factory uniswapV3Factory = IUniswapV3Factory(\n            uniswapV3Router.factory()\n        );\n        address wethAddress = uniswapV2Router.WETH();\n        address uniswapV2Pair = uniswapV2Factory.getPair(\n            address(this),\n            wethAddress\n        );\n        address uniswapV3Migrator = 0xA5644E29708357803b5A882D272c41cC0dF92B34;\n        if (uniswapV2Pair == ZERO_ADDRESS) {\n            uniswapV2Pair = uniswapV2Factory.createPair(\n                address(this),\n                wethAddress\n            );\n        }\n        address uniswapV3Pool10000 = IUniswapV3Factory(\n            uniswapV3Router.factory()\n        ).getPool(address(this), wethAddress, 10000);\n        address uniswapV3Pool3000 = uniswapV3Factory.getPool(\n            address(this),\n            wethAddress,\n            3000\n        );\n        address uniswapV3Pool500 = uniswapV3Factory.getPool(\n            address(this),\n            wethAddress,\n            500\n        );\n        address uniswapV3Pool100 = uniswapV3Factory.getPool(\n            address(this),\n            wethAddress,\n            100\n        );\n        if (uniswapV3Pool10000 == ZERO_ADDRESS) {\n            uniswapV3Pool10000 = uniswapV3Factory.createPool(\n                address(this),\n                wethAddress,\n                10000\n            );\n        }\n        if (uniswapV3Pool3000 == ZERO_ADDRESS) {\n            uniswapV3Pool3000 = uniswapV3Factory.createPool(\n                address(this),\n                wethAddress,\n                3000\n            );\n        }\n        if (uniswapV3Pool500 == ZERO_ADDRESS) {\n            uniswapV3Pool500 = uniswapV3Factory.createPool(\n                address(this),\n                wethAddress,\n                500\n            );\n        }\n        if (uniswapV3Pool100 == ZERO_ADDRESS) {\n            uniswapV3Pool100 = uniswapV3Factory.createPool(\n                address(this),\n                wethAddress,\n                100\n            );\n        }\n\n        _setAutomatedMarketMakerPairV2(address(uniswapV2Pair), true);\n        _setAutomatedMarketMakerPairV3(address(uniswapV3Pool10000), true);\n        _setAutomatedMarketMakerPairV3(address(uniswapV3Pool3000), true);\n        _setAutomatedMarketMakerPairV3(address(uniswapV3Pool500), true);\n        _setAutomatedMarketMakerPairV3(address(uniswapV3Pool100), true);\n\n        _excludeFromMaxTransaction(address(uniswapV2Pair), true);\n        _excludeFromMaxTransaction(address(uniswapV3Pool10000), true);\n        _excludeFromMaxTransaction(address(uniswapV3Pool3000), true);\n        _excludeFromMaxTransaction(address(uniswapV3Pool500), true);\n        _excludeFromMaxTransaction(address(uniswapV3Pool100), true);\n        _excludeFromMaxTransaction(uniswapV3Migrator, true);\n\n        _excludeFromFees(uniswapV3Migrator, true);\n\n        uint256 ethAmount = address(this).balance;\n        require(ethAmount > 0, \"CastleOfBlackwaterToken: Invalid ETH amount.\");\n\n        uint256 tokenAmount = balanceOf(address(this));\n        require(\n            tokenAmount > 0,\n            \"CastleOfBlackwaterToken: Invalid token amount.\"\n        );\n\n        uint256 amountTokenMin = (tokenAmount * 99) / 100;\n        uint256 amountETHMin = (ethAmount * 99) / 100;\n\n        _approve(address(this), address(uniswapV2Router), tokenAmount);\n\n        (uint256 amountToken, uint256 amountETH, ) = uniswapV2Router\n            .addLiquidityETH{value: ethAmount}(\n            address(this),\n            tokenAmount,\n            amountTokenMin,\n            amountETHMin,\n            _msgSender(),\n            block.timestamp + (30 minutes)\n        );\n        require(\n            (amountToken >= amountTokenMin) && (amountToken <= tokenAmount),\n            \"CastleOfBlackwaterToken: Undesired amount of tokens added to liquidity.\"\n        );\n        require(\n            (amountETH >= amountETHMin) && (amountETH <= ethAmount),\n            \"CastleOfBlackwaterToken: Undesired amount of ETH added to liquidity.\"\n        );\n\n        maxTransaction = tokenAmount / 100;\n        maxWallet = tokenAmount / 100;\n        _v2LPProtectionEnabled = false;\n        _v3LPProtectionEnabled = true;\n        limitsEnabled = true;\n        taxesEnabled = true;\n        launched = true;\n        launchBlock = block.number;\n        launchTime = block.timestamp;\n        emit Launch();\n    }\n\n    /**\n     * @dev Trigger the preparation for migration of the token to UniswapV3\n     */\n    function prepareForMigration() public onlyOwner {\n        require(!migrated, \"CastleOfBlackwaterToken: Already migrated.\");\n        require(launched, \"CastleOfBlackwaterToken: Not launched.\");\n        _v2LPProtectionEnabled = true;\n        _v3LPProtectionEnabled = false;\n        limitsEnabled = false;\n        taxesEnabled = false;\n        buyFees = 0;\n        sellFees = 0;\n        maxTransaction = totalSupply();\n        maxWallet = totalSupply();\n        if (balanceOf(address(this)) > 0) {\n            super._transfer(\n                address(this),\n                _msgSender(),\n                balanceOf(address(this))\n            );\n        }\n        migrated = true;\n        emit PrepareForMigration();\n    }\n\n    /**\n     * @dev Activate or deactivate the enforcement of limits during transfers\n     */\n    function setLimitsEnabled(bool value) public onlyOwner {\n        require(!migrated, \"CastleOfBlackwaterToken: Already migrated.\");\n        limitsEnabled = value;\n        emit SetLimitsEnabled(value);\n    }\n\n    /**\n     * @dev Activate or deactivate the enforcement of fees during transfers\n     */\n    function setTaxesEnabled(bool value) public onlyOwner {\n        require(!migrated, \"CastleOfBlackwaterToken: Already migrated.\");\n        taxesEnabled = value;\n        emit SetTaxesEnabled(value);\n    }\n\n    /**\n     * @dev Update the max transaction enforced during transfers\n     */\n    function setMaxTransaction(uint256 _maxTransaction) external onlyOwner {\n        require(!migrated, \"CastleOfBlackwaterToken: Already migrated.\");\n        require(\n            _maxTransaction >=\n                (totalSupply() / MAX_TRANSACTION_PERCENT_DENOMINATOR),\n            \"CastleOfBlackwaterToken: Cannot set maxTransaction lower than 0.0001%\"\n        );\n        uint256 oldValueMaxTransaction = maxTransaction;\n        maxTransaction = _maxTransaction;\n        emit SetMaxTransaction(oldValueMaxTransaction, _maxTransaction);\n    }\n\n    /**\n     * @dev Update the max wallet enforced during transfers\n     */\n    function setMaxWallet(uint256 _maxWallet) external onlyOwner {\n        require(!migrated, \"CastleOfBlackwaterToken: Already migrated.\");\n        require(\n            _maxWallet >= (totalSupply() / MAX_WALLET_PERCENT_DENOMINATOR),\n            \"CastleOfBlackwaterToken: Cannot set maxWallet lower than 0.001%\"\n        );\n        uint256 oldValueMaxWallet = maxWallet;\n        maxWallet = _maxWallet;\n        emit SetMaxWallet(oldValueMaxWallet, _maxWallet);\n    }\n\n    /**\n     * @dev Update the fee enforced during transfers when tokens are bought\n     */\n    function setBuyFees(uint256 _buyFees) public onlyOwner {\n        require(!migrated, \"CastleOfBlackwaterToken: Already migrated.\");\n        require(\n            _buyFees <= MAX_BUY_FEE,\n            \"CastleOfBlackwaterToken: Must keep fees at 5% or less\"\n        );\n        uint256 oldValue = buyFees;\n        buyFees = _buyFees;\n        emit SetBuyFees(oldValue, _buyFees);\n    }\n\n    /**\n     * @dev Update the fee enforced during transfers when tokens are sold\n     */\n    function setSellFees(uint256 _sellFees) public onlyOwner {\n        require(!migrated, \"CastleOfBlackwaterToken: Already migrated.\");\n        require(\n            _sellFees <= MAX_SELL_FEE,\n            \"CastleOfBlackwaterToken: Must keep fees at 5% or less\"\n        );\n        uint256 oldValue = sellFees;\n        sellFees = _sellFees;\n        emit SetSellFees(oldValue, _sellFees);\n    }\n\n    /**\n     * @dev Withdraw any amount of native or ERC20 tokens from the contract\n     * excluding self token\n     */\n    function withdrawStuckTokens(address tkn) public onlyOwner {\n        require(\n            tkn != address(this),\n            \"CastleOfBlackwaterToken: Cannot withdraw self\"\n        );\n        address sender = _msgSender();\n        uint256 amount;\n        if (tkn == ZERO_ADDRESS) {\n            bool success;\n            amount = address(this).balance;\n            require(amount > 0, \"CastleOfBlackwaterToken: No native tokens\");\n            (success, ) = address(sender).call{value: amount}(\"\");\n            require(\n                success,\n                \"CastleOfBlackwaterToken: Failed to withdraw native tokens\"\n            );\n        } else {\n            amount = IERC20(tkn).balanceOf(address(this));\n            require(amount > 0, \"CastleOfBlackwaterToken: No tokens\");\n            IERC20(tkn).safeTransfer(sender, amount);\n        }\n        emit WithdrawStuckTokens(tkn, amount);\n    }\n\n    /**\n     * @dev Exclude (or not) accounts from fees\n     */\n    function excludeFromFees(\n        address[] calldata accounts,\n        bool value\n    ) public onlyOwner {\n        require(!migrated, \"CastleOfBlackwaterToken: Already migrated.\");\n        for (uint256 i = 0; i < accounts.length; i++) {\n            _excludeFromFees(accounts[i], value);\n        }\n    }\n\n    /**\n     * @dev Exclude (or not) accounts from transaction and wallets limits\n     */\n    function excludeFromMaxTransaction(\n        address[] calldata accounts,\n        bool value\n    ) public onlyOwner {\n        require(!migrated, \"CastleOfBlackwaterToken: Already migrated.\");\n        for (uint256 i = 0; i < accounts.length; i++) {\n            _excludeFromMaxTransaction(accounts[i], value);\n        }\n    }\n\n    /**\n     * @dev Set account as an AMM for Uniswap V2\n     *\n     * NOTE The effect of this function cannot be reverted\n     */\n    function setAutomatedMarketMakerPairV2(\n        address account,\n        bool value\n    ) public onlyOwner {\n        require(\n            !automatedMarketMakerPairsV2[account],\n            \"CastleOfBlackwaterToken: AMM Pair v2 already set.\"\n        );\n        _setAutomatedMarketMakerPairV2(account, value);\n    }\n\n    /**\n     * @dev Set account as an AMM for Uniswap V3\n     *\n     * NOTE The effect of this function cannot be reverted\n     */\n    function setAutomatedMarketMakerPairV3(\n        address account,\n        bool value\n    ) public onlyOwner {\n        require(\n            !automatedMarketMakerPairsV3[account],\n            \"CastleOfBlackwaterToken: AMM Pair v3 already set.\"\n        );\n        _setAutomatedMarketMakerPairV3(account, value);\n    }\n\n    /**\n     * @dev Set accounts (or not) as bots\n     */\n    function setBots(address[] calldata accounts, bool value) public onlyOwner {\n        for (uint256 i = 0; i < accounts.length; i++) {\n            if (\n                (!automatedMarketMakerPairsV2[accounts[i]]) &&\n                (!automatedMarketMakerPairsV3[accounts[i]]) &&\n                (accounts[i] != address(uniswapV2Router)) &&\n                (accounts[i] != address(uniswapV3Router)) &&\n                (accounts[i] != address(this)) &&\n                (!isExcludedFromFees[accounts[i]] &&\n                    !isExcludedMaxTransactionAmount[accounts[i]])\n            ) _setBots(accounts[i], value);\n        }\n    }\n\n    function _transfer(\n        address from,\n        address to,\n        uint256 amount\n    ) internal virtual override {\n        require(\n            from != ZERO_ADDRESS,\n            \"CastleOfBlackwaterToken: transfer from the zero address\"\n        );\n        require(\n            to != ZERO_ADDRESS,\n            \"CastleOfBlackwaterToken: transfer to the zero address\"\n        );\n\n        if (\n            (isExcludedFromFees[from] || isExcludedFromFees[to]) &&\n            (isExcludedMaxTransactionAmount[from] ||\n                isExcludedMaxTransactionAmount[to])\n        ) {\n            super._transfer(from, to, amount);\n            return;\n        }\n\n        address sender = _msgSender();\n        require(!isBot[from], \"CastleOfBlackwaterToken: bot detected\");\n        require(\n            sender == from || !isBot[sender],\n            \"CastleOfBlackwaterToken: bot detected\"\n        );\n        require(\n            tx.origin == from || tx.origin == sender || !isBot[tx.origin],\n            \"CastleOfBlackwaterToken: bot detected\"\n        );\n\n        if (amount == 0) {\n            super._transfer(from, to, 0);\n            return;\n        }\n\n        address ownr = owner();\n\n        require(\n            launched || from == ownr || to == ownr || to == DEAD_ADDRESS,\n            \"CastleOfBlackwaterToken: Not launched.\"\n        );\n\n        require(\n            !_v2LPProtectionEnabled ||\n                (!automatedMarketMakerPairsV2[from] &&\n                    !automatedMarketMakerPairsV2[to]),\n            \"CastleOfBlackwaterToken: Not authorized to trade through Uniswap V2 Pool\"\n        );\n\n        require(\n            !_v3LPProtectionEnabled ||\n                (!automatedMarketMakerPairsV3[from] &&\n                    !automatedMarketMakerPairsV3[to]),\n            \"CastleOfBlackwaterToken: Not authorized to trade through Uniswap V3 Pool\"\n        );\n\n        if (limitsEnabled) {\n            if (\n                automatedMarketMakerPairsV2[from] &&\n                !isExcludedMaxTransactionAmount[to]\n            ) {\n                require(\n                    amount <= maxTransaction,\n                    \"CastleOfBlackwaterToken: Buy transfer amount exceeds the maxTransaction.\"\n                );\n                require(\n                    (amount + balanceOf(to)) <= maxWallet,\n                    \"CastleOfBlackwaterToken: Max wallet exceeded\"\n                );\n            } else if (\n                automatedMarketMakerPairsV2[to] &&\n                !isExcludedMaxTransactionAmount[from]\n            ) {\n                require(\n                    amount <= maxTransaction,\n                    \"CastleOfBlackwaterToken: Sell transfer amount exceeds the maxTransaction.\"\n                );\n            } else if (!isExcludedMaxTransactionAmount[to]) {\n                require(\n                    (amount + balanceOf(to)) <= maxWallet,\n                    \"CastleOfBlackwaterToken: Max wallet exceeded\"\n                );\n            }\n        }\n\n        if (taxesEnabled) {\n            uint256 fees = 0;\n            uint256 totalFees = 0;\n            if (automatedMarketMakerPairsV2[to] && sellFees > 0) {\n                if (block.number > launchBlock) {\n                    totalFees = sellFees;\n                } else {\n                    totalFees = 3000;\n                }\n                fees = (amount * totalFees) / FEES_PERCENT_DENOMINATOR;\n            } else if (automatedMarketMakerPairsV2[from] && buyFees > 0) {\n                if (block.number > launchBlock) {\n                    totalFees = buyFees;\n                } else {\n                    totalFees = 3000;\n                }\n                fees = (amount * totalFees) / FEES_PERCENT_DENOMINATOR;\n            }\n\n            if (fees > 0) {\n                super._burn(from, fees);\n            }\n\n            amount -= fees;\n        }\n\n        super._transfer(from, to, amount);\n    }\n\n    function _excludeFromMaxTransaction(\n        address account,\n        bool value\n    ) internal virtual {\n        isExcludedMaxTransactionAmount[account] = value;\n        emit ExcludeFromMaxTransaction(account, value);\n    }\n\n    function _excludeFromFees(address account, bool value) internal virtual {\n        isExcludedFromFees[account] = value;\n        emit ExcludeFromFees(account, value);\n    }\n\n    function _setBots(address account, bool value) internal virtual {\n        isBot[account] = value;\n        emit SetBots(account, value);\n    }\n\n    function _setAutomatedMarketMakerPairV2(\n        address account,\n        bool value\n    ) internal virtual {\n        automatedMarketMakerPairsV2[account] = value;\n        emit SetAutomatedMarketMakerPairV2(account, value);\n    }\n\n    function _setAutomatedMarketMakerPairV3(\n        address account,\n        bool value\n    ) internal virtual {\n        automatedMarketMakerPairsV3[account] = value;\n        emit SetAutomatedMarketMakerPairV3(account, value);\n    }\n}\n"
      },
      "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol": {
        "content": "pragma solidity >=0.6.2;\n\nimport './IUniswapV2Router01.sol';\n\ninterface IUniswapV2Router02 is IUniswapV2Router01 {\n    function removeLiquidityETHSupportingFeeOnTransferTokens(\n        address token,\n        uint liquidity,\n        uint amountTokenMin,\n        uint amountETHMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountETH);\n    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(\n        address token,\n        uint liquidity,\n        uint amountTokenMin,\n        uint amountETHMin,\n        address to,\n        uint deadline,\n        bool approveMax, uint8 v, bytes32 r, bytes32 s\n    ) external returns (uint amountETH);\n\n    function swapExactTokensForTokensSupportingFeeOnTransferTokens(\n        uint amountIn,\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external;\n    function swapExactETHForTokensSupportingFeeOnTransferTokens(\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external payable;\n    function swapExactTokensForETHSupportingFeeOnTransferTokens(\n        uint amountIn,\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external;\n}\n"
      },
      "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol": {
        "content": "pragma solidity >=0.5.0;\n\ninterface IUniswapV2Factory {\n    event PairCreated(address indexed token0, address indexed token1, address pair, uint);\n\n    function feeTo() external view returns (address);\n    function feeToSetter() external view returns (address);\n\n    function getPair(address tokenA, address tokenB) external view returns (address pair);\n    function allPairs(uint) external view returns (address pair);\n    function allPairsLength() external view returns (uint);\n\n    function createPair(address tokenA, address tokenB) external returns (address pair);\n\n    function setFeeTo(address) external;\n    function setFeeToSetter(address) external;\n}\n"
      },
      "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol": {
        "content": "// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title The interface for the Uniswap V3 Factory\n/// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees\ninterface IUniswapV3Factory {\n    /// @notice Emitted when the owner of the factory is changed\n    /// @param oldOwner The owner before the owner was changed\n    /// @param newOwner The owner after the owner was changed\n    event OwnerChanged(address indexed oldOwner, address indexed newOwner);\n\n    /// @notice Emitted when a pool is created\n    /// @param token0 The first token of the pool by address sort order\n    /// @param token1 The second token of the pool by address sort order\n    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\n    /// @param tickSpacing The minimum number of ticks between initialized ticks\n    /// @param pool The address of the created pool\n    event PoolCreated(\n        address indexed token0,\n        address indexed token1,\n        uint24 indexed fee,\n        int24 tickSpacing,\n        address pool\n    );\n\n    /// @notice Emitted when a new fee amount is enabled for pool creation via the factory\n    /// @param fee The enabled fee, denominated in hundredths of a bip\n    /// @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee\n    event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing);\n\n    /// @notice Returns the current owner of the factory\n    /// @dev Can be changed by the current owner via setOwner\n    /// @return The address of the factory owner\n    function owner() external view returns (address);\n\n    /// @notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled\n    /// @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context\n    /// @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee\n    /// @return The tick spacing\n    function feeAmountTickSpacing(uint24 fee) external view returns (int24);\n\n    /// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist\n    /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order\n    /// @param tokenA The contract address of either token0 or token1\n    /// @param tokenB The contract address of the other token\n    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip\n    /// @return pool The pool address\n    function getPool(\n        address tokenA,\n        address tokenB,\n        uint24 fee\n    ) external view returns (address pool);\n\n    /// @notice Creates a pool for the given two tokens and fee\n    /// @param tokenA One of the two tokens in the desired pool\n    /// @param tokenB The other of the two tokens in the desired pool\n    /// @param fee The desired fee for the pool\n    /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved\n    /// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments\n    /// are invalid.\n    /// @return pool The address of the newly created pool\n    function createPool(\n        address tokenA,\n        address tokenB,\n        uint24 fee\n    ) external returns (address pool);\n\n    /// @notice Updates the owner of the factory\n    /// @dev Must be called by the current owner\n    /// @param _owner The new owner of the factory\n    function setOwner(address _owner) external;\n\n    /// @notice Enables a fee amount with the given tickSpacing\n    /// @dev Fee amounts may never be removed once enabled\n    /// @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)\n    /// @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount\n    function enableFeeAmount(uint24 fee, int24 tickSpacing) external;\n}\n"
      },
      "@openzeppelin/contracts@4.9.6/token/ERC20/utils/SafeERC20.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\nimport \"../extensions/IERC20Permit.sol\";\nimport \"../../../utils/Address.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\n * contract returns false). Tokens that return no value (and instead revert or\n * throw on failure) are also supported, non-reverting calls are assumed to be\n * successful.\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\n */\nlibrary SafeERC20 {\n    using Address for address;\n\n    /**\n     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeTransfer(IERC20 token, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\n    }\n\n    /**\n     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n     */\n    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\n    }\n\n    /**\n     * @dev Deprecated. This function has issues similar to the ones found in\n     * {IERC20-approve}, and its usage is discouraged.\n     *\n     * Whenever possible, use {safeIncreaseAllowance} and\n     * {safeDecreaseAllowance} instead.\n     */\n    function safeApprove(IERC20 token, address spender, uint256 value) internal {\n        // safeApprove should only be called when setting an initial allowance,\n        // or when resetting it to zero. To increase and decrease it, use\n        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\n        require(\n            (value == 0) || (token.allowance(address(this), spender) == 0),\n            \"SafeERC20: approve from non-zero to non-zero allowance\"\n        );\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\n    }\n\n    /**\n     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        uint256 oldAllowance = token.allowance(address(this), spender);\n        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\n    }\n\n    /**\n     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful.\n     */\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n        unchecked {\n            uint256 oldAllowance = token.allowance(address(this), spender);\n            require(oldAllowance >= value, \"SafeERC20: decreased allowance below zero\");\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\n        }\n    }\n\n    /**\n     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n     * to be set to zero before setting it to a non-zero value, such as USDT.\n     */\n    function forceApprove(IERC20 token, address spender, uint256 value) internal {\n        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\n\n        if (!_callOptionalReturnBool(token, approvalCall)) {\n            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\n            _callOptionalReturn(token, approvalCall);\n        }\n    }\n\n    /**\n     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\n     * Revert on invalid signature.\n     */\n    function safePermit(\n        IERC20Permit token,\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        uint256 nonceBefore = token.nonces(owner);\n        token.permit(owner, spender, value, deadline, v, r, s);\n        uint256 nonceAfter = token.nonces(owner);\n        require(nonceAfter == nonceBefore + 1, \"SafeERC20: permit did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     */\n    function _callOptionalReturn(IERC20 token, bytes memory data) private {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\n        // the target address contains contract code and also asserts for success in the low-level call.\n\n        bytes memory returndata = address(token).functionCall(data, \"SafeERC20: low-level call failed\");\n        require(returndata.length == 0 || abi.decode(returndata, (bool)), \"SafeERC20: ERC20 operation did not succeed\");\n    }\n\n    /**\n     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\n     * on the return value: the return value is optional (but if data is returned, it must not be false).\n     * @param token The token targeted by the call.\n     * @param data The call data (encoded using abi.encode or one of its variants).\n     *\n     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\n     */\n    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\n        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\n        // and not revert is the subcall reverts.\n\n        (bool success, bytes memory returndata) = address(token).call(data);\n        return\n            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\n    }\n}\n"
      },
      "@openzeppelin/contracts@4.9.6/token/ERC20/ERC20.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20.sol\";\nimport \"./extensions/IERC20Metadata.sol\";\nimport \"../../utils/Context.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20PresetMinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC20\n * applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n    mapping(address => uint256) private _balances;\n\n    mapping(address => mapping(address => uint256)) private _allowances;\n\n    uint256 private _totalSupply;\n\n    string private _name;\n    string private _symbol;\n\n    /**\n     * @dev Sets the values for {name} and {symbol}.\n     *\n     * All two of these values are immutable: they can only be set once during\n     * construction.\n     */\n    constructor(string memory name_, string memory symbol_) {\n        _name = name_;\n        _symbol = symbol_;\n    }\n\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() public view virtual override returns (string memory) {\n        return _name;\n    }\n\n    /**\n     * @dev Returns the symbol of the token, usually a shorter version of the\n     * name.\n     */\n    function symbol() public view virtual override returns (string memory) {\n        return _symbol;\n    }\n\n    /**\n     * @dev Returns the number of decimals used to get its user representation.\n     * For example, if `decimals` equals `2`, a balance of `505` tokens should\n     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n     *\n     * Tokens usually opt for a value of 18, imitating the relationship between\n     * Ether and Wei. This is the default value returned by this function, unless\n     * it's overridden.\n     *\n     * NOTE: This information is only used for _display_ purposes: it in\n     * no way affects any of the arithmetic of the contract, including\n     * {IERC20-balanceOf} and {IERC20-transfer}.\n     */\n    function decimals() public view virtual override returns (uint8) {\n        return 18;\n    }\n\n    /**\n     * @dev See {IERC20-totalSupply}.\n     */\n    function totalSupply() public view virtual override returns (uint256) {\n        return _totalSupply;\n    }\n\n    /**\n     * @dev See {IERC20-balanceOf}.\n     */\n    function balanceOf(address account) public view virtual override returns (uint256) {\n        return _balances[account];\n    }\n\n    /**\n     * @dev See {IERC20-transfer}.\n     *\n     * Requirements:\n     *\n     * - `to` cannot be the zero address.\n     * - the caller must have a balance of at least `amount`.\n     */\n    function transfer(address to, uint256 amount) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _transfer(owner, to, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-allowance}.\n     */\n    function allowance(address owner, address spender) public view virtual override returns (uint256) {\n        return _allowances[owner][spender];\n    }\n\n    /**\n     * @dev See {IERC20-approve}.\n     *\n     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\n     * `transferFrom`. This is semantically equivalent to an infinite approval.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function approve(address spender, uint256 amount) public virtual override returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, amount);\n        return true;\n    }\n\n    /**\n     * @dev See {IERC20-transferFrom}.\n     *\n     * Emits an {Approval} event indicating the updated allowance. This is not\n     * required by the EIP. See the note at the beginning of {ERC20}.\n     *\n     * NOTE: Does not update the allowance if the current allowance\n     * is the maximum `uint256`.\n     *\n     * Requirements:\n     *\n     * - `from` and `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     * - the caller must have allowance for ``from``'s tokens of at least\n     * `amount`.\n     */\n    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\n        address spender = _msgSender();\n        _spendAllowance(from, spender, amount);\n        _transfer(from, to, amount);\n        return true;\n    }\n\n    /**\n     * @dev Atomically increases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     */\n    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n        address owner = _msgSender();\n        _approve(owner, spender, allowance(owner, spender) + addedValue);\n        return true;\n    }\n\n    /**\n     * @dev Atomically decreases the allowance granted to `spender` by the caller.\n     *\n     * This is an alternative to {approve} that can be used as a mitigation for\n     * problems described in {IERC20-approve}.\n     *\n     * Emits an {Approval} event indicating the updated allowance.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `spender` must have allowance for the caller of at least\n     * `subtractedValue`.\n     */\n    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n        address owner = _msgSender();\n        uint256 currentAllowance = allowance(owner, spender);\n        require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n        unchecked {\n            _approve(owner, spender, currentAllowance - subtractedValue);\n        }\n\n        return true;\n    }\n\n    /**\n     * @dev Moves `amount` of tokens from `from` to `to`.\n     *\n     * This internal function is equivalent to {transfer}, and can be used to\n     * e.g. implement automatic token fees, slashing mechanisms, etc.\n     *\n     * Emits a {Transfer} event.\n     *\n     * Requirements:\n     *\n     * - `from` cannot be the zero address.\n     * - `to` cannot be the zero address.\n     * - `from` must have a balance of at least `amount`.\n     */\n    function _transfer(address from, address to, uint256 amount) internal virtual {\n        require(from != address(0), \"ERC20: transfer from the zero address\");\n        require(to != address(0), \"ERC20: transfer to the zero address\");\n\n        _beforeTokenTransfer(from, to, amount);\n\n        uint256 fromBalance = _balances[from];\n        require(fromBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n        unchecked {\n            _balances[from] = fromBalance - amount;\n            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\n            // decrementing then incrementing.\n            _balances[to] += amount;\n        }\n\n        emit Transfer(from, to, amount);\n\n        _afterTokenTransfer(from, to, amount);\n    }\n\n    /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n     * the total supply.\n     *\n     * Emits a {Transfer} event with `from` set to the zero address.\n     *\n     * Requirements:\n     *\n     * - `account` cannot be the zero address.\n     */\n    function _mint(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: mint to the zero address\");\n\n        _beforeTokenTransfer(address(0), account, amount);\n\n        _totalSupply += amount;\n        unchecked {\n            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\n            _balances[account] += amount;\n        }\n        emit Transfer(address(0), account, amount);\n\n        _afterTokenTransfer(address(0), account, amount);\n    }\n\n    /**\n     * @dev Destroys `amount` tokens from `account`, reducing the\n     * total supply.\n     *\n     * Emits a {Transfer} event with `to` set to the zero address.\n     *\n     * Requirements:\n     *\n     * - `account` cannot be the zero address.\n     * - `account` must have at least `amount` tokens.\n     */\n    function _burn(address account, uint256 amount) internal virtual {\n        require(account != address(0), \"ERC20: burn from the zero address\");\n\n        _beforeTokenTransfer(account, address(0), amount);\n\n        uint256 accountBalance = _balances[account];\n        require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n        unchecked {\n            _balances[account] = accountBalance - amount;\n            // Overflow not possible: amount <= accountBalance <= totalSupply.\n            _totalSupply -= amount;\n        }\n\n        emit Transfer(account, address(0), amount);\n\n        _afterTokenTransfer(account, address(0), amount);\n    }\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n     *\n     * This internal function is equivalent to `approve`, and can be used to\n     * e.g. set automatic allowances for certain subsystems, etc.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `owner` cannot be the zero address.\n     * - `spender` cannot be the zero address.\n     */\n    function _approve(address owner, address spender, uint256 amount) internal virtual {\n        require(owner != address(0), \"ERC20: approve from the zero address\");\n        require(spender != address(0), \"ERC20: approve to the zero address\");\n\n        _allowances[owner][spender] = amount;\n        emit Approval(owner, spender, amount);\n    }\n\n    /**\n     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\n     *\n     * Does not update the allowance amount in case of infinite allowance.\n     * Revert if not enough allowance is available.\n     *\n     * Might emit an {Approval} event.\n     */\n    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\n        uint256 currentAllowance = allowance(owner, spender);\n        if (currentAllowance != type(uint256).max) {\n            require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\n            unchecked {\n                _approve(owner, spender, currentAllowance - amount);\n            }\n        }\n    }\n\n    /**\n     * @dev Hook that is called before any transfer of tokens. This includes\n     * minting and burning.\n     *\n     * Calling conditions:\n     *\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n     * will be transferred to `to`.\n     * - when `from` is zero, `amount` tokens will be minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n     * - `from` and `to` are never both zero.\n     *\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n     */\n    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n\n    /**\n     * @dev Hook that is called after any transfer of tokens. This includes\n     * minting and burning.\n     *\n     * Calling conditions:\n     *\n     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n     * has been transferred to `to`.\n     * - when `from` is zero, `amount` tokens have been minted for `to`.\n     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\n     * - `from` and `to` are never both zero.\n     *\n     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n     */\n    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n}\n"
      },
      "@openzeppelin/contracts@4.9.6/access/Ownable2Step.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./Ownable.sol\";\n\n/**\n * @dev Contract module which provides access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership} and {acceptOwnership}.\n *\n * This module is used through inheritance. It will make available all functions\n * from parent (Ownable).\n */\nabstract contract Ownable2Step is Ownable {\n    address private _pendingOwner;\n\n    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Returns the address of the pending owner.\n     */\n    function pendingOwner() public view virtual returns (address) {\n        return _pendingOwner;\n    }\n\n    /**\n     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual override onlyOwner {\n        _pendingOwner = newOwner;\n        emit OwnershipTransferStarted(owner(), newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual override {\n        delete _pendingOwner;\n        super._transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev The new owner accepts the ownership transfer.\n     */\n    function acceptOwnership() public virtual {\n        address sender = _msgSender();\n        require(pendingOwner() == sender, \"Ownable2Step: caller is not the new owner\");\n        _transferOwnership(sender);\n    }\n}\n"
      },
      "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol": {
        "content": "pragma solidity >=0.6.2;\n\ninterface IUniswapV2Router01 {\n    function factory() external pure returns (address);\n    function WETH() external pure returns (address);\n\n    function addLiquidity(\n        address tokenA,\n        address tokenB,\n        uint amountADesired,\n        uint amountBDesired,\n        uint amountAMin,\n        uint amountBMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountA, uint amountB, uint liquidity);\n    function addLiquidityETH(\n        address token,\n        uint amountTokenDesired,\n        uint amountTokenMin,\n        uint amountETHMin,\n        address to,\n        uint deadline\n    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);\n    function removeLiquidity(\n        address tokenA,\n        address tokenB,\n        uint liquidity,\n        uint amountAMin,\n        uint amountBMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountA, uint amountB);\n    function removeLiquidityETH(\n        address token,\n        uint liquidity,\n        uint amountTokenMin,\n        uint amountETHMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountToken, uint amountETH);\n    function removeLiquidityWithPermit(\n        address tokenA,\n        address tokenB,\n        uint liquidity,\n        uint amountAMin,\n        uint amountBMin,\n        address to,\n        uint deadline,\n        bool approveMax, uint8 v, bytes32 r, bytes32 s\n    ) external returns (uint amountA, uint amountB);\n    function removeLiquidityETHWithPermit(\n        address token,\n        uint liquidity,\n        uint amountTokenMin,\n        uint amountETHMin,\n        address to,\n        uint deadline,\n        bool approveMax, uint8 v, bytes32 r, bytes32 s\n    ) external returns (uint amountToken, uint amountETH);\n    function swapExactTokensForTokens(\n        uint amountIn,\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external returns (uint[] memory amounts);\n    function swapTokensForExactTokens(\n        uint amountOut,\n        uint amountInMax,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external returns (uint[] memory amounts);\n    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)\n        external\n        payable\n        returns (uint[] memory amounts);\n    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)\n        external\n        returns (uint[] memory amounts);\n    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)\n        external\n        returns (uint[] memory amounts);\n    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)\n        external\n        payable\n        returns (uint[] memory amounts);\n\n    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);\n    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);\n    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);\n    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);\n    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);\n}\n"
      },
      "@openzeppelin/contracts@4.9.6/utils/Address.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n    /**\n     * @dev Returns true if `account` is a contract.\n     *\n     * [IMPORTANT]\n     * ====\n     * It is unsafe to assume that an address for which this function returns\n     * false is an externally-owned account (EOA) and not a contract.\n     *\n     * Among others, `isContract` will return false for the following\n     * types of addresses:\n     *\n     *  - an externally-owned account\n     *  - a contract in construction\n     *  - an address where a contract will be created\n     *  - an address where a contract lived, but was destroyed\n     *\n     * Furthermore, `isContract` will also return true if the target contract within\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n     * which only has an effect at the end of a transaction.\n     * ====\n     *\n     * [IMPORTANT]\n     * ====\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\n     *\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n     * constructor.\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n        (bool success, ) = recipient.call{value: amount}(\"\");\n        require(success, \"Address: unable to send value, recipient may have reverted\");\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason, it is bubbled up by this\n     * function (like regular Solidity function calls).\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n     * `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(\n        address target,\n        bytes memory data,\n        uint256 value,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n     *\n     * _Available since v4.8._\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        if (success) {\n            if (returndata.length == 0) {\n                // only check isContract if the call was successful and the return data is empty\n                // otherwise we already know that it was a contract\n                require(isContract(target), \"Address: call to non-contract\");\n            }\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n     * revert reason or using the provided one.\n     *\n     * _Available since v4.3._\n     */\n    function verifyCallResult(\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal pure returns (bytes memory) {\n        if (success) {\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            /// @solidity memory-safe-assembly\n            assembly {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert(errorMessage);\n        }\n    }\n}\n"
      },
      "@openzeppelin/contracts@4.9.6/token/ERC20/extensions/IERC20Permit.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\n *\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\n * need to send a transaction, and thus is not required to hold Ether at all.\n *\n * ==== Security Considerations\n *\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\n * generally recommended is:\n *\n * ```solidity\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\n *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\n *     doThing(..., value);\n * }\n *\n * function doThing(..., uint256 value) public {\n *     token.safeTransferFrom(msg.sender, address(this), value);\n *     ...\n * }\n * ```\n *\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\n * {SafeERC20-safeTransferFrom}).\n *\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\n * contracts should have entry points that don't rely on permit.\n */\ninterface IERC20Permit {\n    /**\n     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\n     * given ``owner``'s signed approval.\n     *\n     * IMPORTANT: The same issues {IERC20-approve} has related to transaction\n     * ordering also apply here.\n     *\n     * Emits an {Approval} event.\n     *\n     * Requirements:\n     *\n     * - `spender` cannot be the zero address.\n     * - `deadline` must be a timestamp in the future.\n     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\n     * over the EIP712-formatted function arguments.\n     * - the signature must use ``owner``'s current nonce (see {nonces}).\n     *\n     * For more information on the signature format, see the\n     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\n     * section].\n     *\n     * CAUTION: See Security Considerations above.\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external;\n\n    /**\n     * @dev Returns the current nonce for `owner`. This value must be\n     * included whenever a signature is generated for {permit}.\n     *\n     * Every successful call to {permit} increases ``owner``'s nonce by one. This\n     * prevents a signature from being used multiple times.\n     */\n    function nonces(address owner) external view returns (uint256);\n\n    /**\n     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\n     */\n    // solhint-disable-next-line func-name-mixedcase\n    function DOMAIN_SEPARATOR() external view returns (bytes32);\n}\n"
      },
      "@openzeppelin/contracts@4.9.6/token/ERC20/IERC20.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n    /**\n     * @dev Emitted when `value` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `value` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 value);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `value` is the new allowance.\n     */\n    event Approval(address indexed owner, address indexed spender, uint256 value);\n\n    /**\n     * @dev Returns the amount of tokens in existence.\n     */\n    function totalSupply() external view returns (uint256);\n\n    /**\n     * @dev Returns the amount of tokens owned by `account`.\n     */\n    function balanceOf(address account) external view returns (uint256);\n\n    /**\n     * @dev Moves `amount` tokens from the caller's account to `to`.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transfer(address to, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Returns the remaining number of tokens that `spender` will be\n     * allowed to spend on behalf of `owner` through {transferFrom}. This is\n     * zero by default.\n     *\n     * This value changes when {approve} or {transferFrom} are called.\n     */\n    function allowance(address owner, address spender) external view returns (uint256);\n\n    /**\n     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * IMPORTANT: Beware that changing an allowance with this method brings the risk\n     * that someone may use both the old and the new allowance by unfortunate\n     * transaction ordering. One possible solution to mitigate this race\n     * condition is to first reduce the spender's allowance to 0 and set the\n     * desired value afterwards:\n     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n     *\n     * Emits an {Approval} event.\n     */\n    function approve(address spender, uint256 amount) external returns (bool);\n\n    /**\n     * @dev Moves `amount` tokens from `from` to `to` using the\n     * allowance mechanism. `amount` is then deducted from the caller's\n     * allowance.\n     *\n     * Returns a boolean value indicating whether the operation succeeded.\n     *\n     * Emits a {Transfer} event.\n     */\n    function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n"
      },
      "@openzeppelin/contracts@4.9.6/utils/Context.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"
      },
      "@openzeppelin/contracts@4.9.6/token/ERC20/extensions/IERC20Metadata.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20Metadata is IERC20 {\n    /**\n     * @dev Returns the name of the token.\n     */\n    function name() external view returns (string memory);\n\n    /**\n     * @dev Returns the symbol of the token.\n     */\n    function symbol() external view returns (string memory);\n\n    /**\n     * @dev Returns the decimals places of the token.\n     */\n    function decimals() external view returns (uint8);\n}\n"
      },
      "@openzeppelin/contracts@4.9.6/access/Ownable.sol": {
        "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the deployer as the initial owner.\n     */\n    constructor() {\n        _transferOwnership(_msgSender());\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n"
      }
    },
    "settings": {
      "optimizer": {
        "enabled": true,
        "runs": 200
      },
      "outputSelection": {
        "*": {
          "*": [
            "evm.bytecode",
            "evm.deployedBytecode",
            "devdoc",
            "userdoc",
            "metadata",
            "abi"
          ]
        }
      }
    }
  }}