diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-04-15 04:20:19 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-04-15 04:20:19 +0800 |
commit | 8527d051b0a02bbf9d5f26f10299daf10d647019 (patch) | |
tree | fbcd559a90e6e5e1fb580790ecf78d5bdacc98d6 /ui/css.js | |
parent | 5694a116725dad3d3bb9878c9c7059f1870d2e29 (diff) | |
download | tangerine-wallet-browser-8527d051b0a02bbf9d5f26f10299daf10d647019.tar tangerine-wallet-browser-8527d051b0a02bbf9d5f26f10299daf10d647019.tar.gz tangerine-wallet-browser-8527d051b0a02bbf9d5f26f10299daf10d647019.tar.bz2 tangerine-wallet-browser-8527d051b0a02bbf9d5f26f10299daf10d647019.tar.lz tangerine-wallet-browser-8527d051b0a02bbf9d5f26f10299daf10d647019.tar.xz tangerine-wallet-browser-8527d051b0a02bbf9d5f26f10299daf10d647019.tar.zst tangerine-wallet-browser-8527d051b0a02bbf9d5f26f10299daf10d647019.zip |
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.
Diffstat (limited to 'ui/css.js')
0 files changed, 0 insertions, 0 deletions