Fix token balance updates

This commit is contained in:
Vitaliy Vlasov 2018-05-25 14:10:06 +03:00
parent 8672376a98
commit efd3655cdb
No known key found for this signature in database
GPG Key ID: A7D57C347F2B2964

View File

@ -209,7 +209,6 @@
(neg? n) (- n) (neg? n) (- n)
:else n)) :else n))
(defn update-bounty-token-balances (defn update-bounty-token-balances
"Helper function for updating internal ERC20 token balances to token "Helper function for updating internal ERC20 token balances to token
multisig contract. Will be called periodically for all open bounty multisig contract. Will be called periodically for all open bounty
@ -242,9 +241,9 @@
[] []
(log/info "In update-contract-internal-balances") (log/info "In update-contract-internal-balances")
(p :update-contract-internal-balances (p :update-contract-internal-balances
(doseq [{:keys [issue-id bounty-address watch-hash]} (doseq [{:keys [issue-id contract-address watch-hash]}
(db-bounties/open-bounty-contracts)] (db-bounties/open-bounty-contracts)]
(update-bounty-token-balances issue-id bounty-address watch-hash))) (update-bounty-token-balances issue-id contract-address watch-hash)))
(log/info "Exit update-contract-internal-balances")) (log/info "Exit update-contract-internal-balances"))
@ -259,6 +258,7 @@
(and (= (set (keys m1)) (set (keys m2))) (and (= (set (keys m1)) (set (keys m2)))
(every? #(float= (get m1 %1) (get m2 %1)) (keys m1)))) (every? #(float= (get m1 %1) (get m2 %1)) (keys m1))))
(defn update-balances (defn update-balances
[] []
(log/info "In update-balances") (log/info "In update-balances")