{
    "Function": "convertToAssets",
    "File": "src/InvestmentManager.sol",
    "Parent Contracts": [
        "src/util/Auth.sol"
    ],
    "High-Level Calls": [
        "LiquidityPoolLike",
        "MathLib"
    ],
    "Internal Calls": [
        "auth",
        "_toUint128",
        "_getPoolDecimals"
    ],
    "Library Calls": [
        "mulDiv"
    ],
    "Low-Level Calls": [],
    "Code": "function convertToAssets(uint256 _shares, address liquidityPool) public view auth returns (uint256 assets) {\n        (uint8 currencyDecimals, uint8 trancheTokenDecimals) = _getPoolDecimals(liquidityPool);\n        uint128 shares = _toUint128(_shares);\n\n        assets = shares.mulDiv(\n            LiquidityPoolLike(liquidityPool).latestPrice(),\n            10 ** (PRICE_DECIMALS + trancheTokenDecimals - currencyDecimals),\n            MathLib.Rounding.Down\n        );\n    }"
}