```\nfunction _setAutomatedMarketMakerPair(address pair, bool value) private {\n    automatedMarketMakerPairs[pair] = value;\n\n    if (value) {\n        dividendTracker.excludeFromDividends(pair);\n    }\n\n    emit SetAutomatedMarketMakerPair(pair, value);\n}\n```\n