Skip to content

Commit

Permalink
fix pika
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Apr 13, 2024
1 parent 27a1c72 commit e3c906d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dexs/pika-protocol/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e3c906d

Please sign in to comment.