@glacislabs/stablegenie-zerodelta 4.1.1 → 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);
@@ -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),
@@ -1337,10 +1361,13 @@ function routeDeltaLabel(result, quote) {
1337
1361
  if (quote.feeBps) return `${quote.feeBps} bps fee`;
1338
1362
  return "~0";
1339
1363
  }
1364
+ function optionTicker(option) {
1365
+ return option.ticker || option.symbol;
1366
+ }
1340
1367
  function routeLabelFor(option, destinationToken, result) {
1341
1368
  if (result.directTransfer) return "Direct transfer: asset and chain already match.";
1342
1369
  const bridge = result.quote.bridge ? ` via ${result.quote.bridge}` : "";
1343
- 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}.`;
1344
1371
  }
1345
1372
  function tokenAt(tokens, chainId, address) {
1346
1373
  const wanted = normalizeAddress(address);
@@ -1359,6 +1386,7 @@ function buildLegs(orders, ctx) {
1359
1386
  const legs = [];
1360
1387
  let fromChainId = ctx.option.chainId;
1361
1388
  let fromAsset = ctx.option.symbol;
1389
+ let fromTicker = optionTicker(ctx.option);
1362
1390
  let fromDecimals = ctx.option.decimals;
1363
1391
  for (let index = 0; index < orders.length; index += 1) {
1364
1392
  const order = orders[index];
@@ -1366,15 +1394,18 @@ function buildLegs(orders, ctx) {
1366
1394
  const toChainId = Number(order.destinationChainId);
1367
1395
  const askToken = isLast ? ctx.destinationToken : tokenAt(ctx.tokens, toChainId, order.askToken);
1368
1396
  const toAsset = isLast ? ctx.destinationToken.symbol : askToken?.symbol ?? "";
1397
+ const toTicker = askToken ? tokenTicker(askToken) : "";
1369
1398
  const toDecimals = askToken ? assetDecimals(askToken) : void 0;
1370
1399
  const executionChainId = Number(order.executionChainId);
1371
1400
  legs.push({
1372
1401
  index: index + 1,
1373
1402
  fromAsset,
1403
+ fromTicker,
1374
1404
  fromChainId,
1375
1405
  fromChainName: chainNameOf(fromChainId, ctx.chains),
1376
1406
  fromAmount: legAmount(order.bidTokenAmount, fromDecimals),
1377
1407
  toAsset,
1408
+ toTicker,
1378
1409
  toChainId,
1379
1410
  toChainName: chainNameOf(toChainId, ctx.chains),
1380
1411
  toAmount: legAmount(order.askTokenAmount, toDecimals),
@@ -1383,6 +1414,7 @@ function buildLegs(orders, ctx) {
1383
1414
  });
1384
1415
  fromChainId = toChainId;
1385
1416
  fromAsset = toAsset;
1417
+ fromTicker = toTicker;
1386
1418
  fromDecimals = toDecimals;
1387
1419
  }
1388
1420
  return legs;
@@ -1411,6 +1443,7 @@ async function buildRoute({
1411
1443
  state: "DIRECT",
1412
1444
  source: {
1413
1445
  asset: option.symbol,
1446
+ ticker: optionTicker(option),
1414
1447
  chainId: option.chainId,
1415
1448
  chainName: option.chainName,
1416
1449
  tokenAddress: option.address,
@@ -1420,6 +1453,7 @@ async function buildRoute({
1420
1453
  },
1421
1454
  receive: {
1422
1455
  asset: destinationToken.symbol,
1456
+ ticker: tokenTicker(destinationToken),
1423
1457
  chainId: Number(destination.chainId),
1424
1458
  chainName: chainNameOf(Number(destination.chainId), chains),
1425
1459
  tokenAddress: destinationToken.address,
@@ -1434,10 +1468,12 @@ async function buildRoute({
1434
1468
  {
1435
1469
  index: 1,
1436
1470
  fromAsset: option.symbol,
1471
+ fromTicker: optionTicker(option),
1437
1472
  fromChainId: option.chainId,
1438
1473
  fromChainName: option.chainName,
1439
1474
  fromAmount: sourceAmount,
1440
1475
  toAsset: destinationToken.symbol,
1476
+ toTicker: tokenTicker(destinationToken),
1441
1477
  toChainId: Number(destination.chainId),
1442
1478
  toChainName: chainNameOf(Number(destination.chainId), chains),
1443
1479
  toAmount: receiveAmount,
@@ -1449,7 +1485,7 @@ async function buildRoute({
1449
1485
  {
1450
1486
  id: "transfer",
1451
1487
  kind: "transfer",
1452
- label: `Transfer ${destinationToken.symbol}`,
1488
+ label: `Transfer ${tokenTicker(destinationToken)}`,
1453
1489
  chainId: option.chainId,
1454
1490
  to: option.address,
1455
1491
  data: encodeTransfer(destination.address, result.youPayRaw),
@@ -1501,6 +1537,7 @@ async function buildRoute({
1501
1537
  state: result.meetsTarget ? "ROUTE" : "SHORT",
1502
1538
  source: {
1503
1539
  asset: option.symbol,
1540
+ ticker: optionTicker(option),
1504
1541
  chainId: option.chainId,
1505
1542
  chainName: option.chainName,
1506
1543
  tokenAddress: option.address,
@@ -1510,6 +1547,7 @@ async function buildRoute({
1510
1547
  },
1511
1548
  receive: {
1512
1549
  asset: destinationToken.symbol,
1550
+ ticker: tokenTicker(destinationToken),
1513
1551
  chainId: Number(destination.chainId),
1514
1552
  chainName: chainNameOf(Number(destination.chainId), chains),
1515
1553
  tokenAddress: destinationToken.address,
@@ -1523,7 +1561,7 @@ async function buildRoute({
1523
1561
  {
1524
1562
  id: "approve",
1525
1563
  kind: "approve",
1526
- label: `Approve ${option.symbol}`,
1564
+ label: `Approve ${optionTicker(option)}`,
1527
1565
  chainId: option.chainId,
1528
1566
  to: option.address,
1529
1567
  data: encodeApprove(escrow, order.bidTokenAmount),
@@ -1990,6 +2028,7 @@ async function buildSwapPlan(api, swap, payer, wallet = {}) {
1990
2028
  const option = {
1991
2029
  symbol: sourceToken.symbol,
1992
2030
  symbolKey: symbolKey(sourceToken.symbol),
2031
+ ticker: tokenTicker(sourceToken),
1993
2032
  name: sourceToken.name || sourceToken.symbol,
1994
2033
  chainId: v.fromChainId,
1995
2034
  chainName: chainNameOf(v.fromChainId, chains),
@@ -2361,13 +2400,16 @@ function sanitizeLegs(legs) {
2361
2400
  if (!Array.isArray(legs) || !legs.length) return void 0;
2362
2401
  const text = (v, max) => String(v ?? "").slice(0, max);
2363
2402
  const chain = (v) => Number(v) || 0;
2403
+ const ticker = (value, asset) => safeTicker(value, asset) || void 0;
2364
2404
  return legs.slice(0, 8).map((leg, i) => ({
2365
2405
  index: Number(leg?.index) || i + 1,
2366
2406
  fromAsset: text(leg?.fromAsset, 12),
2407
+ fromTicker: ticker(leg?.fromTicker, text(leg?.fromAsset, 12)),
2367
2408
  fromChainId: chain(leg?.fromChainId),
2368
2409
  fromChainName: text(leg?.fromChainName, 40),
2369
2410
  fromAmount: text(leg?.fromAmount, 40),
2370
2411
  toAsset: text(leg?.toAsset, 12),
2412
+ toTicker: ticker(leg?.toTicker, text(leg?.toAsset, 12)),
2371
2413
  toChainId: chain(leg?.toChainId),
2372
2414
  toChainName: text(leg?.toChainName, 40),
2373
2415
  toAmount: text(leg?.toAmount, 40),
@@ -2384,6 +2426,8 @@ function sanitizeTxEntry(entry) {
2384
2426
  chainName: String(entry.chainName || "").slice(0, 40),
2385
2427
  fromAsset: String(entry.fromAsset || "").slice(0, 10),
2386
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,
2387
2431
  payAmount: String(entry.payAmount || "").slice(0, 40),
2388
2432
  receiveAmount: String(entry.receiveAmount || "").slice(0, 40),
2389
2433
  account: isAddress(entry.account) ? normalizeAddress(entry.account) : "",
@@ -2885,6 +2929,8 @@ function useFlow(args) {
2885
2929
  chainName: route.source.chainName,
2886
2930
  fromAsset: route.source.asset,
2887
2931
  toAsset: route.receive.asset,
2932
+ fromTicker: route.source.ticker,
2933
+ toTicker: route.receive.ticker,
2888
2934
  payAmount: route.source.payAmount,
2889
2935
  receiveAmount: route.receive.amount,
2890
2936
  account,
@@ -4222,7 +4268,7 @@ function ChevronGlyph() {
4222
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" }) });
4223
4269
  }
4224
4270
  function TokenTile(props) {
4225
- const shown = props.token?.symbol ?? props.pick?.symbol ?? "";
4271
+ const shown = props.token ? tokenTicker(props.token) : props.pick?.symbol ?? "";
4226
4272
  const glyph = props.pick ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4227
4273
  /* @__PURE__ */ jsxRuntime.jsx(TokenGlyph, { symbol: props.pick.symbol, logoUrl: props.token?.logoUrl, chainId: props.pick.chainId }),
4228
4274
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tile-text", children: [
@@ -4296,7 +4342,8 @@ function TokenSelect(props) {
4296
4342
  const q = query.trim().toLowerCase();
4297
4343
  const filtered = props.tokens.filter((t) => chainFilter == null ? true : Number(t.chainId) === chainFilter).filter((t) => {
4298
4344
  if (!q) return true;
4299
- 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
4300
4347
  // show a three-letter badge, so "Katana" or "Berachain" has to be findable by typing it.
4301
4348
  String(CHAIN_LABELS[Number(t.chainId)] || "").toLowerCase().includes(q);
4302
4349
  });
@@ -4348,7 +4395,7 @@ function TokenSelect(props) {
4348
4395
  children: [
4349
4396
  /* @__PURE__ */ jsxRuntime.jsx(TokenGlyph, { symbol: t.symbol, logoUrl: t.logoUrl, chainId }),
4350
4397
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tokrow-main", children: [
4351
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-sym", children: t.symbol }),
4398
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-sym", children: tokenTicker(t) }),
4352
4399
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-tokrow-name", children: t.name || t.symbol })
4353
4400
  ] }),
4354
4401
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-tokrow-end", children: [
@@ -4421,10 +4468,12 @@ function legsOf(entry) {
4421
4468
  const leg = {
4422
4469
  index: 1,
4423
4470
  fromAsset: entry.fromAsset,
4471
+ fromTicker: entry.fromTicker,
4424
4472
  fromChainId: entry.chainId ?? 0,
4425
4473
  fromChainName: entry.chainName,
4426
4474
  fromAmount: entry.payAmount,
4427
4475
  toAsset: entry.toAsset,
4476
+ toTicker: entry.toTicker,
4428
4477
  toChainId: 0,
4429
4478
  toChainName: "",
4430
4479
  toAmount: entry.receiveAmount,
@@ -4453,9 +4502,9 @@ function TxLegs(props) {
4453
4502
  multi ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-leg-n", "aria-hidden": "true", children: leg.index }) : null,
4454
4503
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-body", children: [
4455
4504
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-line", children: [
4456
- /* @__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"}` }),
4457
4506
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-leg-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(LegArrowGlyph, {}) }),
4458
- /* @__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"}` })
4459
4508
  ] }),
4460
4509
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-leg-sub", children: [
4461
4510
  chainName(leg.fromChainId, leg.fromChainName),
@@ -4501,10 +4550,10 @@ function TxPairGlyphs(props) {
4501
4550
  function TxPair(props) {
4502
4551
  const e = props.entry;
4503
4552
  return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-txrow-pair", children: [
4504
- /* @__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}` }),
4505
4554
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sg-txrow-side sg-mono", children: [
4506
4555
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg-txrow-arrow", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(LegArrowGlyph, {}) }),
4507
- `${e.receiveAmount} ${e.toAsset}`
4556
+ `${e.receiveAmount} ${e.toTicker || e.toAsset}`
4508
4557
  ] })
4509
4558
  ] });
4510
4559
  }
@@ -4568,7 +4617,7 @@ function TxDetail(props) {
4568
4617
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
4569
4618
  e.receiveAmount,
4570
4619
  " ",
4571
- e.toAsset
4620
+ e.toTicker || e.toAsset
4572
4621
  ] }),
4573
4622
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
4574
4623
  e.kind === "payment" ? "Payment" : "Swap",
@@ -4585,7 +4634,7 @@ function TxDetail(props) {
4585
4634
  /* @__PURE__ */ jsxRuntime.jsxs("b", { className: "sg-mono", children: [
4586
4635
  e.payAmount,
4587
4636
  " ",
4588
- e.fromAsset
4637
+ e.fromTicker || e.fromAsset
4589
4638
  ] })
