@rhinestone/deposit-modal 0.7.0 → 0.8.1

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.
Files changed (44) hide show
  1. package/dist/{DepositModalReown-T4RRW5FM.mjs → DepositModalReown-4BSHOQ5Y.mjs} +6 -6
  2. package/dist/{DepositModalReown-CHVDFNEX.cjs → DepositModalReown-UND3DEJH.cjs} +9 -9
  3. package/dist/{WithdrawModalReown-Q6MUMZTX.mjs → WithdrawModalReown-FVXSSGY5.mjs} +5 -5
  4. package/dist/{WithdrawModalReown-YZMZTN6E.cjs → WithdrawModalReown-TVZWJKQI.cjs} +8 -8
  5. package/dist/caip-C_ZYFIGa.d.cts +77 -0
  6. package/dist/caip-C_ZYFIGa.d.ts +77 -0
  7. package/dist/{chunk-J52W34Y7.mjs → chunk-2JPB3PLB.mjs} +2 -2
  8. package/dist/{chunk-XOBLFIGV.cjs → chunk-4NN7UTWQ.cjs} +4 -4
  9. package/dist/{chunk-UZENNYHS.mjs → chunk-7KHEIMWD.mjs} +102 -59
  10. package/dist/{chunk-UN6MEOOA.cjs → chunk-7OKA6GNA.cjs} +293 -137
  11. package/dist/{chunk-QSMPJQTX.cjs → chunk-D3Y7ZBED.cjs} +403 -360
  12. package/dist/{chunk-4JLYWRQA.mjs → chunk-DABKCJVL.mjs} +1 -1
  13. package/dist/{chunk-KUURQOTT.cjs → chunk-HQWZCOMS.cjs} +109 -106
  14. package/dist/{chunk-OYPFPEIT.mjs → chunk-NASHLEVQ.mjs} +304 -148
  15. package/dist/{chunk-CPMHRMPH.mjs → chunk-O5OKA27M.mjs} +55 -23
  16. package/dist/{chunk-6P3WNDED.cjs → chunk-Q3W53BKR.cjs} +7 -7
  17. package/dist/{chunk-CLUR2J72.mjs → chunk-T43VUEJH.mjs} +21 -18
  18. package/dist/{chunk-HH46H6ZI.cjs → chunk-U7SVYWVD.cjs} +56 -24
  19. package/dist/{chunk-K6J3RDDK.mjs → chunk-WK5AFRSP.mjs} +1 -1
  20. package/dist/{chunk-RLMXWLF4.cjs → chunk-XRWQMIBY.cjs} +3 -3
  21. package/dist/constants.cjs +4 -2
  22. package/dist/constants.d.cts +1 -1
  23. package/dist/constants.d.ts +1 -1
  24. package/dist/constants.mjs +5 -3
  25. package/dist/deposit.cjs +6 -6
  26. package/dist/deposit.d.cts +2 -2
  27. package/dist/deposit.d.ts +2 -2
  28. package/dist/deposit.mjs +5 -5
  29. package/dist/index.cjs +11 -7
  30. package/dist/index.d.cts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.mjs +12 -8
  33. package/dist/polymarket.cjs +6 -6
  34. package/dist/polymarket.mjs +3 -3
  35. package/dist/styles.css +29 -0
  36. package/dist/{types-6ROxwyfG.d.cts → types--LQWg_4W.d.cts} +1 -1
  37. package/dist/{types-6ROxwyfG.d.ts → types--LQWg_4W.d.ts} +1 -1
  38. package/dist/withdraw.cjs +5 -5
  39. package/dist/withdraw.d.cts +2 -2
  40. package/dist/withdraw.d.ts +2 -2
  41. package/dist/withdraw.mjs +4 -4
  42. package/package.json +1 -1
  43. package/dist/caip-CsslyHGL.d.cts +0 -62
  44. package/dist/caip-CsslyHGL.d.ts +0 -62
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkXOBLFIGVcjs = require('./chunk-XOBLFIGV.cjs');
10
+ var _chunk4NN7UTWQcjs = require('./chunk-4NN7UTWQ.cjs');
11
11
 
12
12
 
13
13
 
@@ -68,14 +68,14 @@ var _chunkXOBLFIGVcjs = require('./chunk-XOBLFIGV.cjs');
68
68
 
69
69
 
70
70
 
71
- var _chunkUN6MEOOAcjs = require('./chunk-UN6MEOOA.cjs');
72
71
 
73
72
 
74
- var _chunkRLMXWLF4cjs = require('./chunk-RLMXWLF4.cjs');
75
73
 
76
74
 
75
+ var _chunk7OKA6GNAcjs = require('./chunk-7OKA6GNA.cjs');
77
76
 
78
77
 
78
+ var _chunkXRWQMIBYcjs = require('./chunk-XRWQMIBY.cjs');
79
79
 
80
80
 
81
81
 
@@ -103,7 +103,11 @@ var _chunkRLMXWLF4cjs = require('./chunk-RLMXWLF4.cjs');
103
103
 
104
104
 
105
105
 
106
- var _chunkHH46H6ZIcjs = require('./chunk-HH46H6ZI.cjs');
106
+
107
+
108
+
109
+
110
+ var _chunkU7SVYWVDcjs = require('./chunk-U7SVYWVD.cjs');
107
111
 
108
112
  // src/DepositModal.tsx
109
113
 
@@ -148,12 +152,12 @@ function AssetSelectStep({
148
152
  const [error, setError] = _react.useState.call(void 0, null);
149
153
  const defaultAssetId = _react.useMemo.call(void 0, () => {
150
154
  if (!defaultSourceChain || !defaultSourceToken) return null;
151
- return _chunkUN6MEOOAcjs.getAssetId.call(void 0, {
155
+ return _chunk7OKA6GNAcjs.getAssetId.call(void 0, {
152
156
  chainId: defaultSourceChain,
153
157
  token: defaultSourceToken
154
158
  });
155
159
  }, [defaultSourceChain, defaultSourceToken]);
156
- const onTotalBalanceComputedRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
160
+ const onTotalBalanceComputedRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onTotalBalanceComputed);
157
161
  _react.useEffect.call(void 0, () => {
158
162
  let active = true;
159
163
  function emitAssetsUpdate(currentAssets) {
@@ -173,11 +177,11 @@ function AssetSelectStep({
173
177
  try {
174
178
  const portfolio = await service.fetchPortfolio(address);
175
179
  if (!active) return;
176
- const portfolioAssets = _chunkUN6MEOOAcjs.portfolioToAssets.call(void 0, portfolio.tokens);
180
+ const portfolioAssets = _chunk7OKA6GNAcjs.portfolioToAssets.call(void 0, portfolio.tokens);
177
181
  setAssets(portfolioAssets);
178
182
  emitAssetsUpdate(portfolioAssets);
179
183
  const hasNative = portfolioAssets.some(
180
- (asset) => asset.token.toLowerCase() === _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS
184
+ (asset) => asset.token.toLowerCase() === _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS
181
185
  );
182
186
  if (!hasNative) {
183
187
  const nativeAssets = await fetchNativeAssets(
@@ -224,9 +228,9 @@ function AssetSelectStep({
224
228
  if (allowedChainSet && !allowedChainSet.has(a.chainId)) return false;
225
229
  if (allowedTokenSet) {
226
230
  if (!allowedTokenSet.has(a.symbol.toUpperCase())) return false;
227
- if (!_chunkHH46H6ZIcjs.isSupportedTokenAddressForChain.call(void 0, a.token, a.chainId)) return false;
231
+ if (!_chunkU7SVYWVDcjs.isSupportedTokenAddressForChain.call(void 0, a.token, a.chainId)) return false;
228
232
  }
229
- const isNativeToken = a.token.toLowerCase() === _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS;
233
+ const isNativeToken = a.token.toLowerCase() === _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS;
230
234
  if (!isNativeToken && !(typeof a.balanceUsd === "number" && a.balanceUsd >= 0.01))
231
235
  return false;
232
236
  return true;
@@ -254,7 +258,7 @@ function AssetSelectStep({
254
258
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
255
259
  const numeric = Number(raw);
256
260
  if (!Number.isFinite(numeric)) return raw;
257
- return _chunkUN6MEOOAcjs.tokenFormatter.format(numeric);
261
+ return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
258
262
  } catch (e3) {
259
263
  return asset.balance;
260
264
  }
@@ -262,20 +266,20 @@ function AssetSelectStep({
262
266
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
263
267
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
264
268
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
265
- _chunkUN6MEOOAcjs.BodyHeader,
269
+ _chunk7OKA6GNAcjs.BodyHeader,
266
270
  {
267
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}),
271
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
268
272
  title: "Your assets",
269
273
  subtitle: "Select source assets to transfer"
270
274
  }
271
275
  ),
272
276
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
273
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, { className: "rs-text-tertiary" }),
277
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, { className: "rs-text-tertiary" }),
274
278
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
275
279
  ] }),
276
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
280
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
277
281
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
278
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, { className: "rs-empty-icon" }),
282
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, { className: "rs-empty-icon" }),
279
283
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
280
284
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
281
285
  address.slice(0, 6),
@@ -295,9 +299,8 @@ function AssetSelectStep({
295
299
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((asset) => {
296
300
  const isSelected = selectedAssetId === asset.id;
297
301
  const tokenAmount = formatBalance(asset);
298
- const badge = _chunkHH46H6ZIcjs.getChainBadge.call(void 0, asset.chainId);
299
- const tokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, asset.symbol);
300
- const chainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, asset.chainId);
302
+ const badge = _chunkU7SVYWVDcjs.getChainBadge.call(void 0, asset.chainId);
303
+ const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, asset.chainId);
301
304
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
302
305
  "button",
303
306
  {
@@ -308,12 +311,18 @@ function AssetSelectStep({
308
311
  children: [
309
312
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
310
313
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
311
- tokenIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: tokenIcon, alt: asset.symbol }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: asset.symbol.slice(0, 4) }),
314
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
315
+ _chunk7OKA6GNAcjs.TokenIcon,
316
+ {
317
+ symbol: asset.symbol,
318
+ fallback: asset.symbol.slice(0, 4)
319
+ }
320
+ ) }),
312
321
  chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
313
322
  "img",
314
323
  {
315
324
  src: chainIcon,
316
- alt: _chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId)
325
+ alt: _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId)
317
326
  }
318
327
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
319
328
  "span",
@@ -332,7 +341,7 @@ function AssetSelectStep({
332
341
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-name", children: asset.symbol }),
333
342
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-asset-chain", children: [
334
343
  "on ",
335
- _chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId)
344
+ _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId)
336
345
  ] })
337
346
  ] }),
338
347
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-balance-small", children: [
@@ -342,14 +351,14 @@ function AssetSelectStep({
342
351
  ] })
343
352
  ] })
344
353
  ] }),
345
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkUN6MEOOAcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
354
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunk7OKA6GNAcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
346
355
  ]
347
356
  },
348
357
  asset.id
349
358
  );
350
359
  }) }),
351
360
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
352
- _chunkUN6MEOOAcjs.Button,
361
+ _chunk7OKA6GNAcjs.Button,
353
362
  {
354
363
  onClick: () => selectedAsset && onContinue(selectedAsset),
355
364
  disabled: !selectedAsset,
@@ -358,27 +367,27 @@ function AssetSelectStep({
358
367
  }
359
368
  )
360
369
  ] }),
361
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
370
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
362
371
  ] });
363
372
  }
364
373
  async function fetchNativeAssets(address, publicClient, existing) {
365
374
  const existingIds = new Set(existing.map((asset) => asset.id));
366
375
  const connectedChainId = _optionalChain([publicClient, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.id]);
367
376
  if (!connectedChainId) return [];
368
- if (!_chunkHH46H6ZIcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
369
- const id = _chunkUN6MEOOAcjs.getAssetId.call(void 0, {
377
+ if (!_chunkU7SVYWVDcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
378
+ const id = _chunk7OKA6GNAcjs.getAssetId.call(void 0, {
370
379
  chainId: connectedChainId,
371
- token: _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS
380
+ token: _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS
372
381
  });
373
382
  if (existingIds.has(id)) return [];
374
383
  try {
375
384
  const balance = await publicClient.getBalance({ address });
376
- const nativeSymbol = _chunkHH46H6ZIcjs.getNativeSymbol.call(void 0, connectedChainId);
385
+ const nativeSymbol = _chunkU7SVYWVDcjs.getNativeSymbol.call(void 0, connectedChainId);
377
386
  return [
378
387
  {
379
388
  id,
380
389
  chainId: connectedChainId,
381
- token: _chunkHH46H6ZIcjs.NATIVE_TOKEN_ADDRESS,
390
+ token: _chunkU7SVYWVDcjs.NATIVE_TOKEN_ADDRESS,
382
391
  symbol: nativeSymbol,
383
392
  name: nativeSymbol,
384
393
  decimals: 18,
@@ -539,8 +548,8 @@ function AmountStep({
539
548
  const chainMismatch = Boolean(
540
549
  _optionalChain([walletClient, 'optionalAccess', _14 => _14.chain, 'optionalAccess', _15 => _15.id]) && walletClient.chain.id !== asset.chainId
541
550
  );
542
- const targetSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
543
- const isSourceStablecoin = _chunkHH46H6ZIcjs.isStablecoinSymbol.call(void 0, asset.symbol);
551
+ const targetSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
552
+ const isSourceStablecoin = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, asset.symbol);
544
553
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
545
554
  if (tokenPriceUsdOverride !== void 0 && tokenPriceUsdOverride > 0)
546
555
  return tokenPriceUsdOverride;
@@ -564,7 +573,7 @@ function AmountStep({
564
573
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
565
574
  if (!balanceTarget || !publicClient) return;
566
575
  try {
567
- const bal = _chunkUN6MEOOAcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
576
+ const bal = _chunk7OKA6GNAcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
568
577
  address: asset.token,
569
578
  abi: _viem.erc20Abi,
570
579
  functionName: "balanceOf",
@@ -585,7 +594,7 @@ function AmountStep({
585
594
  hasAttemptedSwitch.current = true;
586
595
  switchChain(asset.chainId).catch((err) => {
587
596
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
588
- setError(_chunkUN6MEOOAcjs.formatUserError.call(void 0, raw));
597
+ setError(_chunk7OKA6GNAcjs.formatUserError.call(void 0, raw));
589
598
  });
590
599
  }
591
600
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -638,7 +647,7 @@ function AmountStep({
638
647
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
639
648
  const numeric = Number(raw);
640
649
  if (!Number.isFinite(numeric)) return raw;
641
- return _chunkUN6MEOOAcjs.tokenFormatter.format(numeric);
650
+ return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
642
651
  } catch (e8) {
643
652
  return "\u2026";
644
653
  }
@@ -657,7 +666,7 @@ function AmountStep({
657
666
  return null;
658
667
  }
659
668
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, asset.decimals]);
660
- const minDepositUsd = targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkHH46H6ZIcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
669
+ const minDepositUsd = targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkU7SVYWVDcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _16 => _16.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]), () => ( null));
661
670
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _18 => _18.maxDepositUsd]), () => ( null));
662
671
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && amountUsd < minDepositUsd;
663
672
  const isAboveMax = maxDepositUsd !== null && amountUsd > maxDepositUsd;
@@ -753,13 +762,11 @@ function AmountStep({
753
762
  };
754
763
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
755
764
  const continueDisabled = chainMismatch || isCheckingLiquidity || exceedsBalance || numericAmount === 0 && !isBelowMin || balance === null;
756
- const sourceChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId);
757
- const targetChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
758
- const sourceTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, asset.symbol);
759
- const targetTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, targetSymbol);
765
+ const sourceChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId);
766
+ const targetChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
760
767
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
761
768
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
762
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}), title: "Wallet deposit" }),
769
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Wallet deposit" }),
763
770
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
764
771
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
765
772
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -779,13 +786,13 @@ function AmountStep({
779
786
  " available",
780
787
  balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
781
788
  " (~",
782
- _chunkUN6MEOOAcjs.currencyFormatter.format(balanceUsd),
789
+ _chunk7OKA6GNAcjs.currencyFormatter.format(balanceUsd),
783
790
  ")"
784
791
  ] })
