fix bug where unrealised profit was not abs'ed
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
1da6493230
commit
47adfa6540
|
@ -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