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/dist/index.js
CHANGED
@@ -3679,6 +3679,9 @@ function calculateGasStrategy(_0) {
|
|
3679
3679
|
{ near: new import_big.default(0), btc: new import_big.default(0) }
|
3680
3680
|
);
|
3681
3681
|
const nearAvailableBalance = new import_big.default(nearBalance).minus(transferAmount.near).toNumber();
|
3682
|
+
if (nearAvailableBalance < 0.3) {
|
3683
|
+
throw new Error("NEAR balance is insufficient, please deposit more NEAR");
|
3684
|
+
}
|
3682
3685
|
console.log("available near balance:", nearAvailableBalance);
|
3683
3686
|
console.log("available gas token balance:", gasTokenBalance);
|
3684
3687
|
console.log("gas strategy:", gasStrategy);
|
@@ -5411,7 +5414,7 @@ function getGroup(state) {
|
|
5411
5414
|
|
5412
5415
|
// src/index.ts
|
5413
5416
|
var getVersion = () => {
|
5414
|
-
return "0.5.
|
5417
|
+
return "0.5.90-beta";
|
5415
5418
|
};
|
5416
5419
|
if (typeof window !== "undefined") {
|
5417
5420
|
window.__BTC_WALLET_VERSION = getVersion();
|