Skip to content

Commit

Permalink
[GUI][Bug] Show locked balance in the available total amount and noti…
Browse files Browse the repository at this point in the history
…fy the user about its existence.
  • Loading branch information
furszy committed Dec 21, 2019
1 parent d40686f commit baa33c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qt/pivx/topbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,15 +537,15 @@ void TopBar::updateBalances(const CAmount& balance, const CAmount& unconfirmedBa
const CAmount& watchOnlyBalance, const CAmount& watchUnconfBalance, const CAmount& watchImmatureBalance,
const CAmount& delegatedBalance, const CAmount& coldStakedBalance){

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

// PIV Balance
//CAmount nTotalBalance = balance + unconfirmedBalance + immatureBalance;
CAmount pivAvailableBalance = balance + delegatedBalance - nLockedBalance;

// PIV Total
CAmount pivAvailableBalance = balance + delegatedBalance;
// zPIV Balance
CAmount matureZerocoinBalance = zerocoinBalance - unconfirmedZerocoinBalance - immatureZerocoinBalance;

Expand Down

0 comments on commit baa33c3

Please sign in to comment.