Skip to content

Commit d268de2

Browse files
tmigonejuanmardefago
authored andcommitted
fix: do not update allocation status when collecting rebates
Signed-off-by: Tomás Migone <[email protected]>
1 parent 34be122 commit d268de2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/mappings/staking.ts

-1
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,6 @@ export function handleRebateCollected(event: RebateCollected): void {
704704
allocation.queryFeeRebates = event.params.queryRebates
705705
allocation.distributedRebates = allocation.distributedRebates.plus(event.params.queryRebates)
706706
allocation.delegationFees = event.params.delegationRewards
707-
allocation.status = 'Closed'
708707
allocation.save()
709708

710709
// Update epoch

0 commit comments

Comments
 (0)