TempleGold

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

TempleGold contract doesn't protect itself against potential third party failure

Summary

TempleGold uses LayerZero to send it's token cross-chain through its TempleGold::send function. It does this by burning the senders token on the source chain and minting thesame amount to the users address on the destination chain. The problem is that the function doesn't check if it's interaction with the external contract (LayerZero) is successful before ending the function. This means should anything happen to the middle man (LayerZero) that causes that destination chain not to receive the correct message or receive the message at all, the sending user might lose their tokens permanently.
Although LayerZero promises to guarantee safe cross-chain transaction for all it's partner protocols, it is recommended to always implement our own security measures on our end, as the cost of things going wrong is high: permanent loss of users assets.

Recommendations

Check for success state with after interacting with the external contract and revert if it fails before ending the function.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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