mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
8527d051b0
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. |
||
---|---|---|
.. | ||
app | ||
design | ||
test | ||
.gitignore | ||
css.js | ||
example.js | ||
index.html | ||
index.js |