mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 06:41:41 +01:00
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:
parent
b4b5d0bb12
commit
c9f02504ce
1 changed files with 2 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Reference in a new issue