Skip to content

Commit

Permalink
fix: liq math
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbpvsc committed Nov 9, 2023
1 parent f6fa0f1 commit 55987b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/marginfi-client-v2/src/models/account/pure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class MarginfiAccount {
liabUsdValue.toFixed(6)
);

const maxLiquidatableUsdValue = BigNumber.min(assetsAmountUi, underwaterMaintUsdValue, liabUsdValue);
const maxLiquidatableUsdValue = BigNumber.min(assetsUsdValue, underwaterMaintUsdValue, liabUsdValue);

debug("Max liquidatable usd value: %d", maxLiquidatableUsdValue.toFixed(6));

Expand Down

0 comments on commit 55987b2

Please sign in to comment.