-
Notifications
You must be signed in to change notification settings - Fork 0
Description
We need to format all numbers in DEX, so it is more easy to read long numbers. For example: 1,000,000.00 (with 2 decimals precision by default)
We need to implement an ability to use custom decimal precision. In the simplest way it can be just a harcoded map: token: price precision, amount precision. In that way we can correctly display tokens that have typically low price or quantities.
Examples
0.0000012 BTC
30000.56 some token
150.50 USDT
While amounts can be like 1100.00 Usdt when displayed in the interface, the actual values can be like 1100.000091. we have to display the full exact amount on mouse hover (simple html tooltip is enough for now) and in any input fields of the forms. Also in the sections where we make transactions.
Let's discuss the parts of the UI where full or alternative formats can be needed, unless it is obvious.
DOD:
All numbers, prices and amounts should be rounded and formatted correctly.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status