Skip to content

Commit

Permalink
fix: edit farmings query from all to active
Browse files Browse the repository at this point in the history
  • Loading branch information
damnnou committed Apr 25, 2024
1 parent 27ad3c6 commit 8a9829b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/pools/PoolsList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { poolsColumns } from "@/components/common/Table/poolsColumns";
import { useAllFarmingsQuery, usePoolsListQuery, usePoolsVolumeDataQuery } from "@/graphql/generated/graphql";
import { useActiveFarmingsQuery, usePoolsListQuery, usePoolsVolumeDataQuery } from "@/graphql/generated/graphql";
import { useMemo } from "react";
import { Address } from "viem";
import { POOL_AVG_APR_API, POOL_MAX_APR_API, fetcher } from "@/constants/api";
Expand All @@ -16,7 +16,7 @@ const PoolsList = () => {
const { data: poolsMaxApr, isLoading: isPoolsMaxAprLoading } = useSWR(POOL_MAX_APR_API, fetcher);
const { data: poolsAvgApr, isLoading: isPoolsAvgAprLoading } = useSWR(POOL_AVG_APR_API, fetcher);

const { data: activeFarmings, loading: isFarmingsLoading } = useAllFarmingsQuery({
const { data: activeFarmings, loading: isFarmingsLoading } = useActiveFarmingsQuery({
client: farmingClient
})

Expand Down
6 changes: 3 additions & 3 deletions src/graphql/queries/farmings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export const DEPOSITS = gql`
}
`;

export const ALL_FARMINGS = gql`
query AllFarmings {
eternalFarmings {
export const ACTIVE_FARMINGS = gql`
query ActiveFarmings {
eternalFarmings(where: {isDeactivated: false}) {
pool
}
}
Expand Down

0 comments on commit 8a9829b

Please sign in to comment.