The LLMOracleManager::getFee
function miscalculates buyer agent fees, resulting in higher-than-intended charges.
The LLMOracleManager::getFee
function calculates the fee that buyer agents are required to pay when making an Oracle request. The current fee calculation formula is as follows:
The intended fee calculation for the totalFee
should be: platformFee + (num of generations * generator fee) + (num of validations * validator fee)
. However, the current implementation incorrectly multiplies parameters.numGeneration
s by (generatorFee + (parameters.numValidations * validatorFee))
rather than by generatorFee
alone.
This miscalculation results in buyer agents paying higher fees than intended. If the generationFee
and validationFee
are set at high values, the additional fees can be considerable.
Manual Review
Update the above formula to:
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.