use abs value for notional value
This commit is contained in:
parent
3b59771145
commit
dbc66498a9
|
@ -175,8 +175,10 @@ export default function MarketPosition() {
|
|||
<DataLoader />
|
||||
) : perpAccount ? (
|
||||
formatUsdValue(
|
||||
selectedMarket.baseLotsToNumber(perpAccount.basePosition) *
|
||||
mangoGroup.getPrice(marketIndex, mangoGroupCache).toNumber()
|
||||
Math.abs(
|
||||
selectedMarket.baseLotsToNumber(perpAccount.basePosition) *
|
||||
mangoGroup.getPrice(marketIndex, mangoGroupCache).toNumber()
|
||||
)
|
||||
)
|
||||
) : (
|
||||
0
|
||||
|
|
Loading…
Reference in New Issue