Skip to content

likecollective-indexer: fix invalid number_of_stakers in materialized…#277

Open
williamchong wants to merge 1 commit intolikecoin:mainfrom
williamchong:main
Open

likecollective-indexer: fix invalid number_of_stakers in materialized…#277
williamchong wants to merge 1 commit intolikecoin:mainfrom
williamchong:main

Conversation

@williamchong
Copy link
Member

… view

Fixes: #272

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the number_of_stakers calculation within three TimescaleDB continuous aggregate materialized views. The issue was that the views were incorrectly counting distinct NFT class addresses instead of distinct staker account addresses, resulting in an inaccurate count of stakers.

Key Changes

  • Corrected the number_of_stakers aggregation to count distinct account_evm_address instead of nft_class_address across all three time bucket intervals (7-day, 30-day, and 1-year)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

likecollective-indexer: number_of_stakers is always 1 in /delta which is wrong

2 participants