d2afe06b16
* ♻️ 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>
12 lines
327 B
TypeScript
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,
|
|
})
|
|
}
|