available balance fix

This commit is contained in:
julian 2023-04-09 13:07:09 -06:00
parent 4409562a94
commit c0105a2058

View file

@ -59,18 +59,18 @@ mixin CoinControlInterface {
fractionDigits: _coin.decimals,
);
satoshiBalanceTotal = satoshiBalanceTotal + utxoAmount;
satoshiBalanceTotal += utxoAmount;
if (utxo.isBlocked) {
satoshiBalanceBlocked = satoshiBalanceBlocked + utxoAmount;
satoshiBalanceBlocked += utxoAmount;
} else {
if (utxo.isConfirmed(
currentChainHeight,
_coin.requiredConfirmations,
)) {
satoshiBalanceSpendable + satoshiBalanceSpendable + utxoAmount;
satoshiBalanceSpendable += utxoAmount;
} else {
satoshiBalancePending = satoshiBalancePending + utxoAmount;
satoshiBalancePending += utxoAmount;
}
}
}