Use 6 decimals for ETH balance everywhere on UI

This commit is contained in:
Teemu Patja 2017-11-08 11:42:54 +02:00
parent c111350396
commit 76c91d7342
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
2 changed files with 2 additions and 2 deletions

View File

@ -213,7 +213,7 @@
+ key total-usd -> current total USD value for all funds" + key total-usd -> current total USD value for all funds"
[bounty-addr] [bounty-addr]
(let [token-balances (multisig/token-balances bounty-addr) (let [token-balances (multisig/token-balances bounty-addr)
eth-balance (read-string (eth/get-balance-eth bounty-addr 4)) eth-balance (read-string (eth/get-balance-eth bounty-addr 6))
all-funds all-funds
(merge token-balances (merge token-balances
{:ETH eth-balance})] {:ETH eth-balance})]

View File

@ -2,7 +2,7 @@
(defn eth-decimal->str [n] (defn eth-decimal->str [n]
(format "%.4f" n)) (format "%.6f" n))
(defn usd-decimal->str [n] (defn usd-decimal->str [n]
(format "%.2f" n)) (format "%.2f" n))