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

soulmateId bad check in Staking_claimRewards()

Summary

Vulnerability Details

In this function if msg.sender never interacted with
soulmate.sol the value ‘soulmateId[msg.sender] would returns 0 and this
can be not that correct.

Impact

All people can call this function (but not receive tokens if they did
not staked their tokens).

Tools Used

Foundry

Recommendations

Consider check if msg.sender has actually a
soulmate and if he staked the tokens.

Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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