Submitted by n4nika, also found by ABAIKUNANBAEV and djxploit
If a participant in a pool claims rewards while the deduction rate is != 0, the deducted rewards are redistributed between all the participants.
Since the deduction is redistributed between all participants (since accumulate_reward distributes to all participating users) including the one claiming the reward, they can repeatedly claim rewards and receive more of the rewards pool than they probably should.
Add the claiming user to accumulate_rewards and implement reaccumulating excluding the calling user.
xlc (Acala) disputed and commented:
