@rash2x/bridge-widget 0.6.95 → 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.
@@ -4465,37 +4465,8 @@ const SuccessStep = ({
4465
4465
  }) => {
4466
4466
  const { current, reset } = useTransactionStore();
4467
4467
  const { t: t2 } = useBridgeTranslation();
4468
- const { chains } = useChainsStore();
4469
4468
  const metadata = current?.metadata;
4470
4469
  const srcTxHash = current?.tonTransactionHash || current?.srcTxHash;
4471
- const srcChainKey = current?.quote?.srcChainKey;
4472
- const quote = current?.quote;
4473
- const estimatedFee = useMemo(() => {
4474
- if (!quote?.fees || !srcChainKey || !chains) return null;
4475
- const srcChain = chains.find((c2) => c2.chainKey === srcChainKey);
4476
- if (!srcChain) return null;
4477
- const nativeCurrencyAddress = srcChain.nativeCurrency.address;
4478
- const nativeCurrencyDecimals = srcChain.nativeCurrency.decimals;
4479
- const nativeCurrencySymbol = srcChain.nativeCurrency.symbol;
4480
- const feesInNative = quote.fees.filter(
4481
- (f4) => f4.chainKey === srcChainKey && f4.token === nativeCurrencyAddress
4482
- ).reduce((sum, f4) => sum + BigInt(f4.amount || "0"), 0n);
4483
- if (feesInNative === 0n) return null;
4484
- const feeValue = Number(feesInNative) / Math.pow(10, nativeCurrencyDecimals);
4485
- return {
4486
- value: feeValue,
4487
- symbol: nativeCurrencySymbol
4488
- };
4489
- }, [quote, srcChainKey, chains]);
4490
- const finalFee = useMemo(() => {
4491
- if (metadata?.actualFeeValue !== void 0 && metadata?.actualFeeSymbol) {
4492
- return {
4493
- value: metadata.actualFeeValue,
4494
- symbol: metadata.actualFeeSymbol
4495
- };
4496
- }
4497
- return estimatedFee;
4498
- }, [metadata?.actualFeeValue, metadata?.actualFeeSymbol, estimatedFee]);
4499
4470
  return /* @__PURE__ */ jsxs(
4500
4471
  DialogContent,
4501
4472
  {
@@ -4561,10 +4532,6 @@ const SuccessStep = ({
4561
4532
  children: formatHash(srcTxHash)
4562
4533
  }
4563
4534
  )
4564
- ] }),
4565
- finalFee && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
4566
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.finalFee") }),
4567
- /* @__PURE__ */ jsx("span", { className: "font-medium", children: `${formatBalance(finalFee.value, 6)} ${finalFee.symbol}` })
4568
4535
  ] })
4569
4536
  ] }),
4570
4537
  /* @__PURE__ */ jsx(DialogFooter, { className: "w-full pt-10", children: /* @__PURE__ */ jsx(Button, { onClick: reset, className: "w-full", children: t2("transaction.done") }) })
@@ -25723,7 +25690,7 @@ class WalletConnectModal {
25723
25690
  }
25724
25691
  async initUi() {
25725
25692
  if (typeof window !== "undefined") {
25726
- await import("./index-D8kQruAb.js");
25693
+ await import("./index-DzthdnPi.js");
25727
25694
  const modal = document.createElement("wcm-modal");
25728
25695
  document.body.insertAdjacentElement("beforeend", modal);
25729
25696
  OptionsCtrl.setIsUiLoaded(true);
@@ -26560,4 +26527,4 @@ export {
26560
26527
  calculateMinReceived as y,
26561
26528
  getQuoteDetails as z
26562
26529
  };
26563
- //# sourceMappingURL=index-UWqhEblz.js.map
26530
+ //# sourceMappingURL=index-D6FY4jbl.js.map