4590
4639
  ] }),
4591
4640
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-meta-row", children: [
@@ -5034,7 +5083,7 @@ function PaymentIsland(props) {
5034
5083
  zero = false;
5035
5084
  }
5036
5085
  if (zero) map[key] = { disabled: true, reason: "no-balance", hint: "No balance on this chain" };
5037
- 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}` };
5038
5087
  else map[key] = { disabled: false };
5039
5088
  }
5040
5089
  return map;
@@ -5105,7 +5154,7 @@ function PaymentIsland(props) {
5105
5154
  if (verdict === "available") continue;
5106
5155
  states[key] = {
5107
5156
  disabled: true,
5108
- 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.",
5109
5158
  hint: verdict === "hub-only" ? "Not here" : "Unavailable"
5110
5159
  };
5111
5160
  }
@@ -5123,6 +5172,7 @@ function PaymentIsland(props) {
5123
5172
  list.push(
5124
5173
  reg ?? {
5125
5174
  symbol: r.source.asset,
5175
+ displaySymbol: r.source.ticker,
5126
5176
  name: r.source.asset,
5127
5177
  chainId: r.source.chainId,
5128
5178
  address: r.source.tokenAddress ?? "",
@@ -5255,10 +5305,11 @@ function PaymentIsland(props) {
5255
5305
  const selBal = sel ? holdings.balances[balanceKey(sel.source.chainId, sel.source.tokenAddress)] : void 0;
5256
5306
  const lastTxOwned = Boolean(flow.lastTxEntry?.hash && wallet.account && flow.lastTxEntry.account === wallet.account.toLowerCase());
5257
5307
  const mismatch = flow.status === "error" && flow.verdict?.status === "mismatch";
5258
- 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 ?? "";
5259
5310
  const anchorAmount = sel?.receive.amount ?? (flow.status === "loading" ? "\u2026" : "\u2014");
5260
5311
  const successAmount = isPay ? props.amount : sel?.receive.amount;
5261
- 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() : "");
5262
5313
  const verb = isPay ? { present: "Pay", gerund: "Paying", past: "Paid" } : kind === "swap" ? { present: "Swap", gerund: "Swapping", past: "Swapped" } : { present: "Exchange", gerund: "Exchanging", past: "Exchanged" };
5263
5314
  const paid = flow.status === "success";
5264
5315
  const settling = flow.status === "pending";
@@ -5313,7 +5364,7 @@ function PaymentIsland(props) {
5313
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." : "";
5314
5365
  const loading = flow.status === "loading";
5315
5366
  const payReady = isPay ? Boolean(sel && selectedVisible) : Boolean(sel);
5316
- 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";
5317
5368
  const exPct = (p) => {
5318
5369
  if (!exFromBal || !exFromToken) return;
5319
5370
  const raw = BigInt(exFromBal.raw);
@@ -5335,7 +5386,7 @@ function PaymentIsland(props) {
5335
5386
  "Balance: ",
5336
5387
  exFromBal.formatted,
5337
5388
  " ",
5338
- exFrom?.symbol
5389
+ exFromTicker
5339
5390
  ] }) : null,
5340
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)) })
5341
5392
  ] })
@@ -5401,7 +5452,7 @@ function PaymentIsland(props) {
5401
5452
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-label", children: "You receive (estimated)" }),
5402
5453
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
5403
5454
  "\u2014 ",
5404
- exToAsset ?? ""
5455
+ destTicker
5405
5456
  ] }),
5406
5457
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-anchor-sub", children: "Connect your wallet to see the estimated receive amount." })
5407
5458
  ] })
@@ -5421,7 +5472,7 @@ function PaymentIsland(props) {
5421
5472
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-receipt-amt sg-mono", children: [
5422
5473
  successAmount,
5423
5474
  " ",
5424
- destAsset
5475
+ destTicker
5425
5476
  ] }),
5426
5477
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-receipt-sub", children: [
5427
5478
  confirmed ? "Confirmed on-chain" : "Confirmation pending",
@@ -5473,7 +5524,7 @@ function PaymentIsland(props) {
5473
5524
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
5474
5525
  anchorAmount,
5475
5526
  " ",
5476
- destAsset
5527
+ destTicker
5477
5528
  ] })
5478
5529
  ] })
5479
5530
  ] }),
@@ -5517,7 +5568,7 @@ function PaymentIsland(props) {
5517
5568
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
5518
5569
  sel.source.payAmount,
5519
5570
  " ",
5520
- sel.source.asset
5571
+ sel.source.ticker || sel.source.asset
5521
5572
  ] }),
5522
5573
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
5523
5574
  "on ",
@@ -5530,7 +5581,7 @@ function PaymentIsland(props) {
5530
5581
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
5531
5582
  sel.source.payAmount,
5532
5583
  " ",
5533
- sel.source.asset
5584
+ sel.source.ticker || sel.source.asset
5534
5585
  ] }),
5535
5586
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
5536
5587
  "on ",
@@ -5685,7 +5736,7 @@ function StableGeniePay(props) {
5685
5736
  if (zero) {
5686
5737
  map[key] = { disabled: true, reason: "no-balance", hint: "No balance on this chain" };
5687
5738
  } else if (a.affordable === false) {
5688
- 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}` };
5689
5740
  } else {
5690
5741
  map[key] = { disabled: false };
5691
5742
  }
