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/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();
|