use bignumber abs for perp position

This commit is contained in:
tjs 2022-03-21 08:52:41 -04:00
parent 0bf4244f01
commit c79e0869b5
1 changed files with 1 additions and 1 deletions

View File

@ -326,5 +326,5 @@ export function patchInternalMarketName(marketName: string) {
}
export function roundPerpSize(size: number, symbol: string) {
return new BigNumber(size).toFormat(perpContractPrecision[symbol])
return new BigNumber(size).abs().toFormat(perpContractPrecision[symbol])
}