@rash2x/bridge-widget 0.6.63 → 0.6.64

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.
@@ -2923,6 +2923,7 @@ function useGasEstimate(amountNum) {
2923
2923
  const isNativeSelected = nativeSym === (selectedAssetSymbol || "").toUpperCase();
2924
2924
  let requiredNative = 0;
2925
2925
  let quoteFeesAvailable = false;
2926
+ console.log(quoteFees);
2926
2927
  if (quoteFees && quoteSrcChainKey === chainKey) {
2927
2928
  const fees = quoteFees;
2928
2929
  const feesInNative = fees.filter(
@@ -2941,6 +2942,9 @@ function useGasEstimate(amountNum) {
2941
2942
  } else {
2942
2943
  hasEnoughGas = nativeBalance >= requiredNative;
2943
2944
  }
2945
+ console.log("nativeBalance", nativeBalance);
2946
+ console.log("requiredNative", requiredNative);
2947
+ console.log("nativeBalance - (amountNum ?? 0)", nativeBalance - (amountNum ?? 0));
2944
2948
  const shouldCheckGas = balancesKnown && quoteFeesAvailable;
2945
2949
  return {
2946
2950
  nativeSym,
@@ -3672,6 +3676,8 @@ function useBalanceCheck(amountNum, gas) {
3672
3676
  };
3673
3677
  }
3674
3678
  const hasEnoughGasForTx = gas.nativeBalance >= gasReserve;
3679
+ console.log("rawBalance", rawBalance);
3680
+ console.log("amountNum", amountNum);
3675
3681
  return {
3676
3682
  availableBalance: rawBalance,
3677
3683
  hasInsufficientBalance: amountNum > rawBalance || !hasEnoughGasForTx,
@@ -25824,7 +25830,7 @@ class WalletConnectModal {
25824
25830
  }
25825
25831
  async initUi() {
25826
25832
  if (typeof window !== "undefined") {
25827
- await Promise.resolve().then(() => require("./index-CSE-oDw8.cjs"));
25833
+ await Promise.resolve().then(() => require("./index-BuYPjNSX.cjs"));
25828
25834
  const modal = document.createElement("wcm-modal");
25829
25835
  document.body.insertAdjacentElement("beforeend", modal);
25830
25836
  OptionsCtrl.setIsUiLoaded(true);
@@ -26591,4 +26597,4 @@ exports.useSettingsStore = useSettingsStore;
26591
26597
  exports.useSwapModel = useSwapModel;
26592
26598
  exports.useTokensStore = useTokensStore;
26593
26599
  exports.useTransactionStore = useTransactionStore;
26594
- //# sourceMappingURL=index-CpKOf8oF.cjs.map
26600
+ //# sourceMappingURL=index-DYJQfOaf.cjs.map