{
    "Function": "_decreaseRedemptionLimits",
    "File": "src/InvestmentManager.sol",
    "Parent Contracts": [
        "src/util/Auth.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _decreaseRedemptionLimits(address user, address liquidityPool, uint128 _currency, uint128 trancheTokens)\n        internal\n    {\n        LPValues storage lpValues = orderbook[user][liquidityPool];\n        if (lpValues.maxWithdraw < _currency) {\n            lpValues.maxWithdraw = 0;\n        } else {\n            lpValues.maxWithdraw = lpValues.maxWithdraw - _currency;\n        }\n        if (lpValues.maxRedeem < trancheTokens) {\n            lpValues.maxRedeem = 0;\n        } else {\n            lpValues.maxRedeem = lpValues.maxRedeem - trancheTokens;\n        }\n    }"
}