The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Contract owner not set in the constructor

Summary

Contract owner not set in the constructor

Vulnerability Details

In the previous version of Openzeppelin's Ownable.sol, the deployer is automatically made the owner of the contract. However, in the newest version of Ownable.sol (version 5), this is no longer the case.

See: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol

A contract using Ownable.sol must set the owner of the contract to effectively use the "onlyOwner" modifier.

Impact

setPoolFeePercentage function marked by the "onlyOwner" modifier will revert because owner of the contract is not set.

Tools Used

Manual review

Recommendations

Set the owner in the constructor.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

informational/invalid

sabit Submitter
over 1 year ago
hrishibhat Lead Judge
over 1 year ago
hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

informational/invalid

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.