785
792
  ] }),
786
793
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
787
794
  "Min. deposit ",
788
- _chunkUN6MEOOAcjs.currencyFormatter.format(minDepositUsd)
795
+ _chunk7OKA6GNAcjs.currencyFormatter.format(minDepositUsd)
789
796
  ] })
790
797
  ] })
791
798
  ] }),
@@ -810,7 +817,7 @@ function AmountStep({
810
817
  " ",
811
818
  asset.symbol
812
819
  ] }),
813
- sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
820
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: asset.symbol }) })
814
821
  ] })
815
822
  ] }),
816
823
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -821,18 +828,18 @@ function AmountStep({
821
828
  " ",
822
829
  targetSymbol
823
830
  ] }),
824
- targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
831
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetSymbol }) })
825
832
  ] })
826
833
  ] }),
827
834
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
828
835
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
829
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkUN6MEOOAcjs.currencyFormatter.format(balanceAfterUsd) })
836
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk7OKA6GNAcjs.currencyFormatter.format(balanceAfterUsd) })
830
837
  ] })
831
838
  ] }),
832
- targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
833
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
839
+ targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
840
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
834
841
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
835
- _chunkUN6MEOOAcjs.Button,
842
+ _chunk7OKA6GNAcjs.Button,
836
843
  {
837
844
  onClick: handleContinue,
838
845
  fullWidth: true,
@@ -843,7 +850,7 @@ function AmountStep({
843
850
  }
844
851
  )
845
852
  ] }),
846
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
853
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
847
854
  ] });
848
855
  }
849
856
 
@@ -883,28 +890,30 @@ function ConfirmStep({
883
890
  _optionalChain([walletClient, 'optionalAccess', _24 => _24.chain, 'optionalAccess', _25 => _25.id]) && walletClient.chain.id !== asset.chainId
884
891
  );
885
892
  const sameRoute = targetChain === asset.chainId && targetToken.toLowerCase() === asset.token.toLowerCase();
886
- const targetSymbol = sameRoute ? asset.symbol : _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
887
- const sourceChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId);
888
- const targetChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
889
- const sourceChainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, asset.chainId);
890
- const targetChainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, targetChain);
891
- const sourceTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, asset.symbol);
892
- const targetTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, targetSymbol);
893
- const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunkUN6MEOOAcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
893
+ const targetSymbol = sameRoute ? asset.symbol : _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
894
+ const sourceChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId);
895
+ const targetChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
896
+ const sourceChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, asset.chainId);
897
+ const targetChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, targetChain);
898
+ const formattedSendAmount = amount && Number.isFinite(Number(amount)) ? _nullishCoalesce(_chunk7OKA6GNAcjs.formatTokenAmount.call(void 0, Number(amount), asset.symbol), () => ( "0")) : "0";
894
899
  const receiveDisplay = (() => {
895
900
  if (sameRoute) return `${formattedSendAmount} ${asset.symbol}`;
896
901
  if (quote) {
897
- const quoted = _chunkUN6MEOOAcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
902
+ const quoted = _chunk7OKA6GNAcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol);
898
903
  if (quoted !== void 0) return quoted;
899
904
  }
900
905
  const usdValue = Number(targetAmount);
901
906
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
902
- const estimate = _chunkUN6MEOOAcjs.formatReceiveEstimate.call(void 0, {
907
+ const estimate = _chunk7OKA6GNAcjs.formatReceiveEstimate.call(void 0, {
903
908
  sourceAmount: Number.isFinite(Number(amount)) ? Number(amount) : void 0,
904
909
  sourceSymbol: asset.symbol,
905
910
  targetSymbol,
906
911
  sourceAmountUsd,
907
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
912
+ sourceTrusted: _chunk7OKA6GNAcjs.isRecognizedToken.call(void 0, asset.token, asset.chainId),
913
+ // The target is the curated deposit destination, so a stablecoin target
914
+ // estimates at $1 when unquoted (DepositFlow skips fetching stablecoin
915
+ // target prices). Not applied to the source — that can be a held token.
916
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk7OKA6GNAcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
908
917
  });
909
918
  if (estimate !== void 0) return estimate;
910
919
  return targetSymbol;
@@ -918,7 +927,7 @@ function ConfirmStep({
918
927
  hasAttemptedSwitch.current = true;
919
928
  switchChain(asset.chainId).catch((err) => {
920
929
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
921
- setError(_chunkUN6MEOOAcjs.formatUserError.call(void 0, raw));
930
+ setError(_chunk7OKA6GNAcjs.formatUserError.call(void 0, raw));
922
931
  });
923
932
  }
924
933
  }, [chainMismatch, switchChain, asset.chainId]);
@@ -998,7 +1007,7 @@ function ConfirmStep({
998
1007
  const result = await executeTransfer(amountUnits);
999
1008
  hash = result.txHash;
1000
1009
  resolvedSourceToken = result.sourceToken;
1001
- } else if (_chunkUN6MEOOAcjs.isNativeAsset.call(void 0, asset)) {
1010
+ } else if (_chunk7OKA6GNAcjs.isNativeAsset.call(void 0, asset)) {
1002
1011
  hash = await walletClient.sendTransaction({
1003
1012
  account,
1004
1013
  chain,
@@ -1025,7 +1034,7 @@ function ConfirmStep({
1025
1034
  );
1026
1035
  } catch (err) {
1027
1036
  const raw = err instanceof Error ? err.message : "Transfer failed";
1028
- const message = _chunkUN6MEOOAcjs.formatUserError.call(void 0, raw);
1037
+ const message = _chunk7OKA6GNAcjs.formatUserError.call(void 0, raw);
1029
1038
  setError(message);
1030
1039
  _optionalChain([onError, 'optionalCall', _31 => _31(message, "TRANSFER_ERROR")]);
1031
1040
  } finally {
@@ -1034,7 +1043,7 @@ function ConfirmStep({
1034
1043
  };
1035
1044
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
1036
1045
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
1037
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}), title: "Review deposit" }),
1046
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Review deposit" }),
1038
1047
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
1039
1048
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1040
1049
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -1062,14 +1071,14 @@ function ConfirmStep({
1062
1071
  " ",
1063
1072
  asset.symbol
1064
1073
  ] }),
1065
- sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
1074
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: asset.symbol }) })
1066
1075
  ] })
1067
1076
  ] }),
1068
1077
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1069
1078
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
1070
1079
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1071
1080
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1072
- targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
1081
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetSymbol }) })
1073
1082
  ] })
1074
1083
  ] }),
1075
1084
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1088,14 +1097,14 @@ function ConfirmStep({
1088
1097
  children: feeDisplay
1089
1098
  }
1090
1099
  ),
1091
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.InfoIcon, {}) }) })
1100
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, {}) }) })
1092
1101
  ] })
1093
1102
  ] })
1094
1103
  ] }),
1095
- targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1096
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
1104
+ targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
1105
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
1097
1106
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1098
- _chunkUN6MEOOAcjs.Button,
1107
+ _chunk7OKA6GNAcjs.Button,
1099
1108
  {
1100
1109
  onClick: handleConfirm,
1101
1110
  loading: isSubmitting,
@@ -1106,7 +1115,7 @@ function ConfirmStep({
1106
1115
  }
1107
1116
  )
1108
1117
  ] }),
1109
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
1118
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
1110
1119
  ] });
1111
1120
  }
1112
1121
 
@@ -1129,9 +1138,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1129
1138
  var MAX_POLL_INTERVAL = 3e4;
1130
1139
  var BACKOFF_MULTIPLIER = 1.5;
1131
1140
  function isEventForTx(event, txHash) {
1132
- const eventTxHash = _chunkUN6MEOOAcjs.getEventTxHash.call(void 0, event);
1141
+ const eventTxHash = _chunk7OKA6GNAcjs.getEventTxHash.call(void 0, event);
1133
1142
  if (!eventTxHash) return false;
1134
- return _chunkUN6MEOOAcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1143
+ return _chunk7OKA6GNAcjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1135
1144
  }
1136
1145
  function truncateHash(hash) {
1137
1146
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1181,7 +1190,7 @@ function formatBridgeFailedMessage(event) {
1181
1190
  }
1182
1191
  return "Bridge failed";
1183
1192
  }
1184
- var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1193
+ var txLinkIcon = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ExternalLinkIcon, { className: "rs-deposit-notification-link-icon" });
1185
1194
  function DepositNotification({
1186
1195
  deposit,
1187
1196
  smartAccount,
@@ -1215,7 +1224,7 @@ function DepositNotification({
1215
1224
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1216
1225
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1217
1226
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1218
- const depositContextRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, {
1227
+ const depositContextRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, {
1219
1228
  amount,
1220
1229
  sourceChain,
1221
1230
  sourceToken: token,
@@ -1223,8 +1232,8 @@ function DepositNotification({
1223
1232
  targetChain,
1224
1233
  targetToken
1225
1234
  });
1226
- const onCompleteRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onComplete);
1227
- const onFailedRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onFailed);
1235
+ const onCompleteRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onComplete);
1236
+ const onFailedRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onFailed);
1228
1237
  const handleComplete = _react.useCallback.call(void 0,
1229
1238
  (destTxHash) => {
1230
1239
  if (completedRef.current) return;
@@ -1315,11 +1324,11 @@ function DepositNotification({
1315
1324
  status,
1316
1325
  txHash
1317
1326
  ]);
1318
- const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkHH46H6ZIcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1319
- const destExplorerUrl = destinationTxHash ? _chunkHH46H6ZIcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1327
+ const sourceExplorerUrl = sourceChain === "unknown" ? void 0 : _chunkU7SVYWVDcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1328
+ const destExplorerUrl = destinationTxHash ? _chunkU7SVYWVDcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1320
1329
  const title = status === "complete" ? "Deposit completed" : status === "failed" ? "Deposit failed" : "Deposit received and processing\u2026";
1321
1330
  const subtitle = status === "complete" ? "Your deposit has been credited to your account." : status === "failed" ? "Your deposit could not be processed." : "Your deposit will be credited to your account shortly.";
1322
- const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1331
+ const statusIcon = status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--complete", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CheckIcon, {}) }) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--failed", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1323
1332
  "svg",
1324
1333
  {
1325
1334
  className: "rs-deposit-notification-spinner",
@@ -1369,7 +1378,7 @@ function DepositNotification({
1369
1378
  className: "rs-deposit-notification-close",
1370
1379
  onClick: () => onDismiss(deposit.id),
1371
1380
  "aria-label": "Dismiss",
1372
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CloseIcon, {})
1381
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {})
1373
1382
  }
1374
1383
  )
1375
1384
  ] }),
@@ -1385,7 +1394,7 @@ function DepositNotification({
1385
1394
  "aria-expanded": expanded,
1386
1395
  children: [
1387
1396
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: expanded ? "See less details" : "See more details" }),
1388
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1397
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-notification-toggle-chevron" })
1389
1398
  ]
1390
1399
  }
1391
1400
  ),
