The code comment to BOOSTRAP_PHASE_DURATION is incorrect
The code comment for the BOOSTRAP_PHASE_DURATION variable incorrectly describes it as 'The time between rounds' when it actually represents the duration of the bootstrap phase. This is a documentation error with no direct security impact.
- Disclosed after under an hour
#41758 [SC-Insight] The code comment to `BOOSTRAP_PHASE_DURATION` is incorrect
Submitted on Mar 18th 2025 at 06:20:12 UTC by @h2134 for Audit Comp | Yeet
- Report ID: #41758
- Report Type: Smart Contract
- Report severity: Insight
- Target: https://github.com/immunefi-team/audit-comp-yeet/blob/main/src/Yeet.sol
- Impacts:
Description
Brief/Intro
The code comment to BOOSTRAP_PHASE_DURATION is incorrect.
Vulnerability Details
The code comment to BOOSTRAP_PHASE_DURATION is as below:
uint256 public BOOSTRAP_PHASE_DURATION; // The time between rounds
This comment is incorrect as BOOSTRAP_PHASE_DURATION is the duration of bootstrap phrase, not the time between rounds.
We believe the code comment is wrongly copied from COOLDOWN_TIME.
uint256 public COOLDOWN_TIME; // The time between rounds
Impact Details
Incorrect documentation.
References
Proof of Concept
Proof of Concept
This comment is incorrect as BOOSTRAP_PHASE_DURATION is the duration of bootstrap phrase, not the time between rounds.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a copy-paste error from the comment for COOLDOWN_TIME.
Impact
Incorrect documentation only; no security impact is claimed.
What the attacker needed
None
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report points out that a comment in the code is wrong. The comment says a variable is 'the time between rounds', but the variable actually controls how long the bootstrap phase lasts. It's like a label on a switch being incorrect, which could confuse someone reading the code.