Skip to content

Commit

Permalink
Revert "✨ Add: token owner before burn address (compound-finance#13)" (
Browse files Browse the repository at this point in the history
…compound-finance#14)

This reverts commit 5dec587.
  • Loading branch information
jm42 authored Jul 7, 2022
1 parent 5dec587 commit ba94adb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ type Token @entity
transferCount: BigInt!
created: BigInt!
mintOrder: BigInt
# The last account to hold the token before being burned.
ownerBeforeBurn: Account
}

type Account @entity
Expand Down
3 changes: 0 additions & 3 deletions src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ export function handleTransfer(ev: TransferEvent): void {
token.transferCount = BigInt.fromI32(0);
token.created = ev.block.timestamp
}
if (to.id == ZERO_ADDRESS) {
token.ownerBeforeBurn = from.id;
}
token.owner = to.id;
token.transferCount += BigInt.fromI32(1);
token.save();
Expand Down

0 comments on commit ba94adb

Please sign in to comment.