Skip to content

Commit

Permalink
Merge pull request DefiLlama#1224 from bryansniyve/master
Browse files Browse the repository at this point in the history
fix: bug of refactor by g1nt0ki's commit:a3f11f17ae37eec8dfaac440be2f5117a410bbef
  • Loading branch information
dtmkeng authored Feb 19, 2024
2 parents 36941ae + 1f1aaa1 commit 0e06da8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dexs/apollox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ const v2VolumeAPI =
const v1VolumeAPI = "https://www.apollox.finance/fapi/v1/ticker/24hr";

const fetchV2Volume = async (chain: Chain) => {
const data = [] = (
const { data = [] } = (
await httpGet(v2VolumeAPI, { params: { chain, excludeCake: true } })
) as ResponseItem[]

) as { data: ResponseItem[] }
const dailyVolume = data.reduce((p, c) => p + +c.qutoVol, 0);

return dailyVolume
Expand Down

0 comments on commit 0e06da8

Please sign in to comment.