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
e80592c769
commit
74fe3982cc
|
@ -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