Skip to content
Snippets Groups Projects
Commit 66597c80 authored by Flug Schwein's avatar Flug Schwein
Browse files

Additional perks to vests_to_rshares in preparation for HF20

parent f5238d2c
No related branches found
No related tags found
No related merge requests found
......@@ -580,6 +580,8 @@ class Steem(object):
# calculate vote rshares
rshares = int(math.copysign(vests * 1e6 * used_power / STEEM_100_PERCENT, vote_pct))
if self.hardfork == 20:
if abs(rshares) <= self.get_dust_threshold(use_stored_data=use_stored_data):
return 0
rshares -= math.copysign(self.get_dust_threshold(use_stored_data=use_stored_data), vote_pct)
return rshares
......
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