@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.mjs CHANGED
@@ -4566,6 +4566,11 @@ var PriceChart = React5.forwardRef(
4566
4566
  );
4567
4567
  PriceChart.displayName = "PriceChart";
4568
4568
  var formatPrice3 = (value, currencySymbol) => {
4569
+ const abs = Math.abs(value);
4570
+ if (abs >= 1e6) {
4571
+ const unit = abs >= 1e12 ? { v: 1e12, s: "T" } : abs >= 1e9 ? { v: 1e9, s: "B" } : { v: 1e6, s: "M" };
4572
+ return `${currencySymbol}${(value / unit.v).toFixed(1)}${unit.s}`;
4573
+ }
4569
4574
  return `${currencySymbol}${value.toLocaleString(void 0, {
4570
4575
  minimumFractionDigits: 0,
4571
4576
  maximumFractionDigits: 2
@@ -9053,7 +9058,7 @@ function PropertyOverview({
9053
9058
  ] });
9054
9059
  const tokenDetailsItems = [
9055
9060
  { label: "Chain", value: chainValue },
9056
- { label: "On-Chain Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true, link: contractAddress ? `https://basescan.org/address/${contractAddress}` : void 0, copyValue: contractAddress },
9061
+ { label: "On-Chain Address", value: contractAddress ? truncateAddress(contractAddress) : "\u2014", mono: true, link: contractAddress ? `https://sepolia.basescan.org/address/${contractAddress}` : void 0, copyValue: contractAddress },
9057
9062
  { label: "Token Ticker", value: ticker ?? "\u2014" },
9058
9063
  { label: "Total Circulating Tokens", value: isLoading && resolvedTokensIssued == null ? loadingSkeleton : resolvedTokensIssued?.toLocaleString() ?? "\u2014" },
9059
9064
  { label: "Legal Structuring", value: "See Documents", docLink: true },
@@ -9499,7 +9504,7 @@ function HoldersPopup({
9499
9504
  window.addEventListener("keydown", handleEsc);
9500
9505
  return () => window.removeEventListener("keydown", handleEsc);
9501
9506
  }, [onClose]);
9502
- const basescanUrl = contractAddress ? `https://basescan.org/token/${contractAddress}#balances` : "https://basescan.org";
9507
+ const basescanUrl = contractAddress ? `https://sepolia.basescan.org/token/${contractAddress}#balances` : "https://sepolia.basescan.org";
9503
9508
  return /* @__PURE__ */ jsx(DivPopupOverlay, { onClick: onClose, children: /* @__PURE__ */ jsxs(HoldersPanel, { onClick: (e) => e.stopPropagation(), children: [
9504
9509
  /* @__PURE__ */ jsxs(DivPopupHeader, { children: [
9505
9510
  /* @__PURE__ */ jsxs(DivPopupTitle, { children: [
@@ -9521,7 +9526,7 @@ function HoldersPopup({
9521
9526
  MOCK_HOLDERS.map((h) => /* @__PURE__ */ jsxs(HoldersTableRow, { children: [
9522
9527
  /* @__PURE__ */ jsx(HoldersColRank, { children: h.rank }),
9523
9528
  /* @__PURE__ */ jsxs(HoldersColAddr, { children: [
9524
- /* @__PURE__ */ jsx(HolderAddrLink, { href: `https://basescan.org/address/${h.address.replace("...", "")}`, target: "_blank", rel: "noopener noreferrer", children: h.address }),
9529
+ /* @__PURE__ */ jsx(HolderAddrLink, { href: `https://sepolia.basescan.org/address/${h.address.replace("...", "")}`, target: "_blank", rel: "noopener noreferrer", children: h.address }),
9525
9530
  h.label && /* @__PURE__ */ jsx(HolderLabel, { children: h.label })
9526
9531
  ] }),
9527
9532
  /* @__PURE__ */ jsx(HoldersColTokens, { children: h.tokens.toLocaleString() }),