Function computeMaxWithdrawable
- computeMaxWithdrawable(
input: {
capacity: bigint;
collateral: bigint;
entireDebt: bigint;
isRecoveryMode: boolean;
price: bigint;
systemColl: bigint;
systemDebt: bigint;
},
): MaxWithdrawable Parameters
- input: {
capacity: bigint;
collateral: bigint;
entireDebt: bigint;
isRecoveryMode: boolean;
price: bigint;
systemColl: bigint;
systemDebt: bigint;
}capacity: bigint
collateral: bigint
entireDebt: bigint
isRecoveryMode: boolean
price: bigint
systemColl: bigint
systemDebt: bigint
The closed form behind maxWithdrawableCollateral, as a pure function.