btc-wallet 0.3.8 → 0.3.9
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 +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();
|