View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0007818||Taler||wallet-core||public||2023-04-24 07:49||2023-04-24 07:49|
|Reporter||MarcS||Assigned To||Florian Dold|
|Summary||0007818: fractionalBaseDigits of currencies|
|Description||Most currencies in the world have two digits after the decimal point/comma - but some have three (most arabian countries: Bahraini Dinar, Iraqi Dinar, Jordanian Dinar, Kuwaiti Dinar, Libyan Dinar, Rial Omani, Tunisian Dinar) and some have none (Indonesian Rupiah, Japanese Yen, South-Korean Won, Vietnamese New Dong, Cape Verdi Escudo, Paraguay Guarani, and a few african and caribbean countries).|
When querying for exchanges, the data returned should not only tell the name of the currency:
var exchangeBaseUrl: String
var currency: String?
but also the fractionalBaseDigits:
var fractionalBaseDigits: UInt?
There are 3 possible wallet-core calls where that information could be returned:
Sebastian wrote about using denominations to find out what amount might be possible to send, but fractionalBaseDigits are needed to display amounts correctly in balances and transaction views, especially whole numbers which might still need to be shown with decimal delimiter and fractional digits (.00, .000, ...).
|Tags||No tags attached.|