KomodoPlatform / komodo-wallet-desktop

Komodo Wallet Desktop GUI
https://atomicdex.io
GNU General Public License v2.0
236 stars 206 forks source link

[FEATURE REQUEST]: Prices < 0.00000001 handling #955

Open tonymorony opened 3 years ago

tonymorony commented 3 years ago

I do propose to have fixed field size and display an amount such edge cases in scientific form (e.g. 2.2E-10 ETH) with full number displaying on mouseover (that's optional) - that's looks like the most straightforward solution

Other possible options coming to mind: a) Teletext e.g. https://github.com/KomodoPlatform/AtomicDEX-mobile/issues/1123 b) Printing prices in most little fractions of asset e.g. weis ( looks complicated since different assets got different fractions + what about prices less than satoshi for UTXO coins)

cf: https://github.com/KomodoPlatform/atomicDEX-API/issues/922

Milerius commented 3 years ago

I do propose to have fixed field size and display an amount such edge cases in scientific form (e.g. 2.2E-10 ETH) with full number displaying on mouseover (that's optional) - that's looks like the most straightforward solution

Other possible options coming to mind: a) Teletext e.g. KomodoPlatform/AtomicDEX-mobile#1123 b) Printing prices in most little fractions of asset e.g. weis ( looks complicated since different assets got different fractions + what about prices less than satoshi for UTXO coins)

cf: KomodoPlatform/atomicDEX-API#922

This is an important, one, the good things is that it's only concern the price field, we can also maybe do something with font size and the number of digits, however i think every coins need a settings decimals for his orderbook, and that depends with which coin you trade usually.

damascene commented 2 years ago

How would someone write the scientific format in the price filed, to setup a trade like in this case: https://github.com/KomodoPlatform/atomicDEX-API/issues/922#issuecomment-922184125

samurai321 commented 2 years ago

I think another solution to this problem could be to only allow the trade of coins with low value in groups of 1000.

smk762 commented 1 year ago

When the lightning hits, we'll need a solution for this.