Beginner FriendlyFoundryGameFi
100 EXP
View results
Submission Details
Severity: medium
Invalid

collectReward() does not check that user has 3 different MartenitsaTokens

Summary

Function collectReward() rewards user 1 Health Token for every 3 MartenitsaTokens but does not check if they are different design.

Vulnerability Details

A user may be able to colletRewards with 3 similar MartenitsaTokens.

Impact

Health tokens are not distributed as intended making them less valuable.

Tools Used

Manual inspection

Recommendations

Function collectReward() must use getDesign() in a loop for each MartenitsaTokens to see how many different designs we have and then use that to distributeHealthToken().

Updates

Lead Judging Commences

bube Lead Judge
over 1 year ago
bube Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.