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

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.17.25-rc.1",
"version": "0.17.25-rc.2",
"description": "Orion Protocol SDK",
"main": "./lib/esm/index.js",
"module": "./lib/esm/index.js",

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,
};