{
    "Function": "isAllowedAsPoolCurrency",
    "File": "src/PoolManager.sol",
    "Parent Contracts": [
        "src/util/Auth.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "require(bool,string)",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function isAllowedAsPoolCurrency(uint64 poolId, address currencyAddress) public view returns (bool) {\n        uint128 currency = currencyAddressToId[currencyAddress];\n        require(currency != 0, \"PoolManager/unknown-currency\"); // Currency index on the Centrifuge side should start at 1\n        require(pools[poolId].allowedCurrencies[currencyAddress], \"PoolManager/pool-currency-not-allowed\");\n        return true;\n    }"
}