diff --git a/pricenode/src/main/java/bisq/price/spot/providers/CoinMarketCap.java b/pricenode/src/main/java/bisq/price/spot/providers/CoinMarketCap.java index 0a7ce5d4c48..0dc66873a6f 100644 --- a/pricenode/src/main/java/bisq/price/spot/providers/CoinMarketCap.java +++ b/pricenode/src/main/java/bisq/price/spot/providers/CoinMarketCap.java @@ -28,6 +28,9 @@ import java.util.Collections; import java.util.Set; +/** + * Stub implementation of CoinMarketCap price provider to prevent NullPointerExceptions within legacy clients + */ @Component @Order(3) class CoinMarketCap extends ExchangeRateProvider { @@ -36,6 +39,12 @@ public CoinMarketCap() { super("CMC", "coinmarketcap", Duration.ofMinutes(5)); // large data structure, so don't request it too often } + /** + * Returns an empty Set for the CoinMarketCap price provider. + * Price data of CMC provider is not used in the client anymore, except for the last update timestamp. + * + * @return Empty Set + */ @Override public Set doGet() {