diff --git a/src/queries/balance.ts b/src/queries/balance.ts index f55aea3c..6b6aa188 100644 --- a/src/queries/balance.ts +++ b/src/queries/balance.ts @@ -30,8 +30,8 @@ export const fetchBtcBalance = async (address: string): Promise => { const data = await metaletApiV3(`/address/btc-balance`).get({ net, address }) return { total: new Decimal(data.balance).mul(1e8).toNumber(), - confirmed: new Decimal(data.block.incomeFee).mul(1e8).toNumber(), - unconfirmed: new Decimal(data.mempool.incomeFee).mul(1e8).toNumber(), + confirmed: new Decimal(data.block.incomeFee - data.block.spendFee).mul(1e8).toNumber(), + unconfirmed: new Decimal(data.mempool.incomeFee - data.mempool.spendFee).mul(1e8).toNumber(), } }