Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Invalid

Use ReentrancyGuardUpgradeable for StabilityPool

Summary

StabilityPool should inherit the upgradeable version of ReentrancyGuard.

Vulnerability Details

contract StabilityPool is IStabilityPool, Initializable, ReentrancyGuard, OwnableUpgradeable, PausableUpgradeable {
// SNIP
}

As shown in the code snippet above, the StabilityPool contract is intended to be upgradeable and inherits the upgradeable versions of Ownable and Pausable.

StabilityPool should also inherit the upgradeable version of ReentrancyGuard to prevent any issues with storage when upgrading in the future.

Impact

Storage corruption in future upgrades

Tools Used

Manual Review

Recommendations

+ contract StabilityPool is IStabilityPool, Initializable, ReentrancyGuardUpgradeable, OwnableUpgradeable, PausableUpgradeable { /* SNIP */ }
Updates

Lead Judging Commences

inallhonesty Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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