MorpheusAI

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

Consider using safeApprove instead of approve

Summary

Consider using safeApprove()

Vulnerability Details

  • For some tokens, you should reset the allowance to zero before any approve.

  • For some tokens there are a bool return value in approve.

By replacing the approve() with safeApprove(), you won't be at risk of these issues.

Impact

Some approves may revert or return false.

Tools Used

Manual Review

Recommendations

Consider using safeApprove()

Updates

Lead Judging Commences

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.