@orderly.network/hooks 0.0.71 → 0.0.72

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.mjs CHANGED
@@ -1377,9 +1377,9 @@ var BaseOrderCreator = class {
1377
1377
  if (totalNumber.lt(quote_min)) {
1378
1378
  errors.total = {
1379
1379
  type: "min",
1380
- message: `Quantity should be greater or equal than ${new Decimal(
1381
- quote_min
1382
- ).todp(quote_dp)}`
1380
+ message: `Quantity must be at least ${new Decimal(quote_min).todp(
1381
+ quote_dp
1382
+ )}`
1383
1383
  };
1384
1384
  } else if (totalNumber.gt(quote_max)) {
1385
1385
  errors.total = {
@@ -4011,7 +4011,7 @@ var useSwap = () => {
4011
4011
  }
4012
4012
  });
4013
4013
  const dstValutDeposit = useCallback(() => {
4014
- const brokerId = configStore.get("onlyTestnet") ? "woofi_dex" : "woofi_pro";
4014
+ const brokerId = configStore.get("brokerId");
4015
4015
  return {
4016
4016
  accountId: account5.accountIdHashStr,
4017
4017
  brokerHash: utils.parseBrokerHash(brokerId),