Skip to content

Commit 294cbda

Browse files
committed
fix reward address stats
1 parent 447f801 commit 294cbda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x/incentive/keeper/reward.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ func (k Keeper) DistributeDepositReward(ctx sdk.Context, address string) error {
120120
return err
121121
}
122122

123-
k.AddDepositReward(ctx, address, rewardAmount)
124123
k.UpdateRewardStats(ctx, address, rewardAmount)
124+
k.AddDepositReward(ctx, address, rewardAmount)
125125

126126
return nil
127127
}
@@ -138,8 +138,8 @@ func (k Keeper) DistributeWithdrawReward(ctx sdk.Context, address string) error
138138
return err
139139
}
140140

141-
k.AddWithdrawReward(ctx, address, rewardAmount)
142141
k.UpdateRewardStats(ctx, address, rewardAmount)
142+
k.AddWithdrawReward(ctx, address, rewardAmount)
143143

144144
return nil
145145
}

0 commit comments

Comments
 (0)