diff --git a/pricenode/src/main/java/bisq/price/spot/ExchangeRateProvider.java b/pricenode/src/main/java/bisq/price/spot/ExchangeRateProvider.java index 8e96a3bccbc..444a6f80bc9 100644 --- a/pricenode/src/main/java/bisq/price/spot/ExchangeRateProvider.java +++ b/pricenode/src/main/java/bisq/price/spot/ExchangeRateProvider.java @@ -211,13 +211,15 @@ public Collection getCurrencyPairs() { log.error("Could not query tickers for " + getName(), e); } }); - } catch (ExchangeException | // Errors reported by the exchange (rate limit, etc) - IOException | // Errors while trying to connect to the API (timeouts, etc) - IllegalArgumentException // Potential error when integrating new exchange - // (hints that exchange impl. needs to overwrite - // requiresFilterDuringBulkTickerRetrieval() - // and have it return true ) - e) { + } catch ( + // Errors reported by the exchange (rate limit, etc) + ExchangeException | + // Errors while trying to connect to the API (timeouts, etc) + IOException | + // Potential error when integrating new exchange (hints that exchange + // provider implementation needs to overwrite + // requiresFilterDuringBulkTickerRetrieval() and have it return true ) + IllegalArgumentException e) { // Catch and handle all other possible exceptions // If there was a problem with polling this exchange, return right away, // since there are no results to parse and process @@ -243,8 +245,7 @@ public Collection getCurrencyPairs() { String otherExchangeRateCurrency; if (t.getCurrencyPair().base.equals(Currency.BTC)) { otherExchangeRateCurrency = t.getCurrencyPair().counter.getCurrencyCode(); - } - else { + } else { otherExchangeRateCurrency = t.getCurrencyPair().base.getCurrencyCode(); }