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 6ffdc8f0b1
commit 0d97147c3e
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) (Math/pow 10 token-base)
token-base)] token-base)]
(assert (> base 0)) (assert (> base 0))
(/ value base))) (float (/ value base))))
(defn token-balance-in-bounty (defn token-balance-in-bounty