@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 CHANGED
@@ -1120,7 +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("******", accountInfo, info("base"));
1124
1123
  const MMR = futures.positions.MMR({
1125
1124
  baseMMR: info("base_mmr"),
1126
1125
  baseIMR: info("base_imr"),
@@ -1344,7 +1343,7 @@ var useMaxQty = (symbol, side, reduceOnly = false) => {
1344
1343
  positionQty,
1345
1344
  buyOrdersQty,
1346
1345
  sellOrdersQty,
1347
- IMR_Factor: accountInfo.imr_factor[getSymbolInfo("base")]
1346
+ IMR_Factor: accountInfo.imr_factor[symbol]
1348
1347
  });
1349
1348
  }, [
1350
1349
  orders,