diff --git a/src/components/common/Tooltip/Apr.tsx b/src/components/common/Tooltip/Apr.tsx
index 86eec93..2d78ae9 100644
--- a/src/components/common/Tooltip/Apr.tsx
+++ b/src/components/common/Tooltip/Apr.tsx
@@ -27,7 +27,7 @@ export const Apr = ({ data }: Props) => {
color: asset.color,
symbol: asset.symbol,
apr: asset.apy,
- subtitle: key === 0 ? t('incentives.depositRewards') : t('incentives.incentiveApr'),
+ subtitle: key === 0 ? t('incentives.interestApr') : t('incentives.depositRewards'),
})
})
return items
diff --git a/src/components/redbank/DepositColumns/useDepositColumns.tsx b/src/components/redbank/DepositColumns/useDepositColumns.tsx
index e3280d9..ef32882 100644
--- a/src/components/redbank/DepositColumns/useDepositColumns.tsx
+++ b/src/components/redbank/DepositColumns/useDepositColumns.tsx
@@ -73,7 +73,7 @@ export const useDepositColumns = () => {
columnHelper.accessor('apy', {
enableSorting: enableSorting,
header: () => (
-
+
),
cell: (info) => (
{
- const hiveUrl = useStore((s) => s.networkConfig?.hiveUrl)
- const whitelistedAssets = useStore((s) => s.whitelistedAssets)
- const redBankAddress = useStore((s) => s.networkConfig?.contracts.redBank) || ''
- const marketInfo = useStore((s) => s.marketInfo)
- const processMarketDepositsQuery = useStore((s) => s.processMarketDepositsQuery)
-
- const { refetch } = useQuery(
- [QUERY_KEYS.MARKET_DEPOSITS],
- async () => {
- return await request(
- hiveUrl!,
- gql`
- ${getMarketDepositsQuery(redBankAddress, whitelistedAssets, marketInfo)}
- `,
- )
- },
- {
- enabled: !!hiveUrl && !!whitelistedAssets.length && !!redBankAddress && !!marketInfo.length,
- refetchInterval: 120000,
- onSuccess: processMarketDepositsQuery,
- },
- )
-
- // ! Workaround:
- // Invalidating this query in RB action somehow resolves to Zustand with outdated marketInfo data
- // It does not retrigger, and therefore a useEffect is placed here to manually rerun when the
- // marketInfo actually updates.
- useEffect(() => {
- if (!marketInfo.length) return
- refetch()
- }, [marketInfo, refetch])
-}