Open sherlock-admin3 opened 4 months ago
1 comment(s) were left on this issue during the judging contest.
0xmystery commented:
Forecast is calculated using wrong inferences
The protocol team fixed this issue in the following PRs/commits: https://github.com/allora-network/allora-chain/pull/449
volodya
High
Not appropriate Inferences will be used when calculating the forecast
Summary
Not appropriate Inferences will be used when calculating the forecast due to not saving filtered results
Vulnerability Detail
Current variable
acceptedInferersOfBatch
doesn't do anything due toacceptedForecastElements
is not being saved. It should filter out accepted Inferers according to the comment and a function logic otherwise all inferences will be used when calculating forecastkeeper/msgserver/msg_server_worker_payload.go#L163
Impact
Not appropriate Inferences will be used when calculating the forecast
Code Snippet
Tool used
Manual Review
Recommendation
It should look like this