@rash2x/bridge-widget 0.6.47 → 0.6.48

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.
@@ -969,7 +969,7 @@ const formatUsd = (value) => {
969
969
  return `$${value.toFixed(6).replace(/0+$/, "").replace(/\.$/, "")}`;
970
970
  };
971
971
  const formatPercentage = (bps, decimals = 2) => {
972
- return `${(bps / 100).toFixed(decimals)}%`;
972
+ return `${(bps / 100).toFixed(decimals).replace(/0+$/, "").replace(/\.$/, "")}%`;
973
973
  };
974
974
  const formatBalance = (amount, decimals = 2) => {
975
975
  if (!isFinite(amount) || isNaN(amount) || amount <= 0) {
@@ -25966,7 +25966,7 @@ class WalletConnectModal {
25966
25966
  }
25967
25967
  async initUi() {
25968
25968
  if (typeof window !== "undefined") {
25969
- await Promise.resolve().then(() => require("./index-CdHojoQM.cjs"));
25969
+ await Promise.resolve().then(() => require("./index-kI4_yoYE.cjs"));
25970
25970
  const modal = document.createElement("wcm-modal");
25971
25971
  document.body.insertAdjacentElement("beforeend", modal);
25972
25972
  OptionsCtrl.setIsUiLoaded(true);
@@ -26723,4 +26723,4 @@ exports.useSettingsStore = useSettingsStore;
26723
26723
  exports.useSwapModel = useSwapModel;
26724
26724
  exports.useTokensStore = useTokensStore;
26725
26725
  exports.useTransactionStore = useTransactionStore;
26726
- //# sourceMappingURL=index-BtPPZlsB.cjs.map
26726
+ //# sourceMappingURL=index-B1EjRSx4.cjs.map