mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-09 07:02:24 -04:00
update to new xmr price server api
remove timestamp data structure
This commit is contained in:
parent
13b5d123bb
commit
9fda20f88b
7 changed files with 21 additions and 59 deletions
|
@ -489,7 +489,7 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
|
|||
private void updateMarketPriceLabel(Label label) {
|
||||
if (model.getIsPriceAvailable().get()) {
|
||||
if (model.getIsExternallyProvidedPrice().get()) {
|
||||
label.setText(Res.get("mainView.marketPriceWithProvider.label", "Bisq Price Index"));
|
||||
label.setText(Res.get("mainView.marketPriceWithProvider.label", "Haveno Price Index"));
|
||||
label.setTooltip(new Tooltip(getPriceProviderTooltipString()));
|
||||
} else {
|
||||
label.setText(Res.get("mainView.marketPrice.bisqInternalPrice"));
|
||||
|
@ -509,7 +509,7 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
|
|||
MarketPrice selectedMarketPrice = model.getPriceFeedService().getMarketPrice(selectedCurrencyCode);
|
||||
|
||||
return Res.get("mainView.marketPrice.tooltip",
|
||||
"Bisq Price Index for " + selectedCurrencyCode,
|
||||
"Haveno Price Index for " + selectedCurrencyCode,
|
||||
"",
|
||||
selectedMarketPrice != null ? DisplayUtils.formatTime(new Date(selectedMarketPrice.getTimestampSec())) : Res.get("shared.na"),
|
||||
model.getPriceFeedService().getProviderNodeAddress());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue