diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 207cc5b666ef67a5754503021bf027fcd1a471b1..f4a51fc3117f68eb2088f332b4f45be9a3e6ba73 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,9 +1,14 @@ 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 diff --git a/beem/account.py b/beem/account.py index 20b815ed726ddc0b1836e6c22d79c0d362327d7a..49864b974d9236f3cfe5debbe9588736527639a0 100644 --- a/beem/account.py +++ b/beem/account.py @@ -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"])) diff --git a/beem/version.py b/beem/version.py index f4882875af0144893b8360040a53ac230ce17df8..60b46443f8d33cf3969cd32ff39d24940dad26af 100644 --- a/beem/version.py +++ b/beem/version.py @@ -1,2 +1,2 @@ """THIS FILE IS GENERATED FROM beem SETUP.PY.""" -version = '0.20.4' +version = '0.20.5' diff --git a/beemapi/version.py b/beemapi/version.py index f4882875af0144893b8360040a53ac230ce17df8..60b46443f8d33cf3969cd32ff39d24940dad26af 100644 --- a/beemapi/version.py +++ b/beemapi/version.py @@ -1,2 +1,2 @@ """THIS FILE IS GENERATED FROM beem SETUP.PY.""" -version = '0.20.4' +version = '0.20.5' diff --git a/beembase/version.py b/beembase/version.py index f4882875af0144893b8360040a53ac230ce17df8..60b46443f8d33cf3969cd32ff39d24940dad26af 100644 --- a/beembase/version.py +++ b/beembase/version.py @@ -1,2 +1,2 @@ """THIS FILE IS GENERATED FROM beem SETUP.PY.""" -version = '0.20.4' +version = '0.20.5' diff --git a/beemgraphenebase/version.py b/beemgraphenebase/version.py index f4882875af0144893b8360040a53ac230ce17df8..60b46443f8d33cf3969cd32ff39d24940dad26af 100644 --- a/beemgraphenebase/version.py +++ b/beemgraphenebase/version.py @@ -1,2 +1,2 @@ """THIS FILE IS GENERATED FROM beem SETUP.PY.""" -version = '0.20.4' +version = '0.20.5' diff --git a/setup.py b/setup.py index b5668ed5e1d7b051fb86e379f8b0b702006be967..a0cbb357a248da4eb33ac542769998b2cc8c15ed 100755 --- a/setup.py +++ b/setup.py @@ -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']