@glacislabs/stablegenie-zerodelta 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mount.cjs CHANGED
@@ -481,6 +481,29 @@ function applyLayerZeroBuffer(quote, option = {}) {
481
481
  return gas * (10000n + LZ_FEE_BUFFER_BPS) / 10000n;
482
482
  }
483
483
 
484
+ // src/core/ticker.ts
485
+ var DISPLAY_SAFE = /^[\p{L}\p{N}\p{Sc}.+_-]{1,16}$/u;
486
+ function foldTicker(value) {
487
+ return String(value ?? "").replace(/₮/g, "T").toUpperCase();
488
+ }
489
+ function safeTicker(ticker, symbol) {
490
+ const value = String(ticker ?? "").trim();
491
+ if (!value || !DISPLAY_SAFE.test(value)) return "";
492
+ const asset = foldTicker(symbol).trim();
493
+ if (!asset || !foldTicker(value).startsWith(asset)) return "";
494
+ return value;
495
+ }
496
+ function tokenTicker(token) {
497
+ if (!token) return "";
498
+ return safeTicker(token.displaySymbol, token.symbol) || String(token.symbol ?? "");
499
+ }
500
+ function tickerOn(tokens, chainId, symbol) {
501
+ if (!symbol || !chainId || !tokens?.length) return symbol;
502
+ const key = symbolKey(symbol);
503
+ const deployment = tokens.find((t) => Number(t.chainId) === Number(chainId) && symbolKey(t.symbol) === key);
504
+ return deployment ? tokenTicker(deployment) : symbol;
505
+ }
506
+
484
507
  // src/core/availability.ts
