Mystery Box

First Flight #25
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

Missing Checks for Zero Address in transferReward function

Description

Rewards can be transferred to the zero address.

Impact

  • Lost Rewards: Transferring to the zero address results in inaccessible rewards.

  • User Errors: Mistakes can lead to permanent loss.

Recommendations

Add a check for the zero address:

require(_to != address(0), "Cannot transfer to the zero address");
Updates

Appeal created

inallhonesty Lead Judge about 1 year 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!