Core Contracts

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

Missing Validation in modifySupportedPool()

Summary

There is no check to prevent disabling pools with active boosts, which could make existing user boosts inaccessible

Vulnerability Details

function modifySupportedPool(address pool, bool isSupported) external onlyRole(MANAGER_ROLE)

{
if (pool == address(0)) revert InvalidPool();

if (supportedPools[pool] == isSupported) revert PoolNotSupported();

supportedPools[pool] = isSupported;
if (isSupported) {
emit PoolAdded(pool);

} else {
emit PoolRemoved(pool);
}
}

Impact

Tools Used

Recommendations

require(poolBoosts[pool].totalBoost == 0, "Pool has active boosts");

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
inallhonesty Lead Judge 7 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.

Give us feedback!