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

Add admin functions to fine tune the protocol values #32

Closed
Tracked by #35
turinglabsorg opened this issue May 31, 2022 · 2 comments
Closed
Tracked by #35

Add admin functions to fine tune the protocol values #32

turinglabsorg opened this issue May 31, 2022 · 2 comments
Assignees

Comments

@turinglabsorg
Copy link
Collaborator

No description provided.

@turinglabsorg
Copy link
Collaborator Author

turinglabsorg commented Sep 19, 2022

Reopening because we're discussing again the process, at the moment we have these parameters:

// Protocol
address protocol_address;
bool public contract_protected = false;
bool public permissioned_providers = false;

// Providers
uint32 public proposal_timeout = 86_400;
uint256 public min_deal_value = 0;
uint256 public slashing_multiplier = 1000;
uint32 public min_duration = 86_400;
uint32 public max_duration = 31_536_000;

// Referees
uint8 public committee_divider = 4;
uint8 public max_appeals = 5;
uint32 public round_duration = 300;
uint8 public slashes_threshold = 12;
uint8 public rounds_limit = 12;

Two other admin functions are:

  • setRefereeStatus: which is the referees management
  • setProviderStatus: which can be used as permissioned (needs role) and permissionless

--

Trying to put all the variables under some "logic" umbrella we have:

  • Protocol tuning: can be given to a PROTOCOL_ROLE
  • Referees management: can be given to a REFEREES_ROLE
  • Providers management: can be given to a PROVIDERS_ROLE

@nicola please give feedback!

@turinglabsorg
Copy link
Collaborator Author

Closing because it's implemented.

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

No branches or pull requests

2 participants