From c9f02504cec7efd31531e04a108ae0f2f6cc52d8 Mon Sep 17 00:00:00 2001 From: Devin Bileck <603793+devinbileck@users.noreply.github.com> Date: Thu, 21 Feb 2019 00:23:59 -0800 Subject: [PATCH] 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. --- .../desktop/main/dao/wallet/dashboard/BsqDashboardView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/src/main/java/bisq/desktop/main/dao/wallet/dashboard/BsqDashboardView.java b/desktop/src/main/java/bisq/desktop/main/dao/wallet/dashboard/BsqDashboardView.java index f6027deda7..1864729b5f 100644 --- a/desktop/src/main/java/bisq/desktop/main/dao/wallet/dashboard/BsqDashboardView.java +++ b/desktop/src/main/java/bisq/desktop/main/dao/wallet/dashboard/BsqDashboardView.java @@ -223,7 +223,8 @@ public class BsqDashboardView extends ActivatableView 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"));