2c399a2f16
* feat: lend/withdraw functionality * feat: addressed to pr discussions * rename: data hook members
11 lines
296 B
TypeScript
11 lines
296 B
TypeScript
import useSWR from 'swr'
|
|
|
|
import getWalletBalances from 'api/wallets/getWalletBalances'
|
|
|
|
export default function useWalletBalances(address?: string) {
|
|
return useSWR(`walletBalances${address}`, () => getWalletBalances(address || ''), {
|
|
isPaused: () => !address,
|
|
fallbackData: [],
|
|
})
|
|
}
|