Core Contracts

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

Missing Pause Check in depositRAACFromPool Function in StabilityPool.sol

Summary
The depositRAACFromPool function in the StabilityPool contract lacks the whenNotPaused modifier. This would allow RAAC token deposits even when the contract is paused, potentially compromising security controls during emergency situations.

Vulnerability Details
In the StabilityPool contract, the depositRAACFromPool function is defined as, and lacks whenNotPaused:
```solidity

function depositRAACFromPool(uint256 amount) external onlyLiquidityPool validAmount(amount) {
uint256 preBalance = raacToken.balanceOf(address(this));
raacToken.safeTransferFrom(msg.sender, address(this), amount);
uint256 postBalance = raacToken.balanceOf(address(this));
if (postBalance != preBalance + amount) revert InvalidTransfer();
// TODO: Logic for distributing to managers based on allocation
emit RAACDepositedFromPool(msg.sender, amount);
}

```

Impact
Med/Low severity
The missing modifier allows RAAC token deposits to continue even when the contract is paused.
This could interfere with emergency procedures.

Tools Used
Manual code review

Recommendations
Add the whenNotPaused modifier to the depositRAACFromPool function:
```solidity

function depositRAACFromPool(uint256 amount) external
onlyLiquidityPool
whenNotPaused // @note, add this here
validAmount(amount)
{
uint256 preBalance = raacToken.balanceOf(address(this));
raacToken.safeTransferFrom(msg.sender, address(this), amount);
uint256 postBalance = raacToken.balanceOf(address(this));
if (postBalance != preBalance + amount) revert InvalidTransfer();
// TODO: Logic for distributing to managers based on allocation
emit RAACDepositedFromPool(msg.sender, amount);
}


```

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 month ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
inallhonesty Lead Judge about 1 month ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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