Skip to content

Commit

Permalink
fix reward address stats
Browse files Browse the repository at this point in the history
  • Loading branch information
keithsue committed Jan 24, 2025
1 parent 447f801 commit 294cbda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/incentive/keeper/reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ func (k Keeper) DistributeDepositReward(ctx sdk.Context, address string) error {
return err
}

k.AddDepositReward(ctx, address, rewardAmount)
k.UpdateRewardStats(ctx, address, rewardAmount)
k.AddDepositReward(ctx, address, rewardAmount)

return nil
}
Expand All @@ -138,8 +138,8 @@ func (k Keeper) DistributeWithdrawReward(ctx sdk.Context, address string) error
return err
}

k.AddWithdrawReward(ctx, address, rewardAmount)
k.UpdateRewardStats(ctx, address, rewardAmount)
k.AddWithdrawReward(ctx, address, rewardAmount)

return nil
}

0 comments on commit 294cbda

Please sign in to comment.