Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store more constants in RlayToken #13

Open
hobofan opened this issue Jul 5, 2018 · 1 comment
Open

Store more constants in RlayToken #13

hobofan opened this issue Jul 5, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@hobofan
Copy link
Member

hobofan commented Jul 5, 2018

Some constants that are used in rlay-client for the payout calculation are currently inferred there. They should instead be stored inside the RlayToken contract and retrieved by rlay-client from there. This should make it easier to build alternative clients and also possibly impose smart-contract side checks that ensure that they are being used correctly.

Constants:

  • EPOCH_LENGTH
  • EPOCH_START_BLOCK (should be the block the smart contract was deployed in)
@hobofan
Copy link
Member Author

hobofan commented Jul 26, 2018

EPOCH_START_BLOCK is saved since 79da17a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant