From 2e2eeea29ec25b8423bda2ceb2cadb31902c3f67 Mon Sep 17 00:00:00 2001 From: awojciak Date: Thu, 16 Nov 2023 10:25:14 +0100 Subject: [PATCH] done --- src/store/sagas/stats.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/store/sagas/stats.ts b/src/store/sagas/stats.ts index 5700d6e47..9c1619334 100644 --- a/src/store/sagas/stats.ts +++ b/src/store/sagas/stats.ts @@ -80,7 +80,7 @@ export function* getStats(): Generator { } const tokensDataObject: Record = {} - const poolsData: PoolStatsData[] = [] + let poolsData: PoolStatsData[] = [] const volumeForTimestamps: Record = {} const liquidityForTimestamps: Record = {} @@ -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