btc-wallet 0.5.89-beta → 0.5.90-beta
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/index.js +4 -1
- package/dist/index.js.map +2 -2
- package/esm/index.js +4 -1
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/esm/index.js
CHANGED
@@ -3606,6 +3606,9 @@ function calculateGasStrategy(_0) {
|
|
3606
3606
|
{ near: new Big(0), btc: new Big(0) }
|
3607
3607
|
);
|
3608
3608
|
const nearAvailableBalance = new Big(nearBalance).minus(transferAmount.near).toNumber();
|
3609
|
+
if (nearAvailableBalance < 0.3) {
|
3610
|
+
throw new Error("NEAR balance is insufficient, please deposit more NEAR");
|
3611
|
+
}
|
3609
3612
|
console.log("available near balance:", nearAvailableBalance);
|
3610
3613
|
console.log("available gas token balance:", gasTokenBalance);
|
3611
3614
|
console.log("gas strategy:", gasStrategy);
|
@@ -5340,7 +5343,7 @@ function getGroup(state) {
|
|
5340
5343
|
|
5341
5344
|
// src/index.ts
|
5342
5345
|
var getVersion = () => {
|
5343
|
-
return "0.5.
|
5346
|
+
return "0.5.90-beta";
|
5344
5347
|
};
|
5345
5348
|
if (typeof window !== "undefined") {
|
5346
5349
|
window.__BTC_WALLET_VERSION = getVersion();
|