Skip to content

Commit cc0343d

Browse files
authored
use aa_last7d instead of daa, use fundamentals instead of fundamentals_full
1 parent 31660ce commit cc0343d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/api/fetchGrowThePie.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ const TXCOSTS_MEDIAN_USD = "txcosts_median_usd"
1111
const TXCOUNT = "txcount"
1212

1313
export const fetchGrowThePie = async (): Promise<GrowThePieData> => {
14-
const url = "https://api.growthepie.xyz/v1/fundamentals_full.json"
14+
const url = "https://api.growthepie.xyz/v1/fundamentals.json"
1515

1616
const response = await fetch(url)
1717
if (!response.ok) {
1818
console.log(response.status, response.statusText)
19-
throw new Error("Failed to fetch GrowThePie data")
19+
throw new Error("Failed to fetch growthepie data")
2020
}
2121
const data: DataItem[] = await response.json()
2222

@@ -27,7 +27,7 @@ export const fetchGrowThePie = async (): Promise<GrowThePieData> => {
2727

2828
const activeAddresses = data
2929
.filter((item) => item.date === mostRecentDate)
30-
.filter((item) => item.metric_key === "daa")
30+
.filter((item) => item.metric_key === "aa_last7d")
3131
.reduce((acc, item) => {
3232
return {
3333
...acc,

0 commit comments

Comments
 (0)