HardhatFoundry
30,000 USDC
View results
Submission Details
Severity: medium
Invalid

Missing `receive()` function in `Nexus.sol` makes it impossible for the smart account owner to directly receive Ether.

Vulnerability Details

The receive() function would allow a smart account owner to accept plain Ether transfers. Meaning that when someone sends funds directly to the smart account's address the receive() function is invoked. However, Nexus.sol does not implement the receive() function, nor a fallback() function.

Impact

The absence of the receive() function in Nexus.sol would prevent the smart account from accepting plain Ether transfers directly to its address, leading to failed transactions and potentially causing disruptions in services that rely on direct Ether transfers.

Tools Used

Manual review, vscode

Recommended Mitigation

Consider adding a receive() function to Nexus.sol contract:

+ receive() external payable {}
Updates

Lead Judging Commences

0xnevi Lead Judge
12 months ago
0xnevi Lead Judge 12 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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