From 8068ce784f8e8409998aed3459eb148c856017d7 Mon Sep 17 00:00:00 2001 From: Alva Swanson Date: Sun, 17 Sep 2023 15:52:18 +0200 Subject: [PATCH] ExchangeRateService: Filter by provider names with startsWith --- src/main/java/bisq/price/spot/ExchangeRateService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/bisq/price/spot/ExchangeRateService.java b/src/main/java/bisq/price/spot/ExchangeRateService.java index a7c0c93..ca9b2b8 100644 --- a/src/main/java/bisq/price/spot/ExchangeRateService.java +++ b/src/main/java/bisq/price/spot/ExchangeRateService.java @@ -237,7 +237,7 @@ private Map getMetadata(ExchangeRateProvider provider) { private long getTimestamp(ExchangeRateProvider provider, Set exchangeRates) { return exchangeRates.stream() - .filter(e -> provider.getName().equals(e.getProvider())) + .filter(e -> e.getProvider().startsWith(provider.getName())) .findFirst() .orElseThrow(() -> new IllegalStateException("No exchange rate data found for " + provider.getName())) .getTimestamp();