Some rules do not validate the last parameter used for determining useRawPrice . And only validate the length.
ChannelFollowingUpdateRule properly validates the final element in _parameters during validParameters
While:
PowerChannelUpdateRule
MomentumUpdateRule
AntimomentumUpdateRule
In all the above rules (PowerChannelUpdateRule, MomentumUpdateRule and AntimomentumUpdateRule) the final value can be set to anything as longs as it's length matches. Which would fail to correctly set useRawPrice
Validation should only allow values ONE or 0. As any value other than ONEwill fail to enable useRawPrice.
Manual review.
Repeat the same validation used in ChannelFollowingUpdateRule.
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.