Category: Coding Mistakes
The BTCLinkedPriceFeed contract does not initialize the owner
Informational Impact
Informational Severity
N/A Likelihood
Description
The BTCLinkedPriceFeed contract inherits from the OwnableUpgradeable contract, but it does not call the function __Ownable_init
during the initialization to initialize the owner.
Impact
The owner address will be the zero address after initialization. If there are functions with the onlyOwner
modifier planned to be added into this contract, it is recommended to fix this issue.
Recommendations
Consider adding a call to the function __Ownable_init
in the function initialize
or removing the inherited contract OwnableUpgradeable.
Remediation
This issue has been acknowledged by Blueprint Finance, and a fix was implemented in commit 4d72bd74↗.