Skip to content

Commit

Permalink
fix: do not update allocation status when collecting rebates
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone authored and juanmardefago committed Apr 15, 2024
1 parent bc8264f commit 7247a4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/mappings/staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,6 @@ export function handleRebateCollected(event: RebateCollected): void {
allocation.queryFeeRebates = event.params.queryRebates
allocation.distributedRebates = allocation.distributedRebates.plus(event.params.queryRebates)
allocation.delegationFees = event.params.delegationRewards
allocation.status = 'Closed'
allocation.save()

// Update epoch
Expand Down

0 comments on commit 7247a4c

Please sign in to comment.