.length inside of loop of expensive, wasting gas.In the function _getWinnerShares::BriVault , use of userAddress.length is expensive and waste unnecessary gas.
Likelihood: Low
Impact: Low/Gas
Store the value of userAddress.length outside the loop in a local variable userAddressLength .
Gas optimizations are invalid according to the CodeHawks documentation.
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.