Inconsistent validation in AntiMomentumUpdateRule where negative weight check is only present in vector kappa mode but missing in scalar kappa mode.
Low. The code is inconsistent, alloing negative invalid weights.
Add require(res >= 0, "Invalid weight")
in scalar kappa path to maintain consistent validation patterns:
_clampWeights will check that these weights are positive and in the boundaries before writing them in storage.
_clampWeights will check that these weights are positive and in the boundaries before writing them in storage.
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.