View Issue Details

IDProjectCategoryView StatusLast Update
0007818Talerwallet-corepublic2023-04-24 07:49
ReporterMarcS Assigned ToFlorian Dold  
PrioritylowSeverityfeatureReproducibilityalways
Status assignedResolutionopen 
Product Versionpost-1.0 
Target Versionpost-1.0 
Summary0007818: fractionalBaseDigits of currencies
DescriptionMost 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:
1) ListExchangesOp
2) GetExchangeDetailedInfoOp
3) ListCurrenciesOp

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, ...).
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-04-24 07:49 MarcS New Issue
2023-04-24 07:49 MarcS Status new => assigned
2023-04-24 07:49 MarcS Assigned To => Florian Dold