Skip to content

Commit d9fac32

Browse files
Remap from previous days as well
1 parent 296e9fa commit d9fac32

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

calculation/calculation.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,11 @@ func SumDelegationWindow(program types.Program, qualifyingDelegationsPerPool map
355355
windowedDelegation := map[string]uint64{}
356356
for _, snapshot := range previousCalculations {
357357
for poolIdent, amt := range snapshot.QualifyingDelegationByPool {
358-
windowedDelegation[poolIdent] += amt
358+
pi := poolIdent
359+
if remapped, ok := program.DelegationRemap[poolIdent]; ok {
360+
pi = remapped
361+
}
362+
windowedDelegation[pi] += amt
359363
}
360364
}
361365
for poolIdent, amt := range qualifyingDelegationsPerPool {

0 commit comments

Comments
 (0)