mars-v2-frontend/src/hooks/useHLSStakingAssets.ts
Bob van der Helm 5392a4717c
Mp 3245 usehlsvaults hook (#541)
*  routing and pages for HLS

*  create hooks for fetching HLS vaults and Strategies

* Share accounts (#539)

* feat: do not redirect to wallet on portfolio page

* fix: use connected wallet for AccountMenu

* fix: fixed ghost AccountDetails

* feat: created ShareBar and share functionality

* fix: don’t show shareBar if no address is present

* fix: stupid 'next/navigation'

* tidy: format

* fix: fixed tests

*  routing and pages for HLS (#538)

* 🐛 use useAccountIds

* fix: fixed the tests

* fix: accountIds is now a suspense

---------

Co-authored-by: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>

* 🐛 fix build

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-10-16 10:45:57 +02:00

11 lines
250 B
TypeScript

import useSWR from 'swr'
import getHLSStakingAssets from 'api/hls/getHLSStakingAssets'
export default function useHLSStakingAssets() {
return useSWR('hls-staking', getHLSStakingAssets, {
fallbackData: [],
revalidateOnFocus: false,
})
}