The RAACMinter contract includes a mintRewards
function designed to mint and distribute RAAC tokens as rewards. However, this function is not invoked or referenced anywhere within the protocol, effectively making it redundant and unused. Its existence unnecessarily adds to the contract's code size and complexity.
Affected Function:
Issue:
The mintRewards
function is not used or referenced by any other component of the contract or protocol, rendering it effectively dead code.
Contract Bloat:
The presence of unused functions unnecessarily increases the contract's bytecode size. This can lead to higher deployment costs and increased gas fees when interacting with the contract.
Added Complexity:
Unused code complicates the contract’s maintenance and auditing processes, potentially introducing security risks or opportunities for oversight.
Manual Code Review
Remove Unused Function:
If the mintRewards
function is not part of the current protocol logic, it should be removed. This will simplify the code, reduce complexity, and minimize the potential attack surface.
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.