Skip to content

Commit

Permalink
Fix reward.processEvents() to call PRepInfo.ApplyVote() with offset n…
Browse files Browse the repository at this point in the history
…ot period
  • Loading branch information
eunsoo-icon committed Aug 3, 2023
1 parent 1586715 commit ae2ac36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icon/iiss/rewards/iiss4/reward.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (r *reward) processEvents() error {
if type_ == icstage.TypeEventBond {
vType = vtBond
}
r.pi.ApplyVote(vType, obj.Votes(), r.pi.OffsetLimit()-keyOffset)
r.pi.ApplyVote(vType, obj.Votes(), keyOffset)
ve.AddEvent(vType, obj.From(), obj.Votes(), keyOffset)
}
}
Expand Down

0 comments on commit ae2ac36

Please sign in to comment.