btc-wallet 0.5.90-beta → 0.5.92-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 CHANGED
@@ -3679,7 +3679,7 @@ 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) {
3682
+ if (nearAvailableBalance < 0.25) {
3683
3683
  throw new Error("NEAR balance is insufficient, please deposit more NEAR");
3684
3684
  }
3685
3685
  console.log("available near balance:", nearAvailableBalance);
@@ -3821,7 +3821,7 @@ function getPredictedGasAmount(_0) {
3821
3821
  { network: currentConfig.network }
3822
3822
  ) : "0";
3823
3823
  const predictedGasAmount = new import_big.default(predictedGas).mul(1.2).toFixed(0);
3824
- const miniGasAmount = 200 * transactions2.length;
3824
+ const miniGasAmount = 100 * transactions2.length;
3825
3825
  const gasAmount = Math.max(Number(predictedGasAmount), miniGasAmount);
3826
3826
  console.log("predictedGas:", predictedGasAmount);
3827
3827
  return gasAmount.toString();
@@ -4328,7 +4328,7 @@ function getWithdrawTransaction(_0) {
4328
4328
  amount: fromAmount == null ? void 0 : fromAmount.toString(),
4329
4329
  msg: JSON.stringify(msg)
4330
4330
  },
4331
- gas: "300000000000000",
4331
+ gas: "150000000000000",
4332
4332
  deposit: "1"
4333
4333
  }
4334
4334
  }
@@ -5414,7 +5414,7 @@ function getGroup(state) {
5414
5414
 
5415
5415
  // src/index.ts
5416
5416
  var getVersion = () => {
5417
- return "0.5.90-beta";
5417
+ return "0.5.92-beta";
5418
5418
  };
5419
5419
  if (typeof window !== "undefined") {
5420
5420
  window.__BTC_WALLET_VERSION = getVersion();