The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Call fails for tokens that does not have return bool value

Summary

Lower level call will fails for tokens that do not return bool value on transfer

Vulnerability Details

.call cannot detect failure of transfer of tokens like USDT that does not have return bool value.

Impact

Failing on basis of requiring return value for tokens that does not have any value on transfer and will make it impossible to carry out crucial operations that related to transfer of tokens in functions of liquidateNative, removeCollateralNative and executeNativeSwapAndFee.

Tools Used

Manual Code Review

Recommendations

The recommendation is made to use safeTransfer instead of call for transferring tokens.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality
Assigned finding tags:

informational/invalid

Support

FAQs

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