1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app
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
..
components Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
css Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
first-time Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
img Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
reducers Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
account-detail.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
accounts.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
actions.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
app.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
conf-tx.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
config.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
info.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
loading.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
reducers.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
root.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
send.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
settings.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
store.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
template.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
unlock.js Moved UI into repo with its own dependency stack 2016-04-13 15:28:44 -07:00
util.js Fix eth resolution 2016-04-14 13:20:19 -07:00