Open sherlock-admin2 opened 4 months ago
1 comment(s) were left on this issue during the judging contest.
0xmystery commented:
Error SetDelegateStakePlacement is not handled correctly in RewardDelegateStake
The protocol team fixed this issue in the following PRs/commits: https://github.com/allora-network/allora-chain/pull/463
imsrybr0
High
SetDelegateStakePlacement error is not handled in RewardDelegateStake
Summary
SetDelegateStakePlacement
error is not handled inRewardDelegateStake
.Vulnerability Detail
If
SetDelegateStakePlacement
fails inRewardDelegateStake
, theRewardDebt
will not be saved and it would allow a delegate staker to claim the same rewards more than once.Impact
Rewards being distributed more than once can lead to insolvency (.i.e : others delegate stakers not being able to claim their rewards) and the drainage of the
AlloraPendingReward
module account.Code Snippet
RewardDelegateStake
Tool used
Manual Review
Recommendation
Handle the
SetDelegateStakePlacement
error.