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/esm/index.js
CHANGED
@@ -3337,7 +3337,7 @@ function getBtcBalance() {
|
|
3337
3337
|
const rawBalance = res == null ? void 0 : res.reduce((acc, cur) => acc + cur.value, 0);
|
3338
3338
|
const balance = rawBalance / __pow(10, 8);
|
3339
3339
|
const feeRate = yield getBtcGasPrice();
|
3340
|
-
const maxGasFee = feeRate *
|
3340
|
+
const maxGasFee = feeRate * 350 / __pow(10, 8);
|
3341
3341
|
const availableBalance = Math.max(0, balance - maxGasFee);
|
3342
3342
|
return {
|
3343
3343
|
rawBalance,
|
@@ -3465,7 +3465,7 @@ function executeBTCDepositAndAction(_0) {
|
|
3465
3465
|
|
3466
3466
|
// src/index.ts
|
3467
3467
|
var getVersion = () => {
|
3468
|
-
return "0.3.
|
3468
|
+
return "0.3.9";
|
3469
3469
|
};
|
3470
3470
|
if (typeof window !== "undefined") {
|
3471
3471
|
window.__PARTICLE_BTC_CONNECT_VERSION = getVersion();
|