The stake
function in BaseGauge
does not enforce a pause check, allowing users to continue staking even when the contract is paused. This contradicts the expected behavior of a paused contract, where staking operations should be temporarily halted.
The function currently lacks a whenNotPaused
modifier or a manual check for the paused state:
Users can unknowingly stake in a paused contract, leading to unexpected behavior.
Potential security risks if pausing was meant to prevent further interactions due to an emergency situation.
Violation of expected contract behavior, reducing trust and reliability.
Manual code review.
Enforce a pause check using either:
Adding the whenNotPaused
modifier:
Explicitly reverting if paused:
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.