{
    "Function": "allowPoolCurrency",
    "File": "src/PoolManager.sol",
    "Parent Contracts": [
        "src/util/Auth.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "onlyGateway",
        "require(bool,string)",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function allowPoolCurrency(uint64 poolId, uint128 currency) public onlyGateway {\n        Pool storage pool = pools[poolId];\n        require(pool.createdAt != 0, \"PoolManager/invalid-pool\");\n\n        address currencyAddress = currencyIdToAddress[currency];\n        require(currencyAddress != address(0), \"PoolManager/unknown-currency\");\n\n        pools[poolId].allowedCurrencies[currencyAddress] = true;\n        emit PoolCurrencyAllowed(currency, poolId);\n    }"
}