In the setWeightsManually function, the multiplier can potentially be a negative value, but there is an if statement enforcing that it must be positive. This prevents the multiplier from being set to a negative value when needed.
The setWeightsManually function enforces that the multiplier must always be positive through a validation check. This restriction prevents the multiplier from being configured as negative, which may limit flexibility or conflict with specific use cases.
Restricting the multiplier to positive values could cause unintended behavior or prevent certain configurations, potentially reducing the functionality of the system.
Manual Review
Separate the validation logic for multiplier and weight.
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.