{
    "Function": "_deposit",
    "File": "src/InvestmentManager.sol",
    "Parent Contracts": [
        "src/util/Auth.sol"
    ],
    "High-Level Calls": [
        "LiquidityPoolLike",
        "LiquidityPoolLike"
    ],
    "Internal Calls": [
        "require(bool,string)",
        "require(bool,string)",
        "_decreaseDepositLimits"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _deposit(uint128 trancheTokenAmount, uint128 currencyAmount, address liquidityPool, address user)\n        internal\n    {\n        LiquidityPoolLike lPool = LiquidityPoolLike(liquidityPool);\n\n        _decreaseDepositLimits(user, liquidityPool, currencyAmount, trancheTokenAmount); // decrease the possible deposit limits\n        require(lPool.checkTransferRestriction(msg.sender, user, 0), \"InvestmentManager/trancheTokens-not-a-member\");\n        require(\n            lPool.transferFrom(address(escrow), user, trancheTokenAmount),\n            \"InvestmentManager/trancheTokens-transfer-failed\"\n        );\n\n        emit DepositProcessed(liquidityPool, user, currencyAmount);\n    }"
}