Skip to content

Commit e82e2f5

Browse files
furszyFuzzbawls
authored andcommitted
[GUI][Bug] Show locked balance in the available total amount and notify the user about its existence.
Github-Pull: #1223 Rebased-From: baa33c3
1 parent 47d2c40 commit e82e2f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/qt/pivx/topbar.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,15 +537,15 @@ void TopBar::updateBalances(const CAmount& balance, const CAmount& unconfirmedBa
537537
const CAmount& watchOnlyBalance, const CAmount& watchUnconfBalance, const CAmount& watchImmatureBalance,
538538
const CAmount& delegatedBalance, const CAmount& coldStakedBalance){
539539

540+
// Locked balance. //TODO move this to the signal properly in the future..
540541
CAmount nLockedBalance = 0;
541542
if (walletModel) {
542543
nLockedBalance = walletModel->getLockedBalance();
543544
}
545+
ui->labelTitle1->setText(nLockedBalance > 0 ? tr("Available (Locked included)") : tr("Available"));
544546

545-
// PIV Balance
546-
//CAmount nTotalBalance = balance + unconfirmedBalance + immatureBalance;
547-
CAmount pivAvailableBalance = balance + delegatedBalance - nLockedBalance;
548-
547+
// PIV Total
548+
CAmount pivAvailableBalance = balance + delegatedBalance;
549549
// zPIV Balance
550550
CAmount matureZerocoinBalance = zerocoinBalance - unconfirmedZerocoinBalance - immatureZerocoinBalance;
551551

0 commit comments

Comments
 (0)