Show total wallet balance in USD instead of spendable balance conversion #1186

Merged
kekkyojin merged 1 commit from fix-usd-conversion into master 2021-04-19 19:55:49 +02:00
Showing only changes of commit 62ded42418 - Show all commits

View file

@ -688,7 +688,7 @@ public class WalletFragment extends BaseFragment implements SdkStatusListener, W
double totalBalance = walletBalance.getTotal().doubleValue();
double spendableBalance = walletBalance.getAvailable().doubleValue();
double supportingBalance = walletBalance.getClaims().doubleValue() + walletBalance.getTips().doubleValue() + walletBalance.getSupports().doubleValue();
double usdBalance = spendableBalance * Lbryio.LBCUSDRate;
double usdBalance = totalBalance * Lbryio.LBCUSDRate;
double tipsBalance = walletBalance.getTips().doubleValue();
if (detailRows == null)