mars-v2-frontend/src/hooks/useHLSStakingAccounts.tsx
Bob van der Helm d2afe06b16
Mp 3367 staking interactions (#613)
* ♻️ Refactor borrowRate to be in full numbers

* Enter into HLS Staking strategy

* HLS Staking deposited table + Portfolio pages

* tidy: refactored the masks for HealthBar

---------

Co-authored-by: Linkie Link <linkielink.dev@gmail.com>
2023-11-03 15:01:15 +01:00

12 lines
327 B
TypeScript

import useSWR from 'swr'
import getHLSStakingAccounts from 'api/hls/getHLSStakingAccounts'
export default function useHLSStakingAccounts(address?: string) {
return useSWR(`${address}/hlsStakingAccounts`, () => getHLSStakingAccounts(address), {
fallbackData: [],
suspense: true,
revalidateOnFocus: false,
})
}