cryptonetlab / retriev

Home of Retriev protocol (by CryptoNet + YOMI)
https://retriev.org
18 stars 6 forks source link

Add admin functions to fine tune the protocol values #32

Closed turinglabsorg closed 1 year ago

turinglabsorg commented 1 year ago

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:

--

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

@nicola please give feedback!

turinglabsorg commented 1 year ago

Closing because it's implemented.