Dria

Swan
NFTHardhat
21,000 USDC
View results
Submission Details
Severity: high
Invalid

Fees for Validators and Generators Are Blocked Due to Lack of Withdrawal Mechanism

Summary

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.

Vulnerability Detail

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.

Impact

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.

Tool used

Manual Code Review

Recommendation

Introduce a separate function that allows authorized users (validators and generators) to claim their accumulated fees. This function should:

  1. Transfer the appropriate amount of fees based on their allowances.

  2. 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.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.