Pieces Protocol

First Flight #32
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: medium
Invalid

Vulnerability in `buyOrder` Function: Potential ERC20 Token Burning Issue

Summary

In src/TokenDivider.sol, users can purchase a portion of an NFT through the buyOrder function. However, since the ERC20 token is burnable, a user could call the burn function on their tokens. This would prevent other users holding the remaining portions of the NFT from ever being able to claim the NFT.

Recommendations

It is recommended to add constraints to the burn function to prevent this issue.

Updates

Lead Judging Commences

fishy Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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