{
    "Function": "previewRedeem",
    "File": "src/InvestmentManager.sol",
    "Parent Contracts": [
        "src/util/Auth.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "calculateRedeemPrice",
        "_calculateCurrencyAmount",
        "_toUint128"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function previewRedeem(address user, address liquidityPool, uint256 _trancheTokenAmount)\n        public\n        view\n        returns (uint256 currencyAmount)\n    {\n        uint128 trancheTokenAmount = _toUint128(_trancheTokenAmount);\n        uint256 redeemPrice = calculateRedeemPrice(user, liquidityPool);\n        if (redeemPrice == 0) return 0;\n\n        currencyAmount = uint256(_calculateCurrencyAmount(trancheTokenAmount, liquidityPool, redeemPrice));\n    }"
}