Skip to content

Commit

Permalink
fund
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo committed Jan 23, 2025
1 parent 0b320d2 commit b8fe2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/abacus-ts/calculators/subaccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function calculatePositionDerivedExtra(
unrealizedPnlPercentInner: updatedUnrealizedPnlPercent,
} = calc(() => {
const entryValue = signedSize.multipliedBy(MustBigNumber(position.baseEntryPrice));
const unrealizedPnlInner = value.minus(entryValue).plus(MustBigNumber(position.baseNetFunding));
const unrealizedPnlInner = value.minus(entryValue);

const scaledLeverage = leverage
? BigNumber.max(leverage.abs(), BIG_NUMBERS.ONE)
Expand Down

0 comments on commit b8fe2f2

Please sign in to comment.