File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export async function GET(req: NextRequest) {
30
30
? ( carryCosts [ formattedSymbol ] ?? null )
31
31
: null
32
32
33
- const headesrList = await headers ( )
33
+ const headersList = await headers ( )
34
34
const host = headersList . get ( 'host' )
35
35
const metrics = await fetchTokenMetrics ( {
36
36
hostname :
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export type IndexDataPeriod =
31
31
export type IndexDataInterval = 'latest' | 'minute' | 'hour' | 'daily'
32
32
33
33
type FormatUrlArgs = {
34
- hostname : string
34
+ hostname ? : string
35
35
chainId : number
36
36
tokenAddress : string
37
37
metrics ?: IndexDataMetric [ ]
@@ -40,7 +40,7 @@ type FormatUrlArgs = {
40
40
}
41
41
42
42
function formatUrl ( {
43
- hostname,
43
+ hostname = '' ,
44
44
chainId,
45
45
tokenAddress,
46
46
metrics = [ ] ,
@@ -59,7 +59,7 @@ function formatUrl({
59
59
}
60
60
61
61
export async function fetchTokenMetrics ( {
62
- hostname = '' ,
62
+ hostname,
63
63
chainId,
64
64
tokenAddress,
65
65
metrics,
You can’t perform that action at this time.
0 commit comments