Omniscia Olympus DAO Audit

gOHM Code Style Findings

gOHM Code Style Findings

OHM-01C: Inexistent Error Messages

TypeSeverityLocation
Code StyleInformationalgOHM.sol:L59, L127, L129, L132

Description:

The linked require checks contain no descriptive error messages.

Example:

contracts/governance/gOHM.sol
58constructor(address _migrator) {
59 require(_migrator != address(0));
60 approved = _migrator;
61}

Recommendation:

We advise them to be set so to aid in the debugging of the application and to also enable more accurate validation of the require condition purposes.

Alleviation:

Error messages were introduced in all linked require checks.