mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-19 05:44:05 +01:00
Add documentation
This commit is contained in:
parent
0b31d13aa1
commit
537f3d4999
@ -28,6 +28,9 @@ import java.time.Duration;
|
||||
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 @@ class CoinMarketCap extends ExchangeRateProvider {
|
||||
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<ExchangeRate> doGet() {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user