btc-wallet 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/esm/index.js +2 -2
- package/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3377,7 +3377,7 @@ function getBtcBalance() {
|
|
3377
3377
|
const rawBalance = res == null ? void 0 : res.reduce((acc, cur) => acc + cur.value, 0);
|
3378
3378
|
const balance = rawBalance / __pow(10, 8);
|
3379
3379
|
const feeRate = yield getBtcGasPrice();
|
3380
|
-
const maxGasFee = feeRate *
|
3380
|
+
const maxGasFee = feeRate * 350 / __pow(10, 8);
|
3381
3381
|
const availableBalance = Math.max(0, balance - maxGasFee);
|
3382
3382
|
return {
|
3383
3383
|
rawBalance,
|
@@ -3505,7 +3505,7 @@ function executeBTCDepositAndAction(_0) {
|
|
3505
3505
|
|
3506
3506
|
// src/index.ts
|
3507
3507
|
var getVersion = () => {
|
3508
|
-
return "0.3.
|
3508
|
+
return "0.3.9";
|
3509
3509
|
};
|
3510
3510
|
if (typeof window !== "undefined") {
|
3511
3511
|
window.__PARTICLE_BTC_CONNECT_VERSION = getVersion();
|