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/esm/index.js CHANGED
@@ -3606,7 +3606,7 @@ 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) {
3609
+ if (nearAvailableBalance < 0.25) {
3610
3610
  throw new Error("NEAR balance is insufficient, please deposit more NEAR");
3611
3611
  }
3612
3612
  console.log("available near balance:", nearAvailableBalance);
@@ -3748,7 +3748,7 @@ function getPredictedGasAmount(_0) {
3748
3748
  { network: currentConfig.network }
3749
3749
  ) : "0";
3750
3750
  const predictedGasAmount = new Big(predictedGas).mul(1.2).toFixed(0);
3751
- const miniGasAmount = 200 * transactions2.length;
3751
+ const miniGasAmount = 100 * transactions2.length;
3752
3752
  const gasAmount = Math.max(Number(predictedGasAmount), miniGasAmount);
3753
3753
  console.log("predictedGas:", predictedGasAmount);
3754
3754
  return gasAmount.toString();
@@ -4255,7 +4255,7 @@ function getWithdrawTransaction(_0) {
4255
4255
  amount: fromAmount == null ? void 0 : fromAmount.toString(),
4256
4256
  msg: JSON.stringify(msg)
4257
4257
  },
4258
- gas: "300000000000000",
4258
+ gas: "150000000000000",
4259
4259
  deposit: "1"
4260
4260
  }
4261
4261
  }
@@ -5343,7 +5343,7 @@ function getGroup(state) {
5343
5343
 
5344
5344
  // src/index.ts
5345
5345
  var getVersion = () => {
5346
- return "0.5.90-beta";
5346
+ return "0.5.92-beta";
5347
5347
  };
5348
5348
  if (typeof window !== "undefined") {
5349
5349
  window.__BTC_WALLET_VERSION = getVersion();