origin-dollar icon indicating copy to clipboard operation
origin-dollar copied to clipboard

Show 5 decimals for ETH/LSDs/OETH amounts

Open matt-bullock opened this issue 1 year ago • 2 comments

It looks like we're showing 18 in some places and this is causing the layout to break. Can we use 5 in all cases other than when the user is entering an amount into the input field - these don't need to be capped

matt-bullock avatar May 16 '23 15:05 matt-bullock

In this case, a real user is experiencing a little overflow due to six decimal places on the main balance. I still think it would be cool to have dynamic precision where the number of digits depends on the space available and larger balances have fewer decimal places. In this case of the main balance, it would be cool for this user to see 1,702.3144 while another user might see 0.0001234.

Screenshot 2023-06-02 at 2 32 56 PM

micahalcorn avatar Jun 02 '23 21:06 micahalcorn

Dynamic could also work well for the change column in the history where very small amounts need more 6 decimals. Although being an edge case this may be unnecessary

image

matt-bullock avatar Jun 02 '23 22:06 matt-bullock