The Standard

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

Failure to return failed message in case of error

Summary

lack of an error message can make debugging more challenging and reduce the clarity of the contract's behavior for other developers or auditors.

(bool _sent,) = payable(msg.sender).call{value: _rewardAmount}("");
require(_sent); //@udit-info return some message

https://github.com/Cyfrin/2023-12-the-standard/blob/main/contracts/LiquidationPool.sol#L199

https://github.com/Cyfrin/2023-12-the-standard/blob/main/contracts/LiquidationPoolManager.sol#L50

Tools Used

manual review

Recommendations

you should add an error message to the require statement. This message will be returned when the condition inside require fails, providing more context about the failure.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

informational/invalid

Support

FAQs

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