Core Contracts

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

Inaccurate Emission Rate Update Event Emission

Summary

The updateEmissionRate function in the RAACMinter contract emits an event indicating that the emission rate has been updated, even when the newly calculated rate (newRate) is identical to the current rate. This behavior can mislead off-chain monitoring systems and analytics.

Vulnerability Details

Within the updateEmissionRate function, the new emission rate is calculated using the calculateNewEmissionRate function and then assigned to the state variable emissionRate. Regardless of whether newRate differs from the current emissionRate, the function emits the EmissionRateUpdated event. As a result, observers relying on these events might mistakenly believe that a change in the emission rate has occurred when, in reality, no update has taken place. This unnecessary event emission can lead to incorrect assumptions and misleading data in external systems that track protocol changes.

Impact

  • Misleading Monitoring Data: Off-chain monitoring services and dashboards that rely on emitted events for tracking protocol metrics might register false updates, leading to confusion regarding the current emission rate.

  • Data Inconsistency: Inaccurate event logs can result in incorrect historical data analysis, potentially affecting decision-making and the perceived stability of the protocol.

Tools Used

  • Manual code review

Recommended Mitigation

Modify the updateEmissionRate function to emit the EmissionRateUpdated event only when the new emission rate is different from the current rate. For example, before updating and emitting, add a check such as:

if (newRate != emissionRate) {
emissionRate = newRate;
lastEmissionUpdateTimestamp = block.timestamp;
emit EmissionRateUpdated(newRate);
}
Updates

Lead Judging Commences

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