Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/api/verification/coingecko/[address]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export async function GET(_request: Request, { params: { address } }: Params) {
});

if (!response.ok) {
if (response.status === 404) {
Logger.debug('[api:coingecko] Coin not found by contract address', { address });
} else if (response.status === 429) {
if (response.status === 429) {
Logger.warn('[api:coingecko] Rate limit exceeded', { sentry: true });
} else if (response.status === 404) {
Logger.warn('[api:coingecko] No data found', { address });
} else {
Logger.panic(new Error(`Coingecko contract API error: ${response.status}`));
}
Expand Down
2 changes: 1 addition & 1 deletion app/api/verification/coingecko/__tests__/route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('CoinGecko API Route', () => {
const response = await callRoute(VALID_ADDRESS);
expect(response.status).toBe(404);
expect(await response.json()).toEqual({ error: 'Failed to fetch coingecko data' });
expect(Logger.debug).toHaveBeenCalledWith('[api:coingecko] Coin not found by contract address', {
expect(Logger.warn).toHaveBeenCalledWith('[api:coingecko] No data found', {
address: VALID_ADDRESS,
});
});
Expand Down
6 changes: 2 additions & 4 deletions app/api/verification/jupiter/[mintAddress]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ export async function GET(_request: Request, { params: { mintAddress } }: Params
});

if (!response.ok) {
if (response.status === 404) {
Logger.debug('[api:jupiter] Token not found', { mintAddress });
} else if (response.status === 429) {
if (response.status === 429) {
Logger.warn('[api:jupiter] Rate limit exceeded', { sentry: true });
} else {
} else if (response.status !== 404) {
Logger.panic(new Error(`Jupiter API error: ${response.status}`));
}
return NextResponse.json(
Expand Down
1 change: 0 additions & 1 deletion app/api/verification/rugcheck/[mintAddress]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export async function GET(_request: Request, { params: { mintAddress } }: Params
if (!response.ok) {
const noDataStatus = await getNoDataStatus(response);
if (noDataStatus) {
Logger.debug('[api:rugcheck] No data available', { mintAddress, status: noDataStatus });
return NextResponse.json(
{ error: 'No rugcheck data available' },
{ headers: NO_STORE_HEADERS, status: noDataStatus },
Expand Down
2 changes: 1 addition & 1 deletion bench/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@
| Dynamic | `/tx/[signature]` | 60 kB | 1.53 MB |
| Dynamic | `/tx/[signature]/inspect` | 620 B | 1.29 MB |
| Static | `/tx/inspector` | 630 B | 1.29 MB |
| Static | `/verified-programs` | 10 kB | 180 kB |
| Static | `/verified-programs` | 10 kB | 180 kB |
Loading