fix bug where unrealised profit was not abs'ed

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2023-03-30 09:39:49 +02:00
parent d0cf3e6b42
commit 613b062e8f
1 changed files with 1 additions and 1 deletions

View File

@ -1478,7 +1478,7 @@ export class PerpPosition {
const baseNative = I80F48.fromI64(
this.basePositionLots.mul(perpMarket.baseLotSize),
);
).abs();
const positionValue = I80F48.fromNumber(
perpMarket.stablePriceModel.stablePrice,
)