Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

`totalPrize` variable is declared but never used.

Summary

The uint256 variable totalPrize is declared but never used.

Vulnerability Details

In function _battle a variable totalPrize is calculated by adding defenderBet + _credBet but it is never used.
At the end of the function it is set to 0 and it is never used throughout the function.

Impact

Low as it only uses gas.

Tools Used

Manual review.

Recommendations

Remove unnecessary variable.

Updates

Lead Judging Commences

inallhonesty Lead Judge almost 2 years 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!