Skip to content

Commit

Permalink
Document that mint/burn/balance change events can have amount=0
Browse files Browse the repository at this point in the history
  • Loading branch information
kantp committed Jul 17, 2024
1 parent 1ff2fa7 commit 8a40f6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions documentation/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,7 @@ Note that `MintEvent`, `BurnEvent`, and `BalanceChangeEvent` each signal that th
account changes. The difference is that `MintEvent` and `BurnEvent` are emitted when tokens are
minted/burned, and `BalanceChangeEvent` is emitted when a transaction takes tokens from some
addresses, and sends them to others.

[!NOTE] Note that `MintEvent`, `BurnEvent`, and `BalanceChangeEvent` events can be emitted with
`amount = 0`. If you want to track "true" mintings/burnings/transfers (for example, to maintain a
list of depositors), you will need to filter for non-zero values of `amount`.

0 comments on commit 8a40f6f

Please sign in to comment.