Display BSQ marketcap using preferred currency

In the BSQ dashboard view, the market capitalisation is shown in USD.
Instead, use the user's preferred currency.
This commit is contained in:
Devin Bileck 2019-02-21 00:23:59 -08:00
parent b4b5d0bb12
commit c9f02504ce
No known key found for this signature in database
GPG key ID: C86D829C2399D073

View file

@ -223,7 +223,8 @@ public class BsqDashboardView extends ActivatableView<GridPane, Void> implements
priceTextField.setText(bsqFormatter.formatPrice(bsqPrice) + " BSQ/BTC");
marketCapTextField.setText(bsqFormatter.formatMarketCap(priceFeedService.getMarketPrice("BSQ"),
priceFeedService.getMarketPrice("USD"), availableAmount));
priceFeedService.getMarketPrice(preferences.getPreferredTradeCurrency().getCode()),
availableAmount));
} else {
priceTextField.setText(Res.get("shared.na"));
marketCapTextField.setText(Res.get("shared.na"));