remove BTC case from CurrencyUtil

This commit is contained in:
woodser 2023-05-16 17:12:16 -04:00
parent 654435d4dd
commit 65dbb9bd30

View File

@ -233,10 +233,6 @@ public class CurrencyUtil {
if (currencyCode == null) { if (currencyCode == null) {
// Some tests call that method with null values. Should be fixed in the tests but to not break them return false. // Some tests call that method with null values. Should be fixed in the tests but to not break them return false.
isCryptoCurrency = false; isCryptoCurrency = false;
} else if (currencyCode.equals("BTC")) {
// BTC is not part of our assetRegistry so treat it extra here. Other old base currencies (LTC, DOGE, DASH)
// are not supported anymore so we can ignore that case.
isCryptoCurrency = true;
} else if (getCryptoCurrency(currencyCode).isPresent()) { } else if (getCryptoCurrency(currencyCode).isPresent()) {
// If we find the code in our assetRegistry we return true. // If we find the code in our assetRegistry we return true.
// It might be that an asset was removed from the assetsRegistry, we deal with such cases below by checking if // It might be that an asset was removed from the assetsRegistry, we deal with such cases below by checking if