@orderly.network/hooks 0.0.47 → 0.0.49
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 +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1111,7 +1111,6 @@ var usePositionStream = (symbol, options) => {
|
|
|
1111
1111
|
const total = totalCollateral.toNumber();
|
|
1112
1112
|
return formatedPositions[0].filter((item) => item.position_qty !== 0).map((item) => {
|
|
1113
1113
|
const info = symbolInfo == null ? void 0 : symbolInfo[item.symbol];
|
|
1114
|
-
console.log("******", accountInfo, info("base"));
|
|
1115
1114
|
const MMR = positions.MMR({
|
|
1116
1115
|
baseMMR: info("base_mmr"),
|
|
1117
1116
|
baseIMR: info("base_imr"),
|
|
@@ -1335,7 +1334,7 @@ var useMaxQty = (symbol, side, reduceOnly = false) => {
|
|
|
1335
1334
|
positionQty,
|
|
1336
1335
|
buyOrdersQty,
|
|
1337
1336
|
sellOrdersQty,
|
|
1338
|
-
IMR_Factor: accountInfo.imr_factor[
|
|
1337
|
+
IMR_Factor: accountInfo.imr_factor[symbol]
|
|
1339
1338
|
});
|
|
1340
1339
|
}, [
|
|
1341
1340
|
orders,
|