@orderly.network/hooks 0.0.100 → 0.0.102

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
@@ -3159,7 +3159,7 @@ var useChains = (networkId, options = {}) => {
3159
3159
  dedupingInterval: 36e5
3160
3160
  }
3161
3161
  );
3162
- const { apiBaseUrl } = react.useContext(OrderlyContext);
3162
+ const apiBaseUrl = configStore.get("apiBaseUrl");
3163
3163
  const chains = react.useMemo(() => {
3164
3164
  if (!orderlyChains)
3165
3165
  return void 0;
@@ -3224,7 +3224,7 @@ var useChains = (networkId, options = {}) => {
3224
3224
  }
3225
3225
  }
3226
3226
  ];
3227
- if (apiBaseUrl === "https://dev-api-iap-v2.orderly.org") {
3227
+ if (apiBaseUrl === "https://dev-api-iap-v2.orderly.org" || apiBaseUrl === "https://dev-api-v2.orderly.org") {
3228
3228
  testnetArr.push({
3229
3229
  network_infos: {
3230
3230
  name: "Optimism Goerli",
@@ -3234,7 +3234,7 @@ var useChains = (networkId, options = {}) => {
3234
3234
  currency_symbol: "ETH",
3235
3235
  bridge_enable: true,
3236
3236
  mainnet: false,
3237
- explorer_base_url: "https://goerli.arbiscan.io/",
3237
+ explorer_base_url: "https://goerli-optimism.etherscan.io",
3238
3238
  est_txn_mins: null,
3239
3239
  woofi_dex_cross_chain_router: "",
3240
3240
  woofi_dex_depositor: ""