Merge pull request #2450 from devinbileck/bsq-marketcap-preferred-currency

Display BSQ marketcap using preferred currency
This commit is contained in:
Christoph Atteneder 2019-02-21 14:09:52 +01:00 committed by GitHub
commit bde720f4d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"));