def getrsharesvalue(rshares): conv = Converter() rew_bal = float( Amount(steem.steemd.get_reward_fund()['reward_balance']).amount) rec_claim = float(steem.steemd.get_reward_fund()['recent_claims']) steemvalue = rshares * rew_bal / rec_claim return conv.steem_to_sbd(steemvalue)
def getrsharesvalue(rshares): """Converts a vote's rshares value to current SBD value. Args: rshares: the rshares value of an upvote. Returns: the current SBD upvote value. """ conv = Converter() rew_bal = float(Amount(steem.steemd.get_reward_fund()['reward_balance']).amount) rec_claim = float(steem.steemd.get_reward_fund()['recent_claims']) steemvalue = rshares * rew_bal / rec_claim return conv.steem_to_sbd(steemvalue)