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