The function setWeights
is responsible for updating weights and their associated multipliers in a QuantAMM pool. It takes _weights
, _poolAddress
, and _lastInterpolationTimePossible
as inputs, performs validations, updates the pool's state, and emits an event. However, there is no direct use of an updateInterval
variable in this function.
NB: The updateInterval variable in a smart contract typically defines the time gap between successive updates or actions.
In the context of weight updates, updateInterval
would likely be used to ensure that the function is called only after a specific time has elapsed since the last update. This would prevent excessive or unintended updates to the pool's weights.
The function allows updates without any time restriction and try calling the setWeights
function multiple times within a short time frame.
As you can see above there is no time interval update checked.
Inefficient operations due to excessive updates.
Manual Review
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.