Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: high
Valid

Contract can't receive ether.

Summary

Contract can't receive ether because there is no receive() function. While it is possible to force send ether with SELFDESTURCT trick it is very complicated to do so.

Vulnerability Details

Can't receive ether normally.

Impact

High

Tools Used

Foundry

Recommendations

Add following code

receive() payable external {
if(msg.sender == owner) {
_setDeadline();
}
}
Updates

Lead Judging Commences

0xtimefliez Lead Judge 6 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Missing receive() or fallback() function

Support

FAQs

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