Skip to content

Commit

Permalink
feat: ignore zero price sales (decentraland#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala authored Nov 9, 2021
1 parent 2c29893 commit 6e2501c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions indexer/src/modules/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export function trackSale(
timestamp: BigInt,
txHash: Bytes
): void {
// ignore zero price sales
if (price.isZero()) {
return
}

// count sale
let count = buildCountFromSale(price)
count.save()
Expand Down

0 comments on commit 6e2501c

Please sign in to comment.