From 7f135bf2af666e3d66cdf52901fce0866e169108 Mon Sep 17 00:00:00 2001 From: Jeff Wu Date: Tue, 2 Apr 2024 14:15:56 -0700 Subject: [PATCH] fix: function (#724) --- packages/transaction/src/calculate.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/transaction/src/calculate.ts b/packages/transaction/src/calculate.ts index 1b8ad32f9..fc02f398b 100644 --- a/packages/transaction/src/calculate.ts +++ b/packages/transaction/src/calculate.ts @@ -540,6 +540,8 @@ export function calculateDeleverageWithdraw(i: { }; return calculateCollateral(inputs); } + + return calculateDebtCollateralGivenDepositRiskLimit(i); } export function calculateDebtCollateralGivenDepositRiskLimit({