Skip to content

Commit

Permalink
delegator is recipient of tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNoepel committed Dec 19, 2023
1 parent 9d00f9f commit 7b256be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mappings/ajna-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function handleDelegateVotesChanged(
let entity = new DelegateVotesChanged(
event.transaction.hash.concatI32(event.logIndex.toI32())
)
entity.delegator = event.transaction.from
entity.delegator = event.transaction.to!
entity.delegate = event.params.delegate
entity.previousBalance = wadToDecimal(event.params.previousBalance)
entity.newBalance = wadToDecimal(event.params.newBalance)
Expand Down

0 comments on commit 7b256be

Please sign in to comment.