Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

Users balances not updated

Summary

The "buyPresent" function currently lacks functionality to update the balances of users who purchase presents for their friends. As a result, after executing the "buyPresent" function, the balances of the involved users remain unchanged, potentially leading to inaccuracies in token ownership and an incomplete transactional record.

Vulnerability Details

Tokens are transferred for present purchases, but the balances of the involved parties—both the purchaser and the recipient—are not updated within the contract.

Impact

Inability to track and verify executed transactions accurately within the contract, potentially causing confusion or disputes regarding token ownership.

Tools Used

manual analysis

Recommendations

Implement the necessary logic within the "buyPresent" function to update the balances of both the purchaser and the recipient after the successful execution of the present purchase.

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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