fix bug where unrealised profit was not abs'ed
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
d0cf3e6b42
commit
613b062e8f
|
@ -1478,7 +1478,7 @@ export class PerpPosition {
|
|||
|
||||
const baseNative = I80F48.fromI64(
|
||||
this.basePositionLots.mul(perpMarket.baseLotSize),
|
||||
);
|
||||
).abs();
|
||||
const positionValue = I80F48.fromNumber(
|
||||
perpMarket.stablePriceModel.stablePrice,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue