Incorrect settings of generatorStakeAmount and validatorStakeAmount can cause DOS,when the values of generatorStakeAmount and validatorStakeAmount are set to zero, it will result in a denial of service.
When calling the LLMOracleRegistry.sol::register() function.
If the values of generatorStakeAmount and validatorStakeAmount are set to zero, it will result in a denial of service.
Because the value of uint256 amount = getStakeAmount(kind); is zero, the value of registrations[msg.sender][kind] = amount; will also be zero.
Even if the user successfully executes the register() function, when checked by the isRegistered() function, the returned result is false.
If the values of generatorStakeAmount and validatorStakeAmount are set to zero, and the user successfully executes the register() function, then the functions modified by the onlyRegistered() modifier will not be callable, which is a denial of service.
Because the value of registry.isRegistered(msg.sender, kind) is always false.
Manual review.
Limit the values of generatorStakeAmount and validatorStakeAmount to not be zero.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.