The function DifferenceMomentumUpdateRule::_setInitialIntermediateValues
will always set initial intermediate values even if the provided set of moving averages is invalid.This is because _initialValues.length == _numberOfAssets
will always be the case whenever the IF statement is read.
Remove _initialValues.length == _numberOfAssets
as one of the IF statement's conditionals.
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.