View Issue Details

IDProjectCategoryView StatusLast Update
0007484Talerwallet (WebExtension)public2025-04-17 21:34
ReporterEmmanuel Assigned ToResolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritylowSeveritytweakReproducibilityN/A
Status implementingResolutionopen 
Product Version0.10 
Target Versionpost-1.0 
Summary0007484: Usability problem with Bitcoin amounts
DescriptionBitcoin amounts are normally in mBTC (milliBTC) to be of normal length. (100$ = 7mBTC).
It would be convenient to have the prices having a lot of zeros in mBTC.
BITCOINBTC 0.00001
could be displayed mBTC 0.01
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2022-11-18 14:28

manager   ~0019441

Last edited: 2022-12-06 11:50

IMO we can do the "m" prefix by detecting a 0.00-prefix in the amount automatically, possibly for *all* currencies, not just BTC.

Similarly, *IF* we detect that the exchange offers 'tiny' amounts, we could allow the user to change the currency from BTC to mBTC in a drop-down when entering amounts.

sebasjm

2022-12-20 13:46

developer   ~0019524

The currency dropdown is implemented ,
I'm not sure if we want this to be always possible or just based on some conditions.

My proposal:

1.- Build a currency-decimal map from the denominations configuration
interface CurrencyDecimalMap {
 [currency: string]: {
    maxFracDigit: number;
    maxIntDigit: number;
    current: number;
  }
}

2.- If maxFracDigit - maxIntDigit > 3 show the currency dropdown to allow the selection of different unit with a prefix in the currency

prefix:

k = kilo
M = mega
G = Giga
T = Tera
P = Peta

m = millis
μ = micro
n = nano
p = pico
f = femto

Christian Grothoff

2022-12-20 23:09

manager   ~0019531

That sounds reasonable to me. But we won't need nano/pico/femto: we only allow up to 10^-8.

Issue History

Date ModifiedUsernameFieldChange
2022-11-18 14:26EmmanuelNew Issue
2022-11-18 14:26EmmanuelStatusnew => assigned
2022-11-18 14:26EmmanuelAssigned To => Florian Dold
2022-11-18 14:27Christian GrothoffAssigned ToFlorian Dold => sebasjm
2022-11-18 14:28Christian GrothoffNote Added: 0019441
2022-12-06 11:50Christian GrothoffNote Edited: 0019441
2022-12-20 13:46sebasjmNote Added: 0019524
2022-12-20 23:09Christian GrothoffNote Added: 0019531
2023-04-04 15:47Florian DoldProduct Version0.9 => 0.10
2023-04-04 15:59Florian DoldTarget Version => post-1.0
2023-04-13 18:37Florian DoldCategorywallet (WebExtensions) => wallet (WebExtension)
2023-08-30 11:55sebasjmAssigned Tosebasjm => MarcS
2025-04-17 21:34Christian GrothoffAssigned ToMarcS =>
2025-04-17 21:34Christian GrothoffStatusassigned => implementing