isFiatCurrency function

bool isFiatCurrency(
  1. String currencyId
)

Checks if currency is fiat

Implementation

bool isFiatCurrency(String currencyId) {
  if (currencyId.length != 3) {
    return false;
  }
  return allFiatCurrencies.contains(
    currencyId.toUpperCase(),
  );
}