From cc0343de9a176893f5df97f0f482a9e4f7b2e137 Mon Sep 17 00:00:00 2001 From: Matthias Seidl Date: Tue, 10 Dec 2024 11:25:01 +0100 Subject: [PATCH] use aa_last7d instead of daa, use fundamentals instead of fundamentals_full --- src/lib/api/fetchGrowThePie.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/api/fetchGrowThePie.ts b/src/lib/api/fetchGrowThePie.ts index ca99bbf9adf..cace7ec460d 100644 --- a/src/lib/api/fetchGrowThePie.ts +++ b/src/lib/api/fetchGrowThePie.ts @@ -11,12 +11,12 @@ const TXCOSTS_MEDIAN_USD = "txcosts_median_usd" const TXCOUNT = "txcount" export const fetchGrowThePie = async (): Promise => { - const url = "https://api.growthepie.xyz/v1/fundamentals_full.json" + const url = "https://api.growthepie.xyz/v1/fundamentals.json" const response = await fetch(url) if (!response.ok) { console.log(response.status, response.statusText) - throw new Error("Failed to fetch GrowThePie data") + throw new Error("Failed to fetch growthepie data") } const data: DataItem[] = await response.json() @@ -27,7 +27,7 @@ export const fetchGrowThePie = async (): Promise => { const activeAddresses = data .filter((item) => item.date === mostRecentDate) - .filter((item) => item.metric_key === "daa") + .filter((item) => item.metric_key === "aa_last7d") .reduce((acc, item) => { return { ...acc,