Omniscia Evergon Labs Audit
OnlyStartingTimestampCampaign Code Style Findings
OnlyStartingTimestampCampaign Code Style Findings
OST-01C: Repetitive Value Literal
| Type | Severity | Location |
|---|---|---|
| Code Style | ![]() | OnlyStartingTimestampCampaign.sol:L62 |
Description:
The linked value literal is repeated across the codebase multiple times.
Example:
packages/contracts/contracts/campaignTimes/onlyStartingTimestampCampaign/OnlyStartingTimestampCampaign.sol
62if (campaignsInfo.state != 1) {Recommendation:
We advise it to be set to a constant variable instead, optimizing the legibility of the codebase.
In case the constant has already been declared, we advise it to be properly re-used across the code.
Alleviation (b64b659786cf3c84bea52feb3a69f546ba3601f0):
The referenced literal has been properly introduced as part of the GeneralStakingStorage declarations and specifically as an ON_CREATION state, addressing this exhibit.
