{
    "Function": "_isAllowedToInvest",
    "File": "src/InvestmentManager.sol",
    "Parent Contracts": [
        "src/util/Auth.sol"
    ],
    "High-Level Calls": [
        "PoolManagerLike",
        "LiquidityPoolLike"
    ],
    "Internal Calls": [
        "require(bool,string)",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _isAllowedToInvest(uint64 poolId, bytes16 trancheId, address currency, address user)\n        internal\n        returns (bool)\n    {\n        address liquidityPool = poolManager.getLiquidityPool(poolId, trancheId, currency);\n        require(liquidityPool != address(0), \"InvestmentManager/unknown-liquidity-pool\");\n        require(\n            LiquidityPoolLike(liquidityPool).checkTransferRestriction(address(0), user, 0),\n            \"InvestmentManager/not-a-member\"\n        );\n        return true;\n    }"
}