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

Rapper Will Be Stuck If No Challengers Step Up

Summary

Once a Rapper goes on stage the only way to get off stage is by another Rapper coming on stage and battling. In the case a Rapper has no challenger that Rapper NFT and any wagered Cred tokens will be stuck in the contract.

Vulnerability Details

The RapBattle smart contract has no emergency functions to withdraw and return a Rapper or Cred tokens if a Rapper has no challengers. There for if no other Rappers battle the NFT and Cred tokens will be stuck in the contract

Impact

Loss of NFTs and Cred Tokens

Tools Used

Manual Review

Recommendations

  1. Add in an onlyOwner restricted emergency withdraw function as a safety valve.

  2. Create a function that allows the address that sent the first Rapper on stage to reclaim their NFT and Cred tokens after a certain amount of time passes.

Updates

Lead Judging Commences

inallhonesty 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.