Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: medium
Invalid

The setEggFindThreshold function does not determine whether the game is currently in progress

Summary

The setEggFindThreshold function does not determine whether the game is currently in progress

Vulnerability Details

The setEggFindThreshold function does not determine whether the game is currently in progress

Impact

Changing nThreshold arbitrarily will affect fairness

Tools Used

Recommendations

function setEggFindThreshold(uint256 newThreshold) external onlyOwner {
++ require(!gameActive, "game is active");
require(newThreshold <= 100, "Threshold must be <= 100");
eggFindThreshold = newThreshold;
}
Updates

Lead Judging Commences

m3dython Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.