@orderly.network/hooks 0.0.51 → 0.0.52

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 CHANGED
@@ -1120,12 +1120,6 @@ var usePositionStream = (symbol, options) => {
1120
1120
  const total = totalCollateral.toNumber();
1121
1121
  return formatedPositions[0].filter((item) => item.position_qty !== 0).map((item) => {
1122
1122
  const info = symbolInfo == null ? void 0 : symbolInfo[item.symbol];
1123
- console.log(
1124
- "info -------",
1125
- info("base"),
1126
- accountInfo.imr_factor,
1127
- accountInfo.imr_factor[info("base")]
1128
- );
1129
1123
  const MMR = futures.positions.MMR({
1130
1124
  baseMMR: info("base_mmr"),
1131
1125
  baseIMR: info("base_imr"),
@@ -1349,7 +1343,7 @@ var useMaxQty = (symbol, side, reduceOnly = false) => {
1349
1343
  positionQty,
1350
1344
  buyOrdersQty,
1351
1345
  sellOrdersQty,
1352
- IMR_Factor: accountInfo.imr_factor[symbol]
1346
+ IMR_Factor: accountInfo.imr_factor[getSymbolInfo("base")]
1353
1347
  });
1354
1348
  }, [
1355
1349
  orders,