@rash2x/bridge-widget 0.6.48 → 0.6.49
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/evaa-bridge.cjs +1 -1
- package/dist/evaa-bridge.mjs +1 -1
- package/dist/{index-DdlydK6S.js → index--ChsB93S.js} +2 -2
- package/dist/{index-DdlydK6S.js.map → index--ChsB93S.js.map} +1 -1
- package/dist/{index-kI4_yoYE.cjs → index-CJ7gSazU.cjs} +2 -2
- package/dist/{index-kI4_yoYE.cjs.map → index-CJ7gSazU.cjs.map} +1 -1
- package/dist/{index-B1EjRSx4.cjs → index-Cobl4hz4.cjs} +4 -5
- package/dist/index-Cobl4hz4.cjs.map +1 -0
- package/dist/{index-3hA-1OJw.js → index-CumyB0Wj.js} +4 -5
- package/dist/index-CumyB0Wj.js.map +1 -0
- package/package.json +1 -1
- package/dist/index-3hA-1OJw.js.map +0 -1
- package/dist/index-B1EjRSx4.cjs.map +0 -1
|
@@ -945,7 +945,7 @@ const truncateToDecimals = (num, decimals) => {
|
|
|
945
945
|
if (!isFinite(num) || isNaN(num)) return "0";
|
|
946
946
|
const multiplier = Math.pow(10, decimals);
|
|
947
947
|
const truncated = Math.floor(num * multiplier) / multiplier;
|
|
948
|
-
return truncated.toFixed(decimals).replace(
|
|
948
|
+
return truncated.toFixed(decimals).replace(/\.?0+$/, "");
|
|
949
949
|
};
|
|
950
950
|
const formatTokenAmount = (amount, symbol, options) => {
|
|
951
951
|
const normalizedSymbol = (symbol ?? "").toUpperCase();
|
|
@@ -3372,7 +3372,7 @@ const Details = () => {
|
|
|
3372
3372
|
const bridgeData = useBridgeExternalData();
|
|
3373
3373
|
const symbol = (selectedAssetSymbol ?? bridgeData.dstToken?.symbol ?? "—").toUpperCase();
|
|
3374
3374
|
const isLoading = status === "loading";
|
|
3375
|
-
const receiveText = bridgeData.quoteDetails?.outputAmount != null ? truncateToDecimals(Number(bridgeData.quoteDetails?.outputAmount),
|
|
3375
|
+
const receiveText = bridgeData.quoteDetails?.outputAmount != null ? truncateToDecimals(Number(bridgeData.quoteDetails?.outputAmount), 6) : "0";
|
|
3376
3376
|
const etaText = bridgeData.quoteDetails?.etaSeconds != null ? `≈ ${Math.max(
|
|
3377
3377
|
1,
|
|
3378
3378
|
Math.round(bridgeData.quoteDetails?.etaSeconds / 60)
|
|
@@ -4142,7 +4142,6 @@ const WalletModalButton = (props) => {
|
|
|
4142
4142
|
type: "button",
|
|
4143
4143
|
onClick: () => {
|
|
4144
4144
|
onDisconnect();
|
|
4145
|
-
onClose?.();
|
|
4146
4145
|
},
|
|
4147
4146
|
className: "text-sm font-medium text-muted-foreground hover:text-foreground transition-colors",
|
|
4148
4147
|
children: /* @__PURE__ */ jsxRuntime.jsx(ExitIcon, { className: "w-6 h-6" })
|
|
@@ -25966,7 +25965,7 @@ class WalletConnectModal {
|
|
|
25966
25965
|
}
|
|
25967
25966
|
async initUi() {
|
|
25968
25967
|
if (typeof window !== "undefined") {
|
|
25969
|
-
await Promise.resolve().then(() => require("./index-
|
|
25968
|
+
await Promise.resolve().then(() => require("./index-CJ7gSazU.cjs"));
|
|
25970
25969
|
const modal = document.createElement("wcm-modal");
|
|
25971
25970
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
25972
25971
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -26723,4 +26722,4 @@ exports.useSettingsStore = useSettingsStore;
|
|
|
26723
26722
|
exports.useSwapModel = useSwapModel;
|
|
26724
26723
|
exports.useTokensStore = useTokensStore;
|
|
26725
26724
|
exports.useTransactionStore = useTransactionStore;
|
|
26726
|
-
//# sourceMappingURL=index-
|
|
26725
|
+
//# sourceMappingURL=index-Cobl4hz4.cjs.map
|