Core Contracts

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

Function `_mintRAACRewards` should be called before setting `setRAACMinter`

Summary

If the stability pool updates the raacMinter via setRAACMinter() without calling _mintRAACRewards, then it would lose out on raac rewards accumulated since the last time we last called the function.

Vulnerability Details

If the owner updates the raacMinter in StabilityPool without calling the _mintRAACRewards() on previous raacMinter, then we would lose raac rewards accumulated since the last time we called it i.e. setRaacMinter()

function setRAACMinter(address _raacMinter) external onlyOwner {
raacMinter = IRAACMinter(_raacMinter);
}

Impact

StabilityPool will lose RAAC Rewards

Tools Used

Manual

Recommendations

Consider adding a call to _mintRAACRewards() i.e.

function setRAACMinter(address _raacMinter) external onlyOwner {
_mintRAACRewards(); // add this
raacMinter = IRAACMinter(_raacMinter);
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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