1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00
metamask-extension/ui
Dan Finlay 8527d051b0 Fix eth resolution
utils.formatBalance was returning rounded ether, was not useful for displaying account balances.

Now returns four decimal points, and is easily configurable for more, with passing tests.

Spoiler alert:  Don't you dare divide bignumber wei. Bignumber does not have decimals. Keep it as wei, format it as ether.
2016-04-14 13:20:19 -07:00
..
app Fix eth resolution 2016-04-14 13:20:19 -07:00
design Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
test Fix eth resolution 2016-04-14 13:20:19 -07:00
.gitignore Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
css.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
example.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
index.html Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
index.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00