Omniscia rain protocol Audit
RedeemableERC20 Code Style Findings
RedeemableERC20 Code Style Findings
RER-01C: Non-Standard Error Capture
Type | Severity | Location |
---|---|---|
Code Style | RedeemableERC20.sol:L325 |
Description:
The linked assert(false)
statement is non-standard.
Example:
contracts/redeemableERC20/RedeemableERC20.sol
325assert(false);
Recommendation:
We advise a revert
statement to be utilized instead with a descriptive error message.
Alleviation:
A revert
statement was properly introduced in place of the assert(false)
instruction.