MorpheusAI

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

There is no check for zero in amountIn

Summary

There is no check for zero in amountIn parameter in the swap function.

Vulnerability Details

The swap function doesn't check for zero amountIn. Though the recipient is the contract, there should be a check against having zero as amountIn.

Impact

The swap function will run without actually sending anything to the recipient.

Tools Used

Manual review

Recommendations

Check for zero input

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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