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

APY async requests make page laggy #13

Open
EdwardMan917 opened this issue Jan 4, 2022 · 0 comments
Open

APY async requests make page laggy #13

EdwardMan917 opened this issue Jan 4, 2022 · 0 comments

Comments

@EdwardMan917
Copy link
Owner

Problem:
Each pool requires a number of async call to contract to get data for APY calculation. Frontend resources get eaten up every time the APYs are being updated.

Proposals:

  1. Store constant value from contract to redux to avoid unnecessary updates. Eg Cakes Per Block from Pancake master chef contract.
  2. A lean backend to update and aggregate APYs regularly. The DApp get only a list of APYs via the api call. (Restful or WebSocket).
  3. Contract provides APY.
@EdwardMan917 EdwardMan917 changed the title APY async requests makes page laggy APY async requests make page laggy Jan 4, 2022
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

No branches or pull requests

1 participant