This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Calculates expected number of rewards by operating a BOScoin node. | |
| Note that this is speculation, since we don't know how many frozen units/nodes | |
| will be until genesis. Also note that this script is not applying increasing | |
| number of total supply. However, roughly saying, rewards will not be changed | |
| while every node operators, frozen coin holders try to reinvest all their rewards. | |
| Becasue rewards are distributed by shares. | |
| """ | |
| class RewardCalculator: | |
| def __init__(self, initial_rewards, decrease_rate, decrease_cycle, end): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import signal | |
| from operator import itemgetter | |
| from decimal import Decimal | |
| from boscoin_base.address import Address | |
| def handle_timeout(signum, frame): | |
| raise | |
| if __name__ == "__main__": |
OlderNewer