Pieces Protocol

First Flight #32
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: high
Valid

Ensure Consistency Between ERC20 Transfers and `TokenDivider` Contract Balances

Summary

Each fraction of an NFT is represented as an ERC20 token, allowing users to transfer tokens using transfer and transferFrom. However, these transfers do not update the records in the TokenDivider contract, causing discrepancies between the tokens held by users and the balances recorded in the contract.

Recommendations

It is recommended to either adjust the authentication of these functions or ensure that these functions update the balances in the TokenDivider contract.

Updates

Lead Judging Commences

fishy Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Transfer ERC20ToGenerateNftFraccion separately to the contract

Support

FAQs

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