@@ -1456,6 +1465,7 @@ function asNumber(value) {
1456
1465
  function asChainId(value) {
1457
1466
  if (typeof value === "string") {
1458
1467
  if (value.startsWith("solana")) return "solana";
1468
+ if (value.startsWith("hypercore")) return "hypercore";
1459
1469
  const eip155Match = value.match(/^eip155:(\d+)$/);
1460
1470
  if (eip155Match) return Number(eip155Match[1]);
1461
1471
  }
@@ -1474,7 +1484,7 @@ function asString(value) {
1474
1484
  function resolveSolanaTokenMeta(token) {
1475
1485
  if (!token) return {};
1476
1486
  const normalized = token.toLowerCase();
1477
- const matched = _chunkHH46H6ZIcjs.SOLANA_TOKENS.find(
1487
+ const matched = _chunkU7SVYWVDcjs.SOLANA_TOKENS.find(
1478
1488
  (entry) => entry.mint.toLowerCase() === normalized
1479
1489
  );
1480
1490
  if (matched) {
@@ -1517,20 +1527,30 @@ function isSameRoute(sourceChain, sourceToken, targetChain, targetToken) {
1517
1527
  return sourceChain === targetChain && sourceToken.toLowerCase() === targetToken.toLowerCase();
1518
1528
  }
1519
1529
  function chainLabel(chainId) {
1520
- return _chunkHH46H6ZIcjs.getChainName.call(void 0, chainId).replace(/\s+(One|Mainnet|Smart Chain)$/i, "");
1530
+ return _chunkU7SVYWVDcjs.getChainName.call(void 0, chainId).replace(/\s+(One|Mainnet|Smart Chain)$/i, "");
1521
1531
  }
1522
1532
  function computeTokensForChain(chainId, allowedTokenSet, topTokens) {
1523
1533
  const fromBackend = _optionalChain([topTokens, 'optionalAccess', _53 => _53[String(chainId)], 'optionalAccess', _54 => _54.map, 'call', _55 => _55((t) => t.symbol)]);
1524
- const all = _nullishCoalesce(fromBackend, () => ( (chainId === "solana" ? _chunkHH46H6ZIcjs.SOLANA_TOKENS.map((t) => t.symbol) : _chunkHH46H6ZIcjs.getTargetTokenSymbolsForChain.call(void 0, chainId))));
1534
+ const all = _nullishCoalesce(fromBackend, () => ( (chainId === "solana" ? _chunkU7SVYWVDcjs.SOLANA_TOKENS.map((t) => t.symbol) : (
1535
+ // HyperCore accepts USDC + USDT0 as origin tokens (native Hyperliquid L1
1536
+ // spot transfers); it has no EVM source-chain matrix entry.
1537
+ chainId === "hypercore" ? ["USDC", "USDT0"] : _chunkU7SVYWVDcjs.getTargetTokenSymbolsForChain.call(void 0, chainId)
1538
+ ))));
1525
1539
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
1526
1540
  }
1527
1541
  function resolveSourceTokenAddress(symbol, chainId, topTokens) {
1528
1542
  const top = _optionalChain([topTokens, 'optionalAccess', _56 => _56[String(chainId)], 'optionalAccess', _57 => _57.find, 'call', _58 => _58((t) => t.symbol === symbol)]);
1529
- return _nullishCoalesce(_optionalChain([top, 'optionalAccess', _59 => _59.address]), () => ( _chunkHH46H6ZIcjs.getTokenAddress.call(void 0, symbol, chainId)));
1543
+ return _nullishCoalesce(_optionalChain([top, 'optionalAccess', _59 => _59.address]), () => ( _chunkU7SVYWVDcjs.getTokenAddress.call(void 0, symbol, chainId)));
1530
1544
  }
1531
1545
  function TokenGlyph({ symbol }) {
1532
- const icon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, symbol);
1533
- return icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: icon, alt: "", className: "rs-deposit-address-dropdown-icon" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-deposit-address-dropdown-icon rs-deposit-address-dropdown-icon--fallback", children: symbol.slice(0, 3) });
1546
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1547
+ _chunk7OKA6GNAcjs.TokenIcon,
1548
+ {
1549
+ symbol,
1550
+ className: "rs-deposit-address-dropdown-icon",
1551
+ fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-deposit-address-dropdown-icon rs-deposit-address-dropdown-icon--fallback", children: symbol.slice(0, 3) })
1552
+ }
1553
+ );
1534
1554
  }
1535
1555
  function pickFallbackToken(tokens, current) {
1536
1556
  if (tokens.includes(current)) return current;
@@ -1561,22 +1581,28 @@ function DepositAddressStep({
1561
1581
  [_optionalChain([allowedRoutes, 'optionalAccess', _63 => _63.sourceTokens])]
1562
1582
  );
1563
1583
  const evmChainIds = _react.useMemo.call(void 0, () => {
1564
- const all = _chunkHH46H6ZIcjs.getSupportedChainIds.call(void 0, );
1584
+ const all = _chunkU7SVYWVDcjs.getSupportedChainIds.call(void 0, );
1565
1585
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
1566
1586
  }, [allowedChainSet]);
1567
1587
  const chainOptions = _react.useMemo.call(void 0, () => {
1568
- if (!hasSolana) return evmChainIds;
1569
1588
  const options = [...evmChainIds];
1570
- options.splice(1, 0, "solana");
1589
+ const extras = [];
1590
+ if (hasSolana) extras.push("solana");
1591
+ if (!allowedChainSet || allowedChainSet.has(_chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID)) {
1592
+ extras.push("hypercore");
1593
+ }
1594
+ options.splice(1, 0, ...extras);
1571
1595
  return options;
1572
- }, [evmChainIds, hasSolana]);
1596
+ }, [evmChainIds, hasSolana, allowedChainSet]);
1573
1597
  const BASE_CHAIN_ID2 = 8453;
1574
- const chainHasAllowedToken = (id) => !allowedTokenSet || _chunkHH46H6ZIcjs.getTargetTokenSymbolsForChain.call(void 0, id).some(
1598
+ const chainHasAllowedToken = (id) => !allowedTokenSet || _chunkU7SVYWVDcjs.getTargetTokenSymbolsForChain.call(void 0, id).some(
1575
1599
  (s) => allowedTokenSet.has(s.toUpperCase())
1576
1600
  );
1577
- const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID2) && chainHasAllowedToken(BASE_CHAIN_ID2) ? BASE_CHAIN_ID2 : _nullishCoalesce(evmChainIds.find(chainHasAllowedToken), () => ( evmChainIds[0]));
1601
+ const evmDefault = evmChainIds.includes(BASE_CHAIN_ID2) && chainHasAllowedToken(BASE_CHAIN_ID2) ? BASE_CHAIN_ID2 : _nullishCoalesce(evmChainIds.find(chainHasAllowedToken), () => ( evmChainIds[0]));
1602
+ const defaultChainId = _nullishCoalesce(evmDefault, () => ( chainOptions[0]));
1578
1603
  const [sourceChainId, setSourceChainId] = _react.useState.call(void 0, defaultChainId);
1579
1604
  const isSolana = sourceChainId === "solana";
1605
+ const isHyperCore = sourceChainId === "hypercore";
1580
1606
  const [topTokens, setTopTokens] = _react.useState.call(void 0, null);
1581
1607
  _react.useEffect.call(void 0, () => {
1582
1608
  let active = true;
@@ -1613,7 +1639,7 @@ function DepositAddressStep({
1613
1639
  kind: "idle"
1614
1640
  });
1615
1641
  _react.useEffect.call(void 0, () => {
1616
- if (isSolana) {
1642
+ if (isSolana || isHyperCore) {
1617
1643
  setLiquidityHelper({ kind: "idle" });
1618
1644
  return;
1619
1645
  }
@@ -1657,6 +1683,7 @@ function DepositAddressStep({
1657
1683
  };
1658
1684
  }, [
1659
1685
  isSolana,
1686
+ isHyperCore,
1660
1687
  sourceChainId,
1661
1688
  sourceTokenSymbol,
1662
1689
  targetChain,
@@ -1767,10 +1794,10 @@ function DepositAddressStep({
1767
1794
  return;
1768
1795
  }
1769
1796
  const event = status.lastEvent;
1770
- const eventTxHash = _chunkUN6MEOOAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkUN6MEOOAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1797
+ const eventTxHash = _chunk7OKA6GNAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk7OKA6GNAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1771
1798
  if (baselineTxHashRef.current === void 0) {
1772
1799
  baselineTxHashRef.current = eventTxHash;
1773
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkUN6MEOOAcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1800
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunk7OKA6GNAcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
1774
1801
  const details = getDepositEventDetails(event);
1775
1802
  const chainId = _nullishCoalesce(details.chainId, () => ( "unknown"));
1776
1803
  const amount = _nullishCoalesce(details.amount, () => ( "0"));
@@ -1779,7 +1806,7 @@ function DepositAddressStep({
1779
1806
  baselineTxHashRef.current = eventTxHash;
1780
1807
  isTrackingRef.current = true;
1781
1808
  const isEvmToken = token ? /^0x[a-fA-F0-9]{40}$/.test(token) : false;
1782
- const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkHH46H6ZIcjs.findTokenDecimals.call(void 0,
1809
+ const sourceDecimals = _nullishCoalesce(details.sourceDecimals, () => ( (isEvmToken ? _chunkU7SVYWVDcjs.findTokenDecimals.call(void 0,
1783
1810
  token,
1784
1811
  typeof chainId === "number" ? chainId : void 0
1785
1812
  ) : void 0)));
@@ -1844,10 +1871,10 @@ function DepositAddressStep({
1844
1871
  const handleNotificationDismiss = _react.useCallback.call(void 0, (id) => {
1845
1872
  setNotifications((prev) => prev.filter((n) => n.id !== id));
1846
1873
  }, []);
1847
- const qrIconSrc = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, sourceChainId);
1874
+ const qrIconSrc = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId);
1848
1875
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-step--with-notifications", children: [
1849
1876
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
1850
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1877
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
1851
1878
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", children: [
1852
1879
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", ref: chainDropdownRef, children: [
1853
1880
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -1862,16 +1889,16 @@ function DepositAddressStep({
1862
1889
  setTokenDropdownOpen(false);
1863
1890
  },
1864
1891
  children: [
1865
- _chunkHH46H6ZIcjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1892
+ _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1866
1893
  "img",
1867
1894
  {
1868
- src: _chunkHH46H6ZIcjs.getChainIcon.call(void 0, sourceChainId),
1895
+ src: _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId),
1869
1896
  alt: "",
1870
1897
  className: "rs-deposit-address-dropdown-icon"
1871
1898
  }
1872
1899
  ),
1873
1900
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainLabel(sourceChainId) }),
1874
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1901
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1875
1902
  ]
1876
1903
  }
1877
1904
  ),
@@ -1882,10 +1909,10 @@ function DepositAddressStep({
1882
1909
  className: `rs-deposit-address-dropdown-item ${chainId === sourceChainId ? "rs-deposit-address-dropdown-item--active" : ""}`,
1883
1910
  onClick: () => handleSelectChain(chainId),
1884
1911
  children: [
1885
- _chunkHH46H6ZIcjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1912
+ _chunkU7SVYWVDcjs.getChainIcon.call(void 0, chainId) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1886
1913
  "img",
1887
1914
  {
1888
- src: _chunkHH46H6ZIcjs.getChainIcon.call(void 0, chainId),
1915
+ src: _chunkU7SVYWVDcjs.getChainIcon.call(void 0, chainId),
1889
1916
  alt: "",
1890
1917
  className: "rs-deposit-address-dropdown-icon"
1891
1918
  }
@@ -1901,9 +1928,9 @@ function DepositAddressStep({
1901
1928
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Supported token" }),
1902
1929
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
1903
1930
  "Min.$",
1904
- (targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkHH46H6ZIcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _79 => _79.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _80 => _80.minDepositUsd]), () => ( 0.1))).toFixed(2),
1905
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1906
- _chunkUN6MEOOAcjs.InfoIcon,
1931
+ (targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID || isHyperCore ? Math.max(_chunkU7SVYWVDcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _79 => _79.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _80 => _80.minDepositUsd]), () => ( 0.1))).toFixed(2),
1932
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1933
+ _chunk7OKA6GNAcjs.InfoIcon,
1907
1934
  {
1908
1935
  className: "rs-deposit-address-min-icon",
1909
1936
  "aria-hidden": "true"
@@ -1924,7 +1951,7 @@ function DepositAddressStep({
1924
1951
  children: [
1925
1952
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TokenGlyph, { symbol: sourceTokenSymbol }),
1926
1953
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceTokenSymbol }),
1927
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1954
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
1928
1955
  ]
1929
1956
  }
1930
1957
  ),
@@ -1968,7 +1995,7 @@ function DepositAddressStep({
1968
1995
  className: "rs-deposit-address-copy",
1969
1996
  onClick: handleCopy,
1970
1997
  children: [
1971
- copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CopyIcon, {}),
1998
+ copied ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CopyIcon, {}),
1972
1999
  copied ? "Copied!" : "Copy address"
1973
2000
  ]
1974
2001
  }
@@ -1976,7 +2003,7 @@ function DepositAddressStep({
1976
2003
  ]
1977
2004
  }
1978
2005
  ),
1979
- targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
2006
+ targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "HyperCore's first deposit to a new account includes a ~1 USDC activation fee \u2014 send at least 1 USDC or it will fail." }),
1980
2007
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1981
2008
  "div",
1982
2009
  {
@@ -1994,16 +2021,16 @@ function DepositAddressStep({
1994
2021
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
1995
2022
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
1996
2023
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1997
- _chunkUN6MEOOAcjs.Tooltip,
2024
+ _chunk7OKA6GNAcjs.Tooltip,
1998
2025
  {
1999
2026
  className: "rs-price-impact-info",
2000
2027
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2001
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.InfoIcon, { "aria-hidden": "true" })
2028
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, { "aria-hidden": "true" })
2002
2029
  }
2003
2030
  )
2004
2031
  ] }),
2005
2032
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2006
- _chunkUN6MEOOAcjs.ChevronDownIcon,
2033
+ _chunk7OKA6GNAcjs.ChevronDownIcon,
2007
2034
  {
2008
2035
  className: "rs-price-impact-chevron",
2009
2036
  "aria-hidden": "true"
@@ -2014,29 +2041,29 @@ function DepositAddressStep({
2014
2041
  ),
2015
2042
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-price-impact-panel", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-panel-inner", children: [
2016
2043
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2017
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PercentIcon, {}) }),
2044
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PercentIcon, {}) }),
2018
2045
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2019
2046
  "Max slippage: ",
2020
2047
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.2%" })
2021
2048
  ] }),
2022
2049
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2023
- _chunkUN6MEOOAcjs.Tooltip,
2050
+ _chunk7OKA6GNAcjs.Tooltip,
2024
2051
  {
2025
2052
  className: "rs-price-impact-info",
2026
2053
  content: "Slippage accounts for price changes during execution. Slippage is adjusted per pair to ensure reliable execution.",
2027
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.InfoIcon, { "aria-hidden": "true" })
2054
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, { "aria-hidden": "true" })
2028
2055
  }
2029
2056
  )
2030
2057
  ] }),
2031
2058
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2032
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ClockIcon, {}) }),
2059
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ClockIcon, {}) }),
2033
2060
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2034
2061
  "Processing time: ",
2035
2062
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "< 1 min" })
2036
2063
  ] })
2037
2064
  ] }),
2038
2065
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-price-impact-row", children: [
2039
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PlusCircleIcon, {}) }),
2066
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-row-icon", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PlusCircleIcon, {}) }),
2040
2067
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-price-impact-label", children: [
2041
2068
  "Max deposit:",
2042
2069
  " ",
@@ -2067,7 +2094,7 @@ function DepositAddressStep({
2067
2094
  },
2068
2095
  deposit.id
2069
2096
  )) }),
2070
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
2097
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2071
2098
  ] });
2072
2099
  }
2073
2100
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2115,7 +2142,7 @@ function FinalisingDepositStep() {
2115
2142
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "rs-finalising-subtitle", children: "We are depositing your funds to the application." })
2116
2143
  ] })
2117
2144
  ] }),
2118
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
2145
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2119
2146
  ] });
2120
2147
  }
2121
2148
  FinalisingDepositStep.displayName = "FinalisingDepositStep";
@@ -2145,7 +2172,7 @@ function SwappedOrderTracker({
2145
2172
  ];
2146
2173
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-swapped-tracker", children: [
2147
2174
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2148
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.HandCoinsIcon, {}), title }),
2175
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HandCoinsIcon, {}), title }),
2149
2176
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "rs-swapped-tracker-steps", children: labels.map((label, idx) => {
2150
2177
  const status = stepStates[idx];
2151
2178
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -2159,7 +2186,7 @@ function SwappedOrderTracker({
2159
2186
  {
2160
2187
  className: "rs-swapped-tracker-step-marker",
2161
2188
  "aria-hidden": "true",
2162
- children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2189
+ children: status === "complete" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CheckIcon, {}) : status === "failed" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {}) : status === "active" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2163
2190
  "svg",
2164
2191
  {
2165
2192
  className: "rs-swapped-tracker-step-ring",
@@ -2194,7 +2221,7 @@ function SwappedOrderTracker({
2194
2221
  }
2195
2222
  )
2196
2223
  ] }),
2197
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
2224
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2198
2225
  ] });
2199
2226
  }
2200
2227
  function formatTrackerAmount(amount) {
@@ -2394,10 +2421,10 @@ function SwappedIframeStep({
2394
2421
  const status = await service.fetchLatestStatus(smartAccount);
2395
2422
  if (cancelled) return;
2396
2423
  const event = status.lastEvent;
2397
- const eventTxHash = _chunkUN6MEOOAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkUN6MEOOAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2424
+ const eventTxHash = _chunk7OKA6GNAcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk7OKA6GNAcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2398
2425
  if (baselineDepositTxHashRef.current === void 0) {
2399
2426
  baselineDepositTxHashRef.current = eventTxHash;
2400
- } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunkUN6MEOOAcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2427
+ } else if (eventTxHash && (!baselineDepositTxHashRef.current || !_chunk7OKA6GNAcjs.txRefsMatch.call(void 0, eventTxHash, baselineDepositTxHashRef.current))) {
2401
2428
  currentDepositTxHashRef.current = eventTxHash;
2402
2429
  setLatestEvent(_nullishCoalesce(event, () => ( null)));
2403
2430
  }
@@ -2471,10 +2498,10 @@ function SwappedIframeStep({
2471
2498
  [orderState, latestEvent]
2472
2499
  );
2473
2500
  const terminalState = _react.useMemo.call(void 0, () => {
2474
- if (_chunkUN6MEOOAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2501
+ if (_chunk7OKA6GNAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2475
2502
  return {
2476
2503
  kind: "failed",
2477
- message: _chunkUN6MEOOAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2504
+ message: _chunk7OKA6GNAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2478
2505
  };
2479
2506
  }
2480
2507
  if (_optionalChain([orderState, 'optionalAccess', _97 => _97.status]) === "order_cancelled") {
@@ -2497,7 +2524,7 @@ function SwappedIframeStep({
2497
2524
  orderCrypto: _nullishCoalesce(_optionalChain([orderState, 'optionalAccess', _99 => _99.orderCrypto]), () => ( null)),
2498
2525
  // Base-unit source amount from the deposit row/event, consistent with the
2499
2526
  // wallet/QR path. ProcessingStep + onLifecycle expect base units.
2500
- amount: _nullishCoalesce(_chunkUN6MEOOAcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
2527
+ amount: _nullishCoalesce(_chunk7OKA6GNAcjs.getEventSourceDetails.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0))).amount, () => ( null)),
2501
2528
  expectedOrderUuid: expectedOrderUuidRef.current,
2502
2529
  initialEvent: _nullishCoalesce(latestEvent, () => ( void 0))
2503
2530
  };
@@ -2508,14 +2535,14 @@ function SwappedIframeStep({
2508
2535
  }, [latestEvent, orderState, smartAccount]);
2509
2536
  _react.useEffect.call(void 0, () => {
2510
2537
  if (failedFiredRef.current || completeFiredRef.current) return;
2511
- if (!_chunkUN6MEOOAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2538
+ if (!_chunk7OKA6GNAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) return;
2512
2539
  const txHash = currentDepositTxHashRef.current;
2513
2540
  if (!txHash) return;
2514
2541
  failedFiredRef.current = true;
2515
2542
  setPhase("tracker");
2516
2543
  _optionalChain([onSwappedFailedRef, 'access', _100 => _100.current, 'optionalCall', _101 => _101(
2517
2544
  txHash,
2518
- _chunkUN6MEOOAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2545
+ _chunk7OKA6GNAcjs.failureMessageForEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))
2519
2546
  )]);
2520
2547
  }, [latestEvent]);
2521
2548
  const immersive = variant === "fiat" && phase === "iframe" && !loadError;
@@ -2554,7 +2581,7 @@ function SwappedIframeStep({
2554
2581
  }
2555
2582
  )
2556
2583
  ] }),
2557
- !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, {}) }),
2584
+ !loadError && !iframeLoaded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-fiat-onramp-loading", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, {}) }),
2558
2585
  widgetUrl && !loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2559
