Fix spent values in tx table

This commit is contained in:
Aditya Kulkarni
2019-10-26 19:21:01 -07:00
parent deff437c1d
commit 3e3d04f2bf
2 changed files with 9 additions and 7 deletions

View File

@@ -189,6 +189,10 @@ QString Settings::getUSDFromZecAmount(qint64 bal) {
}
QString Settings::getDecimalString(qint64 amt) {
if (amt < 0) {
return "-" + Settings::getDecimalString(-1 * amt);
}
// Zcash has 8 decimal places
int places = Settings::getNumberOfDecimalPlaces();
qint64 divider = QString("1" + QString("0").repeated(places)).toULongLong();