Skip to content

Commit

Permalink
Merge #1223: [GUI][Bug] Show locked balance in the available total am…
Browse files Browse the repository at this point in the history
…ount.

baa33c3 [GUI][Bug] Show locked balance in the available total amount and notify the user about its existence. (furszy)

Pull request description:

  Auto-explainable title.

  Solving the not shown locked balance.

ACKs for top commit:
  random-zebra:
    utACK baa33c3
  Fuzzbawls:
    ACK baa33c3

Tree-SHA512: 9dbc0274e19562ba2db83cb6d126e3ec64f2635020c8aa1efe1a99e0aa647b21d6c31705a9db9a9856b6c57918831f940f21d74dfa76fb0d787136a7892bc204
  • Loading branch information
random-zebra committed Dec 22, 2019
2 parents f72660f + baa33c3 commit f2d4291
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 f2d4291

Please sign in to comment.