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

fix typo

parent c1f529fa
No related branches found
No related tags found
2 merge requests!5Taken current version of master branch in the https://github.com/holgern/beem,!4Original changes pushed to master at https://github.com/holgern/beem
......@@ -216,7 +216,7 @@ class Blurt(BlockChainInstance):
"""
# calculate our account voting shares (from vests)
vesting_shares = int(self.sp_to_vests(blurt_power, use_stored_data=use_stored_data))
vesting_shares = int(self.bp_to_vests(blurt_power, use_stored_data=use_stored_data))
return self.vests_to_rshares(vesting_shares, post_rshares=post_rshares, voting_power=voting_power, vote_pct=vote_pct, use_stored_data=use_stored_data)
def vests_to_rshares(self, vests, post_rshares=0, voting_power=STEEM_100_PERCENT, vote_pct=STEEM_100_PERCENT, subtract_dust_threshold=True, use_stored_data=True):
......@@ -258,7 +258,7 @@ class Blurt(BlockChainInstance):
if blurt_power is not None and vests is not None:
raise ValueError("Either blurt_power or vests has to be set. Not both!")
if blurt_power is not None:
vests = int(self.sp_to_vests(blurt_power, use_stored_data=use_stored_data) * 1e6)
vests = int(self.bp_to_vests(blurt_power, use_stored_data=use_stored_data) * 1e6)
if self.hardfork >= 20:
rshares += math.copysign(self.get_dust_threshold(use_stored_data=use_stored_data), rshares)
......
......@@ -187,11 +187,11 @@ class Hive(BlockChainInstance):
global_properties = self.get_dynamic_global_properties(use_stored_data=use_stored_data)
if self.get_replace_hive_by_steem():
return (
float(Amount(global_properties['total_vesting_fund_hive'], blockchain_instance=self)) /
float(Amount(global_properties['total_vesting_fund_steem'], blockchain_instance=self)) /
(float(Amount(global_properties['total_vesting_shares'], blockchain_instance=self)) / 1e6)
)
return (
float(Amount(global_properties['total_vesting_fund_steem'], blockchain_instance=self)) /
float(Amount(global_properties['total_vesting_fund_hive'], blockchain_instance=self)) /
(float(Amount(global_properties['total_vesting_shares'], blockchain_instance=self)) / 1e6)
)
......
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