The setOwner() and setRewardAdmin() functions in the FjordStaking contract lack proper input validation,allowing unnecessary state changes and gas consumption.
The setOwner() and setRewardAdmin() functions check agianst address zero, but they don't check if the new address being set is different from the current one. This allows transactions to be executed even when they don't change the contract's state, leading to unnecessary gas consumption.
unnecessary gas consumption for the owner when executing these functions.
Manual Review
implement a check in both functions to ensure the new address is different from the current one before making any changes
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.