@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.js
CHANGED
|
@@ -1343,7 +1343,7 @@ var useMaxQty = (symbol, side, reduceOnly = false) => {
|
|
|
1343
1343
|
positionQty,
|
|
1344
1344
|
buyOrdersQty,
|
|
1345
1345
|
sellOrdersQty,
|
|
1346
|
-
IMR_Factor: accountInfo.imr_factor[
|
|
1346
|
+
IMR_Factor: accountInfo.imr_factor[getSymbolInfo("base")]
|
|
1347
1347
|
});
|
|
1348
1348
|
}, [
|
|
1349
1349
|
orders,
|
|
@@ -2031,7 +2031,6 @@ var useDeposit = () => {
|
|
|
2031
2031
|
}), [state]);
|
|
2032
2032
|
const fetchAllowance = React2.useCallback(() => __async(void 0, null, function* () {
|
|
2033
2033
|
const allowance2 = yield account5.assetsManager.getAllowance();
|
|
2034
|
-
console.log("----- refresh allowance -----", allowance2);
|
|
2035
2034
|
setAllowance(() => allowance2);
|
|
2036
2035
|
return allowance2;
|
|
2037
2036
|
}), []);
|