Core Contracts

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

Forgotten bool in DebtToken contract

Summary

In Debt contract is forgotten to use the bool variable isFirstMint that checks scaledBalance == 0

Vulnerability Details

bool isFirstMint = scaledBalance == 0;
return (scaledBalance == 0, amountToMint, totalSupply());

The variable is declared but it's never used.

Impact

Gas efficiency

Recommendations

If you want you can pass the variable in the return or you can remove the declaration of the variable once is not used.

Updates

Lead Judging Commences

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