@rango-dev/widget-embedded 0.1.16-next.11 → 0.1.16-next.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.1.16-next.11",
3
+ "version": "0.1.16-next.13",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -24,13 +24,13 @@
24
24
  "trailingComma": "es5"
25
25
  },
26
26
  "dependencies": {
27
- "@rango-dev/provider-all": "^0.1.14-next.4",
28
- "@rango-dev/queue-manager-core": "^0.1.13-next.1",
29
- "@rango-dev/queue-manager-rango-preset": "^0.1.13-next.1",
30
- "@rango-dev/queue-manager-react": "^0.1.12-next.0",
31
- "@rango-dev/ui": "^0.1.14-next.0",
32
- "@rango-dev/wallets-core": "^0.1.14-next.0",
33
- "@rango-dev/wallets-shared": "^0.1.13-next.0",
27
+ "@rango-dev/provider-all": "^0.1.14-next.13",
28
+ "@rango-dev/queue-manager-core": "^0.1.13-next.15",
29
+ "@rango-dev/queue-manager-rango-preset": "^0.1.13-next.12",
30
+ "@rango-dev/queue-manager-react": "^0.1.12-next.13",
31
+ "@rango-dev/ui": "^0.1.14-next.5",
32
+ "@rango-dev/wallets-core": "^0.1.14-next.13",
33
+ "@rango-dev/wallets-shared": "^0.1.13-next.15",
34
34
  "bignumber.js": "^9.1.1",
35
35
  "copy-to-clipboard": "^3.3.3",
36
36
  "dayjs": "^1.11.7",
@@ -40,8 +40,8 @@
40
40
  "immer": "^9.0.19",
41
41
  "mitt": "^3.0.0",
42
42
  "parcel": "^2.8.0",
43
- "rango-sdk": "^0.1.23",
44
- "rango-types": "^0.1.28",
43
+ "rango-sdk": "^0.1.26",
44
+ "rango-types": "^0.1.31",
45
45
  "react": "^18.2.0",
46
46
  "react-dom": "^18.2.0",
47
47
  "react-i18next": "^12.2.0",
@@ -79,7 +79,7 @@ export function SettingsPage({ supportedSwappers, singleTheme }: PropTypes) {
79
79
  (s) => s.selected
80
80
  )}
81
81
  singleTheme={singleTheme}
82
- customSlippage={customSlippage || NaN}
82
+ customSlippage={customSlippage}
83
83
  onCustomSlippageChange={setCustomSlippage}
84
84
  minSlippage={MIN_SLIPPGAE}
85
85
  maxSlippage={MAX_SLIPPAGE}
@@ -55,17 +55,19 @@ export const useWalletsStore = createSelectors(
55
55
  connectWallet: (accounts) => {
56
56
  const getOneOfWalletsDetails = get().getOneOfWalletsDetails;
57
57
  set((state) => ({
58
- connectedWallets: state.connectedWallets.concat(
59
- accounts.map((account) => ({
60
- balances: [],
61
- address: account.address,
62
- chain: account.chain,
63
- loading: true,
64
- walletType: account.walletType,
65
- error: false,
66
- explorerUrl: null,
67
- }))
68
- ),
58
+ connectedWallets: state.connectedWallets
59
+ .filter((wallet) => wallet.walletType !== accounts[0].walletType)
60
+ .concat(
61
+ accounts.map((account) => ({
62
+ balances: [],
63
+ address: account.address,
64
+ chain: account.chain,
65
+ loading: true,
66
+ walletType: account.walletType,
67
+ error: false,
68
+ explorerUrl: null,
69
+ }))
70
+ ),
69
71
  }));
70
72
  accounts.forEach(async (account) => getOneOfWalletsDetails(account));
71
73
  },
@@ -226,8 +226,7 @@ export function isAccountAndWalletMatched(
226
226
  ) {
227
227
  return (
228
228
  account.address === connectedWallet.address &&
229
- account.chain === connectedWallet.chain &&
230
- account.walletType === connectedWallet.walletType
229
+ account.chain === connectedWallet.chain
231
230
  );
232
231
  }
233
232