Skip to content

Commit

Permalink
filter 0 apr farms
Browse files Browse the repository at this point in the history
  • Loading branch information
vkulinich-cl committed Dec 6, 2024
1 parent 2b8d138 commit 142e850
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sections/pools/PoolsPage.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ export const usePools = () => {
.toFixed(3)
: undefined,
isVolumeLoading: volumes?.isLoading,
farms: farms.filter((farm) => farm.isActive),
allFarms: farms,
farms: farms.filter((farm) => farm.isActive && BN(farm.apr).gt(0)),
allFarms: farms.filter((farm) => BN(farm.apr).gt(0)),
fee,
totalFee,
isFeeLoading,
Expand Down Expand Up @@ -346,8 +346,8 @@ export const useXYKPools = () => {
balance,
isPositions,
totalFee,
farms: farms.filter((farm) => farm.isActive),
allFarms: farms,
farms: farms.filter((farm) => farm.isActive && BN(farm.apr).gt(0)),
allFarms: farms.filter((farm) => BN(farm.apr).gt(0)),
isFeeLoading,
}
})
Expand Down

0 comments on commit 142e850

Please sign in to comment.