Skip to content

Commit

Permalink
fix: missing activeAllocationCount decrease on cobbs douglas closed allo
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmardefago committed Feb 5, 2024
1 parent c159807 commit 92e13b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mappings/staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ export function handleAllocationClosedCobbDouglas(event: AllocationClosed1): voi
deployment.save()

// update graph network
graphNetwork.activeAllocationCount = graphNetwork.activeAllocationCount - 1
graphNetwork.totalTokensAllocated = graphNetwork.totalTokensAllocated.minus(event.params.tokens)
graphNetwork.save()
}
Expand Down

0 comments on commit 92e13b2

Please sign in to comment.