President Elector

First Flight #24
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

No Time Lock for Voting

Summary

The voting period is not enforced.

Impact

Potential manipulation of voting times.

Tools Used

Manual Review

Recommendations

Implement a mechanism to enforce voting periods strictly.

uint256 private s_voteStartTime;
uint256 private s_voteEndTime;
function startVoting(){
s_voteStartTime = block.timestamp;
s_voteEndTime = block.timestamp + i_presidentalDuration;
}
function selectPresident() external {
require(block.timestamp >= s_voteEndTime, "Voting period not ended");
// Logic to select president...
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Appeal created

0xethsol Submitter
11 months ago
inallhonesty Lead Judge
11 months ago
inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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