There is no check to prevent disabling pools with active boosts, which could make existing user boosts inaccessible
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);
}
}
require(poolBoosts[pool].totalBoost == 0, "Pool has active boosts");
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.