```\nfunction setAutomatedMarketMakerPair(address pair, bool value)\n    public\n    onlyOwner\n{\n    require(\n        pair != uniswapV2Pair,\n        "The pair cannot be removed from automatedMarketMakerPairs"\n    );\n\n    _setAutomatedMarketMakerPair(pair, value);\n}\n```\n