Core Contracts

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

Unused Minter Role Implementation in veRAACToken

Summary

The veRAACToken contract implements a minter role setting functionality that is never utilized within the contract, leading to unnecessary gas costs .

Vulnerability Details

// State variable
address public minter;
// Setter function
function setMinter(address _minter) external override onlyOwner {
require(_minter != address(0), "Invalid minter address");
minter = _minter;
emit MinterSet(_minter);
}

The contract defines a minter address state variable and provides a setter function setMinter with owner access and then emits events for minter changes, but never checks or uses the minter role for any operations

All minting operations are handled directly within core functions :
Example from lock()
_mint(msg.sender, newPower);

Impact

  • Unnecessary storage slot for minter address

  • Gas costs for setting and updating minter

Tools Used

  • Manual review

Recommendations

Remove the unused functionality.

Updates

Lead Judging Commences

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.