2586
  "iframe",
2560
2587
  {
@@ -2569,11 +2596,11 @@ function SwappedIframeStep({
2569
2596
  retryToken
2570
2597
  )
2571
2598
  ] }) }),
2572
- loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
2599
+ loadError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2573
2600
  ] });
2574
2601
  }
2575
2602
  function deriveStepStates(swappedStatus, latestEvent) {
2576
- if (_chunkUN6MEOOAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2603
+ if (_chunk7OKA6GNAcjs.isFailedEvent.call(void 0, _nullishCoalesce(latestEvent, () => ( void 0)))) {
2577
2604
  return ["complete", "complete", "failed", "pending"];
2578
2605
  }
2579
2606
  if (swappedStatus === "order_cancelled") {
@@ -2749,7 +2776,7 @@ ExchangeConnectStep.displayName = "ExchangeConnectStep";
2749
2776
  function ExchangeLogo({ exchange }) {
2750
2777
  const [failed, setFailed] = _react.useState.call(void 0, false);
2751
2778
  if (!exchange.logoUrl || failed) {
2752
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BankIcon, {});
2779
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BankIcon, {});
2753
2780
  }
2754
2781
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2755
2782
  "img",
@@ -2795,14 +2822,14 @@ function ExchangeSelectStep({
2795
2822
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen rs-exchange-select", children: [
2796
2823
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2797
2824
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2798
- _chunkUN6MEOOAcjs.BodyHeader,
2825
+ _chunk7OKA6GNAcjs.BodyHeader,
2799
2826
  {
2800
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.UnplugIcon, {}),
2827
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.UnplugIcon, {}),
2801
2828
  title: "Connect exchange",
2802
2829
  subtitle: "Select an exchange to connect"
2803
2830
  }
2804
2831
  ),
2805
- loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, {}) }),
2832
+ loading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, {}) }),
2806
2833
  !loading && error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-exchange-select-state", "aria-live": "polite", children: [
2807
2834
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-select-state-title", children: "Couldn\u2019t load exchanges" }),
2808
2835
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -2828,7 +2855,7 @@ function ExchangeSelectStep({
2828
2855
  )
2829
2856
  ] }),
2830
2857
  !loading && !error && exchanges.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-exchange-grid", children: exchanges.map((exchange) => {
2831
- const brand = _chunkUN6MEOOAcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2858
+ const brand = _chunk7OKA6GNAcjs.getExchangeLogo.call(void 0, exchange.name, exchange.connection);
2832
2859
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
2833
2860
  "button",
2834
2861
  {
@@ -2851,7 +2878,7 @@ function ExchangeSelectStep({
2851
2878
  );
2852
2879
  }) })
2853
2880
  ] }),
2854
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
2881
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2855
2882
  ] });
2856
2883
  }
2857
2884
  ExchangeSelectStep.displayName = "ExchangeSelectStep";
@@ -2866,22 +2893,21 @@ function DepositAddressSkeleton({
2866
2893
  const allowedChainSet = _optionalChain([allowedRoutes, 'optionalAccess', _111 => _111.sourceChains]) ? new Set(allowedRoutes.sourceChains) : null;
2867
2894
  const allowedTokenSet = _optionalChain([allowedRoutes, 'optionalAccess', _112 => _112.sourceTokens]) ? new Set(allowedRoutes.sourceTokens.map((s) => s.toUpperCase())) : null;
2868
2895
  const evmChainIds = (() => {
2869
- const all = _chunkHH46H6ZIcjs.getSupportedChainIds.call(void 0, );
2896
+ const all = _chunkU7SVYWVDcjs.getSupportedChainIds.call(void 0, );
2870
2897
  return allowedChainSet ? all.filter((id) => allowedChainSet.has(id)) : all;
2871
2898
  })();
2872
2899
  const defaultChainId = evmChainIds.includes(BASE_CHAIN_ID) ? BASE_CHAIN_ID : evmChainIds[0];
2873
2900
  const tokensForChain = (() => {
2874
- const all = _chunkHH46H6ZIcjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2901
+ const all = _chunkU7SVYWVDcjs.getTargetTokenSymbolsForChain.call(void 0, defaultChainId);
2875
2902
  return allowedTokenSet ? all.filter((s) => allowedTokenSet.has(s.toUpperCase())) : all;
2876
2903
  })();
2877
2904
  const defaultToken = tokensForChain.includes("USDC") ? "USDC" : _nullishCoalesce(tokensForChain[0], () => ( "USDC"));
2878
- const chainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, defaultChainId);
2879
- const chainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, defaultChainId);
2880
- const tokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, defaultToken);
2905
+ const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, defaultChainId);
2906
+ const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, defaultChainId);
2881
2907
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", "aria-busy": "true", children: [
2882
2908
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: "Preparing deposit details\u2026" }),
2883
2909
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
2884
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2910
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TransferCryptoIcon, {}), title: "Transfer crypto" }),
2885
2911
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-selectors", "aria-hidden": "true", children: [
2886
2912
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
2887
2913
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-dropdown-label", children: "Supported chain" }),
@@ -2895,7 +2921,7 @@ function DepositAddressSkeleton({
2895
2921
  }
2896
2922
  ),
2897
2923
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
2898
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2924
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2899
2925
  ] })
2900
2926
  ] }),
2901
2927
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown", children: [
@@ -2904,8 +2930,8 @@ function DepositAddressSkeleton({
2904
2930
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-deposit-address-min", children: [
2905
2931
  "Min.$",
2906
2932
  (_nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _113 => _113.minDepositUsd]), () => ( 0.1))).toFixed(2),
2907
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2908
- _chunkUN6MEOOAcjs.InfoIcon,
2933
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Tooltip, { content: "Minimum deposit amount required for the selected chain.", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2934
+ _chunk7OKA6GNAcjs.InfoIcon,
2909
2935
  {
2910
2936
  className: "rs-deposit-address-min-icon",
2911
2937
  "aria-hidden": "true"
@@ -2914,16 +2940,15 @@ function DepositAddressSkeleton({
2914
2940
  ] })
2915
2941
  ] }),
2916
2942
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-deposit-address-dropdown-trigger", children: [
2917
- tokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2918
- "img",
2943
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2944
+ _chunk7OKA6GNAcjs.TokenIcon,
2919
2945
  {
2920
- src: tokenIcon,
2921
- alt: "",
2946
+ symbol: defaultToken,
2922
2947
  className: "rs-deposit-address-dropdown-icon"
2923
2948
  }
2924
2949
  ),
2925
2950
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: defaultToken }),
2926
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2951
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronDownIcon, { className: "rs-deposit-address-dropdown-chevron" })
2927
2952
  ] })
2928
2953
  ] })
2929
2954
  ] }),
@@ -2944,7 +2969,7 @@ function DepositAddressSkeleton({
2944
2969
  disabled: true,
2945
2970
  "aria-hidden": "true",
2946
2971
  children: [
2947
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CopyIcon, {}),
2972
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CopyIcon, {}),
2948
2973
  "Copy address"
2949
2974
  ]
2950
2975
  }
@@ -2957,16 +2982,16 @@ function DepositAddressSkeleton({
2957
2982
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: "Price impact" }),
2958
2983
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-price-impact-label", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "strong", { children: "0.00%" }) }),
2959
2984
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2960
- _chunkUN6MEOOAcjs.Tooltip,
2985
+ _chunk7OKA6GNAcjs.Tooltip,
2961
2986
  {
2962
2987
  className: "rs-price-impact-info",
2963
2988
  content: "Price impact is the difference between expected and execution price, due to trade size and liquidity.",
2964
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.InfoIcon, { "aria-hidden": "true" })
2989
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, { "aria-hidden": "true" })
2965
2990
  }
2966
2991
  )
2967
2992
  ] }),
2968
2993
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2969
- _chunkUN6MEOOAcjs.ChevronDownIcon,
2994
+ _chunk7OKA6GNAcjs.ChevronDownIcon,
2970
2995
  {
2971
2996
  className: "rs-price-impact-chevron",
2972
2997
  "aria-hidden": "true"
@@ -2974,7 +2999,7 @@ function DepositAddressSkeleton({
2974
2999
  )
2975
3000
  ] }) })
2976
3001
  ] }),
2977
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
3002
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
2978
3003
  ] });
2979
3004
  }
2980
3005
  DepositAddressSkeleton.displayName = "DepositAddressSkeleton";
@@ -3006,14 +3031,14 @@ function SolanaTokenSelectStep({
3006
3031
  setError(null);
3007
3032
  const portfolioBySymbol = {};
3008
3033
  try {
3009
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3034
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
3010
3035
  solanaAddress
3011
3036
  });
3012
3037
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
3013
3038
  if (!active) return;
3014
3039
  for (const t of portfolio.tokens) {
3015
3040
  const symbol = t.symbol.toUpperCase();
3016
- if (!_chunkHH46H6ZIcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3041
+ if (!_chunkU7SVYWVDcjs.SOLANA_TOKENS.some((st) => st.symbol === symbol)) continue;
3017
3042
  let parsed = 0n;
3018
3043
  try {
3019
3044
  parsed = BigInt(t.balance || "0");
@@ -3029,12 +3054,12 @@ function SolanaTokenSelectStep({
3029
3054
  };
3030
3055
  }
3031
3056
  }
3032
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3057
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
3033
3058
  symbols: Object.keys(portfolioBySymbol)
3034
3059
  });
3035
3060
  } catch (err) {
3036
3061
  if (!active) return;
3037
- _chunkUN6MEOOAcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3062
+ _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
3038
3063
  solanaAddress
3039
3064
  });
3040
3065
  setError(
@@ -3045,7 +3070,7 @@ function SolanaTokenSelectStep({
3045
3070
  return;
3046
3071
  }
3047
3072
  const results = [];
3048
- for (const token of _chunkHH46H6ZIcjs.SOLANA_TOKENS) {
3073
+ for (const token of _chunkU7SVYWVDcjs.SOLANA_TOKENS) {
3049
3074
  const fromPortfolio = portfolioBySymbol[token.symbol];
3050
3075
  if (fromPortfolio && fromPortfolio.balance > 0n) {
3051
3076
  results.push({
@@ -3081,30 +3106,30 @@ function SolanaTokenSelectStep({
3081
3106
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
3082
3107
  const numeric = Number(raw);
3083
3108
  if (!Number.isFinite(numeric)) return raw;
3084
- return _chunkUN6MEOOAcjs.tokenFormatter.format(numeric);
3109
+ return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
3085
3110
  } catch (e22) {
3086
3111
  return "--";
3087
3112
  }
3088
3113
  };
3089
- const chainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, "solana");
3090
- const chainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, "solana");
3114
+ const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, "solana");
3115
+ const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, "solana");
3091
3116
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3092
3117
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
3093
3118
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3094
- _chunkUN6MEOOAcjs.BodyHeader,
3119
+ _chunk7OKA6GNAcjs.BodyHeader,
3095
3120
  {
3096
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}),
3121
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
3097
3122
  title: "Your assets",
3098
3123
  subtitle: "Select source assets to transfer"
3099
3124
  }
3100
3125
  ),
3101
3126
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
3102
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, { className: "rs-text-tertiary" }),
3127
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, { className: "rs-text-tertiary" }),
3103
3128
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
3104
3129
  ] }),
3105
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
3130
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
3106
3131
  !loading && !error && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
3107
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, { className: "rs-empty-icon" }),
3132
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, { className: "rs-empty-icon" }),
3108
3133
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-empty-text", children: "No funds in connected wallet" }),
3109
3134
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-address", children: [
3110
3135
  solanaAddress.slice(0, 6),
@@ -3124,7 +3149,6 @@ function SolanaTokenSelectStep({
3124
3149
  !loading && !error && rows.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: rows.map((entry) => {
3125
3150
  const isSelected = selectedSymbol === entry.token.symbol;
3126
3151
  const tokenAmount = formatBalance(entry);
3127
- const tokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, entry.token.symbol);
3128
3152
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3129
3153
  "button",
3130
3154
  {
@@ -3135,7 +3159,13 @@ function SolanaTokenSelectStep({
3135
3159
  children: [
3136
3160
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3137
3161
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3138
- tokenIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: tokenIcon, alt: entry.token.symbol }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: entry.token.symbol.slice(0, 4) }),
3162
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3163
+ _chunk7OKA6GNAcjs.TokenIcon,
3164
+ {
3165
+ symbol: entry.token.symbol,
3166
+ fallback: entry.token.symbol.slice(0, 4)
3167
+ }
3168
+ ) }),
3139
3169
  chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: chainIcon, alt: chainName }) })
3140
3170
  ] }),
3141
3171
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-text", children: [
@@ -3153,14 +3183,14 @@ function SolanaTokenSelectStep({
3153
3183
  ] })
3154
3184
  ] })
3155
3185
  ] }),
