diff --git a/dexs/pika-protocol/index.ts b/dexs/pika-protocol/index.ts index 670c1f9279..51cc6f48c1 100644 --- a/dexs/pika-protocol/index.ts +++ b/dexs/pika-protocol/index.ts @@ -45,8 +45,8 @@ const fetch = (chain: Chain) => { `; const res: IValume = (await request(endpoints[chain], graphQuery)); - const dailyVolume = Number(res.vaultDayData.cumulativeVolume) / 10 ** 8; - const totalVolume = Number(res.vaults[0].cumulativeVolume) / 10 ** 8; + const dailyVolume = Number(res.vaultDayData?.cumulativeVolume || 0) / 10 ** 8; + const totalVolume = Number(res.vaults[0]?.cumulativeVolume || 0) / 10 ** 8; return { timestamp,