File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ const TXCOSTS_MEDIAN_USD = "txcosts_median_usd"
11
11
const TXCOUNT = "txcount"
12
12
13
13
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"
15
15
16
16
const response = await fetch ( url )
17
17
if ( ! response . ok ) {
18
18
console . log ( response . status , response . statusText )
19
- throw new Error ( "Failed to fetch GrowThePie data" )
19
+ throw new Error ( "Failed to fetch growthepie data" )
20
20
}
21
21
const data : DataItem [ ] = await response . json ( )
22
22
@@ -27,7 +27,7 @@ export const fetchGrowThePie = async (): Promise<GrowThePieData> => {
27
27
28
28
const activeAddresses = data
29
29
. filter ( ( item ) => item . date === mostRecentDate )
30
- . filter ( ( item ) => item . metric_key === "daa " )
30
+ . filter ( ( item ) => item . metric_key === "aa_last7d " )
31
31
. reduce ( ( acc , item ) => {
32
32
return {
33
33
...acc ,
You can’t perform that action at this time.
0 commit comments