diff --git a/liquidity/lib/useRewards/useRewards.ts b/liquidity/lib/useRewards/useRewards.ts index 33e3684a3..5d3f3e369 100644 --- a/liquidity/lib/useRewards/useRewards.ts +++ b/liquidity/lib/useRewards/useRewards.ts @@ -68,9 +68,7 @@ export function useRewards( const { data: CoreProxy } = useCoreProxy(customNetwork); return useQuery({ - enabled: Boolean( - CoreProxy && Multicall3 && distributors && poolId && collateralAddress && accountId - ), + enabled: Boolean(CoreProxy && Multicall3 && distributors && poolId && accountId), queryKey: [ `${targetNetwork?.id}-${targetNetwork?.preset}`, 'Rewards', @@ -79,14 +77,7 @@ export function useRewards( { distributors: distributors?.map(({ id }) => id).sort() }, ], queryFn: async () => { - if ( - !Multicall3 || - !CoreProxy || - !poolId || - !collateralAddress || - !accountId || - !distributors - ) { + if (!Multicall3 || !CoreProxy || !poolId || !accountId || !distributors) { throw 'useRewards is missing required data'; } diff --git a/liquidity/ui/src/pages/Pool.tsx b/liquidity/ui/src/pages/Pool.tsx index 350ae251d..cd4250723 100644 --- a/liquidity/ui/src/pages/Pool.tsx +++ b/liquidity/ui/src/pages/Pool.tsx @@ -19,15 +19,12 @@ export const Pool = () => { .flat() ?.filter((item, pos, self) => self.findIndex((d) => d.id === item.id) === pos); - const collateralTypes = poolInfo?.map((info) => info.collateral_type); - const network = NETWORKS.find((n) => n.id === Number(networkId)); const { isLoading: isRewardsLoading, data: rewardsData } = useRewards( registeredDistributors, poolId, - // TODO: Update this to support other collateral types - collateralTypes?.[0]?.id, + undefined, accountId || '69', network );