Unbounded loop will cause out of gas and prevent init of ReseedSilo and ReseedBarn
the function reseedSiloDeposit needs to loop over all deposit account and if there is too many account, the transaction can run out of gas and block init of ReseedSilo
same issue happens in ReseedBarn init function as well.
Because of an unbounded loop in a critical function, the user may experience a out of gas error. This error will prevent the reseeding of the silo and completely DOS the protocol main functionality
manual review
Ensure the unbounded loop does not run out of gas. This can be done by reseeding individually each type of deposit. In this way the out of gas error will be less likely.
Invalid as per docs https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity
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.