LLMOracleRegistry allows generatorStakeAmount and validatorStakeAmount values to be zero.
If this value is used it leads to Inconsistencies on emited events when calling LLMOracleRegistry::register and responses from LLMOracleRegistry::isRegistered
This occours because register will emit event of registration when amount is zero:
So, for offchain listeners it will emit a registration of an oracle
But when calling LLMOracleRegistry::isRegistered will return False:
The following proof of concept sets StakeAmounts to zero
Calls register to show event is fired but isRegistered returns false
Add this test case in test/LLMOracleRegistry.test.ts
Inconsistencies between register fired events and isRegistered, probability is low
Manual Review
Require amount !=0 in LLMOracleRegistry::register, LLMOracleRegistry::setStakeAmounts and in LLMOracleRegistry::initialize for generatorStakeAmount, validatorStakeAmount vars
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.