@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.
- package/dist/evaa-bridge.cjs +1 -1
- package/dist/evaa-bridge.mjs +1 -1
- package/dist/{index-DEi2-2_y.js → index-7Pgd_WWn.js} +2 -2
- package/dist/{index-DEi2-2_y.js.map → index-7Pgd_WWn.js.map} +1 -1
- package/dist/{index-HznPfOtP.js → index-BEeiBKNi.js} +8 -2
- package/dist/index-BEeiBKNi.js.map +1 -0
- package/dist/{index-CSE-oDw8.cjs → index-BuYPjNSX.cjs} +2 -2
- package/dist/{index-CSE-oDw8.cjs.map → index-BuYPjNSX.cjs.map} +1 -1
- package/dist/{index-CpKOf8oF.cjs → index-DYJQfOaf.cjs} +8 -2
- package/dist/index-DYJQfOaf.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/index-CpKOf8oF.cjs.map +0 -1
- package/dist/index-HznPfOtP.js.map +0 -1
|
@@ -2922,6 +2922,7 @@ function useGasEstimate(amountNum) {
|
|
|
2922
2922
|
const isNativeSelected = nativeSym === (selectedAssetSymbol || "").toUpperCase();
|
|
2923
2923
|
let requiredNative = 0;
|
|
2924
2924
|
let quoteFeesAvailable = false;
|
|
2925
|
+
console.log(quoteFees);
|
|
2925
2926
|
if (quoteFees && quoteSrcChainKey === chainKey) {
|
|
2926
2927
|
const fees = quoteFees;
|
|
2927
2928
|
const feesInNative = fees.filter(
|
|
@@ -2940,6 +2941,9 @@ function useGasEstimate(amountNum) {
|
|
|
2940
2941
|
} else {
|
|
2941
2942
|
hasEnoughGas = nativeBalance >= requiredNative;
|
|
2942
2943
|
}
|
|
2944
|
+
console.log("nativeBalance", nativeBalance);
|
|
2945
|
+
console.log("requiredNative", requiredNative);
|
|
2946
|
+
console.log("nativeBalance - (amountNum ?? 0)", nativeBalance - (amountNum ?? 0));
|
|
2943
2947
|
const shouldCheckGas = balancesKnown && quoteFeesAvailable;
|
|
2944
2948
|
return {
|
|
2945
2949
|
nativeSym,
|
|
@@ -3671,6 +3675,8 @@ function useBalanceCheck(amountNum, gas) {
|
|
|
3671
3675
|
};
|
|
3672
3676
|
}
|
|
3673
3677
|
const hasEnoughGasForTx = gas.nativeBalance >= gasReserve;
|
|
3678
|
+
console.log("rawBalance", rawBalance);
|
|
3679
|
+
console.log("amountNum", amountNum);
|
|
3674
3680
|
return {
|
|
3675
3681
|
availableBalance: rawBalance,
|
|
3676
3682
|
hasInsufficientBalance: amountNum > rawBalance || !hasEnoughGasForTx,
|
|
@@ -25823,7 +25829,7 @@ class WalletConnectModal {
|
|
|
25823
25829
|
}
|
|
25824
25830
|
async initUi() {
|
|
25825
25831
|
if (typeof window !== "undefined") {
|
|
25826
|
-
await import("./index-
|
|
25832
|
+
await import("./index-7Pgd_WWn.js");
|
|
25827
25833
|
const modal = document.createElement("wcm-modal");
|
|
25828
25834
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
25829
25835
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -26592,4 +26598,4 @@ export {
|
|
|
26592
26598
|
getQuoteFees as y,
|
|
26593
26599
|
calculateMinReceived as z
|
|
26594
26600
|
};
|
|
26595
|
-
//# sourceMappingURL=index-
|
|
26601
|
+
//# sourceMappingURL=index-BEeiBKNi.js.map
|