(url: string)
| 36 | } |
| 37 | |
| 38 | async function getTrending(url: string) { |
| 39 | const res = await fetch(url) |
| 40 | const data = await res.json() |
| 41 | return (data?.pools as PoolInfo[]) || [] |
| 42 | } |
| 43 | |
| 44 | export function useLaunchpadsStats() { |
| 45 | const { data, isLoading, error, mutate } = useSWR<LaunchpadsInfo[]>( |
nothing calls this directly
no outgoing calls
no test coverage detected