The FjordPoints.setPointsPerEpoch(uint256) function in the FjordPoints contract lacks an event emission for changes to the pointsPerEpoch parameter. This omission makes it difficult to audit and track changes to this critical arithmetic parameter off-chain.
Detecting changes to critical arithmetic parameters like pointsPerEpoch
is essential for off-chain monitoring and auditing. Without emitting an event when pointsPerEpoch
is updated, external systems cannot easily track these changes, potentially leading to discrepancies and a lack of transparency.
FjordPoints.setPointsPerEpoch(uint256)
(src/FjordPoints.sol#191-197)
Severity: Low
Confidence: Medium
Limited Transparency: Off-chain systems may fail to detect updates to the pointsPerEpoch
parameter.
Auditing Challenges: Difficulty in auditing changes to arithmetic parameters which might impact point distribution calculations.
Operational Risk: Increased risk that stakeholders are unaware of changes to important contract parameters, potentially causing discrepancies in expectations and actual point distribution.
Manual code review
Update the setPointsPerEpoch
function to emit an event whenever pointsPerEpoch
is modified. Example:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.