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

Obtaining Farms is dependent on Backend Server #304

Open
RitzyDevBox opened this issue Sep 10, 2022 · 0 comments
Open

Obtaining Farms is dependent on Backend Server #304

RitzyDevBox opened this issue Sep 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@RitzyDevBox
Copy link
Contributor

The async function fetchEternalFarms(reload: boolean) is dependent on backend server to return. This is causing laggy response time, since, we call await internally.

  const aprs = await fetchEternalFarmAPR();
  const tvls = await fetchEternalFarmTVL();

As temporary mediation I've disabled the APR and TVL.
This should be abstracted to an external call.

So that.

  1. Response from subgraph is independent of backend server
  2. We can obtain the farms data first then attach the dependent metadata
@RitzyDevBox RitzyDevBox added the bug Something isn't working label Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant