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

Release 0.20.5

0.20.5
------
* fix get_effective_vesting_shares()
parent 39476777
No related branches found
No related tags found
No related merge requests found
Changelog
=========
0.20.5
------
* fix get_effective_vesting_shares()
0.20.4
------
* get_effective_vesting_shares() added to calculated max_mana correctly
* dict key words adapted to steemd for get_manabar() and get_rc_manabar()
* Voting mana fixed for 0 SP accounts
* comment_benefactor_reward adapted for snapshot
* Custom_json RC costs added to print_info
......
......@@ -448,7 +448,7 @@ class Account(BlockchainObject):
"""Returns the effective vesting shares"""
vesting_shares = int(self["vesting_shares"])
if "delegated_vesting_shares" in self and "received_vesting_shares" in self:
vesting_shares -= int(self["delegated_vesting_shares"]) + int(self["received_vesting_shares"])
vesting_shares = vesting_shares - int(self["delegated_vesting_shares"]) + int(self["received_vesting_shares"])
if self["next_vesting_withdrawal"].timestamp() > 0 and "vesting_withdraw_rate" in self and "to_withdraw" in self and "withdrawn" in self:
vesting_shares -= min(int(self["vesting_withdraw_rate"]), int(self["to_withdraw"]) - int(self["withdrawn"]))
......
"""THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.20.4'
version = '0.20.5'
"""THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.20.4'
version = '0.20.5'
"""THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.20.4'
version = '0.20.5'
"""THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.20.4'
version = '0.20.5'
......@@ -16,7 +16,7 @@ except LookupError:
ascii = codecs.lookup('ascii')
codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs'))
VERSION = '0.20.4'
VERSION = '0.20.5'
tests_require = ['mock >= 2.0.0', 'pytest', 'pytest-mock', 'parameterized']
......
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