MorpheusAI

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

Unchecked Return Values from External Calls

Summary

External calls to the ERC20 token contract (for example, IERC20(depositToken).safeTransfer(user_, amount_)) do not check return values.

Vulnerability Details

If the safetransfer function fails then amount should not be subtracted from total deposits in public pools & event emitted should reflect the same

Impact

User calls withdraw function & he doesnt receive funds still his balance will be debited

Tools Used

Visual inspection

Recommendations

Check the return value from safetransfer function if it fails revert line 278.

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 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.