in function quantAMMPack32Array(), _sourceArray.length will always < 8 when targetArrayLength ==0. Therefore, there is no need to check _sourceArray.length when targetArrayLength ==0, in order to save gas.
If (_sourceArray.length >= 8), targetArrayLength will be set to a value >= 1. So, when it goes to line256, if targetArrayLength==0, it means, _sourceArray.length < 8, no need to check between _sourceArray.length and 8, setting targetArrayLength = 1 is enough.
Useless operations will cause more gas.
manually reviewed
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.