The Standard

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

Consider Using `Ownable2Step` rather than `Ownable`

Summary

To enhance the security and prevent inadvertent ownership transfers, it's advisable to use Ownable2Step or Ownable2StepUpgradeable.

Vulnerability Details

Contracts necessitate an active confirmation from the recipient before the ownership transfer is finalized.
This mechanism serves as a safeguard against scenarios where, for instance, a typo in the address could lead to unintentional ownership changes.

File: contracts/SmartVaultManagerV5.sol
4: import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
16: contract SmartVaultManagerV5 is ISmartVaultManager, ISmartVaultManagerV2, Initializable, ERC721Upgradeable, OwnableUpgradeable {
File: contracts/LiquidationPoolManager.sol
5: import "@openzeppelin/contracts/access/Ownable.sol";
11: contract LiquidationPoolManager is Ownable {

Tools Used

VSCode

Recommendations

Use Ownable2Step or Ownable2StepUpgradeable

Updates

Lead Judging Commences

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

single-step-ownership

informational/invalid

Support

FAQs

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