DittoETH

Ditto
DeFiFoundryOracle
55,000 USDC
View results
Submission Details
Severity: low
Invalid

Unnecessary `receive` function in BridgeReth can result in trapped funds

Summary

There is an unnecessary receive function in the BridgeReth contract, which can result in users accidently sending funds directly to the contract. Since there is no functionality to later remove these funds, this will effectively result in lost funds. This can be a result of users not understanding how the BridgeReth contract works, as it is intended to take and convert ETH.

Vulnerability Details

The receive function defined in the BridgeReth contract has no funcitonality:

receive() external payable {}

This means that if users accidentally send ETH directly to the contract, it will effectively be lost.

Impact

Users can potentially lose funds through making a mistake.

Tools Used

Manual review

Recommendations

Remove the receive function as it has no purpose.

Updates

Lead Judging Commences

0xnevi Lead Judge
over 1 year ago
0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Users sending ETH/native tokens

Support

FAQs

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