The QuantAMMWeightedPool::setWeights and QuantAMMWeightedPool::_setInitialWeights functions both emit the WeightsUpdated event, but the data emitted is inconsistent. The QuantAMMWeightedPool::setWeights function includes the pool address and an array of both weight and multiplier metrics in the event data. In contrast, the QuantAMMWeightedPool::_setInitialWeights function emits the pool address and an array of only weight metrics.
QuantAMMWeightedPool::setWeights function:
QuantAMMWeightedPool::_setInitialWeights function:
The inconsistency in emitted event data may lead to incorrect data indexing on off-chain services, potentially causing confusion or errors in data processing.
Update the QuantAMMWeightedPool::_setInitialWeights function:
Likelihood: Low, _setInitialWeights is only used once per pool and every other event will have the same format. Impact: Low, first WeightsUpdated event of a pool is emitted with incoherent data.
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.