steemit / steem-python

The official Python (3) library for the Steem Blockchain.
https://steem.io
MIT License
153 stars 98 forks source link

about HF20 curation reward penalty changed from 30 minutes to 15minutes #270

Open wjashan opened 6 years ago

wjashan commented 6 years ago
    def curation_reward_pct(self):
        """ If post is less than 30 minutes old, it will incur a curation
        reward penalty.  """
        reward = (self.time_elapsed().seconds / 1800) * 100
        if reward > 100:
            reward = 100
        return reward

change to:

    def curation_reward_pct(self):
        """ If post is less than 15 minutes old, it will incur a curation
        reward penalty.  """
        reward = (self.time_elapsed().seconds / 900) * 100
        if reward > 100:
            reward = 100
        return reward