Skip to content

Commit

Permalink
fix(metamorpho): skip 0 value transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-devatom committed May 22, 2024
1 parent 57da53b commit 56c4d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/meta-morpho.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,8 @@ export function handleTransfer(event: TransferEvent): void {
updateMMRate(event.address);
if (
event.params.from.equals(Address.zero()) ||
event.params.to.equals(Address.zero())
event.params.to.equals(Address.zero()) ||
event.params.value.isZero()
) {
// mint / burn transfer
return;
Expand Down

0 comments on commit 56c4d43

Please sign in to comment.