{
    "Function": "handleExecutedDecreaseRedeemOrder",
    "File": "src/InvestmentManager.sol",
    "Parent Contracts": [
        "src/util/Auth.sol"
    ],
    "High-Level Calls": [
        "LiquidityPoolLike",
        "LiquidityPoolLike",
        "PoolManagerLike",
        "PoolManagerLike"
    ],
    "Internal Calls": [
        "onlyGateway",
        "require(bool,string)",
        "require(bool,string)",
        "require(bool,string)",
        "require(bool,string)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function handleExecutedDecreaseRedeemOrder(\n        uint64 poolId,\n        bytes16 trancheId,\n        address user,\n        uint128 currency,\n        uint128 trancheTokenPayout\n    ) public onlyGateway {\n        require(trancheTokenPayout != 0, \"InvestmentManager/zero-payout\");\n\n        address _currency = poolManager.currencyIdToAddress(currency);\n        address liquidityPool = poolManager.getLiquidityPool(poolId, trancheId, _currency);\n        require(address(liquidityPool) != address(0), \"InvestmentManager/tranche-does-not-exist\");\n\n        require(\n            LiquidityPoolLike(liquidityPool).checkTransferRestriction(address(0), user, 0),\n            \"InvestmentManager/not-a-member\"\n        );\n\n        require(\n            LiquidityPoolLike(liquidityPool).transferFrom(address(escrow), user, trancheTokenPayout),\n            \"InvestmentManager/trancheTokens-transfer-failed\"\n        );\n    }"
}