The contract includes a pause function without a check to verify if the contract is already in a paused state. Multiple invocations of the pause function can occur without altering the contract state, leading to redundant transactions and potential gas wastage.
The absence of a state check in the pause function allows for multiple calls, resulting in no change to the contract's paused state when it's already paused. The function lacks a condition to verify the current state before execution, leading to redundant and potentially unnecessary function calls.
The impact of this issue is relatively low. Redundant invocations of the pause function, when the contract is already paused, don't affect the contract state. However, it results in unnecessary transaction execution and gas costs.
Manual inspection
Implement a state check within the pause function to verify if the contract is already paused before executing the pausing action. This check will prevent redundant function calls, saving gas and avoiding unnecessary transactions.
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.