{
    "Function": "_whitelistCurrency",
    "File": "contracts/core/modules/ModuleGlobals.sol",
    "Parent Contracts": [
        "contracts/interfaces/IModuleGlobals.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "revert InitParamsInvalid()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _whitelistCurrency(address currency, bool toWhitelist) internal {\n        if (currency == address(0)) revert Errors.InitParamsInvalid();\n        bool prevWhitelisted = _currencyWhitelisted[currency];\n        _currencyWhitelisted[currency] = toWhitelist;\n        emit Events.ModuleGlobalsCurrencyWhitelisted(\n            currency,\n            prevWhitelisted,\n            toWhitelist,\n            block.timestamp\n        );\n    }"
}