Ownable inheritance in Snow.sol wastes deployment gas and increases attack surfaceSnow.sol inherits from OpenZeppelin's Ownable and sets the deployer as owner in the constructor. However, the onlyOwner modifier is never used anywhere in the contract.
Likelihood:
This is a code quality and gas efficiency issue present at deployment time.
Impact:
~20,000 gas wasted on deployment for the Ownable storage slot (_owner) that is never read or written after construction.
Explanation: This PoC demonstrates that while the contract successfully instantiates an owner, the entire codebase uses onlyCollector rather than onlyOwner, leaving the inheritance redundant.
Explanation: Removing the Ownable inheritance and its initialization from the constructor cleans up the contract structure and saves deployment gas.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.