Core Contracts

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

Unneccessary changing the state

Summary

Vulnerability Details

msg.sender is allocatorrole which is admin so why we changing the state in each function call if this allocatorRole is always same? NO need of nested mapping.

In Treasury.sol's allocateFunds function:

_allocations[msg.sender][recipient] = amount;

Impact

Unnecessary bytecode and gas is wasted while storing these mappings.

Tools Used
Manual review

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 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.

Give us feedback!