{
    "Function": "_redeem",
    "File": "src/InvestmentManager.sol",
    "Parent Contracts": [
        "src/util/Auth.sol"
    ],
    "High-Level Calls": [
        "LiquidityPoolLike",
        "UserEscrowLike"
    ],
    "Internal Calls": [
        "_decreaseRedemptionLimits"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _redeem(\n        uint128 trancheTokenAmount,\n        uint128 currencyAmount,\n        address liquidityPool,\n        address receiver,\n        address user\n    ) internal {\n        LiquidityPoolLike lPool = LiquidityPoolLike(liquidityPool);\n\n        _decreaseRedemptionLimits(user, liquidityPool, currencyAmount, trancheTokenAmount); // decrease the possible deposit limits\n        userEscrow.transferOut(lPool.asset(), user, receiver, currencyAmount);\n\n        emit RedemptionProcessed(liquidityPool, user, trancheTokenAmount);\n    }"
}