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

[I-2] Wrong comment in `Streets::unstake()`

Description

Rapbattle doesn't implement a function called updateRapperStats(), furthermore Streets::oneShotContract is type IOneShot.

Recommended Mitigation

function unstake(uint256 tokenId) external {
require(stakes[tokenId].owner == msg.sender, "Not the token owner");
uint256 stakedDuration = block.timestamp - stakes[tokenId].startTime;
uint256 daysStaked = stakedDuration / 1 days;
- // Assuming RapBattle contract has a function to update metadata properties
+ // Assuming IOneShot contract has a function to update metadata properties
.
.
.
}
Updates

Lead Judging Commences

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