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

Update score manager behaviour #11224

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

pahor167
Copy link
Contributor

Description

Since we want anyone to be able to participate as validator we should consider ScoreManager rather as blacklist than whitelist.

Tested

Unit tests added

@pahor167 pahor167 requested a review from a team as a code owner September 24, 2024 11:56
@pahor167 pahor167 changed the title Update score manager behavior Update score manager behaviour Sep 24, 2024
@@ -22,19 +31,41 @@ contract ScoreManager is Initializable, Ownable {
}

function setGroupScore(address group, uint256 score) external onlyOwner {
scores[group] = score;
require(score <= 1e24, "Score must be less than or equal to 1e24.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would use FIXED1 from fixidity

Copy link
Contributor

@soloseng soloseng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@pahor167 pahor167 merged commit 74ca26b into feat/l2-epoch-system Sep 25, 2024
21 checks passed
@pahor167 pahor167 deleted the pahor/updateScoreManagerBehaviour branch September 25, 2024 06:19
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