@loafmarkets/ui 0.1.355 → 0.1.356

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/index.js CHANGED
@@ -4592,6 +4592,11 @@ var PriceChart = React5__namespace.forwardRef(
4592
4592
  );
4593
4593
  PriceChart.displayName = "PriceChart";
4594
4594
  var formatPrice3 = (value, currencySymbol) => {
4595
+ const abs = Math.abs(value);
4596
+ if (abs >= 1e6) {
4597
+ const unit = abs >= 1e12 ? { v: 1e12, s: "T" } : abs >= 1e9 ? { v: 1e9, s: "B" } : { v: 1e6, s: "M" };
4598
+ return `${currencySymbol}${(value / unit.v).toFixed(1)}${unit.s}`;
4599
+ }
4595
4600
  return `${currencySymbol}${value.toLocaleString(void 0, {
4596
4601
  minimumFractionDigits: 0,
4597
4602
  maximumFractionDigits: 2
@@ -9079,7 +9084,7 @@ function PropertyOverview({
9079
9084
  ] });
9080
9085
  const tokenDetailsItems = [
9081
9086
  { label: "Chain", value: chainValue },
9082
- { label: "On-Chain Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true, link: contractAddress ? `https://basescan.org/address/${contractAddress}` : void 0, copyValue: contractAddress },
9087
+ { label: "On-Chain Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true, link: contractAddress ? `https://sepolia.basescan.org/address/${contractAddress}` : void 0, copyValue: contractAddress },
9083
9088
  { label: "Token Ticker", value: ticker ?? "\u2014" },
9084
9089
  { label: "Total Circulating Tokens", value: isLoading && resolvedTokensIssued == null ? loadingSkeleton : resolvedTokensIssued?.toLocaleString() ?? "\u2014" },
9085
9090
  { label: "Legal Structuring", value: "See Documents", docLink: true },
@@ -9525,7 +9530,7 @@ function HoldersPopup({
9525
9530
  window.addEventListener("keydown", handleEsc);
9526
9531
  return () => window.removeEventListener("keydown", handleEsc);
9527
9532
  }, [onClose]);
9528
- const basescanUrl = contractAddress ? `https://basescan.org/token/${contractAddress}#balances` : "https://basescan.org";
9533
+ const basescanUrl = contractAddress ? `https://sepolia.basescan.org/token/${contractAddress}#balances` : "https://sepolia.basescan.org";
9529
9534
  return /* @__PURE__ */ jsxRuntime.jsx(DivPopupOverlay, { onClick: onClose, children: /* @__PURE__ */ jsxRuntime.jsxs(HoldersPanel, { onClick: (e) => e.stopPropagation(), children: [
9530
9535
  /* @__PURE__ */ jsxRuntime.jsxs(DivPopupHeader, { children: [
9531
9536
  /* @__PURE__ */ jsxRuntime.jsxs(DivPopupTitle, { children: [
@@ -9547,7 +9552,7 @@ function HoldersPopup({
9547
9552
  MOCK_HOLDERS.map((h) => /* @__PURE__ */ jsxRuntime.jsxs(HoldersTableRow, { children: [
9548
9553
  /* @__PURE__ */ jsxRuntime.jsx(HoldersColRank, { children: h.rank }),
9549
9554
  /* @__PURE__ */ jsxRuntime.jsxs(HoldersColAddr, { children: [
9550
- /* @__PURE__ */ jsxRuntime.jsx(HolderAddrLink, { href: `https://basescan.org/address/${h.address.replace("...", "")}`, target: "_blank", rel: "noopener noreferrer", children: h.address }),
9555
+ /* @__PURE__ */ jsxRuntime.jsx(HolderAddrLink, { href: `https://sepolia.basescan.org/address/${h.address.replace("...", "")}`, target: "_blank", rel: "noopener noreferrer", children: h.address }),
9551
9556
  h.label && /* @__PURE__ */ jsxRuntime.jsx(HolderLabel, { children: h.label })
9552
9557
  ] }),
9553
9558
  /* @__PURE__ */ jsxRuntime.jsx(HoldersColTokens, { children: h.tokens.toLocaleString() }),