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:
Teemu Patja 2017-10-31 19:49:56 +02:00
parent e80592c769
commit 74fe3982cc
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@
(Math/pow 10 token-base)
token-base)]
(assert (> base 0))
(/ value base)))
(float (/ value base))))
(defn token-balance-in-bounty