Coerce balance to float to avoid crash
Token balances are expected to have float values in services.clj, but can end up with integer value, so we need to coerce.
This commit is contained in:
parent
6ffdc8f0b1
commit
0d97147c3e
|
@ -141,7 +141,7 @@
|
|||
(Math/pow 10 token-base)
|
||||
token-base)]
|
||||
(assert (> base 0))
|
||||
(/ value base)))
|
||||
(float (/ value base))))
|
||||
|
||||
|
||||
(defn token-balance-in-bounty
|
||||
|
|
Loading…
Reference in New Issue