Skip to content

Commit

Permalink
fix: wrong contract call in stakeSlashed
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmardefago committed Aug 22, 2023
1 parent 294c190 commit ae9a479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mappings/staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function handleStakeSlashed(event: StakeSlashed): void {
// We need to call into stakes mapping, because locked tokens might have been
// decremented, and this is not released in the event
// To fix this we would need to indicate in the event how many locked tokens were released
let staking = StakingExtension.bind(event.address)
let staking = Staking.bind(event.address)
let indexerStored = staking.stakes(event.params.indexer)
indexer.lockedTokens = indexerStored.tokensLocked
indexer = updateAdvancedIndexerMetrics(indexer as Indexer)
Expand Down

0 comments on commit ae9a479

Please sign in to comment.