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

No Balance Check Before Sending ETH

Summary

Vulnerability Details

The function sendETH in the InheritanceManager.sol contract does not check the contract's ETH balance before executing call{value: _amount}(). If _amount exceeds the contract's available ETH, the transaction fails and reverts.

Impact

****

  • ** failed transactions** if the contract lacks ETH.

    • If the contract doesn’t have enough ETH, every call to sendETH will fail and revert.

Tools Used

Manual review

Recommendations

Require that the contract holds enough ETH before sending

require(address(this).balance >= _amount, "Insufficient balance");
Updates

Lead Judging Commences

0xtimefliez Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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