The Standard

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

Empty receive

Summary

Empty receive does not authorised any request

Vulnerability Details

Empty receive does not authorise request is made for depositing transfer.

receive() external payable {}

Impact

Ether can be deposited through this function by a user and the protocol will not be informed about it.

Tools Used

Manual code review.

Recommendations

If the intention is for Ether receiveing to be used for deposit ETH, the function should have another function (e.g. call depositEth () ) or at least emit an event to track that funds were sent directly to it.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

informational/invalid

Support

FAQs

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