@rhinestone/deposit-modal 0.3.0-alpha.0 → 0.3.0-alpha.2

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.
@@ -9,7 +9,7 @@
9
9
 
10
10
 
11
11
 
12
- var _chunkXCAF6B3Dcjs = require('./chunk-XCAF6B3D.cjs');
12
+ var _chunkIVTXEYB2cjs = require('./chunk-IVTXEYB2.cjs');
13
13
 
14
14
  // src/components/ui/Modal.tsx
15
15
 
@@ -771,7 +771,7 @@ function createDepositService(baseUrl, options) {
771
771
  return result;
772
772
  },
773
773
  async fetchDepositHistory(params) {
774
- const searchParams = new URLSearchParams({ account: params.account });
774
+ const searchParams = new URLSearchParams({ recipient: params.recipient });
775
775
  searchParams.set("limit", String(_nullishCoalesce(params.limit, () => ( 20))));
776
776
  if (params.cursor) {
777
777
  searchParams.set("cursor", params.cursor);
@@ -779,7 +779,7 @@ function createDepositService(baseUrl, options) {
779
779
  const url = apiUrl(`/deposits?${searchParams.toString()}`);
780
780
  debugLog(debug, scope, "fetchDepositHistory:request", {
781
781
  url,
782
- account: shortRef(params.account),
782
+ recipient: shortRef(params.recipient),
783
783
  cursor: params.cursor
784
784
  });
785
785
  const response = await fetch(url, {
@@ -794,7 +794,7 @@ function createDepositService(baseUrl, options) {
794
794
  scope,
795
795
  "fetchDepositHistory:failed",
796
796
  error,
797
- { status: response.status, account: shortRef(params.account) }
797
+ { status: response.status, recipient: shortRef(params.recipient) }
798
798
  );
799
799
  throw new Error(
800
800
  error.error || `Deposit history fetch failed: ${response.status}`
@@ -804,7 +804,7 @@ function createDepositService(baseUrl, options) {
804
804
  const deposits = Array.isArray(_optionalChain([data, 'optionalAccess', _18 => _18.deposits])) ? data.deposits : [];
805
805
  const nextCursor = _nullishCoalesce(_nullishCoalesce(_optionalChain([data, 'optionalAccess', _19 => _19.nextCursor]), () => ( _optionalChain([data, 'optionalAccess', _20 => _20.next_cursor]))), () => ( null));
806
806
  debugLog(debug, scope, "fetchDepositHistory:success", {
807
- account: shortRef(params.account),
807
+ recipient: shortRef(params.recipient),
808
808
  count: deposits.length,
809
809
  hasMore: Boolean(nextCursor)
810
810
  });
@@ -881,14 +881,14 @@ function normalizeOrchestratorPortfolio(data) {
881
881
  const unlocked = _nullishCoalesce(_optionalChain([chainBalance, 'access', _24 => _24.balance, 'optionalAccess', _25 => _25.unlocked]), () => ( "0"));
882
882
  const normalizedName = tokenData.tokenName.trim();
883
883
  const isNativeSymbol = normalizedName.toUpperCase() === "ETH" || normalizedName.toUpperCase() === "ETHER";
884
- const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunkXCAF6B3Dcjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
885
- const resolvedTokenAddress = isNativeSymbol ? _chunkXCAF6B3Dcjs.NATIVE_TOKEN_ADDRESS : tokenAddress;
884
+ const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunkIVTXEYB2cjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
885
+ const resolvedTokenAddress = isNativeSymbol ? _chunkIVTXEYB2cjs.NATIVE_TOKEN_ADDRESS : tokenAddress;
886
886
  if (!resolvedTokenAddress) {
887
887
  continue;
888
888
  }
889
- const registrySymbol = _chunkXCAF6B3Dcjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
889
+ const registrySymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
890
890
  const symbol = registrySymbol !== "Token" ? registrySymbol : normalizedName || "Token";
891
- const decimals = registrySymbol !== "Token" ? _chunkXCAF6B3Dcjs.getTokenDecimalsByAddress.call(void 0, resolvedTokenAddress, chainBalance.chainId) : _nullishCoalesce(tokenData.tokenDecimals, () => ( 18));
891
+ const decimals = registrySymbol !== "Token" ? _chunkIVTXEYB2cjs.getTokenDecimalsByAddress.call(void 0, resolvedTokenAddress, chainBalance.chainId) : _nullishCoalesce(tokenData.tokenDecimals, () => ( 18));
892
892
  tokens.push({
893
893
  chainId: chainBalance.chainId,
894
894
  address: resolvedTokenAddress,
@@ -917,14 +917,14 @@ function normalizeDirectToken(token) {
917
917
  const address = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "address"), () => ( extractString(token, "tokenAddress"))), () => ( extractString(
918
918
  token.token,
919
919
  "address"
920
- ))), () => ( (typeof chainId === "number" ? _chunkXCAF6B3Dcjs.getTokenAddress.call(void 0, symbol, chainId) : void 0)));
920
+ ))), () => ( (typeof chainId === "number" ? _chunkIVTXEYB2cjs.getTokenAddress.call(void 0, symbol, chainId) : void 0)));
921
921
  if (!address) return null;
922
922
  const balanceUsd = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractNumber(token, "balanceUsd"), () => ( extractNumber(token, "usdValue"))), () => ( extractNumber(token, "valueUsd"))), () => ( extractNumericString(token, "balanceUsd"))), () => ( extractNumericString(token, "usdValue"))), () => ( extractNumericString(token, "valueUsd"))), () => ( 0));
923
923
  const isSolanaToken = chainId === "solana";
924
- const registrySymbol = isSolanaToken ? "Token" : _chunkXCAF6B3Dcjs.getTokenSymbol.call(void 0, address, chainId);
924
+ const registrySymbol = isSolanaToken ? "Token" : _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, address, chainId);
925
925
  const resolvedSymbol = isSolanaToken ? symbol : registrySymbol !== "Token" ? registrySymbol : symbol;
926
926
  const backendDecimals = _nullishCoalesce(extractNumber(token, "decimals"), () => ( extractNumber(token, "tokenDecimals")));
927
- const resolvedDecimals = !isSolanaToken && registrySymbol !== "Token" ? _chunkXCAF6B3Dcjs.getTokenDecimalsByAddress.call(void 0, address, chainId) : _nullishCoalesce(backendDecimals, () => ( 18));
927
+ const resolvedDecimals = !isSolanaToken && registrySymbol !== "Token" ? _chunkIVTXEYB2cjs.getTokenDecimalsByAddress.call(void 0, address, chainId) : _nullishCoalesce(backendDecimals, () => ( 18));
928
928
  return {
929
929
  chainId,
930
930
  address,
@@ -1522,7 +1522,7 @@ function ConnectStep({
1522
1522
  const hasReownWallet = options.some(
1523
1523
  (option) => option.kind === "external" || option.kind === "solana"
1524
1524
  );
1525
- const extraChainCount = Math.max(0, _chunkXCAF6B3Dcjs.getSupportedChainIds.call(void 0, ).length - 3);
1525
+ const extraChainCount = Math.max(0, _chunkIVTXEYB2cjs.getSupportedChainIds.call(void 0, ).length - 3);
1526
1526
  const chainBadge2 = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1527
1527
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChainBadgeIcons, {}),
1528
1528
  extraChainCount > 0 ? `+${extraChainCount} chains` : "All chains"
@@ -2398,11 +2398,11 @@ function ProcessingStep({
2398
2398
  const displaySourceChain = _nullishCoalesce(sourceDetails.chainId, () => ( sourceChain));
2399
2399
  const displaySourceToken = _nullishCoalesce(sourceDetails.token, () => ( sourceToken));
2400
2400
  const displayAmount = _nullishCoalesce(sourceDetails.amount, () => ( amount));
2401
- const sourceExplorerUrl = _chunkXCAF6B3Dcjs.getExplorerTxUrl.call(void 0, displaySourceChain, txHash);
2402
- const destExplorerUrl = destinationTxHash ? _chunkXCAF6B3Dcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
2401
+ const sourceExplorerUrl = _chunkIVTXEYB2cjs.getExplorerTxUrl.call(void 0, displaySourceChain, txHash);
2402
+ const destExplorerUrl = destinationTxHash ? _chunkIVTXEYB2cjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
2403
2403
  const isEvmSourceToken = /^0x[a-fA-F0-9]{40}$/.test(displaySourceToken);
2404
- const sourceSymbol = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceSymbol, () => ( "SOL")) : isEvmSourceToken ? _chunkXCAF6B3Dcjs.getTokenSymbol.call(void 0, displaySourceToken, displaySourceChain) : _nullishCoalesce(providedSourceSymbol, () => ( "Token"));
2405
- const sourceDecimals = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceDecimals, () => ( 9)) : isEvmSourceToken ? _chunkXCAF6B3Dcjs.getTokenDecimalsByAddress.call(void 0,
2404
+ const sourceSymbol = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceSymbol, () => ( "SOL")) : isEvmSourceToken ? _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, displaySourceToken, displaySourceChain) : _nullishCoalesce(providedSourceSymbol, () => ( "Token"));
2405
+ const sourceDecimals = displaySourceChain === "solana" ? _nullishCoalesce(providedSourceDecimals, () => ( 9)) : isEvmSourceToken ? _chunkIVTXEYB2cjs.getTokenDecimalsByAddress.call(void 0,
2406
2406
  displaySourceToken,
2407
2407
  displaySourceChain
2408
2408
  ) : _nullishCoalesce(providedSourceDecimals, () => ( 18));
@@ -2426,16 +2426,16 @@ function ProcessingStep({
2426
2426
  void hasEscalatedDelay;
2427
2427
  const targetSymbol = (() => {
2428
2428
  if (typeof targetToken === "string" && /^0x[a-fA-F0-9]{40}$/.test(targetToken)) {
2429
- return _chunkXCAF6B3Dcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
2429
+ return _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
2430
2430
  }
2431
2431
  return _nullishCoalesce(providedSourceSymbol, () => ( "USDC"));
2432
2432
  })();
2433
- const targetTokenIcon = _chunkXCAF6B3Dcjs.getTokenIcon.call(void 0, targetSymbol);
2434
- const sourceChainIcon = _chunkXCAF6B3Dcjs.getChainIcon.call(void 0, displaySourceChain);
2435
- const targetChainIcon = _chunkXCAF6B3Dcjs.getChainIcon.call(void 0, targetChain);
2436
- const sourceTokenIcon = _chunkXCAF6B3Dcjs.getTokenIcon.call(void 0, sourceSymbol);
2437
- const sourceChainName = _chunkXCAF6B3Dcjs.getChainName.call(void 0, displaySourceChain);
2438
- const targetChainName = _chunkXCAF6B3Dcjs.getChainName.call(void 0, targetChain);
2433
+ const targetTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, targetSymbol);
2434
+ const sourceChainIcon = _chunkIVTXEYB2cjs.getChainIcon.call(void 0, displaySourceChain);
2435
+ const targetChainIcon = _chunkIVTXEYB2cjs.getChainIcon.call(void 0, targetChain);
2436
+ const sourceTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, sourceSymbol);
2437
+ const sourceChainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, displaySourceChain);
2438
+ const targetChainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
2439
2439
  const totalTimeText = formatElapsedTime(elapsedSeconds);
2440
2440
  const feeSymbol = _nullishCoalesce(quotedFeeSymbol, () => ( sourceSymbol));
2441
2441
  const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _150 => _150.feeSponsored]), () => ( false));
