Skip to content

Commit

Permalink
fix: RewardBallotWinners determinism
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Sep 20, 2022
1 parent 6e3f3d1 commit 0857d71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/oracle/keeper/reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (k Keeper) RewardBallotWinners(
votePeriod int64,
rewardDistributionWindow int64,
voteTargets []string,
ballotWinners map[string]types.Claim,
ballotWinners []types.Claim,
) {
rewardDenoms := make([]string, len(voteTargets)+1)
rewardDenoms[0] = types.UmeeDenom
Expand Down Expand Up @@ -57,6 +57,7 @@ func (k Keeper) RewardBallotWinners(

// distribute rewards
var distributedReward sdk.Coins

for _, winner := range ballotWinners {
receiverVal := k.StakingKeeper.Validator(ctx, winner.Recipient)
// in case absence of the validator, we just skip distribution
Expand Down

0 comments on commit 0857d71

Please sign in to comment.