Blurry Mauve Jay
High
UsualSP::removeOriginalAllocation does not call _updateRewards causing user to lose all rewards earned from the allocation
_updateRewards is meant to accrue a user rewards to state and should be called before making any change to the users balance to ensure that the user doesnt lose rewards or earn too much however when removeOriginalAllocation is called, this doesnt happen causing the user too lose the rewards along with the allocation
_updateRewards is not called
No response
No response
No response
The user will lose all their rewards accrued from the removed allocation
assume a user bob has an original allocation of 100e18 and has earned 5e18 in rewards if removeOriginalAllocation, bob would also lose the 5 usual tokens he has earned in rewards
removeOriginalAllocation should call _updateReward before setting the user allocations to zero