@@ -2570,7 +2570,7 @@ var clientCache = /* @__PURE__ */ new Map();
2570
2570
  function getPublicClient(chainId) {
2571
2571
  let client = clientCache.get(chainId);
2572
2572
  if (!client) {
2573
- const chain = _chunkXCAF6B3Dcjs.CHAIN_BY_ID[chainId];
2573
+ const chain = _chunkIVTXEYB2cjs.CHAIN_BY_ID[chainId];
2574
2574
  client = _viem.createPublicClient.call(void 0, {
2575
2575
  chain,
2576
2576
  transport: _viem.http.call(void 0, )
@@ -30,7 +30,8 @@ var CHAIN_ICONS = {
30
30
  var TOKEN_ICONS = {
31
31
  USDC: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 2000'%3E%3Cpath d='M1000 2000c554.17 0 1000-445.83 1000-1000S1554.17 0 1000 0 0 445.83 0 1000s445.83 1000 1000 1000z' fill='%232775ca'/%3E%3Cpath d='M1275 1158.33c0-145.83-87.5-195.83-262.5-216.66-125-16.67-150-50-150-108.34s41.67-95.83 125-95.83c75 0 116.67 25 137.5 87.5 4.17 12.5 16.67 20.83 29.17 20.83h66.66c16.67 0 29.17-12.5 29.17-29.16v-4.17c-16.67-91.67-91.67-162.5-187.5-170.83v-100c0-16.67-12.5-29.17-33.33-33.34h-62.5c-16.67 0-29.17 12.5-33.34 33.34v95.83c-125 16.67-204.16 100-204.16 204.17 0 137.5 83.33 191.66 258.33 212.5 116.67 20.83 154.17 45.83 154.17 112.5s-58.34 112.5-137.5 112.5c-108.34 0-145.84-45.84-158.34-108.34-4.16-16.66-16.66-25-29.16-25h-70.84c-16.66 0-29.16 12.5-29.16 29.17v4.17c16.66 104.16 83.33 179.16 220.83 200v100c0 16.66 12.5 29.16 33.33 33.33h62.5c16.67 0 29.17-12.5 33.34-33.33v-100c125-20.84 208.33-108.34 208.33-220.84z' fill='%23fff'/%3E%3Cpath d='M787.5 1595.83c-325-116.66-491.67-479.16-370.83-800 62.5-175 200-308.33 370.83-370.83 16.67-8.33 25-20.83 25-41.67V325c0-16.67-8.33-29.17-25-33.33-4.17 0-12.5 0-16.67 4.16-395.83 125-612.5 545.84-487.5 941.67 75 233.33 254.17 412.5 487.5 487.5 16.67 8.33 33.34 0 37.5-16.67 4.17-4.16 4.17-8.33 4.17-16.66v-58.34c0-12.5-12.5-29.16-25-37.5zm441.67-1300c-16.67-8.33-33.34 0-37.5 16.67-4.17 4.17-4.17 8.33-4.17 16.67v58.33c0 16.67 12.5 33.33 25 41.67 325 116.66 491.67 479.16 370.83 800-62.5 175-200 308.33-370.83 370.83-16.67 8.33-25 20.83-25 41.67V1700c0 16.67 8.33 29.17 25 33.33 4.17 0 12.5 0 16.67-4.16 395.83-125 612.5-545.84 487.5-941.67-75-237.5-258.34-416.67-487.5-491.67z' fill='%23fff'/%3E%3C/svg%3E",
32
32
  ETH: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M9.99987 19.9319C15.4852 19.9319 19.9319 15.4852 19.9319 9.9999C19.9319 4.51461 15.4852 0.0679016 9.99987 0.0679016C4.51458 0.0679016 0.0678711 4.51461 0.0678711 9.9999C0.0678711 15.4852 4.51458 19.9319 9.99987 19.9319Z' fill='%23E3E3E3'/%3E%3Cpath d='M10.0073 2.18121L14.6948 9.99371L10.0247 7.98052L10.0073 2.18121Z' fill='%232F3030'/%3E%3Cpath d='M5.31982 9.99371L9.98998 2.18121L10.0073 7.98052L5.31982 9.99371Z' fill='%23828384'/%3E%3Cpath d='M9.98998 12.8062L5.31982 10.047L10.0073 8.11871L9.98998 12.8062Z' fill='%23343535'/%3E%3Cpath d='M14.6948 10.047L10.0247 8.11871L10.0073 12.8062L14.6948 10.047Z' fill='%23131313'/%3E%3Cpath d='M10.0073 14.0046L14.6948 11.2437L10.0073 17.8062V14.0046Z' fill='%232F3030'/%3E%3Cpath d='M10.0073 14.0046L5.31982 11.2437L10.0073 17.8062V14.0046Z' fill='%23828384'/%3E%3C/svg%3E",
33
- USDT: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 339.43 295.27'%3E%3Cpath fill='%2350af95' fill-rule='evenodd' d='M62.15%2C1.45l-61.89%2C130a2.52%2C2.52%2C0%2C0%2C0%2C.54%2C2.94L167.95%2C294.56a2.55%2C2.55%2C0%2C0%2C0%2C3.53%2C0L338.63%2C134.4a2.52%2C2.52%2C0%2C0%2C0%2C.54-2.94l-61.89-130A2.5%2C2.5%2C0%2C0%2C0%2C275%2C0H64.45a2.5%2C2.5%2C0%2C0%2C0-2.3%2C1.45z'/%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M191.19%2C144.8v0c-1.2.09-7.4.46-21.23.46-11%2C0-18.81-.33-21.55-.46v0c-42.51-1.87-74.24-9.27-74.24-18.13s31.73-16.25%2C74.24-18.15v28.91c2.78.2%2C10.74.67%2C21.74.67%2C13.2%2C0%2C19.81-.55%2C21-.66v-28.9c42.42%2C1.89%2C74.08%2C9.29%2C74.08%2C18.13s-31.65%2C16.24-74.08%2C18.12zm0-39.25V79.68h59.2V40.23H89.21V79.68H148.4v25.86c-48.11%2C2.21-84.29%2C11.74-84.29%2C23.16s36.18%2C20.94%2C84.29%2C23.16v82.9h42.78V151.83c48-2.21%2C84.12-11.73%2C84.12-23.14s-36.09-20.93-84.12-23.15z'/%3E%3C/svg%3E",
33
+ USDT: "data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle cx='16' cy='16' r='16' fill='%2326A17B'/%3E%3Cpath fill='%23FFF' d='M17.922 17.383v-.002c-.11.008-.677.042-1.942.042-1.01 0-1.721-.03-1.971-.042v.003c-3.888-.171-6.79-.848-6.79-1.658 0-.809 2.902-1.486 6.79-1.66v2.644c.254.018.982.061 1.988.061 1.207 0 1.812-.05 1.925-.06v-2.643c3.88.173 6.775.85 6.775 1.658 0 .81-2.895 1.485-6.775 1.657m0-3.59v-2.366h5.414V7.819H8.595v3.608h5.414v2.365c-4.4.202-7.709 1.074-7.709 2.118 0 1.044 3.309 1.915 7.709 2.118v7.582h3.913v-7.584c4.393-.202 7.694-1.073 7.694-2.116 0-1.043-3.301-1.914-7.694-2.117'/%3E%3C/g%3E%3C/svg%3E",
34
+ USDT0: "data:image/svg+xml,%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 { fill: %23009393; } .cls-1%2C .cls-2 { stroke-width: 0px; } .cls-2 { fill: %23fff; fill-rule: evenodd; } %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Ccircle class='cls-1' cx='400' cy='400' r='400'/%3E%3Cpath class='cls-2' d='M400.49%2C428.59c68.79%2C0%2C126.28-11.63%2C140.33-27.17-11.93-13.18-55.08-23.56-109.88-26.4v32.83c-9.81.51-20.01.76-30.46.76s-20.65-.25-30.48-.76v-32.83c-54.78%2C2.84-97.95%2C13.22-109.88%2C26.4%2C14.07%2C15.54%2C71.57%2C27.17%2C140.36%2C27.17ZM522.71%2C274.06v45.21h-91.77v31.35c64.46%2C3.35%2C112.83%2C17.13%2C113.19%2C33.62v34.38c-.36%2C16.49-48.73%2C30.24-113.19%2C33.6v76.94h-60.93v-76.94c-64.46-3.35-112.81-17.11-113.17-33.6v-34.38c.36-16.49%2C48.71-30.27%2C113.17-33.62v-31.35h-91.77v-45.21h244.48ZM242.15%2C202.11h322.16c7.7%2C0%2C14.79%2C4.05%2C18.63%2C10.63l93.85%2C161.16c4.86%2C8.36%2C3.42%2C18.91-3.52%2C25.68l-258.34%2C252.18c-8.38%2C8.17-21.84%2C8.17-30.2%2C0L126.71%2C399.92c-7.09-6.94-8.43-17.79-3.2-26.19l100.33-161.49c3.91-6.28%2C10.85-10.12%2C18.32-10.12Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",
34
35
  WETH: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M9.99987 19.9319C15.4852 19.9319 19.9319 15.4852 19.9319 9.9999C19.9319 4.51461 15.4852 0.0679016 9.99987 0.0679016C4.51458 0.0679016 0.0678711 4.51461 0.0678711 9.9999C0.0678711 15.4852 4.51458 19.9319 9.99987 19.9319Z' fill='%23E3E3E3'/%3E%3Cpath d='M10.0073 2.18121L14.6948 9.99371L10.0247 7.98052L10.0073 2.18121Z' fill='%232F3030'/%3E%3Cpath d='M5.31982 9.99371L9.98998 2.18121L10.0073 7.98052L5.31982 9.99371Z' fill='%23828384'/%3E%3Cpath d='M9.98998 12.8062L5.31982 10.047L10.0073 8.11871L9.98998 12.8062Z' fill='%23343535'/%3E%3Cpath d='M14.6948 10.047L10.0247 8.11871L10.0073 12.8062L14.6948 10.047Z' fill='%23131313'/%3E%3Cpath d='M10.0073 14.0046L14.6948 11.2437L10.0073 17.8062V14.0046Z' fill='%232F3030'/%3E%3Cpath d='M10.0073 14.0046L5.31982 11.2437L10.0073 17.8062V14.0046Z' fill='%23828384'/%3E%3C/svg%3E",
35
36
  BNB: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2496 2496'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23F0B90B' d='M1248%2C0c689.3%2C0%2C1248%2C558.7%2C1248%2C1248s-558.7%2C1248-1248%2C1248S0%2C1937.3%2C0%2C1248S558.7%2C0%2C1248%2C0z'/%3E%3Cpath fill='%23FFFFFF' d='M685.9%2C1248l0.9%2C330l280.4%2C165v193.2l-444.5-260.7v-524L685.9%2C1248z M685.9%2C918v192.3l-163.3-96.6V821.4l163.3-96.6l164.1%2C96.6L685.9%2C918z M1084.3%2C821.4l163.3-96.6l164.1%2C96.6L1247.6%2C918L1084.3%2C821.4z'/%3E%3Cpath fill='%23FFFFFF' d='M803.9%2C1509.6v-193.2l163.3%2C96.6v192.3L803.9%2C1509.6z M1084.3%2C1812.2l163.3%2C96.6l164.1-96.6v192.3l-164.1%2C96.6l-163.3-96.6V1812.2z M1645.9%2C821.4l163.3-96.6l164.1%2C96.6v192.3l-164.1%2C96.6V918L1645.9%2C821.4z M1809.2%2C1578l0.9-330l163.3-96.6v524l-444.5%2C260.7v-193.2L1809.2%2C1578z'/%3E%3Cpolygon fill='%23FFFFFF' points='1692.1%2C1509.6 1528.8%2C1605.3 1528.8%2C1413 1692.1%2C1316.4 1692.1%2C1509.6'/%3E%3Cpath fill='%23FFFFFF' d='M1692.1%2C986.4l0.9%2C193.2l-281.2%2C165v330.8l-163.3%2C95.7l-163.3-95.7v-330.8l-281.2-165V986.4L968%2C889.8l279.5%2C165.8l281.2-165.8l164.1%2C96.6H1692.1z M803.9%2C656.5l443.7-261.6l444.5%2C261.6l-163.3%2C96.6l-281.2-165.8L967.2%2C753.1L803.9%2C656.5z'/%3E%3C/svg%3E",
36
37
  XPL: "data:image/svg+xml,%3Csvg width='166' height='166' viewBox='0 0 166 166' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='166' height='166' fill='%23162F29'/%3E%3Cpath d='M133 83.268C133 83.7749 132.993 84.2819 132.978 84.7888H108.659V83.6808H85.2523C85.2523 83.449 85.2596 83.2173 85.2596 82.9928C85.2596 82.7682 85.2596 82.5293 85.2523 82.3047H108.659V81.2039H132.957C132.986 81.8919 133 82.58 133 83.268ZM84.8395 78.2781L107.747 75.4609L107.884 76.5617L132.073 73.5852C131.841 72.3974 131.566 71.2242 131.255 70.0727L107.442 73.0058L107.58 74.1066L84.5643 76.9383C84.6657 77.3873 84.7598 77.8363 84.8395 78.2926V78.2781ZM83.6446 73.8459L105.538 68.378L105.806 69.4499L129.039 63.6489C128.561 62.5264 128.046 61.4183 127.496 60.3392L104.944 65.9736L105.212 67.0455L83.1376 72.564C83.3187 72.9913 83.4852 73.4186 83.6446 73.8531V73.8459ZM81.7036 69.6961L102.17 61.9687L102.561 63.0043L124.215 54.8279C123.513 53.7995 122.774 52.8001 121.992 51.8297L101.294 59.644L101.685 60.6796L80.9722 68.5012C81.2257 68.8922 81.4719 69.2906 81.7036 69.6961ZM79.0168 65.8578L97.0933 56.4357L97.6002 57.4206L117.589 46.9991C116.669 46.1083 115.713 45.261 114.728 44.4426L95.9418 54.2341L96.4487 55.219L78.0681 64.8004C78.3867 65.148 78.7054 65.4957 79.0096 65.8578H79.0168ZM74.657 61.7152L91.0243 51.3082L91.6182 52.2425L109.68 40.7564C108.543 40.0322 107.384 39.3586 106.189 38.7286L89.699 49.2152L90.2929 50.1495L73.4548 60.8534C73.8676 61.1286 74.2659 61.4183 74.6642 61.7152H74.657ZM70.7897 59.2963L84.5064 48.0492L85.2089 48.9038L100.656 36.23C99.3456 35.7303 97.9985 35.2813 96.637 34.8902L82.9348 46.1301L83.6373 46.9846L69.4209 58.6446C69.8844 58.8473 70.3407 59.0646 70.7897 59.2963ZM65.6695 57.3048L76.5038 46.5211L77.2787 47.3033L91.0461 33.6228C89.5542 33.3766 88.0406 33.1955 86.5052 33.0797L74.7656 44.7613L75.5406 45.5435L64.0979 56.9282C64.6266 57.0368 65.148 57.1599 65.6695 57.3048ZM59.6802 56.3995L68.3201 45.9273L69.1747 46.6298L80.4218 33C78.7126 33.0797 77.0252 33.2462 75.3667 33.4925L66.4082 44.3485L67.2627 45.051L57.9058 56.3922C58.1666 56.385 58.4345 56.3777 58.6952 56.3777C59.0284 56.3777 59.3543 56.3778 59.6802 56.3922V56.3995ZM54.502 56.7109L61.1576 46.4125L62.0846 47.0136L70.1306 34.5571C68.2911 35.0351 66.4951 35.6144 64.7425 36.2879L59.0791 45.0582L60.0061 45.6593L52.6335 57.073C53.2491 56.9282 53.872 56.805 54.502 56.7036V56.7109ZM48.7517 58.3114L53.5388 49.3384L54.5093 49.8598L60.8462 37.9899C58.8111 38.982 56.8557 40.1046 54.9873 41.3502L51.3444 48.1724L52.3221 48.6938L46.6877 59.2529C47.354 58.9125 48.042 58.6011 48.7445 58.3187L48.7517 58.3114ZM44.6237 60.4189L46.6587 54.6396L47.7016 55.009L51.6559 43.7836C49.6498 45.3769 47.7668 47.115 46.0214 48.9907L44.3195 53.8213L45.3624 54.1906L42.6973 61.7515C43.3201 61.2807 43.9574 60.8389 44.6165 60.4261L44.6237 60.4189ZM39.5469 64.5542L40.445 60.3537L41.524 60.5855L43.3346 52.1266C41.4299 54.5455 39.7425 57.1454 38.3013 59.8902L39.1052 60.064L37.4539 67.0165C38.0985 66.1547 38.801 65.3291 39.5469 64.5542ZM35.8172 69.4644V63.9024C34.4702 67.4583 33.5142 71.8833 33 76.2213C33.6301 73.8169 34.586 71.5501 35.8172 69.4644ZM33.0362 89.909C33.5649 93.6098 34.4919 97.1802 35.781 100.577V96.4704C34.5933 94.4426 33.659 92.241 33.0362 89.909ZM37.6278 99.2152L39.0689 105.936L38.2651 106.11C39.7063 108.862 41.3937 111.455 43.2984 113.873L41.4878 105.415L40.4087 105.646L39.4962 101.395C38.8372 100.7 38.2071 99.9757 37.6278 99.208V99.2152ZM42.6466 104.212L45.3262 111.817L44.2833 112.186L45.9852 117.017C47.7306 118.892 49.6136 120.63 51.6196 122.224L47.6654 110.998L46.6225 111.368L44.5802 105.559C43.9212 105.139 43.2767 104.698 42.6538 104.227L42.6466 104.212ZM46.6443 106.725L52.2932 117.313L51.3155 117.835L54.9583 124.657C56.8268 125.903 58.7822 127.025 60.8172 128.017L54.4803 116.147L53.5026 116.669L48.701 107.674C47.9985 107.392 47.3105 107.073 46.637 106.733L46.6443 106.725ZM52.5901 108.913L59.9699 120.341L59.0429 120.942L64.7063 129.712C66.4589 130.386 68.2549 130.965 70.0944 131.443L62.0484 118.986L61.1214 119.587L54.4586 109.275C53.8285 109.173 53.1984 109.05 52.5828 108.905L52.5901 108.913ZM57.8624 109.608L67.2193 120.949L66.3647 121.652L75.3233 132.508C76.9817 132.754 78.6692 132.92 80.3783 133L69.1312 119.363L68.2766 120.065L59.6367 109.593C59.3253 109.608 59.0067 109.608 58.688 109.608C58.4128 109.608 58.1304 109.608 57.8552 109.593L57.8624 109.608ZM64.0689 109.072L75.5043 120.449L74.7294 121.231L86.469 132.913C88.0043 132.797 89.518 132.616 91.0098 132.37L77.2497 118.682L76.4676 119.472L65.6405 108.695C65.1263 108.833 64.5976 108.963 64.0689 109.072ZM69.3992 107.37L83.6011 119.023L82.8986 119.877L96.6008 131.117C97.9623 130.726 99.3094 130.277 100.62 129.777L85.1654 117.103L84.4629 117.958L70.7607 106.718C70.3117 106.95 69.8554 107.167 69.3919 107.37H69.3992ZM73.4258 105.154L90.2422 115.851L89.6483 116.785L106.139 127.271C107.334 126.641 108.5 125.961 109.629 125.244L91.5675 113.758L90.9736 114.692L74.628 104.299C74.2297 104.596 73.8314 104.886 73.4186 105.161L73.4258 105.154ZM78.0608 101.214L96.4198 110.781L95.9128 111.766L114.699 121.557C115.684 120.739 116.64 119.892 117.56 119.001L97.5713 108.579L97.0643 109.564L79.0096 100.157C78.7054 100.519 78.394 100.874 78.0681 101.214H78.0608ZM80.9649 97.5061L101.649 105.32L101.258 106.356L121.956 114.17C122.731 113.2 123.469 112.2 124.179 111.172L102.525 102.996L102.134 104.031L81.6964 96.3111C81.4646 96.7167 81.2184 97.115 80.9649 97.5061ZM83.1304 93.4505L105.168 98.9545L104.9 100.026L127.452 105.661C128.01 104.582 128.524 103.474 129.002 102.351L105.769 96.5501L105.501 97.622L83.6373 92.1614C83.478 92.5959 83.3042 93.0232 83.1304 93.4505ZM84.5643 89.0762L107.544 91.9006L107.406 93.0014L131.218 95.9345C131.53 94.7758 131.805 93.6026 132.037 92.4221L107.848 89.4455L107.71 90.5463L84.8395 87.7291C84.7598 88.1854 84.6657 88.6344 84.5643 89.0834V89.0762Z' fill='white'/%3E%3C/svg%3E"
@@ -43,8 +44,9 @@ function getChainIcon(chainId) {
43
44
  return CHAIN_ICONS[chainId];
44
45
  }
45
46
  function getTokenIcon(symbol) {
46
- if (symbol.toUpperCase() === "SOL") return SOLANA_TOKEN_ICON;
47
- return TOKEN_ICONS[symbol.toUpperCase()];
47
+ const upper = symbol.toUpperCase();
48
+ if (upper === "SOL") return SOLANA_TOKEN_ICON;
49
+ return TOKEN_ICONS[upper];
48
50
  }
49
51
 
50
52
  // src/core/constants.ts
@@ -79,15 +81,8 @@ var SUPPORTED_TOKEN_MATRIX = {
79
81
  ETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
80
82
  WETH: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
81
83
  USDC: [_chains.mainnet.id, _chains.base.id, _chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.soneium.id],
82
- USDT: [
83
- _chains.mainnet.id,
84
- _chains.arbitrum.id,
85
- _chains.optimism.id,
86
- _chains.polygon.id,
87
- _chains.bsc.id,
88
- _chains.plasma.id,
89
- _chains.soneium.id
90
- ]
84
+ USDT: [_chains.mainnet.id, _chains.bsc.id, _chains.soneium.id],
85
+ USDT0: [_chains.arbitrum.id, _chains.optimism.id, _chains.polygon.id, _chains.plasma.id]
91
86
  };
92
87
  var CHAIN_DISPLAY_ORDER = [
93
88
  _chains.mainnet.id,
@@ -121,12 +116,6 @@ var SUPPORTED_TOKENS_BY_CHAIN = Object.fromEntries(
121
116
  return [chainId, symbols];
122
117
  })
123
118
  );
124
- var SYMBOL_ALIASES = {
125
- USDT: ["USDT", "USDT0"]
126
- };
127
- var CANONICAL_SYMBOL_BY_REGISTRY_SYMBOL = {
128
- USDT0: "USDT"
129
- };
130
119
  var chainRegistry = {
131
120
  [_chains.mainnet.id]: {
132
121
  name: _chains.mainnet.name,
@@ -143,7 +132,7 @@ var chainRegistry = {
143
132
  decimals: 18
144
133
  },
145
134
  {
146
- symbol: "USDT0",
135
+ symbol: "USDT",
147
136
  address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
148
137
  decimals: 6
149
138
  }
@@ -295,8 +284,7 @@ function normalizeTokenSymbol(symbol) {
295
284
  if (_optionalChain([wrapped, 'optionalAccess', _ => _[1]])) {
296
285
  return wrapped[1].trim().toUpperCase();
297
286
  }
298
- const upper = trimmed.toUpperCase();
299
- return _nullishCoalesce(CANONICAL_SYMBOL_BY_REGISTRY_SYMBOL[upper], () => ( upper));
287
+ return trimmed.toUpperCase();
300
288
  }
301
289
  function isSymbolSupportedOnChain(symbol, chainId) {
302
290
  const symbols = SUPPORTED_TOKENS_BY_CHAIN[chainId];
@@ -307,14 +295,11 @@ function getTokenFromRegistry(chainId, symbol) {
307
295
  const chainEntry = chainRegistry[String(chainId)];
308
296
  if (!chainEntry) return void 0;
309
297
  const normalized = normalizeTokenSymbol(symbol);
310
- const candidates = _nullishCoalesce(SYMBOL_ALIASES[normalized], () => ( [normalized]));
311
- for (const candidate of candidates) {
312
- const token = chainEntry.tokens.find(
313
- (t) => t.symbol.toUpperCase() === candidate
314
- );
315
- if (token) {
316
- return { address: token.address, decimals: token.decimals };
317
- }
298
+ const token = chainEntry.tokens.find(
299
+ (t) => t.symbol.toUpperCase() === normalized
300
+ );
301
+ if (token) {
302
+ return { address: token.address, decimals: token.decimals };
318
303
  }
319
304
  return void 0;
320
305
  }
@@ -426,21 +411,19 @@ function getTokenSymbol(token, chainId) {
426
411
  const found = chainEntry.tokens.find(
427
412
  (t) => t.address.toLowerCase() === normalized
428
413
  );
429
- if (found)
430
- return _nullishCoalesce(CANONICAL_SYMBOL_BY_REGISTRY_SYMBOL[found.symbol.toUpperCase()], () => ( found.symbol));
414
+ if (found) return found.symbol;
431
415
  }
432
416
  }
433
417
  for (const chainEntry of Object.values(chainRegistry)) {
434
418
  const found = chainEntry.tokens.find(
435
419
  (t) => t.address.toLowerCase() === normalized
436
420
  );
437
- if (found)
438
- return _nullishCoalesce(CANONICAL_SYMBOL_BY_REGISTRY_SYMBOL[found.symbol.toUpperCase()], () => ( found.symbol));
421
+ if (found) return found.symbol;
439
422
  }
440
423
  return "Token";
441
424
  }
442
425
  function isStablecoinSymbol(symbol) {
443
- return /^(usdc|usdt|dai|usd)$/i.test(symbol);
426
+ return /^(usdc|usdt|usdt0|dai|usd)$/i.test(symbol);
444
427
  }
445
428
  var CHAIN_BADGES = {
446
429
  [_chains.mainnet.id]: { shortLabel: "ETH", color: "#627EEA", bg: "#EEF2FF" },
@@ -28,7 +28,7 @@ import {
28
28
  saveSessionOwnerToStorage,
29
29
  toEvmCaip2,
30
30
  useLatestRef
31
- } from "./chunk-UIHAYD7J.mjs";
31
+ } from "./chunk-XKDZEIB7.mjs";
32
32
  import {
33
33
  DEFAULT_BACKEND_URL,
34
34
  DEFAULT_SIGNER_ADDRESS,
@@ -41,7 +41,7 @@ import {
41
41
  getTokenDecimalsByAddress,
42
42
  getTokenIcon,
43
43
  getTokenSymbol
44
- } from "./chunk-EEHUOFIW.mjs";
44
+ } from "./chunk-VA3ANS7D.mjs";
45
45
 
46
46
  // src/WithdrawModal.tsx
47
47
  import {
@@ -316,7 +316,7 @@ function WithdrawFormStep({
316
316
  useEffect(() => {
317
317
  if (balance === null) return;
318
318
  const sym = asset.symbol.toUpperCase();
319
- if (sym !== "USDC" && sym !== "USDT") return;
319
+ if (sym !== "USDC" && sym !== "USDT" && sym !== "USDT0") return;
320
320
  try {
321
321
  const raw = formatUnits(balance, asset.decimals);
322
322
  const numeric = Number(raw);
@@ -331,7 +331,7 @@ function WithdrawFormStep({
331
331
  const parsed = Number(amount);
332
332
  if (!Number.isFinite(parsed) || parsed <= 0) return null;
333
333
  const sym = asset.symbol.toUpperCase();
334
- if (sym === "USDC" || sym === "USDT") {
334
+ if (sym === "USDC" || sym === "USDT" || sym === "USDT0") {
335
335
  return parsed;
336
336
  }
337
337
  return null;
@@ -1767,7 +1767,7 @@ function deriveStepView(step, _registration) {
1767
1767
  // src/WithdrawModal.tsx
1768
1768
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
1769
1769
  var ReownWithdrawInner = lazy(
1770
- () => import("./WithdrawModalReown-O6V6KRH6.mjs").then((m) => ({
1770
+ () => import("./WithdrawModalReown-BDJFCWWM.mjs").then((m) => ({
1771
1771
  default: m.WithdrawModalReown
1772
1772
  }))
1773
1773
  );
@@ -30,7 +30,8 @@ var CHAIN_ICONS = {
30
30
  var TOKEN_ICONS = {
31
31
  USDC: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 2000'%3E%3Cpath d='M1000 2000c554.17 0 1000-445.83 1000-1000S1554.17 0 1000 0 0 445.83 0 1000s445.83 1000 1000 1000z' fill='%232775ca'/%3E%3Cpath d='M1275 1158.33c0-145.83-87.5-195.83-262.5-216.66-125-16.67-150-50-150-108.34s41.67-95.83 125-95.83c75 0 116.67 25 137.5 87.5 4.17 12.5 16.67 20.83 29.17 20.83h66.66c16.67 0 29.17-12.5 29.17-29.16v-4.17c-16.67-91.67-91.67-162.5-187.5-170.83v-100c0-16.67-12.5-29.17-33.33-33.34h-62.5c-16.67 0-29.17 12.5-33.34 33.34v95.83c-125 16.67-204.16 100-204.16 204.17 0 137.5 83.33 191.66 258.33 212.5 116.67 20.83 154.17 45.83 154.17 112.5s-58.34 112.5-137.5 112.5c-108.34 0-145.84-45.84-158.34-108.34-4.16-16.66-16.66-25-29.16-25h-70.84c-16.66 0-29.16 12.5-29.16 29.17v4.17c16.66 104.16 83.33 179.16 220.83 200v100c0 16.66 12.5 29.16 33.33 33.33h62.5c16.67 0 29.17-12.5 33.34-33.33v-100c125-20.84 208.33-108.34 208.33-220.84z' fill='%23fff'/%3E%3Cpath d='M787.5 1595.83c-325-116.66-491.67-479.16-370.83-800 62.5-175 200-308.33 370.83-370.83 16.67-8.33 25-20.83 25-41.67V325c0-16.67-8.33-29.17-25-33.33-4.17 0-12.5 0-16.67 4.16-395.83 125-612.5 545.84-487.5 941.67 75 233.33 254.17 412.5 487.5 487.5 16.67 8.33 33.34 0 37.5-16.67 4.17-4.16 4.17-8.33 4.17-16.66v-58.34c0-12.5-12.5-29.16-25-37.5zm441.67-1300c-16.67-8.33-33.34 0-37.5 16.67-4.17 4.17-4.17 8.33-4.17 16.67v58.33c0 16.67 12.5 33.33 25 41.67 325 116.66 491.67 479.16 370.83 800-62.5 175-200 308.33-370.83 370.83-16.67 8.33-25 20.83-25 41.67V1700c0 16.67 8.33 29.17 25 33.33 4.17 0 12.5 0 16.67-4.16 395.83-125 612.5-545.84 487.5-941.67-75-237.5-258.34-416.67-487.5-491.67z' fill='%23fff'/%3E%3C/svg%3E",
32
32
  ETH: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M9.99987 19.9319C15.4852 19.9319 19.9319 15.4852 19.9319 9.9999C19.9319 4.51461 15.4852 0.0679016 9.99987 0.0679016C4.51458 0.0679016 0.0678711 4.51461 0.0678711 9.9999C0.0678711 15.4852 4.51458 19.9319 9.99987 19.9319Z' fill='%23E3E3E3'/%3E%3Cpath d='M10.0073 2.18121L14.6948 9.99371L10.0247 7.98052L10.0073 2.18121Z' fill='%232F3030'/%3E%3Cpath d='M5.31982 9.99371L9.98998 2.18121L10.0073 7.98052L5.31982 9.99371Z' fill='%23828384'/%3E%3Cpath d='M9.98998 12.8062L5.31982 10.047L10.0073 8.11871L9.98998 12.8062Z' fill='%23343535'/%3E%3Cpath d='M14.6948 10.047L10.0247 8.11871L10.0073 12.8062L14.6948 10.047Z' fill='%23131313'/%3E%3Cpath d='M10.0073 14.0046L14.6948 11.2437L10.0073 17.8062V14.0046Z' fill='%232F3030'/%3E%3Cpath d='M10.0073 14.0046L5.31982 11.2437L10.0073 17.8062V14.0046Z' fill='%23828384'/%3E%3C/svg%3E",
33
- USDT: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 339.43 295.27'%3E%3Cpath fill='%2350af95' fill-rule='evenodd' d='M62.15%2C1.45l-61.89%2C130a2.52%2C2.52%2C0%2C0%2C0%2C.54%2C2.94L167.95%2C294.56a2.55%2C2.55%2C0%2C0%2C0%2C3.53%2C0L338.63%2C134.4a2.52%2C2.52%2C0%2C0%2C0%2C.54-2.94l-61.89-130A2.5%2C2.5%2C0%2C0%2C0%2C275%2C0H64.45a2.5%2C2.5%2C0%2C0%2C0-2.3%2C1.45z'/%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M191.19%2C144.8v0c-1.2.09-7.4.46-21.23.46-11%2C0-18.81-.33-21.55-.46v0c-42.51-1.87-74.24-9.27-74.24-18.13s31.73-16.25%2C74.24-18.15v28.91c2.78.2%2C10.74.67%2C21.74.67%2C13.2%2C0%2C19.81-.55%2C21-.66v-28.9c42.42%2C1.89%2C74.08%2C9.29%2C74.08%2C18.13s-31.65%2C16.24-74.08%2C18.12zm0-39.25V79.68h59.2V40.23H89.21V79.68H148.4v25.86c-48.11%2C2.21-84.29%2C11.74-84.29%2C23.16s36.18%2C20.94%2C84.29%2C23.16v82.9h42.78V151.83c48-2.21%2C84.12-11.73%2C84.12-23.14s-36.09-20.93-84.12-23.15z'/%3E%3C/svg%3E",
33
+ USDT: "data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle cx='16' cy='16' r='16' fill='%2326A17B'/%3E%3Cpath fill='%23FFF' d='M17.922 17.383v-.002c-.11.008-.677.042-1.942.042-1.01 0-1.721-.03-1.971-.042v.003c-3.888-.171-6.79-.848-6.79-1.658 0-.809 2.902-1.486 6.79-1.66v2.644c.254.018.982.061 1.988.061 1.207 0 1.812-.05 1.925-.06v-2.643c3.88.173 6.775.85 6.775 1.658 0 .81-2.895 1.485-6.775 1.657m0-3.59v-2.366h5.414V7.819H8.595v3.608h5.414v2.365c-4.4.202-7.709 1.074-7.709 2.118 0 1.044 3.309 1.915 7.709 2.118v7.582h3.913v-7.584c4.393-.202 7.694-1.073 7.694-2.116 0-1.043-3.301-1.914-7.694-2.117'/%3E%3C/g%3E%3C/svg%3E",
34
+ USDT0: "data:image/svg+xml,%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 { fill: %23009393; } .cls-1%2C .cls-2 { stroke-width: 0px; } .cls-2 { fill: %23fff; fill-rule: evenodd; } %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Ccircle class='cls-1' cx='400' cy='400' r='400'/%3E%3Cpath class='cls-2' d='M400.49%2C428.59c68.79%2C0%2C126.28-11.63%2C140.33-27.17-11.93-13.18-55.08-23.56-109.88-26.4v32.83c-9.81.51-20.01.76-30.46.76s-20.65-.25-30.48-.76v-32.83c-54.78%2C2.84-97.95%2C13.22-109.88%2C26.4%2C14.07%2C15.54%2C71.57%2C27.17%2C140.36%2C27.17ZM522.71%2C274.06v45.21h-91.77v31.35c64.46%2C3.35%2C112.83%2C17.13%2C113.19%2C33.62v34.38c-.36%2C16.49-48.73%2C30.24-113.19%2C33.6v76.94h-60.93v-76.94c-64.46-3.35-112.81-17.11-113.17-33.6v-34.38c.36-16.49%2C48.71-30.27%2C113.17-33.62v-31.35h-91.77v-45.21h244.48ZM242.15%2C202.11h322.16c7.7%2C0%2C14.79%2C4.05%2C18.63%2C10.63l93.85%2C161.16c4.86%2C8.36%2C3.42%2C18.91-3.52%2C25.68l-258.34%2C252.18c-8.38%2C8.17-21.84%2C8.17-30.2%2C0L126.71%2C399.92c-7.09-6.94-8.43-17.79-3.2-26.19l100.33-161.49c3.91-6.28%2C10.85-10.12%2C18.32-10.12Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",
34
35
  WETH: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M9.99987 19.9319C15.4852 19.9319 19.9319 15.4852 19.9319 9.9999C19.9319 4.51461 15.4852 0.0679016 9.99987 0.0679016C4.51458 0.0679016 0.0678711 4.51461 0.0678711 9.9999C0.0678711 15.4852 4.51458 19.9319 9.99987 19.9319Z' fill='%23E3E3E3'/%3E%3Cpath d='M10.0073 2.18121L14.6948 9.99371L10.0247 7.98052L10.0073 2.18121Z' fill='%232F3030'/%3E%3Cpath d='M5.31982 9.99371L9.98998 2.18121L10.0073 7.98052L5.31982 9.99371Z' fill='%23828384'/%3E%3Cpath d='M9.98998 12.8062L5.31982 10.047L10.0073 8.11871L9.98998 12.8062Z' fill='%23343535'/%3E%3Cpath d='M14.6948 10.047L10.0247 8.11871L10.0073 12.8062L14.6948 10.047Z' fill='%23131313'/%3E%3Cpath d='M10.0073 14.0046L14.6948 11.2437L10.0073 17.8062V14.0046Z' fill='%232F3030'/%3E%3Cpath d='M10.0073 14.0046L5.31982 11.2437L10.0073 17.8062V14.0046Z' fill='%23828384'/%3E%3C/svg%3E",
35
36
  BNB: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2496 2496'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23F0B90B' d='M1248%2C0c689.3%2C0%2C1248%2C558.7%2C1248%2C1248s-558.7%2C1248-1248%2C1248S0%2C1937.3%2C0%2C1248S558.7%2C0%2C1248%2C0z'/%3E%3Cpath fill='%23FFFFFF' d='M685.9%2C1248l0.9%2C330l280.4%2C165v193.2l-444.5-260.7v-524L685.9%2C1248z M685.9%2C918v192.3l-163.3-96.6V821.4l163.3-96.6l164.1%2C96.6L685.9%2C918z M1084.3%2C821.4l163.3-96.6l164.1%2C96.6L1247.6%2C918L1084.3%2C821.4z'/%3E%3Cpath fill='%23FFFFFF' d='M803.9%2C1509.6v-193.2l163.3%2C96.6v192.3L803.9%2C1509.6z M1084.3%2C1812.2l163.3%2C96.6l164.1-96.6v192.3l-164.1%2C96.6l-163.3-96.6V1812.2z M1645.9%2C821.4l163.3-96.6l164.1%2C96.6v192.3l-164.1%2C96.6V918L1645.9%2C821.4z M1809.2%2C1578l0.9-330l163.3-96.6v524l-444.5%2C260.7v-193.2L1809.2%2C1578z'/%3E%3Cpolygon fill='%23FFFFFF' points='1692.1%2C1509.6 1528.8%2C1605.3 1528.8%2C1413 1692.1%2C1316.4 1692.1%2C1509.6'/%3E%3Cpath fill='%23FFFFFF' d='M1692.1%2C986.4l0.9%2C193.2l-281.2%2C165v330.8l-163.3%2C95.7l-163.3-95.7v-330.8l-281.2-165V986.4L968%2C889.8l279.5%2C165.8l281.2-165.8l164.1%2C96.6H1692.1z M803.9%2C656.5l443.7-261.6l444.5%2C261.6l-163.3%2C96.6l-281.2-165.8L967.2%2C753.1L803.9%2C656.5z'/%3E%3C/svg%3E",
36
37
  XPL: "data:image/svg+xml,%3Csvg width='166' height='166' viewBox='0 0 166 166' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='166' height='166' fill='%23162F29'/%3E%3Cpath d='M133 83.268C133 83.7749 132.993 84.2819 132.978 84.7888H108.659V83.6808H85.2523C85.2523 83.449 85.2596 83.2173 85.2596 82.9928C85.2596 82.7682 85.2596 82.5293 85.2523 82.3047H108.659V81.2039H132.957C132.986 81.8919 133 82.58 133 83.268ZM84.8395 78.2781L107.747 75.4609L107.884 76.5617L132.073 73.5852C131.841 72.3974 131.566 71.2242 131.255 70.0727L107.442 73.0058L107.58 74.1066L84.5643 76.9383C84.6657 77.3873 84.7598 77.8363 84.8395 78.2926V78.2781ZM83.6446 73.8459L105.538 68.378L105.806 69.4499L129.039 63.6489C128.561 62.5264 128.046 61.4183 127.496 60.3392L104.944 65.9736L105.212 67.0455L83.1376 72.564C83.3187 72.9913 83.4852 73.4186 83.6446 73.8531V73.8459ZM81.7036 69.6961L102.17 61.9687L102.561 63.0043L124.215 54.8279C123.513 53.7995 122.774 52.8001 121.992 51.8297L101.294 59.644L101.685 60.6796L80.9722 68.5012C81.2257 68.8922 81.4719 69.2906 81.7036 69.6961ZM79.0168 65.8578L97.0933 56.4357L97.6002 57.4206L117.589 46.9991C116.669 46.1083 115.713 45.261 114.728 44.4426L95.9418 54.2341L96.4487 55.219L78.0681 64.8004C78.3867 65.148 78.7054 65.4957 79.0096 65.8578H79.0168ZM74.657 61.7152L91.0243 51.3082L91.6182 52.2425L109.68 40.7564C108.543 40.0322 107.384 39.3586 106.189 38.7286L89.699 49.2152L90.2929 50.1495L73.4548 60.8534C73.8676 61.1286 74.2659 61.4183 74.6642 61.7152H74.657ZM70.7897 59.2963L84.5064 48.0492L85.2089 48.9038L100.656 36.23C99.3456 35.7303 97.9985 35.2813 96.637 34.8902L82.9348 46.1301L83.6373 46.9846L69.4209 58.6446C69.8844 58.8473 70.3407 59.0646 70.7897 59.2963ZM65.6695 57.3048L76.5038 46.5211L77.2787 47.3033L91.0461 33.6228C89.5542 33.3766 88.0406 33.1955 86.5052 33.0797L74.7656 44.7613L75.5406 45.5435L64.0979 56.9282C64.6266 57.0368 65.148 57.1599 65.6695 57.3048ZM59.6802 56.3995L68.3201 45.9273L69.1747 46.6298L80.4218 33C78.7126 33.0797 77.0252 33.2462 75.3667 33.4925L66.4082 44.3485L67.2627 45.051L57.9058 56.3922C58.1666 56.385 58.4345 56.3777 58.6952 56.3777C59.0284 56.3777 59.3543 56.3778 59.6802 56.3922V56.3995ZM54.502 56.7109L61.1576 46.4125L62.0846 47.0136L70.1306 34.5571C68.2911 35.0351 66.4951 35.6144 64.7425 36.2879L59.0791 45.0582L60.0061 45.6593L52.6335 57.073C53.2491 56.9282 53.872 56.805 54.502 56.7036V56.7109ZM48.7517 58.3114L53.5388 49.3384L54.5093 49.8598L60.8462 37.9899C58.8111 38.982 56.8557 40.1046 54.9873 41.3502L51.3444 48.1724L52.3221 48.6938L46.6877 59.2529C47.354 58.9125 48.042 58.6011 48.7445 58.3187L48.7517 58.3114ZM44.6237 60.4189L46.6587 54.6396L47.7016 55.009L51.6559 43.7836C49.6498 45.3769 47.7668 47.115 46.0214 48.9907L44.3195 53.8213L45.3624 54.1906L42.6973 61.7515C43.3201 61.2807 43.9574 60.8389 44.6165 60.4261L44.6237 60.4189ZM39.5469 64.5542L40.445 60.3537L41.524 60.5855L43.3346 52.1266C41.4299 54.5455 39.7425 57.1454 38.3013 59.8902L39.1052 60.064L37.4539 67.0165C38.0985 66.1547 38.801 65.3291 39.5469 64.5542ZM35.8172 69.4644V63.9024C34.4702 67.4583 33.5142 71.8833 33 76.2213C33.6301 73.8169 34.586 71.5501 35.8172 69.4644ZM33.0362 89.909C33.5649 93.6098 34.4919 97.1802 35.781 100.577V96.4704C34.5933 94.4426 33.659 92.241 33.0362 89.909ZM37.6278 99.2152L39.0689 105.936L38.2651 106.11C39.7063 108.862 41.3937 111.455 43.2984 113.873L41.4878 105.415L40.4087 105.646L39.4962 101.395C38.8372 100.7 38.2071 99.9757 37.6278 99.208V99.2152ZM42.6466 104.212L45.3262 111.817L44.2833 112.186L45.9852 117.017C47.7306 118.892 49.6136 120.63 51.6196 122.224L47.6654 110.998L46.6225 111.368L44.5802 105.559C43.9212 105.139 43.2767 104.698 42.6538 104.227L42.6466 104.212ZM46.6443 106.725L52.2932 117.313L51.3155 117.835L54.9583 124.657C56.8268 125.903 58.7822 127.025 60.8172 128.017L54.4803 116.147L53.5026 116.669L48.701 107.674C47.9985 107.392 47.3105 107.073 46.637 106.733L46.6443 106.725ZM52.5901 108.913L59.9699 120.341L59.0429 120.942L64.7063 129.712C66.4589 130.386 68.2549 130.965 70.0944 131.443L62.0484 118.986L61.1214 119.587L54.4586 109.275C53.8285 109.173 53.1984 109.05 52.5828 108.905L52.5901 108.913ZM57.8624 109.608L67.2193 120.949L66.3647 121.652L75.3233 132.508C76.9817 132.754 78.6692 132.92 80.3783 133L69.1312 119.363L68.2766 120.065L59.6367 109.593C59.3253 109.608 59.0067 109.608 58.688 109.608C58.4128 109.608 58.1304 109.608 57.8552 109.593L57.8624 109.608ZM64.0689 109.072L75.5043 120.449L74.7294 121.231L86.469 132.913C88.0043 132.797 89.518 132.616 91.0098 132.37L77.2497 118.682L76.4676 119.472L65.6405 108.695C65.1263 108.833 64.5976 108.963 64.0689 109.072ZM69.3992 107.37L83.6011 119.023L82.8986 119.877L96.6008 131.117C97.9623 130.726 99.3094 130.277 100.62 129.777L85.1654 117.103L84.4629 117.958L70.7607 106.718C70.3117 106.95 69.8554 107.167 69.3919 107.37H69.3992ZM73.4258 105.154L90.2422 115.851L89.6483 116.785L106.139 127.271C107.334 126.641 108.5 125.961 109.629 125.244L91.5675 113.758L90.9736 114.692L74.628 104.299C74.2297 104.596 73.8314 104.886 73.4186 105.161L73.4258 105.154ZM78.0608 101.214L96.4198 110.781L95.9128 111.766L114.699 121.557C115.684 120.739 116.64 119.892 117.56 119.001L97.5713 108.579L97.0643 109.564L79.0096 100.157C78.7054 100.519 78.394 100.874 78.0681 101.214H78.0608ZM80.9649 97.5061L101.649 105.32L101.258 106.356L121.956 114.17C122.731 113.2 123.469 112.2 124.179 111.172L102.525 102.996L102.134 104.031L81.6964 96.3111C81.4646 96.7167 81.2184 97.115 80.9649 97.5061ZM83.1304 93.4505L105.168 98.9545L104.9 100.026L127.452 105.661C128.01 104.582 128.524 103.474 129.002 102.351L105.769 96.5501L105.501 97.622L83.6373 92.1614C83.478 92.5959 83.3042 93.0232 83.1304 93.4505ZM84.5643 89.0762L107.544 91.9006L107.406 93.0014L131.218 95.9345C131.53 94.7758 131.805 93.6026 132.037 92.4221L107.848 89.4455L107.71 90.5463L84.8395 87.7291C84.7598 88.1854 84.6657 88.6344 84.5643 89.0834V89.0762Z' fill='white'/%3E%3C/svg%3E"
@@ -43,8 +44,9 @@ function getChainIcon(chainId) {
43
44
  return CHAIN_ICONS[chainId];
44
45
  }
45
46
  function getTokenIcon(symbol) {
46
- if (symbol.toUpperCase() === "SOL") return SOLANA_TOKEN_ICON;
47
- return TOKEN_ICONS[symbol.toUpperCase()];
47
+ const upper = symbol.toUpperCase();
48
+ if (upper === "SOL") return SOLANA_TOKEN_ICON;
49
+ return TOKEN_ICONS[upper];
48
50
  }
49
51
 
50
52
  // src/core/constants.ts
@@ -79,15 +81,8 @@ var SUPPORTED_TOKEN_MATRIX = {
79
81
  ETH: [mainnet2.id, base2.id, arbitrum2.id, optimism2.id, polygon2.id, soneium2.id],
80
82
  WETH: [mainnet2.id, base2.id, arbitrum2.id, optimism2.id, polygon2.id, soneium2.id],
81
83
  USDC: [mainnet2.id, base2.id, arbitrum2.id, optimism2.id, polygon2.id, soneium2.id],
82
- USDT: [
83
- mainnet2.id,
84
- arbitrum2.id,
85
- optimism2.id,
86
- polygon2.id,
87
- bsc2.id,
88
- plasma2.id,
89
- soneium2.id
90
- ]
84
+ USDT: [mainnet2.id, bsc2.id, soneium2.id],
85
+ USDT0: [arbitrum2.id, optimism2.id, polygon2.id, plasma2.id]
91
86
  };
92
87
  var CHAIN_DISPLAY_ORDER = [
93
88
  mainnet2.id,
@@ -121,12 +116,6 @@ var SUPPORTED_TOKENS_BY_CHAIN = Object.fromEntries(
121
116
  return [chainId, symbols];
122
117
  })
123
118
  );
124
- var SYMBOL_ALIASES = {
125
- USDT: ["USDT", "USDT0"]
126
- };
127
- var CANONICAL_SYMBOL_BY_REGISTRY_SYMBOL = {
128
- USDT0: "USDT"
129
- };
130
119
  var chainRegistry = {
131
120
  [mainnet2.id]: {
132
121
  name: mainnet2.name,
@@ -143,7 +132,7 @@ var chainRegistry = {
143
132
  decimals: 18
144
133
  },
145
134
  {
146
- symbol: "USDT0",
135
+ symbol: "USDT",
147
136
  address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
148
137
  decimals: 6
149
138
  }
@@ -295,8 +284,7 @@ function normalizeTokenSymbol(symbol) {
295
284
  if (wrapped?.[1]) {
296
285
  return wrapped[1].trim().toUpperCase();
297
286
  }
298
- const upper = trimmed.toUpperCase();
299
- return CANONICAL_SYMBOL_BY_REGISTRY_SYMBOL[upper] ?? upper;
287
+ return trimmed.toUpperCase();
300
288
  }
301
289
  function isSymbolSupportedOnChain(symbol, chainId) {
302
290
  const symbols = SUPPORTED_TOKENS_BY_CHAIN[chainId];
@@ -307,14 +295,11 @@ function getTokenFromRegistry(chainId, symbol) {
307
295
  const chainEntry = chainRegistry[String(chainId)];
308
296
  if (!chainEntry) return void 0;
309
297
  const normalized = normalizeTokenSymbol(symbol);
310
- const candidates = SYMBOL_ALIASES[normalized] ?? [normalized];
311
- for (const candidate of candidates) {
312
- const token = chainEntry.tokens.find(
313
- (t) => t.symbol.toUpperCase() === candidate
314
- );
315
- if (token) {
316
- return { address: token.address, decimals: token.decimals };
317
- }
298
+ const token = chainEntry.tokens.find(
299
+ (t) => t.symbol.toUpperCase() === normalized
300
+ );
301
+ if (token) {
302
+ return { address: token.address, decimals: token.decimals };
318
303
  }
319
304
  return void 0;
320
305
  }
@@ -426,21 +411,19 @@ function getTokenSymbol(token, chainId) {
426
411
  const found = chainEntry.tokens.find(
427
412
  (t) => t.address.toLowerCase() === normalized
428
413
  );
429
- if (found)
430
- return CANONICAL_SYMBOL_BY_REGISTRY_SYMBOL[found.symbol.toUpperCase()] ?? found.symbol;
414
+ if (found) return found.symbol;
431
415
  }
432
416
  }
433
417
  for (const chainEntry of Object.values(chainRegistry)) {
434
418
  const found = chainEntry.tokens.find(
435
419
  (t) => t.address.toLowerCase() === normalized
436
420
  );
437
- if (found)
438
- return CANONICAL_SYMBOL_BY_REGISTRY_SYMBOL[found.symbol.toUpperCase()] ?? found.symbol;
421
+ if (found) return found.symbol;
439
422
  }
440
423
  return "Token";
441
424
  }
442
425
  function isStablecoinSymbol(symbol) {
443
- return /^(usdc|usdt|dai|usd)$/i.test(symbol);
426
+ return /^(usdc|usdt|usdt0|dai|usd)$/i.test(symbol);
444
427
  }
445
428
  var CHAIN_BADGES = {
446
429
  [mainnet2.id]: { shortLabel: "ETH", color: "#627EEA", bg: "#EEF2FF" },
@@ -9,7 +9,7 @@ import {
9
9
  getTokenDecimalsByAddress,
10
10
  getTokenIcon,
11
11
  getTokenSymbol
12
- } from "./chunk-EEHUOFIW.mjs";
12
+ } from "./chunk-VA3ANS7D.mjs";
13
13
 
14
14
  // src/components/ui/Modal.tsx
15
15
  import {
@@ -771,7 +771,7 @@ function createDepositService(baseUrl, options) {
771
771
  return result;
772
772
  },
773
773
  async fetchDepositHistory(params) {
774
- const searchParams = new URLSearchParams({ account: params.account });
774
+ const searchParams = new URLSearchParams({ recipient: params.recipient });
775
775
  searchParams.set("limit", String(params.limit ?? 20));
776
776
  if (params.cursor) {
777
777
  searchParams.set("cursor", params.cursor);
@@ -779,7 +779,7 @@ function createDepositService(baseUrl, options) {
779
779
  const url = apiUrl(`/deposits?${searchParams.toString()}`);
780
780
  debugLog(debug, scope, "fetchDepositHistory:request", {
781
781
  url,
782
- account: shortRef(params.account),
782
+ recipient: shortRef(params.recipient),
783
783
  cursor: params.cursor
784
784
  });
785
785
  const response = await fetch(url, {
@@ -794,7 +794,7 @@ function createDepositService(baseUrl, options) {
794
794
  scope,
795
795
  "fetchDepositHistory:failed",
796
796
  error,
797
- { status: response.status, account: shortRef(params.account) }
797
+ { status: response.status, recipient: shortRef(params.recipient) }
798
798
  );
799
799
  throw new Error(
800
800
  error.error || `Deposit history fetch failed: ${response.status}`
@@ -804,7 +804,7 @@ function createDepositService(baseUrl, options) {
804
804
  const deposits = Array.isArray(data?.deposits) ? data.deposits : [];
805
805
  const nextCursor = data?.nextCursor ?? data?.next_cursor ?? null;
806
806
  debugLog(debug, scope, "fetchDepositHistory:success", {
807
- account: shortRef(params.account),
807
+ recipient: shortRef(params.recipient),
808
808
  count: deposits.length,
809
809
  hasMore: Boolean(nextCursor)
810
810
  });