Skip to content

Commit

Permalink
bug: fix aggregate stats not displaying because of USDC (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
cronokirby authored Jan 22, 2025
1 parent ac79d51 commit 1a7a7ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/api/server/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const getStats = async (): Promise<Serialized<StatsResponse>> => {
const chainId = getClientSideEnv().PENUMBRA_CHAIN_ID;
const registryClient = new ChainRegistryClient();
const registry = await registryClient.remote.get(chainId);
const usdcMetadata = getStablecoins(registry.getAllAssets(), 'usdc').usdc;
const usdcMetadata = getStablecoins(registry.getAllAssets(), 'USDC').usdc;
if (!usdcMetadata) {
return { error: 'USDC not found in registry' };
}
Expand Down

0 comments on commit 1a7a7ee

Please sign in to comment.