mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-12 09:27:01 +00:00
available balance fix
This commit is contained in:
parent
4409562a94
commit
c0105a2058
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue