The finalizeValidation
function in the LLMOracleCoordinator
contract increases the allowance for validators and generators but does not provide a mechanism for them to claim their fees. As a result, the accumulated fees for these participants remain locked in the contract, preventing them from accessing their earned rewards.
The finalizeValidation
function processes validation scores for a given task, and while it appropriately increases the allowance for both validators and generators when certain conditions are met, it lacks a corresponding withdrawal function for these users. This means that although the contract may grant allowances for validators and generators, there is no implementation in place for them to actually transfer or claim these allowances.
The absence of a mechanism for users to claim their fees leads to several issues:
Accumulated fees remain inaccessible, effectively locking funds within the contract and undermining the economic incentives for validators and generators.
The system fails to provide a clear and transparent process for users to access their rewards, which may result in frustration and deter participation in future validation tasks.
This design oversight could have significant implications, including:
Validators and generators may feel demotivated if they cannot access their earned fees, leading to decreased participation in the ecosystem.
The platform's overall integrity may be questioned, as users may perceive it as an unreliable system if they cannot claim what they are owed.
Manual Code Review
Introduce a separate function that allows authorized users (validators and generators) to claim their accumulated fees. This function should:
Transfer the appropriate amount of fees based on their allowances.
Ensure that the fees are only released after validation and computation processes are finalized.
Alternatively, consider directly transferring the fees to the validators and generators instead of merely increasing their allowances during the validation process. Implementing these changes will enhance user experience, maintain trust, and encourage active participation within the platform.
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.