@rash2x/bridge-widget 0.6.94 → 0.6.96
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-Db2959hv.cjs → index-CCS3APn7.cjs} +2 -55
- package/dist/index-CCS3APn7.cjs.map +1 -0
- package/dist/{index-Dda0d9GW.cjs → index-CZs6AE2i.cjs} +2 -2
- package/dist/{index-Dda0d9GW.cjs.map → index-CZs6AE2i.cjs.map} +1 -1
- package/dist/{index-DCLfFVh_.js → index-D6FY4jbl.js} +2 -55
- package/dist/index-D6FY4jbl.js.map +1 -0
- package/dist/{index-DVx8ZHwV.js → index-DzthdnPi.js} +2 -2
- package/dist/{index-DVx8ZHwV.js.map → index-DzthdnPi.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-DCLfFVh_.js.map +0 -1
- package/dist/index-Db2959hv.cjs.map +0 -1
|
@@ -3020,8 +3020,6 @@ const Details = () => {
|
|
|
3020
3020
|
1,
|
|
3021
3021
|
Math.round(bridgeData.quoteDetails?.etaSeconds / 60)
|
|
3022
3022
|
)}m` : "—";
|
|
3023
|
-
const messageFeeDisplay = !quote ? "—" : formatUsd(fees.messageFeeUsd);
|
|
3024
|
-
const bridgeFeeDisplay = !quote ? "—" : formatUsd(fees.bridgeFeeUsd);
|
|
3025
3023
|
const totalFeeDisplay = !quote ? "—" : formatUsd(fees.totalFeeUsd);
|
|
3026
3024
|
const currentSlippageText = !quote ? "—" : formatPercentage(slippageBps);
|
|
3027
3025
|
const routeText = getRouteDisplayName(quote?.route);
|
|
@@ -3063,24 +3061,6 @@ const Details = () => {
|
|
|
3063
3061
|
value: currentSlippageText
|
|
3064
3062
|
}
|
|
3065
3063
|
),
|
|
3066
|
-
/* @__PURE__ */ jsx(
|
|
3067
|
-
DetailsRow,
|
|
3068
|
-
{
|
|
3069
|
-
label: t2("transaction.messageFee"),
|
|
3070
|
-
tooltip: t2("transaction.messageFeeTooltip"),
|
|
3071
|
-
value: messageFeeDisplay,
|
|
3072
|
-
isLoading
|
|
3073
|
-
}
|
|
3074
|
-
),
|
|
3075
|
-
/* @__PURE__ */ jsx(
|
|
3076
|
-
DetailsRow,
|
|
3077
|
-
{
|
|
3078
|
-
label: t2("transaction.bridgeFee"),
|
|
3079
|
-
tooltip: t2("transaction.bridgeFeeTooltip"),
|
|
3080
|
-
value: bridgeFeeDisplay,
|
|
3081
|
-
isLoading
|
|
3082
|
-
}
|
|
3083
|
-
),
|
|
3084
3064
|
/* @__PURE__ */ jsx(
|
|
3085
3065
|
DetailsRow,
|
|
3086
3066
|
{
|
|
@@ -4485,37 +4465,8 @@ const SuccessStep = ({
|
|
|
4485
4465
|
}) => {
|
|
4486
4466
|
const { current, reset } = useTransactionStore();
|
|
4487
4467
|
const { t: t2 } = useBridgeTranslation();
|
|
4488
|
-
const { chains } = useChainsStore();
|
|
4489
4468
|
const metadata = current?.metadata;
|
|
4490
4469
|
const srcTxHash = current?.tonTransactionHash || current?.srcTxHash;
|
|
4491
|
-
const srcChainKey = current?.quote?.srcChainKey;
|
|
4492
|
-
const quote = current?.quote;
|
|
4493
|
-
const estimatedFee = useMemo(() => {
|
|
4494
|
-
if (!quote?.fees || !srcChainKey || !chains) return null;
|
|
4495
|
-
const srcChain = chains.find((c2) => c2.chainKey === srcChainKey);
|
|
4496
|
-
if (!srcChain) return null;
|
|
4497
|
-
const nativeCurrencyAddress = srcChain.nativeCurrency.address;
|
|
4498
|
-
const nativeCurrencyDecimals = srcChain.nativeCurrency.decimals;
|
|
4499
|
-
const nativeCurrencySymbol = srcChain.nativeCurrency.symbol;
|
|
4500
|
-
const feesInNative = quote.fees.filter(
|
|
4501
|
-
(f4) => f4.chainKey === srcChainKey && f4.token === nativeCurrencyAddress
|
|
4502
|
-
).reduce((sum, f4) => sum + BigInt(f4.amount || "0"), 0n);
|
|
4503
|
-
if (feesInNative === 0n) return null;
|
|
4504
|
-
const feeValue = Number(feesInNative) / Math.pow(10, nativeCurrencyDecimals);
|
|
4505
|
-
return {
|
|
4506
|
-
value: feeValue,
|
|
4507
|
-
symbol: nativeCurrencySymbol
|
|
4508
|
-
};
|
|
4509
|
-
}, [quote, srcChainKey, chains]);
|
|
4510
|
-
const finalFee = useMemo(() => {
|
|
4511
|
-
if (metadata?.actualFeeValue !== void 0 && metadata?.actualFeeSymbol) {
|
|
4512
|
-
return {
|
|
4513
|
-
value: metadata.actualFeeValue,
|
|
4514
|
-
symbol: metadata.actualFeeSymbol
|
|
4515
|
-
};
|
|
4516
|
-
}
|
|
4517
|
-
return estimatedFee;
|
|
4518
|
-
}, [metadata?.actualFeeValue, metadata?.actualFeeSymbol, estimatedFee]);
|
|
4519
4470
|
return /* @__PURE__ */ jsxs(
|
|
4520
4471
|
DialogContent,
|
|
4521
4472
|
{
|
|
@@ -4581,10 +4532,6 @@ const SuccessStep = ({
|
|
|
4581
4532
|
children: formatHash(srcTxHash)
|
|
4582
4533
|
}
|
|
4583
4534
|
)
|
|
4584
|
-
] }),
|
|
4585
|
-
finalFee && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
4586
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.finalFee") }),
|
|
4587
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium", children: `${formatBalance(finalFee.value, 6)} ${finalFee.symbol}` })
|
|
4588
4535
|
] })
|
|
4589
4536
|
] }),
|
|
4590
4537
|
/* @__PURE__ */ jsx(DialogFooter, { className: "w-full pt-10", children: /* @__PURE__ */ jsx(Button, { onClick: reset, className: "w-full", children: t2("transaction.done") }) })
|
|
@@ -25743,7 +25690,7 @@ class WalletConnectModal {
|
|
|
25743
25690
|
}
|
|
25744
25691
|
async initUi() {
|
|
25745
25692
|
if (typeof window !== "undefined") {
|
|
25746
|
-
await import("./index-
|
|
25693
|
+
await import("./index-DzthdnPi.js");
|
|
25747
25694
|
const modal = document.createElement("wcm-modal");
|
|
25748
25695
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
25749
25696
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -26580,4 +26527,4 @@ export {
|
|
|
26580
26527
|
calculateMinReceived as y,
|
|
26581
26528
|
getQuoteDetails as z
|
|
26582
26529
|
};
|
|
26583
|
-
//# sourceMappingURL=index-
|
|
26530
|
+
//# sourceMappingURL=index-D6FY4jbl.js.map
|