@orderly.network/hooks 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1114,7 +1114,7 @@ var usePositionStream = (symbol, options) => {
|
|
|
1114
1114
|
const MMR = positions.MMR({
|
|
1115
1115
|
baseMMR: info("base_mmr"),
|
|
1116
1116
|
baseIMR: info("base_imr"),
|
|
1117
|
-
IMRFactor: accountInfo.imr_factor[
|
|
1117
|
+
IMRFactor: accountInfo.imr_factor[info("base")],
|
|
1118
1118
|
positionNotional: item.notional,
|
|
1119
1119
|
IMR_factor_power: 4 / 5
|
|
1120
1120
|
});
|
|
@@ -1334,7 +1334,7 @@ var useMaxQty = (symbol, side, reduceOnly = false) => {
|
|
|
1334
1334
|
positionQty,
|
|
1335
1335
|
buyOrdersQty,
|
|
1336
1336
|
sellOrdersQty,
|
|
1337
|
-
IMR_Factor: accountInfo.imr_factor[
|
|
1337
|
+
IMR_Factor: accountInfo.imr_factor[symbol]
|
|
1338
1338
|
});
|
|
1339
1339
|
}, [
|
|
1340
1340
|
orders,
|