Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
awojciak committed Nov 16, 2023
1 parent 30db3c5 commit 2e2eeea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/store/sagas/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function* getStats(): Generator {
}

const tokensDataObject: Record<string, TokenStatsData> = {}
const poolsData: PoolStatsData[] = []
let poolsData: PoolStatsData[] = []

const volumeForTimestamps: Record<string, number> = {}
const liquidityForTimestamps: Record<string, number> = {}
Expand Down Expand Up @@ -204,6 +204,10 @@ export function* getStats(): Generator {
}))
.sort((a, b) => a.timestamp - b.timestamp)

const tiersToOmit = [0.001, 0.003]

poolsData = poolsData.filter(pool => !tiersToOmit.includes(pool.fee))

volume24.value = volumePlot.length ? volumePlot[volumePlot.length - 1].value : 0
tvl24.value = liquidityPlot.length ? liquidityPlot[liquidityPlot.length - 1].value : 0
fees24.value = feePlot.length ? feePlot[feePlot.length - 1].value : 0
Expand Down

0 comments on commit 2e2eeea

Please sign in to comment.