Skip to content

Obtaining Farms is dependent on Backend Server #304

Description

@RitzyDevBox

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions