@orderly.network/hooks 0.0.50 → 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 +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
|
@@ -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[getSymbolInfo("base")]
|
|
1338
1338
|
});
|
|
1339
1339
|
}, [
|
|
1340
1340
|
orders,
|
|
@@ -2022,7 +2022,6 @@ var useDeposit = () => {
|
|
|
2022
2022
|
}), [state]);
|
|
2023
2023
|
const fetchAllowance = useCallback(() => __async(void 0, null, function* () {
|
|
2024
2024
|
const allowance2 = yield account5.assetsManager.getAllowance();
|
|
2025
|
-
console.log("----- refresh allowance -----", allowance2);
|
|
2026
2025
|
setAllowance(() => allowance2);
|
|
2027
2026
|
return allowance2;
|
|
2028
2027
|
}), []);
|