Closed sherlock-admin2 closed 4 months ago
1 comment(s) were left on this issue during the judging contest.
0xmystery commented:
Topic funding amount is incorrectly accounted for twice
The protocol team fixed this issue in the following PRs/commits: https://github.com/allora-network/allora-chain/pull/505
volodya
Medium
topic's funds is being used twice when activating a topic
Summary
Vulnerability Detail
AddTopicFeeRevenue adds funds to topic fee revenue and activateTopicIfWeightAtLeastGlobalMin adds more fee revenue doubling the amoun
msgserver/msg_server_demand.go#L51
emissions/keeper/topic_weight.go#L68
Impact
Double accounting of topic funds
Code Snippet
Tool used
Manual Review
Recommendation
Duplicate of #46