0325e311cb
* 🔧 Small fixes * ✨ Deposit into HLS Vault + Groudnwork for HLS Staking * Adjusted according to feedback * Adjusted according to feedback
10 lines
235 B
TypeScript
10 lines
235 B
TypeScript
import useVaults from 'hooks/useVaults'
|
|
|
|
export default function useVault(address: string) {
|
|
const { data: vaults } = useVaults(false)
|
|
|
|
if (!vaults?.length) return null
|
|
|
|
return vaults.find((v) => v.address === address) ?? null
|
|
}
|