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.
- Response from subgraph is independent of backend server
- We can obtain the farms data first then attach the dependent metadata
The
async function fetchEternalFarms(reload: boolean)is dependent on backend server to return. This is causing laggy response time, since, we call await internally.As temporary mediation I've disabled the APR and TVL.
This should be abstracted to an external call.
So that.