Skip to content
Snippets Groups Projects
Commit ae53db52 authored by Holger's avatar Holger
Browse files

Fix issue #171 - Account.get_balance function shows summed value of liquid...

Fix issue #171 - Account.get_balance function shows summed value of liquid balance and unclaimed reward
parent 15aff5f0
No related branches found
No related tags found
No related merge requests found
...@@ -917,8 +917,8 @@ class Account(BlockchainObject): ...@@ -917,8 +917,8 @@ class Account(BlockchainObject):
ret = [] ret = []
for i in range(len(symbols)): for i in range(len(symbols)):
balance_sum = self.get_balance(self.available_balances, symbols[i]) balance_sum = self.get_balance(self.available_balances, symbols[i])
balance_sum += self.get_balance(self.saving_balances, symbols[i]) balance_sum = balance_sum + self.get_balance(self.saving_balances, symbols[i])
balance_sum += self.get_balance(self.reward_balances, symbols[i]) balance_sum = balance_sum + self.get_balance(self.reward_balances, symbols[i])
ret.append(balance_sum) ret.append(balance_sum)
return ret return ret
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment