Core Contracts

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

Use ReentrancyGuardUpgradeable instead of ReentrancyGuard

Summary

The contract is designed to be upgradeable, as indicated by the use of Initializable. However the contract uses ReentrancyGuard (non-upgradeable version), which can cause storage conflicts in an upgradeable contract.

Vulnerability Details

StabilityPool.sol

contract StabilityPool is IStabilityPool, Initializable, ReentrancyGuard, OwnableUpgradeable, PausableUpgradeable {//@audit not use upgrade.
using SafeERC20 for IERC20;
using SafeERC20 for IRToken;
using SafeERC20 for IDEToken;
using SafeERC20 for IRAACToken;

Impact

ReentrancyGuard declares _status in storage, which may cause conflicts when the contract is upgraded if the storage layout changes.

Tools Used

Foundry

Recommendations

use ReentrancyGuardUpgradeable instead of ReentrancyGuard

Updates

Lead Judging Commences

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

Support

FAQs

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