Skip to content

Commit

Permalink
Merge pull request #67 from Flugschwein/patch-1
Browse files Browse the repository at this point in the history
Fix vests_to_rshares (issue #66)
  • Loading branch information
holgern committed Aug 10, 2018
2 parents 76df1cb + a5d4832 commit 0e23e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beem/steem.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def vests_to_rshares(self, vests, voting_power=STEEM_100_PERCENT, vote_pct=STEEM
"""
used_power = self._calc_resulting_vote(voting_power=voting_power, vote_pct=vote_pct, use_stored_data=use_stored_data)
# calculate vote rshares
rshares = int(math.copysign(vests * used_power / STEEM_100_PERCENT, vote_pct))
rshares = int(math.copysign(vests * 1e6 * used_power / STEEM_100_PERCENT, vote_pct))
return rshares

def rshares_to_vote_pct(self, rshares, steem_power=None, vests=None, voting_power=STEEM_100_PERCENT, use_stored_data=True):
Expand Down

0 comments on commit 0e23e1a

Please sign in to comment.