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

[frontend] Try to fix API #339

Merged
merged 24 commits into from
Jan 26, 2024
Merged

[frontend] Try to fix API #339

merged 24 commits into from
Jan 26, 2024

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Jan 25, 2024

The large volume of new stake accounts has broken the API for the total number of locked tokens.
The goals of this PR are :

  • refactor a bunch of functions used in the APIs into api_utils.ts
  • create a new implementation of getAllStakeAccounts that is more efficient

It still don't works but I think it's in a reviewable state

Copy link

vercel bot commented Jan 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 26, 2024 6:59pm
staking-devnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 26, 2024 6:59pm

},
"pages/api/v1/cmc/supply.ts": {
"maxDuration": 30
},
"pages/api/internal/create_ephemeral_account.ts": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one doesn't exist anymore

This reverts commit 26aa610.
],
},
})
return response.data.result.map((x: any) => new PublicKey(x.pubkey))
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a way to paginate the response ? that could be a good fix.

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