mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-13 02:55:18 +00:00
Use 6 decimals for ETH balance everywhere on UI
This commit is contained in:
parent
c111350396
commit
76c91d7342
@ -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})]
|
||||||
|
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user