View Issue Details

IDProjectCategoryView StatusLast Update
0007484Talerwallet (WebExtension)public2023-08-30 13:55
ReporterEmmanuel Assigned ToMarcS  
PrioritylowSeveritytweakReproducibilityN/A
Status assignedResolutionopen 
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.

Activities

Christian Grothoff

2022-11-18 15:28

manager   ~0019441

Last edited: 2022-12-06 12: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 14: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-21 00: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 Modified Username Field Change
2022-11-18 15:26 Emmanuel New Issue
2022-11-18 15:26 Emmanuel Status new => assigned
2022-11-18 15:26 Emmanuel Assigned To => Florian Dold
2022-11-18 15:27 Christian Grothoff Assigned To Florian Dold => sebasjm
2022-11-18 15:28 Christian Grothoff Note Added: 0019441
2022-12-06 12:50 Christian Grothoff Note Edited: 0019441
2022-12-20 14:46 sebasjm Note Added: 0019524
2022-12-21 00:09 Christian Grothoff Note Added: 0019531
2023-04-04 17:47 Florian Dold Product Version 0.9 => 0.10
2023-04-04 17:59 Florian Dold Target Version => post-1.0
2023-04-13 20:37 Florian Dold Category wallet (WebExtensions) => wallet (WebExtension)
2023-08-30 13:55 sebasjm Assigned To sebasjm => MarcS