Skip to content

Commit

Permalink
ui: swap over to correct decimal units for UI operations
Browse files Browse the repository at this point in the history
  • Loading branch information
barrystyle committed Jan 30, 2024
1 parent 294d152 commit afb0225
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qt/bitcoinunits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ qint64 BitcoinUnits::factor(Unit unit)
int BitcoinUnits::decimals(Unit unit)
{
switch (unit) {
case Unit::BTC: return 6;
case Unit::mBTC: return 3;
case Unit::uBTC: return 0;
case Unit::BTC: return 8;
case Unit::mBTC: return 5;
case Unit::uBTC: return 2;
case Unit::SAT: return 0;
} // no default case, so the compiler can warn about missing cases
assert(false);
Expand Down

0 comments on commit afb0225

Please sign in to comment.