485
508
  function assetClassOf(symbol) {
486
509
  const key = symbolKey(symbol);
@@ -544,10 +567,10 @@ function brokenLaneFor(token, source, brokenLanes) {
544
567
  }
545
568
  function destinationAvailability(token, ctx, source) {
546
569
  if (brokenLaneFor(token, source ?? void 0, ctx.brokenLanes)) return "unreachable";
547
- if (ctx.execution.has(Number(token.chainId))) return "available";
548
- if (token.isChainedDestination === true) return "available";
549
- if (!isKnownUnbridgeable(token.bridge) && ctx.destination.has(tokenKey(token.chainId, token.address)) && directLaneOK(token, source ?? void 0, ctx.lanes)) {
550
- return "available";
570
+ if (directLaneOK(token, source ?? void 0, ctx.lanes)) {
571
+ if (ctx.execution.has(Number(token.chainId))) return "available";
572
+ if (token.isChainedDestination === true) return "available";
573
+ if (!isKnownUnbridgeable(token.bridge) && ctx.destination.has(tokenKey(token.chainId, token.address))) return "available";
551
574
  }
552
575
  return ctx.hubSymbols.has(symbolKey(token.symbol)) ? "hub-only" : "unreachable";
553
576
  }
@@ -661,6 +684,7 @@ function buildPayOptions({ invoiceAsset, invoiceChainId, tokens, routes, chains,
661
684
  options.push({
662
685
  symbol: token.symbol,
663
686
  symbolKey: payKey,
687
+ ticker: tokenTicker(token),
664
688
  name: token.name || token.symbol,
665
689
  chainId,
666
690
  chainName: chainNameOf(chainId, chains),
@@ -735,7 +759,8 @@ function suppressedLanes(health) {
735
759
  if (health?.mode !== "enforce" || !Array.isArray(health.lanes)) return EMPTY;
736
760
  const out = /* @__PURE__ */ new Map();
737
761
  for (const lane of health.lanes) {
738
- if (lane?.status !== "broken") continue;
762
+ const firewalled = lane?.status === "unknown" && lane?.kind === "firewalled";
763
+ if (lane?.status !== "broken" && !firewalled) continue;
739
764
  const key = typeof lane.laneKey === "string" ? lane.laneKey.toLowerCase() : "";
740
765
  if (!key) continue;
741
766
  out.set(key, {
@@ -752,6 +777,8 @@ function brokenLaneReason(lane) {
752
777
  switch (lane.kind) {
753
778
  case "bridge-throttled":
754
779
  return "The issuer's bridge for this pair is closed right now.";
780
+ case "firewalled":
781
+ return "This pair is temporarily unavailable.";
755
782
  case "vault-closed":
756
783
  return "This vault is not accepting deposits right now.";
757
784
  default:
@@ -1334,10 +1361,13 @@ function routeDeltaLabel(result, quote) {
1334
1361
  if (quote.feeBps) return `${quote.feeBps} bps fee`;
1335
1362
  return "~0";
1336
1363
  }
1364
+ function optionTicker(option) {
1365
+ return option.ticker || option.symbol;
1366
+ }
1337
1367
  function routeLabelFor(option, destinationToken, result) {
1338
1368
  if (result.directTransfer) return "Direct transfer: asset and chain already match.";
1339
1369
  const bridge = result.quote.bridge ? ` via ${result.quote.bridge}` : "";
1340
- return `Swap ${option.symbol} to ${destinationToken.symbol} and settle on ZeroDelta${bridge}.`;
1370
+ return `Swap ${optionTicker(option)} to ${tokenTicker(destinationToken)} and settle on ZeroDelta${bridge}.`;
1341
1371
  }
1342
1372
  function tokenAt(tokens, chainId, address) {
1343
1373
  const wanted = normalizeAddress(address);
@@ -1356,6 +1386,7 @@ function buildLegs(orders, ctx) {
1356
1386
  const legs = [];
1357
1387
  let fromChainId = ctx.option.chainId;
1358
1388
  let fromAsset = ctx.option.symbol;
1389
+ let fromTicker = optionTicker(ctx.option);
1359
1390
  let fromDecimals = ctx.option.decimals;
1360
1391
  for (let index = 0; index < orders.length; index += 1) {
1361
1392
  const order = orders[index];
@@ -1363,15 +1394,18 @@ function buildLegs(orders, ctx) {
1363
1394
  const toChainId = Number(order.destinationChainId);
1364
1395
  const askToken = isLast ? ctx.destinationToken : tokenAt(ctx.tokens, toChainId, order.askToken);
1365
1396
  const toAsset = isLast ? ctx.destinationToken.symbol : askToken?.symbol ?? "";
1397
+ const toTicker = askToken ? tokenTicker(askToken) : "";
1366
1398
  const toDecimals = askToken ? assetDecimals(askToken) : void 0;
1367
1399
  const executionChainId = Number(order.executionChainId);
1368
1400
  legs.push({
1369
1401
  index: index + 1,
1370
1402
  fromAsset,
1403
+ fromTicker,
1371
1404
  fromChainId,
1372
1405
  fromChainName: chainNameOf(fromChainId, ctx.chains),
1373
1406
  fromAmount: legAmount(order.bidTokenAmount, fromDecimals),
1374
1407
  toAsset,
1408
+ toTicker,
1375
1409
  toChainId,
1376
1410
  toChainName: chainNameOf(toChainId, ctx.chains),
1377
1411
  toAmount: legAmount(order.askTokenAmount, toDecimals),
@@ -1380,6 +1414,7 @@ function buildLegs(orders, ctx) {
1380
1414
  });
1381
1415
  fromChainId = toChainId;
1382
1416
  fromAsset = toAsset;
1417
+ fromTicker = toTicker;
1383
1418
  fromDecimals = toDecimals;
1384
1419
  }
1385
1420
  return legs;
@@ -1408,6 +1443,7 @@ async function buildRoute({
1408
1443
  state: "DIRECT",
1409
1444
  source: {
1410
1445
  asset: option.symbol,
1446
+ ticker: optionTicker(option),
1411
1447
  chainId: option.chainId,
1412
1448
  chainName: option.chainName,
1413
1449
  tokenAddress: option.address,
@@ -1417,6 +1453,7 @@ async function buildRoute({
1417
1453
  },
1418
1454
  receive: {
1419
1455
  asset: destinationToken.symbol,
1456
+ ticker: tokenTicker(destinationToken),
1420
1457
  chainId: Number(destination.chainId),
1421
1458
  chainName: chainNameOf(Number(destination.chainId), chains),
1422
1459
  tokenAddress: destinationToken.address,
@@ -1431,10 +1468,12 @@ async function buildRoute({
1431
1468
  {
1432
1469
  index: 1,
1433
1470
  fromAsset: option.symbol,
1471
+ fromTicker: optionTicker(option),
1434
1472
  fromChainId: option.chainId,
1435
1473
  fromChainName: option.chainName,
1436
1474
  fromAmount: sourceAmount,
1437
1475
  toAsset: destinationToken.symbol,
1476
+ toTicker: tokenTicker(destinationToken),
1438
1477
  toChainId: Number(destination.chainId),
1439
1478
  toChainName: chainNameOf(Number(destination.chainId), chains),
1440
1479
  toAmount: receiveAmount,
@@ -1446,7 +1485,7 @@ async function buildRoute({
1446
1485
  {
1447
1486
  id: "transfer",
1448
1487
  kind: "transfer",
1449
- label: `Transfer ${destinationToken.symbol}`,
1488
+ label: `Transfer ${tokenTicker(destinationToken)}`,
1450
1489
  chainId: option.chainId,
1451
1490
  to: option.address,
1452
1491
  data: encodeTransfer(destination.address, result.youPayRaw),
@@ -1498,6 +1537,7 @@ async function buildRoute({
1498
1537
  state: result.meetsTarget ? "ROUTE" : "SHORT",
1499
1538
  source: {
1500
1539
  asset: option.symbol,
1540
+ ticker: optionTicker(option),
1501
1541
  chainId: option.chainId,
1502
1542
  chainName: option.chainName,
1503
1543
  tokenAddress: option.address,
@@ -1507,6 +1547,7 @@ async function buildRoute({
1507
1547
  },
1508
1548
  receive: {
1509
1549
  asset: destinationToken.symbol,
1550
+ ticker: tokenTicker(destinationToken),
1510
1551
  chainId: Number(destination.chainId),
1511
1552
  chainName: chainNameOf(Number(destination.chainId), chains),
1512
1553
  tokenAddress: destinationToken.address,
@@ -1520,7 +1561,7 @@ async function buildRoute({
1520
1561
  {
1521
1562
  id: "approve",
1522
1563
  kind: "approve",
1523
- label: `Approve ${option.symbol}`,
1564
+ label: `Approve ${optionTicker(option)}`,
1524
1565
  chainId: option.chainId,
1525
1566
  to: option.address,
1526
1567
  data: encodeApprove(escrow, order.bidTokenAmount),
@@ -1987,6 +2028,7 @@ async function buildSwapPlan(api, swap, payer, wallet = {}) {
1987
2028
  const option = {
1988
2029
  symbol: sourceToken.symbol,
1989
2030
  symbolKey: symbolKey(sourceToken.symbol),
2031
+ ticker: tokenTicker(sourceToken),
1990
2032
  name: sourceToken.name || sourceToken.symbol,
1991
2033
  chainId: v.fromChainId,
1992
2034
  chainName: chainNameOf(v.fromChainId, chains),
@@ -2358,13 +2400,16 @@ function sanitizeLegs(legs) {
2358
2400
  if (!Array.isArray(legs) || !legs.length) return void 0;
2359
2401
  const text = (v, max) => String(v ?? "").slice(0, max);
2360
2402
  const chain = (v) => Number(v) || 0;
2403
+ const ticker = (value, asset) => safeTicker(value, asset) || void 0;
2361
2404
  return legs.slice(0, 8).map((leg, i) => ({
2362
2405
  index: Number(leg?.index) || i + 1,
2363
2406
  fromAsset: text(leg?.fromAsset, 12),
2407
+ fromTicker: ticker(leg?.fromTicker, text(leg?.fromAsset, 12)),
2364
2408
  fromChainId: chain(leg?.fromChainId),
2365
2409
  fromChainName: text(leg?.fromChainName, 40),
2366
2410
  fromAmount: text(leg?.fromAmount, 40),
2367
2411
  toAsset: text(leg?.toAsset, 12),
2412
+ toTicker: ticker(leg?.toTicker, text(leg?.toAsset, 12)),
2368
2413
  toChainId: chain(leg?.toChainId),
2369
2414
  toChainName: text(leg?.toChainName, 40),
2370
2415
  toAmount: text(leg?.toAmount, 40),
@@ -2381,6 +2426,8 @@ function sanitizeTxEntry(entry) {
2381
2426
  chainName: String(entry.chainName || "").slice(0, 40),
2382
2427
  fromAsset: String(entry.fromAsset || "").slice(0, 10),
2383
2428
  toAsset: String(entry.toAsset || "").slice(0, 10),
2429
+ fromTicker: safeTicker(entry.fromTicker, String(entry.fromAsset || "").slice(0, 10)) || void 0,
2430
+ toTicker: safeTicker(entry.toTicker, String(entry.toAsset || "").slice(0, 10)) || void 0,
2384
2431
  payAmount: String(entry.payAmount || "").slice(0, 40),
2385
2432
  receiveAmount: String(entry.receiveAmount || "").slice(0, 40),
2386
2433
  account: isAddress(entry.account) ? normalizeAddress(entry.account) : "",
@@ -2882,6 +2929,8 @@ function useFlow(args) {
2882
2929
  chainName: route.source.chainName,
2883
2930
  fromAsset: route.source.asset,
2884
2931
  toAsset: route.receive.asset,
2932
+ fromTicker: route.source.ticker,
2933
+ toTicker: route.receive.ticker,
2885
2934
  payAmount: route.source.payAmount,
2886
2935
  receiveAmount: route.receive.amount,
2887
2936
  account,
@@ -4219,7 +4268,7 @@ function ChevronGlyph() {
4219
4268
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m9 18 6-6-6-6" }) });
4220
4269
  }
4221
4270
  function TokenTile(props) {
4222
- const shown = props.token?.symbol ?? props.pick?.symbol ?? "";
4271
+ const shown = props.token ? tokenTicker(props.token) : props.pick?.symbol ?? "";
4223
4272
  const glyph = props.pick ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4224
4273
  /* @__PURE__ */ jsxRuntime.jsx(TokenGlyph, { symbol: props.pick.symbol, logoUrl: props.token?.logoUrl, chainId: props.pick.chainId }),
4225
4274
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tile-text", children: [
@@ -4293,7 +4342,8 @@ function TokenSelect(props) {
4293
4342
  const q = query.trim().toLowerCase();
4294
4343
  const filtered = props.tokens.filter((t) => chainFilter == null ? true : Number(t.chainId) === chainFilter).filter((t) => {
4295
4344
  if (!q) return true;
4296
- return String(t.symbol || "").toLowerCase().includes(q) || String(t.name || "").toLowerCase().includes(q) || String(t.address || "").toLowerCase().includes(q) || // Chain name too (2026-09-08): with ~37 destination chains most have no bundled mark and
4345
+ return String(t.symbol || "").toLowerCase().includes(q) || // The chain's own ticker too, with `₮` read as `T`: "usdt0" finds USD₮0.
4346
+ foldTicker(tokenTicker(t)).includes(foldTicker(q)) || String(t.name || "").toLowerCase().includes(q) || String(t.address || "").toLowerCase().includes(q) || // Chain name too (2026-09-08): with ~37 destination chains most have no bundled mark and
4297
4347
  // show a three-letter badge, so "Katana" or "Berachain" has to be findable by typing it.
4298
4348
  String(CHAIN_LABELS[Number(t.chainId)] || "").toLowerCase().includes(q);
4299
4349
  });
@@ -4345,7 +4395,7 @@ function TokenSelect(props) {
4345
4395
  children: [
4346
4396
  /* @__PURE__ */ jsxRuntime.jsx(TokenGlyph, { symbol: t.symbol, logoUrl: t.logoUrl, chainId }),
4347
4397
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tokrow-main", children: [
4348
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-sym", children: t.symbol }),
4398
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-sym", children: tokenTicker(t) }),
4349
4399
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-name", children: t.name || t.symbol })
4350
4400
  ] }),
4351
4401
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tokrow-end", children: [
@@ -4418,10 +4468,12 @@ function legsOf(entry) {
4418
4468
  const leg = {
4419
4469
  index: 1,
4420
4470
  fromAsset: entry.fromAsset,
4471
+ fromTicker: entry.fromTicker,
4421
4472
  fromChainId: entry.chainId ?? 0,
4422
4473
  fromChainName: entry.chainName,
4423
4474
  fromAmount: entry.payAmount,
4424
4475
  toAsset: entry.toAsset,
4476
+ toTicker: entry.toTicker,
4425
4477
  toChainId: 0,
4426
4478
  toChainName: "",
4427
4479
  toAmount: entry.receiveAmount,
@@ -4450,9 +4502,9 @@ function TxLegs(props) {
4450
4502
  multi ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-leg-n", "aria-hidden": "true", children: leg.index }) : null,
4451
4503
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-body", children: [
4452
4504
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-line", children: [
4453
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.fromAmount ? `${leg.fromAmount} ` : ""}${leg.fromAsset || "\u2014"}` }),
4505
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.fromAmount ? `${leg.fromAmount} ` : ""}${leg.fromTicker || leg.fromAsset || "\u2014"}` }),
4454
4506
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-leg-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(LegArrowGlyph, {}) }),
4455
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.toAmount ? `${leg.toAmount} ` : ""}${leg.toAsset || "\u2014"}` })
4507
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-mono", children: `${leg.toAmount ? `${leg.toAmount} ` : ""}${leg.toTicker || leg.toAsset || "\u2014"}` })
4456
4508
  ] }),
4457
4509
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-sub", children: [
4458
4510
  chainName(leg.fromChainId, leg.fromChainName),
@@ -4498,10 +4550,10 @@ function TxPairGlyphs(props) {
4498
4550
  function TxPair(props) {
4499
4551
  const e = props.entry;
4500
4552
  return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-txrow-pair", children: [
4501
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-txrow-side sg-mono", children: `${e.payAmount} ${e.fromAsset}` }),
4553
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-txrow-side sg-mono", children: `${e.payAmount} ${e.fromTicker || e.fromAsset}` }),
4502
4554
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-txrow-side sg-mono", children: [
4503
4555
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-txrow-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(LegArrowGlyph, {}) }),
4504
- `${e.receiveAmount} ${e.toAsset}`
4556
+ `${e.receiveAmount} ${e.toTicker || e.toAsset}`
4505
4557
  ] })
4506
4558
  ] });
4507
4559
  }
@@ -4565,7 +4617,7 @@ function TxDetail(props) {
4565
4617
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
4566
4618
  e.receiveAmount,
4567
4619
  " ",
4568
- e.toAsset
4620
+ e.toTicker || e.toAsset
4569
4621
  ] }),
4570
4622
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
4571
4623
  e.kind === "payment" ? "Payment" : "Swap",
@@ -4582,7 +4634,7 @@ function TxDetail(props) {
4582
4634
  /* @__PURE__ */ jsxRuntime.jsxs("b", { className: "sg-mono", children: [
4583
4635
  e.payAmount,
4584
4636
  " ",
4585
- e.fromAsset
4637
+ e.fromTicker || e.fromAsset
4586
4638
  ] })
4587
4639
  ] }),
4588
4640
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-meta-row", children: [
@@ -5031,7 +5083,7 @@ function PaymentIsland(props) {
5031
5083
  zero = false;
5032
5084
  }
5033
5085
  if (zero) map[key] = { disabled: true, reason: "no-balance", hint: "No balance on this chain" };
5034
- else if (a.affordable === false) map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.asset}` };
5086
+ else if (a.affordable === false) map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.ticker || a.route.source.asset}` };
5035
5087
  else map[key] = { disabled: false };
5036
5088
  }
5037
5089
  return map;
@@ -5102,7 +5154,7 @@ function PaymentIsland(props) {
5102
5154
  if (verdict === "available") continue;
5103
5155
  states[key] = {
5104
5156
  disabled: true,
5105
- reason: verdict === "hub-only" ? `${token.symbol} cannot be delivered on this chain.` : "ZeroDelta cannot deliver this asset here.",
5157
+ reason: verdict === "hub-only" ? `${tokenTicker(token)} cannot be delivered on this chain.` : "ZeroDelta cannot deliver this asset here.",
5106
5158
  hint: verdict === "hub-only" ? "Not here" : "Unavailable"
5107
5159
  };
5108
5160
  }
@@ -5120,6 +5172,7 @@ function PaymentIsland(props) {
5120
5172
  list.push(
5121
5173
  reg ?? {
5122
5174
  symbol: r.source.asset,
5175
+ displaySymbol: r.source.ticker,
5123
5176
  name: r.source.asset,
5124
5177
  chainId: r.source.chainId,
5125
5178
  address: r.source.tokenAddress ?? "",
@@ -5252,10 +5305,11 @@ function PaymentIsland(props) {
5252
5305
  const selBal = sel ? holdings.balances[balanceKey(sel.source.chainId, sel.source.tokenAddress)] : void 0;
5253
5306
  const lastTxOwned = Boolean(flow.lastTxEntry?.hash && wallet.account && flow.lastTxEntry.account === wallet.account.toLowerCase());
5254
5307
  const mismatch = flow.status === "error" && flow.verdict?.status === "mismatch";
5255
- const destAsset = isPay ? props.toAsset : exToAsset;
5308
+ const destTicker = isPay ? tickerOn(registryTokens, props.toChainId, props.toAsset ?? "") : exToToken ? tokenTicker(exToToken) : exToAsset ?? "";
5309
+ const exFromTicker = exFromToken ? tokenTicker(exFromToken) : exFromAsset ?? "";
5256
5310
  const anchorAmount = sel?.receive.amount ?? (flow.status === "loading" ? "\u2026" : "\u2014");
5257
5311
  const successAmount = isPay ? props.amount : sel?.receive.amount;
5258
- const money = props.moneyDisplay ?? (isPay ? props.amount ? `${props.amount} ${props.toAsset}` : "" : exAmount ? `${exAmount} ${exFromAsset ?? ""}`.trim() : "");
5312
+ const money = props.moneyDisplay ?? (isPay ? props.amount ? `${props.amount} ${destTicker}` : "" : exAmount ? `${exAmount} ${exFromTicker}`.trim() : "");
5259
5313
  const verb = isPay ? { present: "Pay", gerund: "Paying", past: "Paid" } : kind === "swap" ? { present: "Swap", gerund: "Swapping", past: "Swapped" } : { present: "Exchange", gerund: "Exchanging", past: "Exchanged" };
5260
5314
  const paid = flow.status === "success";
5261
5315
  const settling = flow.status === "pending";
@@ -5310,7 +5364,7 @@ function PaymentIsland(props) {
5310
5364
  const liveMsg = flow.status === "loading" ? isPay ? "Finding the best way to pay." : "Finding the best route." : flow.status === "submitting" ? `${activeStep?.label ?? (isPay ? "Processing your payment" : `Processing your ${verb.present.toLowerCase()}`)} \u2014 in progress.` : flow.status === "success" || flow.status === "pending" ? flow.verdict?.status === "confirmed" ? isPay ? "Payment confirmed on-chain \u2014 the merchant has been settled." : `${verb.past} \u2014 confirmed on-chain.` : isPay ? "Payment sent \u2014 confirmation is still pending." : "Submitted \u2014 confirmation is still pending." : "";
5311
5365
  const loading = flow.status === "loading";
5312
5366
  const payReady = isPay ? Boolean(sel && selectedVisible) : Boolean(sel);
5313
- const ctaLabel = submitting ? isPay ? "Paying\u2026" : kind === "swap" ? "Swapping\u2026" : "Exchanging\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : loading ? "Getting a price\u2026" : isPay ? sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.asset}` : "Pay" : kind === "swap" ? "Swap" : "Exchange";
5367
+ const ctaLabel = submitting ? isPay ? "Paying\u2026" : kind === "swap" ? "Swapping\u2026" : "Exchanging\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : loading ? "Getting a price\u2026" : isPay ? sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.ticker || sel.source.asset}` : "Pay" : kind === "swap" ? "Swap" : "Exchange";
5314
5368
  const exPct = (p) => {
5315
5369
  if (!exFromBal || !exFromToken) return;
5316
5370
  const raw = BigInt(exFromBal.raw);
@@ -5332,7 +5386,7 @@ function PaymentIsland(props) {
5332
5386
  "Balance: ",
5333
5387
  exFromBal.formatted,
5334
5388
  " ",
5335
- exFrom?.symbol
5389
+ exFromTicker
5336
5390
  ] }) : null,
5337
5391
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-pct-row", role: "group", "aria-label": "Amount shortcuts", children: [25, 50, 75, 100].map((p) => /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: "sg-pct", disabled: !exFromBal || submitting, onClick: () => exPct(p), children: p === 100 ? "MAX" : `${p}%` }, p)) })
5338
5392
  ] })
@@ -5398,7 +5452,7 @@ function PaymentIsland(props) {
5398
5452
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-label", children: "You receive (estimated)" }),
5399
5453
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
5400
5454
  "\u2014 ",
5401
- exToAsset ?? ""
5455
+ destTicker
5402
5456
  ] }),
5403
5457
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-anchor-sub", children: "Connect your wallet to see the estimated receive amount." })
5404
5458
  ] })
@@ -5418,7 +5472,7 @@ function PaymentIsland(props) {
5418
5472
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-receipt-amt sg-mono", children: [
5419
5473
  successAmount,
5420
5474
  " ",
5421
- destAsset
5475
+ destTicker
5422
5476
  ] }),
5423
5477
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-receipt-sub", children: [
5424
5478
  confirmed ? "Confirmed on-chain" : "Confirmation pending",
@@ -5470,7 +5524,7 @@ function PaymentIsland(props) {
5470
5524
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
5471
5525
  anchorAmount,
5472
5526
  " ",
5473
- destAsset
5527
+ destTicker
5474
5528
  ] })
5475
5529
  ] })
5476
5530
  ] }),
@@ -5514,7 +5568,7 @@ function PaymentIsland(props) {
5514
5568
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
5515
5569
  sel.source.payAmount,
5516
5570
  " ",
5517
- sel.source.asset
5571
+ sel.source.ticker || sel.source.asset
5518
5572
  ] }),
5519
5573
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
5520
5574
  "on ",
@@ -5527,7 +5581,7 @@ function PaymentIsland(props) {
5527
5581
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
5528
5582
  sel.source.payAmount,
5529
5583
  " ",
5530
- sel.source.asset
5584
+ sel.source.ticker || sel.source.asset
5531
5585
  ] }),
5532
5586
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
5533
5587
  "on ",
@@ -5682,7 +5736,7 @@ function StableGeniePay(props) {
5682
5736
  if (zero) {
5683
5737
  map[key] = { disabled: true, reason: "no-balance", hint: "No balance on this chain" };
5684
5738
  } else if (a.affordable === false) {
5685
- map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.asset}` };
5739
+ map[key] = { disabled: true, reason: "insufficient", hint: `Need ${a.route.source.payAmount} ${a.route.source.ticker || a.route.source.asset}` };
5686
5740
  } else {
5687
5741
  map[key] = { disabled: false };
5688
5742
  }
@@ -5716,6 +5770,7 @@ function StableGeniePay(props) {
5716
5770
  list.push(
5717
5771
  reg ?? {
5718
5772
  symbol: r.source.asset,
5773
+ displaySymbol: r.source.ticker,
5719
5774
  name: r.source.asset,
5720
5775
  chainId: r.source.chainId,
5721
5776
  address: r.source.tokenAddress ?? "",
@@ -5789,12 +5844,12 @@ function StableGeniePay(props) {
5789
5844
  const sel = flow.selected;
5790
5845
  const selectedVisible = Boolean(sel && visibleRoutes.some((r) => r.id === sel.id));
5791
5846
  const selBal = sel ? holdings.balances[balanceKey(sel.source.chainId, sel.source.tokenAddress)] : void 0;
5792
- const why = parked ? "" : sel && selectedVisible ? sel.state === "DIRECT" ? `Direct ${sel.source.asset} transfer on ${CHAIN_LABELS[sel.source.chainId] || sel.source.chainName} \xB7 lowest cost` : (
5847
+ const why = parked ? "" : sel && selectedVisible ? sel.state === "DIRECT" ? `Direct ${sel.source.ticker || sel.source.asset} transfer on ${CHAIN_LABELS[sel.source.chainId] || sel.source.chainName} \xB7 lowest cost` : (
5793
5848
  // Deliberately does NOT restate the destination amount — that is merchant config, not a payer fact.
5794
5849
  `Routed through ZeroDelta \xB7 the extra covers the network cost`
5795
5850
  ) : "Pay with USDC, USDT, or USDE from your wallet.";
5796
5851
  const comingSoon = method === "card" ? "Card payments are coming soon. Today StableGenie pays from your connected wallet." : "Bank transfers are coming soon.";
5797
- const payLabel = parked ? method === "card" ? "Card \u2014 coming soon" : "Bank \u2014 coming soon" : submitting ? "Paying\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.asset}` : "Pay";
5852
+ const payLabel = parked ? method === "card" ? "Card \u2014 coming soon" : "Bank \u2014 coming soon" : submitting ? "Paying\u2026" : flow.insufficient ? "Insufficient balance" : flow.nativeShortfall ? flow.nativeShortfall : sel && selectedVisible ? `Pay ${sel.source.payAmount} ${sel.source.ticker || sel.source.asset}` : "Pay";
5798
5853
  const walletSlot = wallet.account ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-head-tools", children: [
5799
5854
  /* @__PURE__ */ jsxRuntime.jsx(HistoryButton, { btnRef: histBtnRef, disabled: submitting, onClick: () => setHist({}) }),
5800
5855
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-brand", children: [
@@ -5823,7 +5878,7 @@ function StableGeniePay(props) {
5823
5878
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
5824
5879
  props.amount,
5825
5880
  " ",
5826
- props.toAsset
5881
+ tickerOn(registryTokens, props.toChainId, props.toAsset)
5827
5882
  ] }),
5828
5883
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
5829
5884
  flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
@@ -5859,7 +5914,7 @@ function StableGeniePay(props) {
5859
5914
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
5860
5915
  sel.source.payAmount,
5861
5916
  " ",
5862
- sel.source.asset
5917
+ sel.source.ticker || sel.source.asset
5863
5918
  ] }),
5864
5919
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
5865
5920
  "on ",
@@ -5985,7 +6040,7 @@ function StableGenieSwap(props) {
5985
6040
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
5986
6041
  receive,
5987
6042
  " ",
5988
- toAsset
6043
+ tickerOn(registryTokens, toChainId, toAsset)
5989
6044
  ] }),
5990
6045
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
5991
6046
  flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
@@ -6103,6 +6158,8 @@ function StableGenieExchange(props) {
6103
6158
  const fromToken = react.useMemo(() => from ? findToken(tokens, from.chainId, from.symbol) : null, [tokens, from]);
6104
6159
  const toToken = react.useMemo(() => to ? findToken(tokens, to.chainId, to.symbol) : null, [tokens, to]);
6105
6160
  const toSymbol = toToken?.symbol ?? to?.symbol ?? "";
6161
+ const fromTicker = fromToken ? tokenTicker(fromToken) : from?.symbol ?? "";
6162
+ const toTicker = toToken ? tokenTicker(toToken) : toSymbol;
6106
6163
  const fromPickerTokens = react.useMemo(() => product === "rwa" ? counterpartTokens(sourceTokens, toToken) : sourceTokens, [product, sourceTokens, toToken]);
6107
6164
  const toPickerTokens = react.useMemo(() => product === "rwa" ? counterpartTokens(tokens, fromToken) : tokens, [product, tokens, fromToken]);
6108
6165
  const rwaSeeded = react.useRef(false);
@@ -6130,7 +6187,7 @@ function StableGenieExchange(props) {
6130
6187
  if (verdict === "available") continue;
6131
6188
  states[key] = {
6132
6189
  disabled: true,
6133
- reason: verdict === "hub-only" ? `${token.symbol} cannot be delivered on this chain \u2014 choose an execution chain.` : "ZeroDelta cannot deliver this asset here.",
6190
+ reason: verdict === "hub-only" ? `${tokenTicker(token)} cannot be delivered on this chain \u2014 choose an execution chain.` : "ZeroDelta cannot deliver this asset here.",
6134
6191
  hint: verdict === "hub-only" ? "Not here" : "Unavailable"
6135
6192
  };
6136
6193
  }
@@ -6252,7 +6309,7 @@ function StableGenieExchange(props) {
6252
6309
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
6253
6310
  receive,
6254
6311
  " ",
6255
- toSymbol
6312
+ toTicker
6256
6313
  ] }),
6257
6314
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
6258
6315
  flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
@@ -6281,7 +6338,7 @@ function StableGenieExchange(props) {
6281
6338
  "Balance: ",
6282
6339
  fromBal.formatted,
6283
6340
  " ",
6284
- from?.symbol
6341
+ fromTicker
6285
6342
  ] }) : null,
6286
6343
  mode !== "onramp" ? (
6287
6344
  // a11y note: <fieldset> carries UA styling that would
@@ -6293,7 +6350,7 @@ function StableGenieExchange(props) {
6293
6350
  !rampMode && quoteError && !wide ? /* @__PURE__ */ jsxRuntime.jsx(StatusPanel, { tone: "error", children: quoteError }) : null,
6294
6351
  !rampMode && !wide && quotable && !quoteError ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-panel", style: { marginTop: 12 }, children: [
6295
6352
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-label", children: "You receive (estimated)" }),
6296
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-anchor sg-mono", children: quoting ? "\u2026" : receive ? `${receive} ${toSymbol}` : "\u2014" }),
6353
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-anchor sg-mono", children: quoting ? "\u2026" : receive ? `${receive} ${toTicker}` : "\u2014" }),
6297
6354
  meta && !quoting ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-sub", children: [
6298
6355
  "via ",
6299
6356
  meta.bridge,
@@ -6342,7 +6399,7 @@ function StableGenieExchange(props) {
6342
6399
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-amt sg-mono", children: [
6343
6400
  receive,
6344
6401
  " ",
6345
- toSymbol
6402
+ toTicker
6346
6403
  ] }),
6347
6404
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-sub", children: [
6348
6405
  "on ",
@@ -6354,7 +6411,7 @@ function StableGenieExchange(props) {
6354
6411
  /* @__PURE__ */ jsxRuntime.jsxs("b", { className: "sg-mono", children: [
6355
6412
  normalizedAmount,
6356
6413
  " ",
6357
- from?.symbol
6414
+ fromTicker
6358
6415
  ] })
6359
6416
  ] }),
6360
6417
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-meta-row", children: [
package/dist/mount.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { M as MountConfig, r as mount } from './mount-DssudKQ7.cjs';
1
+ export { M as MountConfig, r as mount } from './mount-Dtbtdry1.cjs';
2
2
  import 'react';
3
- import './verify-Ce6ZtDhi.cjs';
3
+ import './verify-57gjg_dM.cjs';
package/dist/mount.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { M as MountConfig, r as mount } from './mount-BFa37j1u.js';
1
+ export { M as MountConfig, r as mount } from './mount-Bver3O2z.js';
2
2
  import 'react';
3
- import './verify-Ce6ZtDhi.js';
3
+ import './verify-57gjg_dM.js';
package/dist/mount.js CHANGED
@@ -1,2 +1,2 @@
1
- export { mount } from './chunk-DXUESKNC.js';
2
- import './chunk-YEYFEQWS.js';
1
+ export { mount } from './chunk-KETGKV7Y.js';
2
+ import './chunk-ZBUK7ULN.js';