Core Contracts

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

contract still contains example values

Summary

GaugeController.sol contract still contains values marked as // Example value which will not work in the production.

Details

GaugeController contract’s _calculateRWAEmission and _calculateRAACEmission functions still contain and return hard-coded, example values and they won’t work in production.

/**
* @notice Calculates RWA emission rate
* @dev Monthly emission rate for RWA gauges
* @return Monthly emission amount
*/
function _calculateRWAEmission() internal view returns (uint256) {
// Monthly RWA emission calculation
// This should be implemented based on your tokenomics
@> return 1000000 * 10 ** 18; // Example value
}
/**
* @notice Calculates RAAC emission rate
* @dev Weekly emission rate for RAAC gauges
* @return Weekly emission amount
*/
function _calculateRAACEmission() internal view returns (uint256) {
// Weekly RAAC emission calculation
// This should be implemented based on your tokenomics
@> return 250000 * 10 ** 18; // Example value
}

Recommendation

Implement the functions relevant to the protocol.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 month ago
Submission Judgement Published
Validated
Assigned finding tags:

GaugeController uses hardcoded placeholder emission values in _calculateRWAEmission() and _calculateRAACEmission() instead of actual tokenomics-based rates

Support

FAQs

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