TempleGold

TempleDAO
Foundry
25,000 USDC
View results
Submission Details
Severity: low
Invalid

amountReceivedLD variable in TempleGold::_lzReceive() is always zero

Summary

amountReceivedLD is will always be zero and incorrect because _credit returns an instantiated but yet to be set variable. This will cause the event to emit the wrong data
https://github.com/Cyfrin/2024-07-templegold/blob/da199ee9316665e3ea9006ce9c9f5a7fd7cbc605/protocol/contracts/templegold/TempleGold.sol#L335

Recommendations

Consider inspecting the users' provided data for extra layer of security.

Updates

Lead Judging Commences

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