Core Contracts

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

MAX_REWARD_RATE is not used, which means when distributing the rewards it can overflow

Summary

MAX_REWARD_RATE is not used, which means when distributing the rewards it can overflow

Vulnerability Details

There is a variable in the BaseGauge.sol that is preventing overflow for reward rate, but it is never used

/// @notice Maximum reward rate to prevent overflow
uint256 public constant MAX_REWARD_RATE = 1000000e18;

Impact

overflowing

Tools Used

Recommendations

use the variable when a user is getting his rewards in the updateReward

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

BaseGauge lacks enforcement of both distributionCap and MAX_REWARD_RATE limits

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

BaseGauge lacks enforcement of both distributionCap and MAX_REWARD_RATE limits

Support

FAQs

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