@@ -5719,6 +5770,7 @@ function StableGeniePay(props) {
5719
5770
  list.push(
5720
5771
  reg ?? {
5721
5772
  symbol: r.source.asset,
5773
+ displaySymbol: r.source.ticker,
5722
5774
  name: r.source.asset,
5723
5775
  chainId: r.source.chainId,
5724
5776
  address: r.source.tokenAddress ?? "",
@@ -5792,12 +5844,12 @@ function StableGeniePay(props) {
5792
5844
  const sel = flow.selected;
5793
5845
  const selectedVisible = Boolean(sel && visibleRoutes.some((r) => r.id === sel.id));
5794
5846
  const selBal = sel ? holdings.balances[balanceKey(sel.source.chainId, sel.source.tokenAddress)] : void 0;
5795
- 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` : (
5796
5848
  // Deliberately does NOT restate the destination amount — that is merchant config, not a payer fact.
5797
5849
  `Routed through ZeroDelta \xB7 the extra covers the network cost`
5798
5850
  ) : "Pay with USDC, USDT, or USDE from your wallet.";
5799
5851
  const comingSoon = method === "card" ? "Card payments are coming soon. Today StableGenie pays from your connected wallet." : "Bank transfers are coming soon.";
5800
- 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";
5801
5853
  const walletSlot = wallet.account ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-head-tools", children: [
5802
5854
  /* @__PURE__ */ jsxRuntime.jsx(HistoryButton, { btnRef: histBtnRef, disabled: submitting, onClick: () => setHist({}) }),
5803
5855
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-brand", children: [
@@ -5826,7 +5878,7 @@ function StableGeniePay(props) {
5826
5878
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
5827
5879
  props.amount,
5828
5880
  " ",
5829
- props.toAsset
5881
+ tickerOn(registryTokens, props.toChainId, props.toAsset)
5830
5882
  ] }),
5831
5883
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
5832
5884
  flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
@@ -5862,7 +5914,7 @@ function StableGeniePay(props) {
5862
5914
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor sg-mono", children: [
5863
5915
  sel.source.payAmount,
5864
5916
  " ",
5865
- sel.source.asset
5917
+ sel.source.ticker || sel.source.asset
5866
5918
  ] }),
5867
5919
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-anchor-sub", children: [
5868
5920
  "on ",
@@ -5988,7 +6040,7 @@ function StableGenieSwap(props) {
5988
6040
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
5989
6041
  receive,
5990
6042
  " ",
5991
- toAsset
6043
+ tickerOn(registryTokens, toChainId, toAsset)
5992
6044
  ] }),
5993
6045
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
5994
6046
  flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
@@ -6106,6 +6158,8 @@ function StableGenieExchange(props) {
6106
6158
  const fromToken = react.useMemo(() => from ? findToken(tokens, from.chainId, from.symbol) : null, [tokens, from]);
6107
6159
  const toToken = react.useMemo(() => to ? findToken(tokens, to.chainId, to.symbol) : null, [tokens, to]);
6108
6160
  const toSymbol = toToken?.symbol ?? to?.symbol ?? "";
6161
+ const fromTicker = fromToken ? tokenTicker(fromToken) : from?.symbol ?? "";
6162
+ const toTicker = toToken ? tokenTicker(toToken) : toSymbol;
6109
6163
  const fromPickerTokens = react.useMemo(() => product === "rwa" ? counterpartTokens(sourceTokens, toToken) : sourceTokens, [product, sourceTokens, toToken]);
6110
6164
  const toPickerTokens = react.useMemo(() => product === "rwa" ? counterpartTokens(tokens, fromToken) : tokens, [product, tokens, fromToken]);
6111
6165
  const rwaSeeded = react.useRef(false);
@@ -6133,7 +6187,7 @@ function StableGenieExchange(props) {
6133
6187
  if (verdict === "available") continue;
6134
6188
  states[key] = {
6135
6189
  disabled: true,
6136
- 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.",
6137
6191
  hint: verdict === "hub-only" ? "Not here" : "Unavailable"
6138
6192
  };
6139
6193
  }
@@ -6255,7 +6309,7 @@ function StableGenieExchange(props) {
6255
6309
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-amt sg-mono", children: [
6256
6310
  receive,
6257
6311
  " ",
6258
- toSymbol
6312
+ toTicker
6259
6313
  ] }),
6260
6314
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-success-sub", children: [
6261
6315
  flow.verdict?.status === "confirmed" ? "Confirmed on-chain" : "Submitted \u2014 awaiting confirmation",
@@ -6284,7 +6338,7 @@ function StableGenieExchange(props) {
6284
6338
  "Balance: ",
6285
6339
  fromBal.formatted,
6286
6340
  " ",
6287
- from?.symbol
6341
+ fromTicker
6288
6342
  ] }) : null,
6289
6343
  mode !== "onramp" ? (
6290
6344
  // a11y note: <fieldset> carries UA styling that would
@@ -6296,7 +6350,7 @@ function StableGenieExchange(props) {
6296
6350
  !rampMode && quoteError && !wide ? /* @__PURE__ */ jsxRuntime.jsx(StatusPanel, { tone: "error", children: quoteError }) : null,
6297
6351
  !rampMode && !wide && quotable && !quoteError ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-panel", style: { marginTop: 12 }, children: [
6298
6352
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sg-label", children: "You receive (estimated)" }),
6299
- /* @__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" }),
6300
6354
  meta && !quoting ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-sub", children: [
6301
6355
  "via ",
6302
6356
  meta.bridge,
@@ -6345,7 +6399,7 @@ function StableGenieExchange(props) {
6345
6399
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-amt sg-mono", children: [
6346
6400
  receive,
6347
6401
  " ",
6348
- toSymbol
6402
+ toTicker
6349
6403
  ] }),
6350
6404
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sg-recv-sub", children: [
6351
6405
  "on ",
@@ -6357,7 +6411,7 @@ function StableGenieExchange(props) {
6357
6411
  /* @__PURE__ */ jsxRuntime.jsxs("b", { className: "sg-mono", children: [
6358
6412
  normalizedAmount,
6359
6413
  " ",
6360
- from?.symbol
6414
+ fromTicker
6361
6415
  ] })
6362
6416
  ] }),
6363
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-Dz9LffFx.cjs';
1
+ export { M as MountConfig, r as mount } from './mount-Dtbtdry1.cjs';
2
2
  import 'react';
3
- import './verify-Bdw8-YWZ.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-CoLgvvsE.js';
1
+ export { M as MountConfig, r as mount } from './mount-Bver3O2z.js';
2
2
  import 'react';
3
- import './verify-Bdw8-YWZ.js';
3
+ import './verify-57gjg_dM.js';
package/dist/mount.js CHANGED
@@ -1,2 +1,2 @@
1
- export { mount } from './chunk-6BYXMDVN.js';
2
- import './chunk-MQ4XLBVF.js';
1
+ export { mount } from './chunk-KETGKV7Y.js';
2
+ import './chunk-ZBUK7ULN.js';