In LLMOracleCoordinator::validate and LLMOracleCoordinator::respond instead of making a simple check whether an address is part of the request as validator or responder, the logic is iterating through all records.
The code currently is consuming a lot of gas, because the complexity of both of these are respectively O(N) and O(N+M), where N is number of the responders and M is the number of validators.
Manual Review
In LLMOracleCoordinator::validate and LLMOracleCoordinator::respond add two mappings that will keep the addresses of validators and responders for a certain request. Instead of iterating through the lists, it will directly check whether an address is part of the given mapping.
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.