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

Dev #5

Merged
merged 24 commits into from
Sep 12, 2024
Merged

Dev #5

merged 24 commits into from
Sep 12, 2024

Conversation

SurfingNerd
Copy link
Owner

updrate of the registry branch to latest version

axel-muller and others added 24 commits July 30, 2024 12:59
function totalStakeAmount() external view returns (uint256);
fix total stake Amount interface compatibility
…eports-system

Remove malice reports system
Added method for getting allowed range with selector for dao value guards
merged, but we need to work on coverage for value guards at some point.
added changeable parameter range for governancePotShareNominatorParam…
Staking: added method to check if pool is valid (is active or inactive)
@SurfingNerd SurfingNerd merged commit 9ba1d34 into SurfingNerd:i214-registry Sep 12, 2024
3 checks passed
Comment on lines +252 to +270
function _decideEarlyEpochEndNeeded(uint256 epoch) private {
// skip checks since notification has already been sent
if (isEarlyEpochEnd[epoch]) {
return;
}

uint256 threshold = earlyEpochEndThreshold();
uint256 faultyValidatorsCount = _countFaultyValidators(epoch);

// threshold has not been passed
if (faultyValidatorsCount < threshold) {
return;
}

uint256 unflaggedValidatorsCount = validatorSetContract.getCurrentValidatorsCount() - flaggedValidators.length; // 16 - 4 = 12
isEarlyEpochEnd[epoch] = true;
blockRewardContract.notifyEarlyEpochEnd();

emit NotifyEarlyEpochEnd(epoch, block.number);
}

Check notice

Code scanning / Slither

Reentrancy vulnerabilities Low

/// @dev duration of ban in epochs
uint256 public banDuration;
/// @custom:oz-renamed-from banDuration
uint256 public _unused8;

Check warning

Code scanning / Slither

State variables that could be declared constant Warning

ValidatorSetHbbft._unused8 should be constant
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

Successfully merging this pull request may close these issues.

3 participants