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 slashing multiplier to Validators contract, read when distributing rewards #2085

Closed
asaj opened this issue Dec 5, 2019 · 0 comments · Fixed by #2239
Closed

Add slashing multiplier to Validators contract, read when distributing rewards #2085

asaj opened this issue Dec 5, 2019 · 0 comments · Fixed by #2239
Assignees
Labels
audit betanet-phase-3 protocol All issues relating to protocol packages

Comments

@asaj
Copy link
Contributor

asaj commented Dec 5, 2019

Expected Behavior

Rewards are multiplied by slashing multiplier.

More specifically, the reward to the validator is multiplied by M for the corresponding account, the group share is multiplied by M for the group account, and rewards to voters are multiplied by M for the group account.

Contract Validators {
  uint256 public slashingMultiplierResetPeriod;
  function setSlashingMultiplierResetPeriod(uint256 value) external onlyOwner;

  // Resets a group’s slashing multiplier if it has been >=
  // slashingPenaltyResetPeriod since the last time the account was slashed.
  function resetSlashingMultiplier() external;

  // Only callable by the registered DoubleSigningSlasher and DowntimeSlasher
  // contracts.
  function halveSlashingMultiplier(address group) external;
}

Current Behavior

No M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audit betanet-phase-3 protocol All issues relating to protocol packages
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants