Small update

This commit is contained in:
Mikhail Gladchenko
2023-03-02 13:18:52 +00:00
parent 37a2db3edd
commit e896e27451
2 changed files with 2 additions and 6 deletions

View File

@@ -53,11 +53,7 @@ export const signCFDOrder = async (
expiration,
buySide: side === 'BUY' ? 1 : 0,
stopPrice: stopPrice !== undefined
? normalizeNumber(
stopPrice,
INTERNAL_ORION_PRECISION,
BigNumber.ROUND_FLOOR,
).toNumber()
? new BigNumber(stopPrice).toNumber()
: undefined,
isPersonalSign: usePersonalSign,
};