Skip to main content

Variable.PreferredCurrency

const PreferredCurrency: {
EUR: "EUR";
JPY: "JPY";
USD: "USD";
};

Fiat currency an application displays monetary values in (ISO 4217). It is the unit balances are converted to for display and the currency new spending policies are authored in. Deliberately a small curated set (not "any ISO code") because it drives a user-facing picker; the rate oracle can quote any of these against the on-chain assets.

  • EUR: Euro. Default for applications created before this setting existed.
  • USD: United States Dollar.
  • JPY: Japanese Yen. Has no minor unit; amounts are still stored in the uniform centi-unit scale (×100) used across the policy engine and shown with no decimals by Intl.NumberFormat.

Type Declaration

NameTypeDefault value
EUR"EUR"'EUR'
JPY"JPY"'JPY'
USD"USD"'USD'