3156
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkUN6MEOOAcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3186
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunk7OKA6GNAcjs.currencyFormatter.format(entry.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${entry.token.symbol}` : "--" })
3157
3187
  ]
3158
3188
  },
3159
3189
  entry.token.symbol
3160
3190
  );
3161
3191
  }) }),
3162
3192
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3163
- _chunkUN6MEOOAcjs.Button,
3193
+ _chunk7OKA6GNAcjs.Button,
3164
3194
  {
3165
3195
  onClick: () => selectedEntry && onContinue(
3166
3196
  selectedEntry.token,
@@ -3173,7 +3203,7 @@ function SolanaTokenSelectStep({
3173
3203
  }
3174
3204
  )
3175
3205
  ] }),
3176
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
3206
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3177
3207
  ] });
3178
3208
  }
3179
3209
 
@@ -3197,7 +3227,6 @@ function SolanaAmountStep({
3197
3227
  targetChain,
3198
3228
  targetChainName,
3199
3229
  targetTokenSymbol,
3200
- targetTokenIcon,
3201
3230
  appBalanceUsd,
3202
3231
  onContinue,
3203
3232
  debug
@@ -3205,7 +3234,7 @@ function SolanaAmountStep({
3205
3234
  const [amount, setAmount] = _react.useState.call(void 0, "");
3206
3235
  const [error, setError] = _react.useState.call(void 0, null);
3207
3236
  const hasAppliedDefaultRef = _react.useRef.call(void 0, false);
3208
- const isSourceStablecoin = _chunkHH46H6ZIcjs.isStablecoinSymbol.call(void 0, token.symbol);
3237
+ const isSourceStablecoin = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, token.symbol);
3209
3238
  const isMaxDefault = _optionalChain([defaultAmount, 'optionalAccess', _115 => _115.trim, 'call', _116 => _116(), 'access', _117 => _117.toLowerCase, 'call', _118 => _118()]) === "max";
3210
3239
  const tokenPriceUsd = _react.useMemo.call(void 0, () => {
3211
3240
  if (isSourceStablecoin) return 1;
@@ -3226,7 +3255,7 @@ function SolanaAmountStep({
3226
3255
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
3227
3256
  const numeric = Number(raw);
3228
3257
  if (!Number.isFinite(numeric)) return raw;
3229
- return _chunkUN6MEOOAcjs.tokenFormatter.format(numeric);
3258
+ return _chunk7OKA6GNAcjs.tokenFormatter.format(numeric);
3230
3259
  } catch (e24) {
3231
3260
  return "\u2026";
3232
3261
  }
@@ -3243,7 +3272,7 @@ function SolanaAmountStep({
3243
3272
  }
3244
3273
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
3245
3274
  const spendableBalance = _react.useMemo.call(void 0, () => {
3246
- if (!_chunkHH46H6ZIcjs.isNativeSol.call(void 0, token)) return balance;
3275
+ if (!_chunkU7SVYWVDcjs.isNativeSol.call(void 0, token)) return balance;
3247
3276
  return balance > SOL_FEE_RESERVE_LAMPORTS ? balance - SOL_FEE_RESERVE_LAMPORTS : 0n;
3248
3277
  }, [balance, token]);
3249
3278
  const spendableBalanceUsd = _react.useMemo.call(void 0, () => {
@@ -3308,7 +3337,7 @@ function SolanaAmountStep({
3308
3337
  return null;
3309
3338
  }
3310
3339
  }, [numericAmount, isSourceStablecoin, hasPricing, tokenPriceUsd, token.decimals]);
3311
- const minDepositUsd = targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkHH46H6ZIcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _119 => _119.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _120 => _120.minDepositUsd]), () => ( null));
3340
+ const minDepositUsd = targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID ? Math.max(_chunkU7SVYWVDcjs.HYPERCORE_MIN_DEPOSIT_USD, _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _119 => _119.minDepositUsd]), () => ( 0))) : _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _120 => _120.minDepositUsd]), () => ( null));
3312
3341
  const maxDepositUsd = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _121 => _121.maxDepositUsd]), () => ( null));
3313
3342
  const isBelowMin = minDepositUsd !== null && numericAmount > 0 && numericAmount < minDepositUsd;
3314
3343
  const isAboveMax = maxDepositUsd !== null && numericAmount > maxDepositUsd;
@@ -3319,7 +3348,7 @@ function SolanaAmountStep({
3319
3348
  const handlePresetClick = (percentage) => {
3320
3349
  const formatted = computePresetAmount(percentage);
3321
3350
  if (!formatted) return;
3322
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3351
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
3323
3352
  percentage,
3324
3353
  symbol: token.symbol,
3325
3354
  formatted
@@ -3354,7 +3383,7 @@ function SolanaAmountStep({
3354
3383
  try {
3355
3384
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
3356
3385
  } catch (e29) {
3357
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3386
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
3358
3387
  amount,
3359
3388
  sourceAmount: sourceAmountStr,
3360
3389
  reason: "parse-units-failed"
@@ -3363,13 +3392,13 @@ function SolanaAmountStep({
3363
3392
  return;
3364
3393
  }
3365
3394
  if (amountInUnits > spendableBalance) {
3366
- const isReserveIssue = _chunkHH46H6ZIcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3395
+ const isReserveIssue = _chunkU7SVYWVDcjs.isNativeSol.call(void 0, token) && amountInUnits <= balance;
3367
3396
  setError(
3368
3397
  isReserveIssue ? "Use a bit less than your full SOL balance" : "Insufficient balance"
3369
3398
  );
3370
3399
  return;
3371
3400
  }
3372
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3401
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
3373
3402
  symbol: token.symbol,
3374
3403
  inputAmountUsd: amount,
3375
3404
  sourceAmount: sourceAmountStr,
@@ -3380,10 +3409,9 @@ function SolanaAmountStep({
3380
3409
  };
3381
3410
  const continueLabel = exceedsBalance ? "Insufficient balance" : isAboveMax ? "Continue with max allowed deposit" : isBelowMin ? "Continue with minimum deposit" : "Continue";
3382
3411
  const continueDisabled = exceedsBalance || numericAmount === 0 && !isBelowMin;
3383
- const sourceTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, token.symbol);
3384
3412
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3385
3413
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3386
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}), title: "Wallet deposit" }),
3414
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Wallet deposit" }),
3387
3415
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-section", children: [
3388
3416
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-display", children: [
3389
3417
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3403,13 +3431,13 @@ function SolanaAmountStep({
3403
3431
  " available",
3404
3432
  computedBalanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3405
3433
  " (~",
3406
- _chunkUN6MEOOAcjs.currencyFormatter.format(computedBalanceUsd),
3434
+ _chunk7OKA6GNAcjs.currencyFormatter.format(computedBalanceUsd),
3407
3435
  ")"
3408
3436
  ] })
3409
3437
  ] }),
3410
3438
  minDepositUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-meta-minimum", children: [
3411
3439
  "Min. deposit ",
3412
- _chunkUN6MEOOAcjs.currencyFormatter.format(minDepositUsd)
3440
+ _chunk7OKA6GNAcjs.currencyFormatter.format(minDepositUsd)
3413
3441
  ] })
3414
3442
  ] })
3415
3443
  ] }),
@@ -3432,7 +3460,7 @@ function SolanaAmountStep({
3432
3460
  "Solana ",
3433
3461
  token.symbol
3434
3462
  ] }),
3435
- sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
3463
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: token.symbol }) })
3436
3464
  ] })
3437
3465
  ] }),
3438
3466
  targetChainName && targetTokenSymbol && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
@@ -3443,18 +3471,18 @@ function SolanaAmountStep({
3443
3471
  " ",
3444
3472
  targetTokenSymbol
3445
3473
  ] }),
3446
- targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
3474
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetTokenSymbol }) })
3447
3475
  ] })
3448
3476
  ] }),
3449
3477
  balanceAfterUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
3450
3478
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Balance after deposit" }),
3451
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunkUN6MEOOAcjs.currencyFormatter.format(balanceAfterUsd) })
3479
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: _chunk7OKA6GNAcjs.currencyFormatter.format(balanceAfterUsd) })
3452
3480
  ] })
3453
3481
  ] }),
3454
- targetChain === _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3455
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
3482
+ targetChain === _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "warning", children: "First deposit to a new HyperCore account includes a ~1 USDC activation fee." }),
3483
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
3456
3484
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3457
- _chunkUN6MEOOAcjs.Button,
3485
+ _chunk7OKA6GNAcjs.Button,
3458
3486
  {
3459
3487
  onClick: handleContinue,
3460
3488
  fullWidth: true,
@@ -3463,7 +3491,7 @@ function SolanaAmountStep({
3463
3491
  }
3464
3492
  )
3465
3493
  ] }),
3466
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
3494
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3467
3495
  ] });
3468
3496
  }
3469
3497
 
@@ -3486,10 +3514,10 @@ var _spltoken = require('@solana/spl-token');
3486
3514
  var DEFAULT_SOLANA_RPC_URL = "https://api.mainnet.solana.com";
3487
3515
  var cachedConnections = /* @__PURE__ */ new Map();
3488
3516
  function getSolanaRpcUrl(rpcUrls) {
3489
- return _nullishCoalesce(_chunkUN6MEOOAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3517
+ return _nullishCoalesce(_chunk7OKA6GNAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana"), () => ( DEFAULT_SOLANA_RPC_URL));
3490
3518
  }
3491
3519
  function hasConfiguredSolanaRpcUrl(rpcUrls) {
3492
- return _chunkUN6MEOOAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3520
+ return _chunk7OKA6GNAcjs.rpcUrlFor.call(void 0, rpcUrls, "solana") !== void 0;
3493
3521
  }
3494
3522
  function getSolanaConnection(rpcUrls) {
3495
3523
  const rpcUrl = getSolanaRpcUrl(rpcUrls);
@@ -3591,35 +3619,36 @@ function SolanaConfirmStep({
3591
3619
  onError,
3592
3620
  debug
3593
3621
  }) {
3594
- const rpcUrls = _chunkUN6MEOOAcjs.useRpcUrls.call(void 0, );
3622
+ const rpcUrls = _chunk7OKA6GNAcjs.useRpcUrls.call(void 0, );
3595
3623
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
3596
3624
  const [error, setError] = _react.useState.call(void 0, null);
3597
- const targetSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3598
- const sourceChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, "solana");
3599
- const targetChainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
3600
- const sourceChainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, "solana");
3601
- const targetChainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, targetChain);
3602
- const sourceTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, token.symbol);
3603
- const targetTokenIcon = _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, targetSymbol);
3625
+ const targetSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
3626
+ const sourceChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, "solana");
3627
+ const targetChainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
3628
+ const sourceChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, "solana");
3629
+ const targetChainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, targetChain);
3604
3630
  const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _122 => _122.feeSponsored]), () => ( false));
3605
3631
  const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _123 => _123.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3606
- const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunkUN6MEOOAcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3632
+ const formattedAmount = sourceAmount && Number.isFinite(Number(sourceAmount)) ? _nullishCoalesce(_chunk7OKA6GNAcjs.formatTokenAmount.call(void 0, Number(sourceAmount), token.symbol), () => ( "0")) : "0";
3607
3633
  const receiveDisplay = (() => {
3608
3634
  const usdValue = Number(targetAmount);
3609
3635
  const sourceAmountUsd = Number.isFinite(usdValue) && usdValue > 0 ? usdValue : void 0;
3610
- const estimate = _chunkUN6MEOOAcjs.formatReceiveEstimate.call(void 0, {
3636
+ const estimate = _chunk7OKA6GNAcjs.formatReceiveEstimate.call(void 0, {
3611
3637
  sourceAmount: Number.isFinite(Number(sourceAmount)) ? Number(sourceAmount) : void 0,
3612
3638
  sourceSymbol: token.symbol,
3613
3639
  targetSymbol,
3614
3640
  sourceAmountUsd,
3615
- prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : {}
3641
+ sourceTrusted: _chunk7OKA6GNAcjs.isRecognizedToken.call(void 0, token.mint, "solana"),
3642
+ // Curated stablecoin target estimates at $1 when unquoted; never applied
3643
+ // to the source (a held token). See ConfirmStep for the rationale.
3644
+ prices: targetTokenPriceUsd !== null && targetTokenPriceUsd > 0 ? { [targetSymbol.toUpperCase()]: targetTokenPriceUsd } : _chunk7OKA6GNAcjs.isDisplayStablecoinSymbol.call(void 0, targetSymbol) ? { [targetSymbol.toUpperCase()]: 1 } : {}
3616
3645
  });
3617
3646
  if (estimate !== void 0) return estimate;
3618
3647
  return targetSymbol;
3619
3648
  })();
3620
3649
  const handleConfirm = async () => {
3621
3650
  if (!solanaProvider) {
3622
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3651
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3623
3652
  reason: "missing-provider"
3624
3653
  });
3625
3654
  setError("Solana wallet not connected");
@@ -3627,7 +3656,7 @@ function SolanaConfirmStep({
3627
3656
  }
3628
3657
  const parsedAmount = parseFloat(sourceAmount);
3629
3658
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
3630
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3659
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
3631
3660
  reason: "invalid-amount",
3632
3661
  sourceAmount
3633
3662
  });
@@ -3636,7 +3665,7 @@ function SolanaConfirmStep({
3636
3665
  }
3637
3666
  setError(null);
3638
3667
  setIsSubmitting(true);
3639
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3668
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
3640
3669
  smartAccount,
3641
3670
  solanaAddress,
3642
3671
  solanaDepositAddress,
@@ -3646,7 +3675,7 @@ function SolanaConfirmStep({
3646
3675
  });
3647
3676
  try {
3648
3677
  const check = await service.checkAccount(smartAccount);
3649
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3678
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
3650
3679
  smartAccount,
3651
3680
  isRegistered: check.isRegistered,
3652
3681
  targetChain: check.targetChain,
@@ -3659,12 +3688,12 @@ function SolanaConfirmStep({
3659
3688
  }
3660
3689
  const connection = hasConfiguredSolanaRpcUrl(rpcUrls) ? getSolanaConnection(rpcUrls) : _nullishCoalesce(solanaConnection, () => ( getSolanaConnection(rpcUrls)));
3661
3690
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
3662
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3691
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
3663
3692
  token: token.symbol,
3664
3693
  sourceAmount,
3665
3694
  amountUnits: amountUnits.toString()
3666
3695
  });
3667
- const transaction = _chunkHH46H6ZIcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3696
+ const transaction = _chunkU7SVYWVDcjs.isNativeSol.call(void 0, token) ? await buildSolTransferTransaction(
3668
3697
  connection,
3669
3698
  solanaAddress,
3670
3699
  solanaDepositAddress,
@@ -3676,7 +3705,7 @@ function SolanaConfirmStep({
3676
3705
  token.mint,
3677
3706
  amountUnits
3678
3707
  );
3679
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3708
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
3680
3709
  token: token.symbol,
3681
3710
  instructionCount: transaction.instructions.length,
3682
3711
  feePayer: _optionalChain([transaction, 'access', _124 => _124.feePayer, 'optionalAccess', _125 => _125.toBase58, 'call', _126 => _126()]),
@@ -3687,15 +3716,15 @@ function SolanaConfirmStep({
3687
3716
  connection,
3688
3717
  transaction
3689
3718
  );
3690
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3719
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3691
3720
  txHash,
3692
3721
  amountUnits: amountUnits.toString()
3693
3722
  });
3694
3723
  onConfirm(txHash, amountUnits.toString());
3695
3724
  } catch (err) {
3696
3725
  const raw = err instanceof Error ? err.message : "Transfer failed";
3697
- const message = _chunkUN6MEOOAcjs.formatUserError.call(void 0, raw);
3698
- _chunkUN6MEOOAcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3726
+ const message = _chunk7OKA6GNAcjs.formatUserError.call(void 0, raw);
3727
+ _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3699
3728
  smartAccount,
3700
3729
  token: token.symbol,
3701
3730
  sourceAmount
@@ -3708,7 +3737,7 @@ function SolanaConfirmStep({
3708
3737
  };
3709
3738
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3710
3739
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3711
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}), title: "Review deposit" }),
3740
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}), title: "Review deposit" }),
3712
3741
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
3713
3742
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3714
3743
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
@@ -3736,14 +3765,14 @@ function SolanaConfirmStep({
3736
3765
  " ",
3737
3766
  token.symbol
3738
3767
  ] }),
3739
- sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
3768
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: token.symbol }) })
3740
3769
  ] })
3741
3770
  ] }),
3742
3771
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3743
3772
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
3744
3773
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
3745
3774
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
3746
- targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
3775
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: targetSymbol }) })
3747
3776
  ] })
3748
3777
  ] }),
3749
3778
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -3756,13 +3785,13 @@ function SolanaConfirmStep({
3756
3785
  children: "$0.04"
3757
3786
  }
3758
3787
  ),
3759
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.InfoIcon, {}) }) })
3788
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Tooltip, { content: feeTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fee info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.InfoIcon, {}) }) })
3760
3789
  ] })
3761
3790
  ] })
3762
3791
  ] }),
3763
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: error }),
3792
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: error }),
3764
3793
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3765
- _chunkUN6MEOOAcjs.Button,
3794
+ _chunk7OKA6GNAcjs.Button,
3766
3795
  {
3767
3796
  onClick: handleConfirm,
3768
3797
  loading: isSubmitting,
@@ -3773,7 +3802,7 @@ function SolanaConfirmStep({
3773
3802
  }
3774
3803
  )
3775
3804
  ] }),
3776
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
3805
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3777
3806
  ] });
3778
3807
  }
3779
3808
 
@@ -3787,21 +3816,21 @@ function DappImportAssetSelectStep({
3787
3816
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
3788
3817
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3789
3818
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3790
- _chunkUN6MEOOAcjs.BodyHeader,
3819
+ _chunk7OKA6GNAcjs.BodyHeader,
3791
3820
  {
3792
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}),
3821
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
3793
3822
  title: `Transfer from ${sourceLabel}`,
3794
3823
  subtitle: "Pick the balance to import"
3795
3824
  }
3796
3825
  ),
3797
3826
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-list", children: assets.map((asset) => {
3798
- const tokenAmount = asset.balance ? _chunkUN6MEOOAcjs.tokenFormatter.format(
3827
+ const tokenAmount = asset.balance ? _chunk7OKA6GNAcjs.tokenFormatter.format(
3799
3828
  Number(asset.balance) / 10 ** asset.decimals
3800
3829
  ) : "0";
3801
- const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunkUN6MEOOAcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3802
- const tokenIcon = _nullishCoalesce(asset.icon, () => ( _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, asset.symbol)));
3803
- const chainIcon = _chunkHH46H6ZIcjs.getChainIcon.call(void 0, asset.chainId);
3804
- const badge = _chunkHH46H6ZIcjs.getChainBadge.call(void 0, asset.chainId);
3830
+ const balanceUsd = asset.balanceUsd && asset.balanceUsd > 0 ? _chunk7OKA6GNAcjs.currencyFormatter.format(asset.balanceUsd) : `${tokenAmount} ${asset.symbol}`;
3831
+ const assetIcon = asset.icon;
3832
+ const chainIcon = _chunkU7SVYWVDcjs.getChainIcon.call(void 0, asset.chainId);
3833
+ const badge = _chunkU7SVYWVDcjs.getChainBadge.call(void 0, asset.chainId);
3805
3834
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
3806
3835
  "button",
3807
3836
  {
@@ -3811,12 +3840,18 @@ function DappImportAssetSelectStep({
3811
3840
  children: [
3812
3841
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-info", children: [
3813
3842
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-asset-icon-wrapper", children: [
3814
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: tokenIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: tokenIcon, alt: asset.symbol }) : asset.symbol.slice(0, 4) }),
3843
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-icon", children: assetIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: assetIcon, alt: asset.symbol }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3844
+ _chunk7OKA6GNAcjs.TokenIcon,
3845
+ {
3846
+ symbol: asset.symbol,
3847
+ fallback: asset.symbol.slice(0, 4)
3848
+ }
3849
+ ) }),
3815
3850
  chainIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-asset-chain-badge", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3816
3851
  "img",
3817
3852
  {
3818
3853
  src: chainIcon,
3819
- alt: _chunkHH46H6ZIcjs.getChainName.call(void 0, asset.chainId)
3854
+ alt: _chunkU7SVYWVDcjs.getChainName.call(void 0, asset.chainId)
3820
3855
  }
3821
3856
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3822
3857
  "span",
@@ -3849,7 +3884,7 @@ function DappImportAssetSelectStep({
3849
3884
  );
3850
3885
  }) })
3851
3886
  ] }),
3852
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
3887
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3853
3888
  ] });
3854
3889
  }
3855
3890
  DappImportAssetSelectStep.displayName = "DappImportAssetSelectStep";
@@ -3866,9 +3901,9 @@ function DappImportAssetSelectSkeleton({
3866
3901
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-sr-only", role: "status", children: error ? "Couldn't load balances" : "Loading balances\u2026" }),
3867
3902
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
3868
3903
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3869
- _chunkUN6MEOOAcjs.BodyHeader,
3904
+ _chunk7OKA6GNAcjs.BodyHeader,
3870
3905
  {
3871
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.WalletIcon, {}),
3906
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.WalletIcon, {}),
3872
3907
  title: `Transfer from ${sourceLabel}`,
3873
3908
  subtitle: "Pick the balance to import"
3874
3909
  }
@@ -3906,7 +3941,7 @@ function DappImportAssetSelectSkeleton({
3906
3941
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Try again" })
3907
3942
  }
3908
3943
  ) }),
3909
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
3944
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
3910
3945
  ] });
3911
3946
  }
3912
3947
  DappImportAssetSelectSkeleton.displayName = "DappImportAssetSelectSkeleton";
@@ -3963,7 +3998,7 @@ async function detectPolymarketWalletKind(params) {
3963
3998
  contracts: [
3964
3999
  {
3965
4000
  address: proxyWallet,
3966
- abi: _chunkRLMXWLF4cjs.SAFE_ABI,
4001
+ abi: _chunkXRWQMIBYcjs.SAFE_ABI,
3967
4002
  functionName: "isOwner",
3968
4003
  args: [eoa]
3969
4004
  },
@@ -3996,7 +4031,7 @@ async function buildSignedDepositWalletBatch(params) {
3996
4031
  if (!account || !chain) {
3997
4032
  throw new Error("Wallet not connected");
3998
4033
  }
3999
- if (chain.id !== _chunkXOBLFIGVcjs.POLYMARKET_POLYGON_CHAIN_ID) {
4034
+ if (chain.id !== _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID) {
4000
4035
  throw new Error("Switch to Polygon to sign");
4001
4036
  }
4002
4037
  const owner = await publicClient.readContract({
@@ -4041,14 +4076,14 @@ async function buildSignedDepositWalletBatch(params) {
4041
4076
  })),
4042
4077
  signature
4043
4078
  },
4044
- sourceToken: _chunkXOBLFIGVcjs.POLYMARKET_USDCE_ADDRESS,
4079
+ sourceToken: _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS,
4045
4080
  sourceSymbol: tokenKind === "pusd" ? "pUSD" : "USDC.e"
4046
4081
  };
4047
4082
  }
4048
4083
  function buildUsdceTransferCalls(recipient, amount) {
4049
4084
  return [
4050
4085
  {
4051
- target: _chunkXOBLFIGVcjs.POLYMARKET_USDCE_ADDRESS,
4086
+ target: _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS,
4052
4087
  value: 0n,
4053
4088
  data: _viem.encodeFunctionData.call(void 0, {
4054
4089
  abi: _viem.erc20Abi,
@@ -4061,21 +4096,21 @@ function buildUsdceTransferCalls(recipient, amount) {
4061
4096
  function buildPusdUnwrapCalls(recipient, amount) {
4062
4097
  return [
4063
4098
  {
4064
- target: _chunkXOBLFIGVcjs.POLYMARKET_PUSD_ADDRESS,
4099
+ target: _chunk4NN7UTWQcjs.POLYMARKET_PUSD_ADDRESS,
4065
4100
  value: 0n,
4066
4101
  data: _viem.encodeFunctionData.call(void 0, {
4067
4102
  abi: _viem.erc20Abi,
4068
4103
  functionName: "approve",
4069
- args: [_chunkXOBLFIGVcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4104
+ args: [_chunk4NN7UTWQcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS, amount]
4070
4105
  })
4071
4106
  },
4072
4107
  {
4073
- target: _chunkXOBLFIGVcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4108
+ target: _chunk4NN7UTWQcjs.POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
4074
4109
  value: 0n,
4075
4110
  data: _viem.encodeFunctionData.call(void 0, {
4076
4111
  abi: COLLATERAL_OFFRAMP_ABI,
4077
4112
  functionName: "unwrap",
4078
- args: [_chunkXOBLFIGVcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4113
+ args: [_chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS, recipient, amount]
4079
4114
  })
4080
4115
  }
4081
4116
  ];
@@ -4088,18 +4123,18 @@ var polymarketProvider = {
4088
4123
  label: "Transfer from Polymarket",
4089
4124
  sourceLabel: "Polymarket",
4090
4125
  icon: _react.createElement.call(void 0, "img", {
4091
- src: _chunkXOBLFIGVcjs.POLYMARKET_ICON_URL,
4126
+ src: _chunk4NN7UTWQcjs.POLYMARKET_ICON_URL,
4092
4127
  alt: "Polymarket",
4093
4128
  style: { width: 24, height: 24, borderRadius: 6 }
4094
4129
  }),
4095
- chainId: _chunkXOBLFIGVcjs.POLYMARKET_POLYGON_CHAIN_ID,
4130
+ chainId: _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID,
4096
4131
  async fetchAvailability({ eoa, getPublicClient: getPublicClient2, signal }) {
4097
- const proxyWallet = await _chunkXOBLFIGVcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4132
+ const proxyWallet = await _chunk4NN7UTWQcjs.fetchPolymarketProxyWallet.call(void 0, eoa, signal);
4098
4133
  if (!proxyWallet) return null;
4099
4134
  if (_optionalChain([signal, 'optionalAccess', _128 => _128.aborted])) return null;
4100
- const polygonClient = getPublicClient2(_chunkXOBLFIGVcjs.POLYMARKET_POLYGON_CHAIN_ID);
4135
+ const polygonClient = getPublicClient2(_chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID);
4101
4136
  if (!polygonClient) return null;
4102
- const balances = await _chunkXOBLFIGVcjs.readPolymarketBalances.call(void 0, {
4137
+ const balances = await _chunk4NN7UTWQcjs.readPolymarketBalances.call(void 0, {
4103
4138
  publicClient: polygonClient,
4104
4139
  proxyWallet
4105
4140
  });
@@ -4157,7 +4192,7 @@ var polymarketProvider = {
4157
4192
  const { txHash } = await backend.submitPolymarketWithdraw(payload);
4158
4193
  return { txHash, sourceToken, sourceSymbol, sourceDecimals: 6 };
4159
4194
  }
4160
- const result = await _chunkXOBLFIGVcjs.executePolymarketSafeTransfer.call(void 0, {
4195
+ const result = await _chunk4NN7UTWQcjs.executePolymarketSafeTransfer.call(void 0, {
4161
4196
  walletClient,
4162
4197
  publicClient,
4163
4198
  safeAddress: metadata.proxyWallet,
@@ -4176,17 +4211,17 @@ var polymarketProvider = {
4176
4211
  function buildAsset(params) {
4177
4212
  const { tokenKind, proxyWallet, walletKind, balance } = params;
4178
4213
  const isPusd = tokenKind === "pusd";
4179
- const tokenAddress = isPusd ? _chunkXOBLFIGVcjs.POLYMARKET_PUSD_ADDRESS : _chunkXOBLFIGVcjs.POLYMARKET_USDCE_ADDRESS;
4214
+ const tokenAddress = isPusd ? _chunk4NN7UTWQcjs.POLYMARKET_PUSD_ADDRESS : _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS;
4180
4215
  const symbol = isPusd ? "pUSD" : "USDC.e";
4181
4216
  const balanceUsd = Number(_viem.formatUnits.call(void 0, balance, 6));
4182
4217
  const metadata = { proxyWallet, tokenKind, walletKind };
4183
4218
  return {
4184
4219
  id: `polymarket:${tokenKind}`,
4185
- chainId: _chunkXOBLFIGVcjs.POLYMARKET_POLYGON_CHAIN_ID,
4220
+ chainId: _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID,
4186
4221
  token: tokenAddress,
4187
4222
  symbol,
4188
4223
  name: isPusd ? "Polymarket USD" : "Polygon USDC.e",
4189
- icon: isPusd ? _chunkXOBLFIGVcjs.POLYMARKET_ICON_URL : void 0,
4224
+ icon: isPusd ? _chunk4NN7UTWQcjs.POLYMARKET_ICON_URL : void 0,
4190
4225
  decimals: 6,
4191
4226
  balance: balance.toString(),
4192
4227
  balanceUsd: Number.isFinite(balanceUsd) ? balanceUsd : 0,
@@ -4196,8 +4231,8 @@ function buildAsset(params) {
4196
4231
  // pUSD unwraps to USDC.e via the offramp; USDC.e is what actually
4197
4232
  // arrives at the smart account, so it's also what the orchestrator
4198
4233
  // bridges from.
4199
- depositToken: _chunkXOBLFIGVcjs.POLYMARKET_USDCE_ADDRESS,
4200
- depositChainId: _chunkXOBLFIGVcjs.POLYMARKET_POLYGON_CHAIN_ID,
4234
+ depositToken: _chunk4NN7UTWQcjs.POLYMARKET_USDCE_ADDRESS,
4235
+ depositChainId: _chunk4NN7UTWQcjs.POLYMARKET_POLYGON_CHAIN_ID,
4201
4236
  providerMetadata: metadata
4202
4237
  };
4203
4238
  }
@@ -5143,15 +5178,15 @@ var SetupError = class extends Error {
5143
5178
  }
5144
5179
  };
5145
5180
  async function resolveSessionOwner(eoaAddress) {
5146
- const local = _chunkUN6MEOOAcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5181
+ const local = _chunk7OKA6GNAcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
5147
5182
  if (local) {
5148
5183
  return {
5149
- account: _chunkUN6MEOOAcjs.accountFromPrivateKey.call(void 0, local.privateKey),
5184
+ account: _chunk7OKA6GNAcjs.accountFromPrivateKey.call(void 0, local.privateKey),
5150
5185
  address: local.address
5151
5186
  };
5152
5187
  }
5153
- const created = _chunkUN6MEOOAcjs.createSessionOwnerKey.call(void 0, );
5154
- _chunkUN6MEOOAcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
5188
+ const created = _chunk7OKA6GNAcjs.createSessionOwnerKey.call(void 0, );
5189
+ _chunk7OKA6GNAcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
5155
5190
  return { account: created.account, address: created.address };
5156
5191
  }
5157
5192
  function stableStringify(value) {
@@ -5218,7 +5253,7 @@ async function runAccountSetup(input, deps) {
5218
5253
  try {
5219
5254
  const sessionOwner = await resolveSessionOwner(input.ownerAddress);
5220
5255
  const cacheKey = computeCacheKey(input, sessionOwner.address);
5221
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5256
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
5222
5257
  owner: input.ownerAddress,
5223
5258
  sessionOwner: sessionOwner.address,
5224
5259
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
@@ -5226,7 +5261,7 @@ async function runAccountSetup(input, deps) {
5226
5261
  const setup = await service.setupAccount({
5227
5262
  ownerAddress: input.ownerAddress,
5228
5263
  sessionOwnerAddress: sessionOwner.address,
5229
- targetChain: _chunkHH46H6ZIcjs.targetChainToCaip2.call(void 0, input.targetChain),
5264
+ targetChain: _chunkU7SVYWVDcjs.targetChainToCaip2.call(void 0, input.targetChain),
5230
5265
  targetToken: input.targetToken,
5231
5266
  recipient: input.recipient,
5232
5267
  outputTokenRules: input.outputTokenRules,
@@ -5264,7 +5299,7 @@ async function runAccountSetup(input, deps) {
5264
5299
  primaryType: typedData.primaryType,
5265
5300
  message: typedData.message
5266
5301
  });
5267
- const sessionDetails = _chunkUN6MEOOAcjs.buildSessionDetails.call(void 0,
5302
+ const sessionDetails = _chunk7OKA6GNAcjs.buildSessionDetails.call(void 0,
5268
5303
  setup.sessionDetailsUnsigned,
5269
5304
  signature
5270
5305
  );
@@ -5278,7 +5313,7 @@ async function runAccountSetup(input, deps) {
5278
5313
  eoaAddress: input.ownerAddress,
5279
5314
  sessionOwner: sessionOwner.address,
5280
5315
  target: {
5281
- chain: _chunkHH46H6ZIcjs.targetChainToCaip2.call(void 0, input.targetChain),
5316
+ chain: _chunkU7SVYWVDcjs.targetChainToCaip2.call(void 0, input.targetChain),
5282
5317
  token: input.targetToken,
5283
5318
  ...input.recipient && { recipient: input.recipient },
5284
5319
  ..._optionalChain([input, 'access', _142 => _142.outputTokenRules, 'optionalAccess', _143 => _143.length]) && {
@@ -5297,7 +5332,7 @@ async function runAccountSetup(input, deps) {
5297
5332
  isRegistered: true
5298
5333
  };
5299
5334
  } catch (error) {
5300
- _chunkUN6MEOOAcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5335
+ _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
5301
5336
  owner: input.ownerAddress
5302
5337
  });
5303
5338
  if (error instanceof SetupError) throw error;
@@ -5308,7 +5343,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
5308
5343
  const now = Date.now();
5309
5344
  const existing = setupRequestDedupe.get(requestKey);
5310
5345
  if (existing && (!existing.settled || existing.expiresAt > now)) {
5311
- _chunkUN6MEOOAcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5346
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
5312
5347
  owner: input.ownerAddress,
5313
5348
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
5314
5349
  });
@@ -5550,7 +5585,12 @@ function deriveStep(flow, d, p, activeEntry, fiat, exchange) {
5550
5585
  balanceUsd: d.balanceUsd
5551
5586
  };
5552
5587
  case "processing":
5553
- if (!smartAccount || !p.txHash || !d.amount || d.sourceChain === null || d.sourceChain === "unknown" || !d.sourceToken) {
5588
+ if (!smartAccount || !p.txHash || !d.amount || d.sourceChain === null || d.sourceChain === "unknown" || // HyperCore is a QR/deposit-address-only source (no wallet flow), so it
5589
+ // never dispatches `deposit/submitted` and never reaches this store
5590
+ // `processing` step — its completion is tracked by the DepositNotification
5591
+ // on the deposit-address screen. Excluding it here keeps `sourceChain`
5592
+ // narrowed to the EVM/Solana shape ProcessingStep expects.
5593
+ d.sourceChain === "hypercore" || !d.sourceToken) {
5554
5594
  return { type: "setup" };
5555
5595
  }
5556
5596
  return {
@@ -5601,7 +5641,7 @@ function DepositFlow({
5601
5641
  appBalanceUsd,
5602
5642
  outputTokenRules,
5603
5643
  rejectUnmapped,
5604
- signerAddress = _chunkHH46H6ZIcjs.DEFAULT_SIGNER_ADDRESS,
5644
+ signerAddress = _chunkU7SVYWVDcjs.DEFAULT_SIGNER_ADDRESS,
5605
5645
  sessionChainIds,
5606
5646
  forceRegister = false,
5607
5647
  enableSolana = true,
@@ -5625,11 +5665,11 @@ function DepositFlow({
5625
5665
  onError,
5626
5666
  debug
5627
5667
  }) {
5628
- const rpcUrls = _chunkUN6MEOOAcjs.useRpcUrls.call(void 0, );
5629
- const onStepChangeRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onStepChange);
5630
- const onEventRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onEvent);
5631
- const onLifecycleRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onLifecycle);
5632
- const onErrorRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onError);
5668
+ const rpcUrls = _chunk7OKA6GNAcjs.useRpcUrls.call(void 0, );
5669
+ const onStepChangeRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onStepChange);
5670
+ const onEventRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onEvent);
5671
+ const onLifecycleRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onLifecycle);
5672
+ const onErrorRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onError);
5633
5673
  const storeApi = useDepositStoreApi();
5634
5674
  const flowSlice = useDepositStore((s) => s.flow);
5635
5675
  const depositSlice = useDepositStore((s) => s.deposit);
@@ -5646,13 +5686,13 @@ function DepositFlow({
5646
5686
  const stableWalletSelectionKeyRef = _react.useRef.call(void 0, null);
5647
5687
  const logFlow = _react.useCallback.call(void 0,
5648
5688
  (message, data) => {
5649
- _chunkUN6MEOOAcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5689
+ _chunk7OKA6GNAcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
5650
5690
  },
5651
5691
  [debug]
5652
5692
  );
5653
5693
  const logFlowError = _react.useCallback.call(void 0,
5654
5694
  (message, error, data) => {
5655
- _chunkUN6MEOOAcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5695
+ _chunk7OKA6GNAcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
5656
5696
  },
5657
5697
  [debug]
5658
5698
  );
@@ -5757,9 +5797,9 @@ function DepositFlow({
5757
5797
  isConnectSelectionConfirmed,
5758
5798
  selectedWalletId
5759
5799
  ]);
5760
- const setupChainId = typeof targetChain === "number" && !_chunkHH46H6ZIcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5761
- const targetSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5762
- const isTargetStablecoin = _chunkHH46H6ZIcjs.isStablecoinSymbol.call(void 0, targetSymbol);
5800
+ const setupChainId = typeof targetChain === "number" && !_chunkU7SVYWVDcjs.isVirtualDestination.call(void 0, targetChain) ? targetChain : typeof defaultSourceChain === "number" ? defaultSourceChain : _chains.base.id;
5801
+ const targetSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
5802
+ const isTargetStablecoin = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, targetSymbol);
5763
5803
  const targetMarketPriceRef = _react.useRef.call(void 0, null);
5764
5804
  _react.useEffect.call(void 0, () => {
5765
5805
  targetMarketPriceRef.current = null;
@@ -5767,15 +5807,18 @@ function DepositFlow({
5767
5807
  return;
5768
5808
  }
5769
5809
  let cancelled = false;
5770
- service.fetchPrices([targetSymbol]).then((prices) => {
5810
+ _chunk7OKA6GNAcjs.fetchTokenPriceUsd.call(void 0, service, {
5811
+ chainId: targetChain,
5812
+ address: targetToken,
5813
+ symbol: targetSymbol
5814
+ }).then((price) => {
5771
5815
  if (cancelled) return;
5772
- const price = prices[targetSymbol.toUpperCase()];
5773
- targetMarketPriceRef.current = typeof price === "number" && price > 0 ? price : null;
5816
+ targetMarketPriceRef.current = price;
5774
5817
  });
5775
5818
  return () => {
5776
5819
  cancelled = true;
5777
5820
  };
5778
- }, [service, targetSymbol, isTargetStablecoin]);
5821
+ }, [service, targetSymbol, isTargetStablecoin, targetChain, targetToken]);
5779
5822
  const walletSignerContext = _react.useMemo.call(void 0, () => {
5780
5823
  if (flowMode === "deposit-address") {
5781
5824
  return null;
@@ -5785,7 +5828,7 @@ function DepositFlow({
5785
5828
  return {
5786
5829
  ownerAddress: dappAddress,
5787
5830
  walletClient: void 0,
5788
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5831
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5789
5832
  switchChain: void 0
5790
5833
  };
5791
5834
  }
@@ -5794,7 +5837,7 @@ function DepositFlow({
5794
5837
  return {
5795
5838
  ownerAddress: dappWalletClient.account.address,
5796
5839
  walletClient: dappWalletClient,
5797
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5840
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5798
5841
  switchChain: dappSwitchChain
5799
5842
  };
5800
5843
  }
@@ -5808,7 +5851,7 @@ function DepositFlow({
5808
5851
  return {
5809
5852
  ownerAddress: dappAddress,
5810
5853
  walletClient: void 0,
5811
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5854
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5812
5855
  switchChain: void 0
5813
5856
  };
5814
5857
  }
@@ -5817,7 +5860,7 @@ function DepositFlow({
5817
5860
  return {
5818
5861
  ownerAddress: dappWalletClient.account.address,
5819
5862
  walletClient: dappWalletClient,
5820
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5863
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, fallbackChainId, rpcUrls))),
5821
5864
  switchChain: dappSwitchChain
5822
5865
  };
5823
5866
  }
@@ -5825,7 +5868,7 @@ function DepositFlow({
5825
5868
  return {
5826
5869
  ownerAddress: reownWallet.address,
5827
5870
  walletClient: reownWallet.walletClient,
5828
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5871
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5829
5872
  switchChain: reownWallet.switchChain
5830
5873
  };
5831
5874
  }
@@ -5864,7 +5907,7 @@ function DepositFlow({
5864
5907
  return {
5865
5908
  ownerAddress: dappAddress,
5866
5909
  walletClient: void 0,
5867
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkUN6MEOOAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5910
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk7OKA6GNAcjs.getPublicClient.call(void 0, setupChainId, rpcUrls))),
5868
5911
  switchChain: void 0
5869
5912
  };
5870
5913
  }
@@ -6056,8 +6099,8 @@ function DepositFlow({
6056
6099
  pred_balance: totalBalanceUsd
6057
6100
  })]);
6058
6101
  } else if (effectiveStep.type === "deposit-address") {
6059
- const chainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
6060
- const tokenSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6102
+ const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
6103
+ const tokenSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6061
6104
  _optionalChain([onEventRef, 'access', _189 => _189.current, 'optionalCall', _190 => _190({
6062
6105
  type: "deposit_modal_transfer_crypto_open",
6063
6106
  default_chain: chainName,
@@ -6065,7 +6108,7 @@ function DepositFlow({
6065
6108
  pred_balance: totalBalanceUsd
6066
6109
  })]);
6067
6110
  } else if (effectiveStep.type === "amount" && stepSendToken) {
6068
- const receiveSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6111
+ const receiveSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6069
6112
  _optionalChain([onEventRef, 'access', _191 => _191.current, 'optionalCall', _192 => _192({
6070
6113
  type: "deposit_modal_connected_wallet_enter_value_open",
6071
6114
  send_token: stepSendToken,
@@ -6183,7 +6226,7 @@ function DepositFlow({
6183
6226
  eoa: dappImportOwner,
6184
6227
  getPublicClient: (chainId) => {
6185
6228
  try {
6186
- return _chunkUN6MEOOAcjs.getPublicClient.call(void 0, chainId, rpcUrls);
6229
+ return _chunk7OKA6GNAcjs.getPublicClient.call(void 0, chainId, rpcUrls);
6187
6230
  } catch (e32) {
6188
6231
  return null;
6189
6232
  }
@@ -6490,7 +6533,7 @@ function DepositFlow({
6490
6533
  try {
6491
6534
  sessionOwner = await resolveSessionOwner(owner);
6492
6535
  } catch (error) {
6493
- _chunkUN6MEOOAcjs.debugError.call(void 0,
6536
+ _chunk7OKA6GNAcjs.debugError.call(void 0,
6494
6537
  debug,
6495
6538
  "deposit-flow",
6496
6539
  "session-owner:resolve-failed",
@@ -6652,8 +6695,8 @@ function DepositFlow({
6652
6695
  );
6653
6696
  const handleSolanaAmountContinue = _react.useCallback.call(void 0,
6654
6697
  (token, sourceAmount, inputAmountUsd) => {
6655
- const targetSym = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6656
- const isTargetStable = _chunkHH46H6ZIcjs.isStablecoinSymbol.call(void 0, targetSym);
6698
+ const targetSym = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6699
+ const isTargetStable = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, targetSym);
6657
6700
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6658
6701
  logFlow("solana:amount:continue", {
6659
6702
  token: token.symbol,
@@ -6729,8 +6772,8 @@ function DepositFlow({
6729
6772
  activeOwner
6730
6773
  );
6731
6774
  if (entry.status !== "ready") return;
6732
- const targetSym = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6733
- const isTargetStable = _chunkHH46H6ZIcjs.isStablecoinSymbol.call(void 0, targetSym);
6775
+ const targetSym = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
6776
+ const isTargetStable = _chunkU7SVYWVDcjs.isStablecoinSymbol.call(void 0, targetSym);
6734
6777
  const targetTokenPriceUsd = isTargetStable ? 1 : targetMarketPriceRef.current;
6735
6778
  storeApi.dispatch({
6736
6779
  type: "amount/entered",
@@ -6934,7 +6977,7 @@ function DepositFlow({
6934
6977
  );
6935
6978
  if (showConnectStep) {
6936
6979
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
6937
- _chunkUN6MEOOAcjs.ConnectStep,
6980
+ _chunk7OKA6GNAcjs.ConnectStep,
6938
6981
  {
6939
6982
  walletRows,
6940
6983
  transferCryptoState: dappAddress ? transferCryptoState : void 0,
@@ -7018,8 +7061,8 @@ function DepositFlow({
7018
7061
  onDepositComplete: handleDepositComplete,
7019
7062
  onDepositFailed: handleDepositFailed,
7020
7063
  onCopyAddress: () => {
7021
- const chainName = _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain);
7022
- const tokenSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7064
+ const chainName = _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain);
7065
+ const tokenSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7023
7066
  _optionalChain([onEvent, 'optionalCall', _238 => _238({
7024
7067
  type: "deposit_modal_transfer_crypto_cta_click",
7025
7068
  default_chain: chainName,
@@ -7067,7 +7110,7 @@ function DepositFlow({
7067
7110
  }
7068
7111
  ),
7069
7112
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7070
- _chunkUN6MEOOAcjs.ProcessingStep,
7113
+ _chunk7OKA6GNAcjs.ProcessingStep,
7071
7114
  {
7072
7115
  smartAccount: step.smartAccount,
7073
7116
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7139,7 +7182,7 @@ function DepositFlow({
7139
7182
  }
7140
7183
  ),
7141
7184
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7142
- _chunkUN6MEOOAcjs.ProcessingStep,
7185
+ _chunk7OKA6GNAcjs.ProcessingStep,
7143
7186
  {
7144
7187
  smartAccount: step.smartAccount,
7145
7188
  solanaDepositAddress: step.solanaDepositAddress,
@@ -7206,11 +7249,8 @@ function DepositFlow({
7206
7249
  defaultAmount: effectiveStep.inputAmountUsd,
7207
7250
  uiConfig,
7208
7251
  targetChain,
7209
- targetChainName: _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChain),
7210
- targetTokenSymbol: _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
7211
- targetTokenIcon: _chunkHH46H6ZIcjs.getTokenIcon.call(void 0,
7212
- _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain)
7213
- ),
7252
+ targetChainName: _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChain),
7253
+ targetTokenSymbol: _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain),
7214
7254
  appBalanceUsd,
7215
7255
  onContinue: handleSolanaAmountContinue,
7216
7256
  debug
@@ -7272,7 +7312,7 @@ function DepositFlow({
7272
7312
  ) })
7273
7313
  ] }) : null,
7274
7314
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7275
- _chunkUN6MEOOAcjs.ProcessingStep,
7315
+ _chunk7OKA6GNAcjs.ProcessingStep,
7276
7316
  {
7277
7317
  smartAccount: effectiveStep.smartAccount,
7278
7318
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7326,7 +7366,7 @@ function DepositFlow({
7326
7366
  if (_optionalChain([signerContext, 'access', _251 => _251.publicClient, 'access', _252 => _252.chain, 'optionalAccess', _253 => _253.id]) === chainId) {
7327
7367
  return signerContext.publicClient;
7328
7368
  }
7329
- return _chunkUN6MEOOAcjs.getPublicClient.call(void 0, chainId, rpcUrls);
7369
+ return _chunk7OKA6GNAcjs.getPublicClient.call(void 0, chainId, rpcUrls);
7330
7370
  };
7331
7371
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
7332
7372
  effectiveStep.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7382,7 +7422,7 @@ function DepositFlow({
7382
7422
  service,
7383
7423
  onContinue: handleAmountContinue,
7384
7424
  onCtaClick: (ctaName) => {
7385
- const receiveSymbol = _chunkHH46H6ZIcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7425
+ const receiveSymbol = _chunkU7SVYWVDcjs.getTargetTokenSymbol.call(void 0, targetToken, targetChain);
7386
7426
  _optionalChain([onEvent, 'optionalCall', _257 => _257({
7387
7427
  type: "deposit_modal_connected_wallet_enter_value_cta_click",
7388
7428
  send_token: effectiveStep.asset.symbol,
@@ -7435,7 +7475,7 @@ function DepositFlow({
7435
7475
  }
7436
7476
  ),
7437
7477
  effectiveStep.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
7438
- _chunkUN6MEOOAcjs.ProcessingStep,
7478
+ _chunk7OKA6GNAcjs.ProcessingStep,
7439
7479
  {
7440
7480
  smartAccount: effectiveStep.smartAccount,
7441
7481
  solanaDepositAddress: effectiveStep.solanaDepositAddress,
@@ -7488,8 +7528,9 @@ function formatDate(iso) {
7488
7528
  function resolveChainId(value) {
7489
7529
  if (value === void 0 || value === null) return null;
7490
7530
  if (typeof value === "number") return value;
7491
- if (_chunkHH46H6ZIcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7492
- const parsed = _chunkHH46H6ZIcjs.parseEvmChainId.call(void 0, value);
7531
+ if (_chunkU7SVYWVDcjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
7532
+ if (_chunkU7SVYWVDcjs.isHyperCoreCaip2.call(void 0, value) || value === "hypercore") return "hypercore";
7533
+ const parsed = _chunkU7SVYWVDcjs.parseEvmChainId.call(void 0, value);
7493
7534
  if (parsed !== null) return parsed;
7494
7535
  const num = Number(value);
7495
7536
  return Number.isFinite(num) ? num : null;
@@ -7498,7 +7539,7 @@ function resolveTokenSymbol(token, chainId) {
7498
7539
  if (!token) return "";
7499
7540
  if (chainId === "solana") {
7500
7541
  const normalized = token.toLowerCase();
7501
- const matched = _chunkHH46H6ZIcjs.SOLANA_TOKENS.find(
7542
+ const matched = _chunkU7SVYWVDcjs.SOLANA_TOKENS.find(
7502
7543
  (entry) => entry.mint.toLowerCase() === normalized
7503
7544
  );
7504
7545
  if (matched) return matched.symbol;
@@ -7507,7 +7548,8 @@ function resolveTokenSymbol(token, chainId) {
7507
7548
  }
7508
7549
  }
7509
7550
  if (chainId !== null && chainId !== void 0 && chainId !== "solana" && /^0x[a-fA-F0-9]{40}$/.test(token)) {
7510
- const sym = _chunkHH46H6ZIcjs.getTokenSymbol.call(void 0, token, chainId);
7551
+ const evmChainId = chainId === "hypercore" ? _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID : chainId;
7552
+ const sym = _chunkU7SVYWVDcjs.getTokenSymbol.call(void 0, token, evmChainId);
7511
7553
  if (sym !== "Token") return sym;
7512
7554
  }
7513
7555
  return shortenHash(token);
@@ -7518,7 +7560,7 @@ function formatAmount(rawAmount, token, chainId) {
7518
7560
  if (token && chainId !== null && chainId !== void 0) {
7519
7561
  if (chainId === "solana") {
7520
7562
  const normalized = token.toLowerCase();
7521
- const matched = _chunkHH46H6ZIcjs.SOLANA_TOKENS.find(
7563
+ const matched = _chunkU7SVYWVDcjs.SOLANA_TOKENS.find(
7522
7564
  (entry) => entry.mint.toLowerCase() === normalized
7523
7565
  );
7524
7566
  if (matched) {
@@ -7527,7 +7569,8 @@ function formatAmount(rawAmount, token, chainId) {
7527
7569
  decimals = 9;
7528
7570
  }
7529
7571
  } else if (/^0x[a-fA-F0-9]{40}$/.test(token)) {
7530
- decimals = _chunkHH46H6ZIcjs.getTokenDecimalsByAddress.call(void 0, token, chainId);
7572
+ const evmChainId = chainId === "hypercore" ? _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID : chainId;
7573
+ decimals = _chunkU7SVYWVDcjs.getTokenDecimalsByAddress.call(void 0, token, evmChainId);
7531
7574
  }
7532
7575
  }
7533
7576
  try {
@@ -7545,7 +7588,7 @@ function formatAmount(rawAmount, token, chainId) {
7545
7588
  }
7546
7589
  function getTxExplorerUrl(txHash, chainId) {
7547
7590
  if (!chainId) return null;
7548
- const base2 = _chunkHH46H6ZIcjs.getExplorerUrl.call(void 0, chainId);
7591
+ const base2 = _chunkU7SVYWVDcjs.getExplorerUrl.call(void 0, chainId);
7549
7592
  if (!base2) return null;
7550
7593
  return `${base2}/tx/${txHash}`;
7551
7594
  }
@@ -7610,7 +7653,7 @@ function DepositHistoryPanel({
7610
7653
  className: "rs-modal-header-back",
7611
7654
  "aria-label": "Back",
7612
7655
  onClick: onClose,
7613
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronLeftIcon, {})
7656
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronLeftIcon, {})
7614
7657
  }
7615
7658
  ) }),
7616
7659
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: onCloseModal && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -7620,29 +7663,29 @@ function DepositHistoryPanel({
7620
7663
  className: "rs-modal-close",
7621
7664
  "aria-label": "Close",
7622
7665
  onClick: onCloseModal,
7623
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CloseIcon, {})
7666
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {})
7624
7667
  }
7625
7668
  ) })
7626
7669
  ] }),
7627
7670
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen", children: [
7628
7671
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-screen-body", children: [
7629
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.HistoryIcon, {}), title: "History" }),
7672
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {}), title: "History" }),
7630
7673
  isLoading && deposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7631
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.HistoryIcon, {}) }),
7674
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {}) }),
7632
7675
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7633
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Spinner, { className: "rs-spinner--sm" }),
7676
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Spinner, { className: "rs-spinner--sm" }),
7634
7677
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Loading history\u2026" })
7635
7678
  ] })
7636
7679
  ] }),
7637
7680
  error && !isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7638
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.AlertTriangleIcon, {}) }),
7681
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.AlertTriangleIcon, {}) }),
7639
7682
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7640
7683
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "Couldn't load history" }),
7641
7684
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: error })
7642
7685
  ] })
7643
7686
  ] }),
7644
7687
  !isLoading && !error && visibleDeposits.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty", children: [
7645
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.HistoryIcon, {}) }),
7688
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {}) }),
7646
7689
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-empty-text", children: [
7647
7690
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-title", children: "No deposits yet" }),
7648
7691
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
@@ -7662,7 +7705,7 @@ function DepositHistoryPanel({
7662
7705
  )
7663
7706
  ] })
7664
7707
  ] }),
7665
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.PoweredBy, {})
7708
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.PoweredBy, {})
7666
7709
  ] })
7667
7710
  ]
7668
7711
  }
@@ -7673,12 +7716,11 @@ function HistoryCard({ deposit }) {
7673
7716
  const status = normalizeStatus(deposit.status, deposit.isSpam);
7674
7717
  const sourceChainId = resolveChainId(deposit.chain);
7675
7718
  const targetChainId = resolveChainId(deposit.targetChain);
7676
- const sourceChainName = sourceChainId ? _chunkHH46H6ZIcjs.getChainName.call(void 0, sourceChainId) : null;
7677
- const targetChainName = targetChainId ? _chunkHH46H6ZIcjs.getChainName.call(void 0, targetChainId) : null;
7678
- const sourceChainIcon = sourceChainId ? _chunkHH46H6ZIcjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7679
- const targetChainIcon = targetChainId ? _chunkHH46H6ZIcjs.getChainIcon.call(void 0, targetChainId) : void 0;
7719
+ const sourceChainName = sourceChainId ? _chunkU7SVYWVDcjs.getChainName.call(void 0, sourceChainId) : null;
7720
+ const targetChainName = targetChainId ? _chunkU7SVYWVDcjs.getChainName.call(void 0, targetChainId) : null;
7721
+ const sourceChainIcon = sourceChainId ? _chunkU7SVYWVDcjs.getChainIcon.call(void 0, sourceChainId) : void 0;
7722
+ const targetChainIcon = targetChainId ? _chunkU7SVYWVDcjs.getChainIcon.call(void 0, targetChainId) : void 0;
7680
7723
  const sourceSymbol = resolveTokenSymbol(deposit.token, sourceChainId);
7681
- const sourceTokenIcon = sourceSymbol ? _chunkHH46H6ZIcjs.getTokenIcon.call(void 0, sourceSymbol) : void 0;
7682
7724
  const rawAmount = deposit.sourceAmount && deposit.sourceAmount !== "0" ? deposit.sourceAmount : deposit.amount;
7683
7725
  const formattedAmount = rawAmount ? formatAmount(rawAmount, deposit.token, sourceChainId) : null;
7684
7726
  const displayAmount = formattedAmount ? sourceSymbol && /^USD/.test(sourceSymbol) ? `$${Number(formattedAmount).toLocaleString("en-US", {
@@ -7687,7 +7729,8 @@ function HistoryCard({ deposit }) {
7687
7729
  })}` : `${formattedAmount} ${sourceSymbol}` : "\u2014";
7688
7730
  const date = deposit.createdAt ? formatDate(deposit.createdAt) : null;
7689
7731
  const txTypeLabel = `Deposit${sourceSymbol ? ` ${sourceSymbol}` : ""}`;
7690
- const srcTxUrl = deposit.sourceTxHash ? getTxExplorerUrl(deposit.sourceTxHash, sourceChainId) : null;
7732
+ const srcTxHash = sourceChainId === "hypercore" ? deposit.txHash : deposit.sourceTxHash;
7733
+ const srcTxUrl = srcTxHash ? getTxExplorerUrl(srcTxHash, sourceChainId) : null;
7691
7734
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7692
7735
  "button",
7693
7736
  {
@@ -7698,7 +7741,7 @@ function HistoryCard({ deposit }) {
7698
7741
  children: [
7699
7742
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-row", children: [
7700
7743
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-icons", children: [
7701
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: sourceTokenIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) : sourceSymbol.slice(0, 2) }),
7744
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-token", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.TokenIcon, { symbol: sourceSymbol, fallback: sourceSymbol.slice(0, 2) }) }),
7702
7745
  sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-history-card-chain", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceChainIcon, alt: "" }) })
7703
7746
  ] }),
7704
7747
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-history-card-text", children: [
@@ -7725,7 +7768,7 @@ function HistoryCard({ deposit }) {
7725
7768
  targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetChainIcon, alt: "" }) })
7726
7769
  ] })
7727
7770
  ] }),
7728
- srcTxUrl && deposit.sourceTxHash && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
7771
+ srcTxUrl && srcTxHash && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
7729
7772
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Transaction details" }),
7730
7773
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
7731
7774
  "a",
@@ -7736,8 +7779,8 @@ function HistoryCard({ deposit }) {
7736
7779
  className: "rs-history-card-link",
7737
7780
  onClick: (e) => e.stopPropagation(),
7738
7781
  children: [
7739
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(deposit.sourceTxHash) }),
7740
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ArrowUpRightIcon, {})
7782
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenHash(srcTxHash) }),
7783
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ArrowUpRightIcon, {})
7741
7784
  ]
7742
7785
  }
7743
7786
  )
@@ -7752,7 +7795,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
7752
7795
  // src/DepositModal.tsx
7753
7796
 
7754
7797
  var ReownDepositInner = _react.lazy.call(void 0,
7755
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-CHVDFNEX.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7798
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-UND3DEJH.cjs"))).then((m) => ({ default: m.DepositModalReown }))
7756
7799
  );
7757
7800
  function sortByCreatedAtDesc(items) {
7758
7801
  return [...items].sort((a, b) => {
@@ -7801,9 +7844,9 @@ function DepositModalInner({
7801
7844
  defaultAmount,
7802
7845
  recipient,
7803
7846
  appBalanceUsd,
7804
- backendUrl = _chunkHH46H6ZIcjs.DEFAULT_BACKEND_URL,
7847
+ backendUrl = _chunkU7SVYWVDcjs.DEFAULT_BACKEND_URL,
7805
7848
  rpcUrls: rpcUrlsProp,
7806
- signerAddress = _chunkHH46H6ZIcjs.DEFAULT_SIGNER_ADDRESS,
7849
+ signerAddress = _chunkU7SVYWVDcjs.DEFAULT_SIGNER_ADDRESS,
7807
7850
  sessionChainIds,
7808
7851
  forceRegister = false,
7809
7852
  enableSolana = true,
@@ -7830,7 +7873,7 @@ function DepositModalInner({
7830
7873
  debug
7831
7874
  }) {
7832
7875
  const modalRef = _react.useRef.call(void 0, null);
7833
- const onReadyRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onReady);
7876
+ const onReadyRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onReady);
7834
7877
  const [currentScreen, setCurrentScreen] = _react.useState.call(void 0, "connect");
7835
7878
  const [swappedImmersive, setSwappedImmersive] = _react.useState.call(void 0, false);
7836
7879
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
@@ -7847,20 +7890,20 @@ function DepositModalInner({
7847
7890
  const cursorRef = _react.useRef.call(void 0, null);
7848
7891
  const historyStaleRef = _react.useRef.call(void 0, false);
7849
7892
  const historyLoadedRef = _react.useRef.call(void 0, false);
7850
- const targetChain = targetChainProp === "solana" ? "solana" : _chunkHH46H6ZIcjs.getChainId.call(void 0, targetChainProp);
7851
- const sourceChain = sourceChainProp ? _chunkHH46H6ZIcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7852
- const rpcUrls = _chunkUN6MEOOAcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
7893
+ const targetChain = targetChainProp === "solana" ? "solana" : _chunkU7SVYWVDcjs.getChainId.call(void 0, targetChainProp);
7894
+ const sourceChain = sourceChainProp ? _chunkU7SVYWVDcjs.getChainId.call(void 0, sourceChainProp) : void 0;
7895
+ const rpcUrls = _chunk7OKA6GNAcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
7853
7896
  const [recipientIsContract, setRecipientIsContract] = _react.useState.call(void 0, false);
7854
- const onErrorRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onError);
7897
+ const onErrorRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onError);
7855
7898
  _react.useEffect.call(void 0, () => {
7856
- if (targetChain !== _chunkHH46H6ZIcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7899
+ if (targetChain !== _chunkU7SVYWVDcjs.HYPERCORE_CHAIN_ID || !_viem.isAddress.call(void 0, recipient, { strict: false })) {
7857
7900
  setRecipientIsContract(false);
7858
7901
  return;
7859
7902
  }
7860
7903
  let cancelled = false;
7861
- _chunkUN6MEOOAcjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7904
+ _chunk7OKA6GNAcjs.getHyperEvmReadClient.call(void 0, rpcUrls).getCode({ address: recipient }).then((code) => {
7862
7905
  if (cancelled) return;
7863
- const isContract = _chunkHH46H6ZIcjs.isContractBytecode.call(void 0, code);
7906
+ const isContract = _chunkU7SVYWVDcjs.isContractBytecode.call(void 0, code);
7864
7907
  setRecipientIsContract(isContract);
7865
7908
  if (isContract) {
7866
7909
  _optionalChain([onErrorRef, 'access', _262 => _262.current, 'optionalCall', _263 => _263({
@@ -7876,7 +7919,7 @@ function DepositModalInner({
7876
7919
  };
7877
7920
  }, [targetChain, recipient, onErrorRef, rpcUrls]);
7878
7921
  const service = _react.useMemo.call(void 0,
7879
- () => _chunkUN6MEOOAcjs.createDepositService.call(void 0, backendUrl, {
7922
+ () => _chunk7OKA6GNAcjs.createDepositService.call(void 0, backendUrl, {
7880
7923
  debug,
7881
7924
  debugScope: "service:deposit"
7882
7925
  }),
@@ -7910,7 +7953,7 @@ function DepositModalInner({
7910
7953
  }, [store, targetChain, targetToken]);
7911
7954
  _react.useEffect.call(void 0, () => {
7912
7955
  if (isOpen && modalRef.current) {
7913
- _chunkUN6MEOOAcjs.applyTheme.call(void 0, modalRef.current, theme);
7956
+ _chunk7OKA6GNAcjs.applyTheme.call(void 0, modalRef.current, theme);
7914
7957
  }
7915
7958
  }, [isOpen, theme]);
7916
7959
  _react.useEffect.call(void 0, () => {
@@ -7991,7 +8034,7 @@ function DepositModalInner({
7991
8034
  fetchHistory("initial");
7992
8035
  }
7993
8036
  }, [historyOpen, fetchHistory]);
7994
- const onLifecycleRef = _chunkUN6MEOOAcjs.useLatestRef.call(void 0, onLifecycle);
8037
+ const onLifecycleRef = _chunk7OKA6GNAcjs.useLatestRef.call(void 0, onLifecycle);
7995
8038
  const handleLifecycle = _react.useCallback.call(void 0,
7996
8039
  (event) => {
7997
8040
  _optionalChain([onLifecycleRef, 'access', _266 => _266.current, 'optionalCall', _267 => _267(event)]);
@@ -8027,8 +8070,8 @@ function DepositModalInner({
8027
8070
  const canGoBack = backHandler !== void 0;
8028
8071
  const hideHeaderChrome = swappedImmersive;
8029
8072
  const modalClassName = `rs-modal${hideHeaderChrome ? " rs-modal--swapped-iframe" : ""}`;
8030
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8031
- _chunkUN6MEOOAcjs.Modal,
8073
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8074
+ _chunk7OKA6GNAcjs.Modal,
8032
8075
  {
8033
8076
  isOpen,
8034
8077
  onClose,
@@ -8044,7 +8087,7 @@ function DepositModalInner({
8044
8087
  className: "rs-modal-header-back",
8045
8088
  "aria-label": "Go back",
8046
8089
  onClick: backHandler,
8047
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.ChevronLeftIcon, {})
8090
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.ChevronLeftIcon, {})
8048
8091
  }
8049
8092
  ) }),
8050
8093
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [
@@ -8056,7 +8099,7 @@ function DepositModalInner({
8056
8099
  "aria-label": "Deposit history",
8057
8100
  onClick: handleHistoryOpen,
8058
8101
  disabled: !recipient,
8059
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.HistoryIcon, {})
8102
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.HistoryIcon, {})
8060
8103
  }
8061
8104
  ),
8062
8105
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -8066,12 +8109,12 @@ function DepositModalInner({
8066
8109
  onClick: onClose,
8067
8110
  className: "rs-modal-close",
8068
8111
  "aria-label": "Close",
8069
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.CloseIcon, {})
8112
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.CloseIcon, {})
8070
8113
  }
8071
8114
  )
8072
8115
  ] })
8073
8116
  ] }),
8074
- recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUN6MEOOAcjs.Callout, { variant: "error", children: "HyperCore deposits require an EOA recipient. The configured recipient is a smart contract, which is not supported." }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8117
+ recipientIsContract ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7OKA6GNAcjs.Callout, { variant: "error", children: "HyperCore deposits require an EOA recipient. The configured recipient is a smart contract, which is not supported." }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
8075
8118
  DepositFlow,
8076
8119
  {
8077
8120
  dappWalletClient,