[#10699] Balance of custom tokens is not updated until app restart

This commit is contained in:
Andrey Shovkoplyas 2020-06-16 16:19:04 +02:00
parent 9ce6fea6d5
commit cbf125e4b5
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@
(reduce (fn [acc [address balances]]
(let [pos-balances
(reduce (fn [acc [token-address token-balance]]
(let [token-symbol (get tokens (name token-address))]
(let [token-symbol (or (get tokens (name token-address))
(get tokens (eip55/address->checksum (name token-address))))]
(if (or (and (empty? assets) (pos? token-balance))
(and (seq assets) (assets token-symbol)))
(assoc acc token-symbol token-balance)