@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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-Db2959hv.cjs");
3
+ const index = require("./index-CCS3APn7.cjs");
4
4
  exports.DEFAULT_SLIPPAGE_BPS = index.DEFAULT_SLIPPAGE_BPS;
5
5
  exports.EvaaBridge = index.EvaaBridge;
6
6
  exports.RoutePriority = index.RoutePriority;
@@ -1,4 +1,4 @@
1
- import { L, d, f, e, D, Q, H, y, B, U, w, s, v, r, p, q, G, X, a3, Z, a0, x, z, _, A, Y, a1, a2, S, $, P, I, V, W, a4, a5, J, K, F, N, t, o, i, u, l, m, j, n, h, k } from "./index-DCLfFVh_.js";
1
+ import { L, d, f, e, D, Q, H, y, B, U, w, s, v, r, p, q, G, X, a3, Z, a0, x, z, _, A, Y, a1, a2, S, $, P, I, V, W, a4, a5, J, K, F, N, t, o, i, u, l, m, j, n, h, k } from "./index-D6FY4jbl.js";
2
2
  export {
3
3
  L as DEFAULT_SLIPPAGE_BPS,
4
4
  d as EvaaBridge,
@@ -3021,8 +3021,6 @@ const Details = () => {
3021
3021
  1,
3022
3022
  Math.round(bridgeData.quoteDetails?.etaSeconds / 60)
3023
3023
  )}m` : "—";
3024
- const messageFeeDisplay = !quote ? "—" : formatUsd(fees.messageFeeUsd);
3025
- const bridgeFeeDisplay = !quote ? "—" : formatUsd(fees.bridgeFeeUsd);
3026
3024
  const totalFeeDisplay = !quote ? "—" : formatUsd(fees.totalFeeUsd);
3027
3025
  const currentSlippageText = !quote ? "—" : formatPercentage(slippageBps);
3028
3026
  const routeText = getRouteDisplayName(quote?.route);
@@ -3064,24 +3062,6 @@ const Details = () => {
3064
3062
  value: currentSlippageText
3065
3063
  }
3066
3064
  ),
3067
- /* @__PURE__ */ jsxRuntime.jsx(
3068
- DetailsRow,
3069
- {
3070
- label: t2("transaction.messageFee"),
3071
- tooltip: t2("transaction.messageFeeTooltip"),
3072
- value: messageFeeDisplay,
3073
- isLoading
3074
- }
3075
- ),
3076
- /* @__PURE__ */ jsxRuntime.jsx(
3077
- DetailsRow,
3078
- {
3079
- label: t2("transaction.bridgeFee"),
3080
- tooltip: t2("transaction.bridgeFeeTooltip"),
3081
- value: bridgeFeeDisplay,
3082
- isLoading
3083
- }
3084
- ),
3085
3065
  /* @__PURE__ */ jsxRuntime.jsx(
3086
3066
  DetailsRow,
3087
3067
  {
@@ -4486,37 +4466,8 @@ const SuccessStep = ({
4486
4466
  }) => {
4487
4467
  const { current, reset } = useTransactionStore();
4488
4468
  const { t: t2 } = useBridgeTranslation();
4489
- const { chains } = useChainsStore();
4490
4469
  const metadata = current?.metadata;
4491
4470
  const srcTxHash = current?.tonTransactionHash || current?.srcTxHash;
4492
- const srcChainKey = current?.quote?.srcChainKey;
4493
- const quote = current?.quote;
4494
- const estimatedFee = react.useMemo(() => {
4495
- if (!quote?.fees || !srcChainKey || !chains) return null;
4496
- const srcChain = chains.find((c2) => c2.chainKey === srcChainKey);
4497
- if (!srcChain) return null;
4498
- const nativeCurrencyAddress = srcChain.nativeCurrency.address;
4499
- const nativeCurrencyDecimals = srcChain.nativeCurrency.decimals;
4500
- const nativeCurrencySymbol = srcChain.nativeCurrency.symbol;
4501
- const feesInNative = quote.fees.filter(
4502
- (f4) => f4.chainKey === srcChainKey && f4.token === nativeCurrencyAddress
4503
- ).reduce((sum, f4) => sum + BigInt(f4.amount || "0"), 0n);
4504
- if (feesInNative === 0n) return null;
4505
- const feeValue = Number(feesInNative) / Math.pow(10, nativeCurrencyDecimals);
4506
- return {
4507
- value: feeValue,
4508
- symbol: nativeCurrencySymbol
4509
- };
4510
- }, [quote, srcChainKey, chains]);
4511
- const finalFee = react.useMemo(() => {
4512
- if (metadata?.actualFeeValue !== void 0 && metadata?.actualFeeSymbol) {
4513
- return {
4514
- value: metadata.actualFeeValue,
4515
- symbol: metadata.actualFeeSymbol
4516
- };
4517
- }
4518
- return estimatedFee;
4519
- }, [metadata?.actualFeeValue, metadata?.actualFeeSymbol, estimatedFee]);
4520
4471
  return /* @__PURE__ */ jsxRuntime.jsxs(
4521
4472
  dialog.DialogContent,
4522
4473
  {
@@ -4582,10 +4533,6 @@ const SuccessStep = ({
4582
4533
  children: formatHash(srcTxHash)
4583
4534
  }
4584
4535
  )
4585
- ] }),
4586
- finalFee && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
4587
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: t2("transaction.finalFee") }),
4588
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: `${formatBalance(finalFee.value, 6)} ${finalFee.symbol}` })
4589
4536
  ] })
4590
4537
  ] }),
4591
4538
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogFooter, { className: "w-full pt-10", children: /* @__PURE__ */ jsxRuntime.jsx(button.Button, { onClick: reset, className: "w-full", children: t2("transaction.done") }) })
@@ -25744,7 +25691,7 @@ class WalletConnectModal {
25744
25691
  }
25745
25692
  async initUi() {
25746
25693
  if (typeof window !== "undefined") {
25747
- await Promise.resolve().then(() => require("./index-Dda0d9GW.cjs"));
25694
+ await Promise.resolve().then(() => require("./index-CZs6AE2i.cjs"));
25748
25695
  const modal = document.createElement("wcm-modal");
25749
25696
  document.body.insertAdjacentElement("beforeend", modal);
25750
25697
  OptionsCtrl.setIsUiLoaded(true);
@@ -26579,4 +26526,4 @@ exports.useSettingsStore = useSettingsStore;
26579
26526
  exports.useSwapModel = useSwapModel;
26580
26527
  exports.useTokensStore = useTokensStore;
26581
26528
  exports.useTransactionStore = useTransactionStore;
26582
- //# sourceMappingURL=index-Db2959hv.cjs.map
26529
+ //# sourceMappingURL=index-CCS3APn7.cjs.map