mars-v2-frontend/src/hooks/useVault.tsx
Bob van der Helm 0325e311cb
Mp 3360 create vault position (#607)
* 🔧 Small fixes

*  Deposit into HLS Vault + Groudnwork for HLS Staking

* Adjusted according to feedback

* Adjusted according to feedback
2023-11-02 10:40:34 +01:00

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
}