dvCurrencyExponent function
The number of decimal places currency's minor unit has.
Two for anything not in the table. That is the right default -- it is what most of the world uses -- but it is a default rather than a lookup, which is why the table is the thing that gets extended when a currency is wrong rather than the rounding being adjusted at a call site.
Implementation
int dvCurrencyExponent(String currency) =>
dvCurrencyExponents[currency.toUpperCase()] ?? 2;