Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Use settings key to sync reward snapshots #297

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

gowthamsundaresan
Copy link
Collaborator

  • In seedStakerRewardSnapshots now we use a key on the Settings table to store the last synced timestamp. Previously, we incorrectly assumed that all snapshots would have the same date and just made a prisma call to the StakerRewardSnapshot table to find the latest timestamp. However, the table actually stores the latest timestamp for a given record rather than the latest timestamp of the snapshot requested from the EL bucket.

  • Additionally, a minor optimization is made to the AVS APY monitor prisma call to consider only those AVSs that have reward submissions

@uditdc uditdc merged commit 2ec4386 into dev Dec 12, 2024
1 check passed
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.

2 participants