@rango-dev/widget-embedded 0.1.10-next.87 → 0.1.10-next.89

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.
@@ -6,7 +6,8 @@ import { create } from 'zustand';
6
6
  import BigNumber, { BigNumber as BigNumber$1 } from 'bignumber.js';
7
7
  import { persist, subscribeWithSelector } from 'zustand/middleware';
8
8
  import { RangoClient, isEvmBlockchain } from 'rango-sdk';
9
- import { Network, isEvmAddress, KEPLR_COMPATIBLE_WALLETS, WalletType, getCosmosExperimentalChainInfo, isCosmosBlockchain } from '@rango-dev/wallets-shared';
9
+ import { Network, isEvmAddress, KEPLR_COMPATIBLE_WALLETS, WalletType, getCosmosExperimentalChainInfo } from '@rango-dev/wallets-shared';
10
+ import { isCosmosBlockchain } from 'rango-types';
10
11
  import { readAccountAddress, useWallets, Provider, Events } from '@rango-dev/wallets-core';
11
12
  import { styled as styled$1 } from '@rango-dev/ui/src/theme';
12
13
  import { allProviders } from '@rango-dev/provider-all';
@@ -73,7 +74,7 @@ const createSelectors = _store => {
73
74
  return store;
74
75
  };
75
76
 
76
- const httpService = /*#__PURE__*/new RangoClient(process.env.REACT_API_KEY);
77
+ const httpService = /*#__PURE__*/new RangoClient(process.env.REACT_APP_API_KEY);
77
78
 
78
79
  const SLIPPAGES = [0.5, 1, 3, 5, 8, 13, 20];
79
80
  const DEFAULT_SLIPPAGE = 1;
@@ -1568,7 +1569,7 @@ const confirmSwap = async () => {
1568
1569
  meta
1569
1570
  } = useMetaStore.getState();
1570
1571
  const userSlippage = customSlippage || slippage;
1571
- if (!fromToken || !toToken || !inputAmount || !initialRoute) return;
1572
+ if (!fromToken || !toToken || !inputAmount || !initialRoute) return undefined;
1572
1573
  if (proceedAnyway) {
1573
1574
  const swapSettings = {
1574
1575
  slippage: userSlippage.toString(),