MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Invalid

Use of Deprecated safeApprove in OpenZeppelin Contracts

Summary

The safeApprove function within the OpenZeppelin Contracts library has been deprecated and should no longer be used.

Vulnerability Details

L2TokenReceiver contract makes use of SafeApprove function which is deprecated in several circumstances.
https://github.com/Cyfrin/2024-01-Morpheus/blob/07c900d22073911afa23b7fa69a4249ab5b713c8/contracts/L2TokenReceiver.sol#L139

https://github.com/Cyfrin/2024-01-Morpheus/blob/07c900d22073911afa23b7fa69a4249ab5b713c8/contracts/L2TokenReceiver.sol#L44

Tools Used

Manual Review

Recommendations

Use approve instead of safeApprove

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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