UNPKG

@lido-sdk/react

Version:

This project is being slowly deprecated and may not receive further updates. Check out [modern Lido SDK](https://github.com/lidofinance/lido-ethereum-sdk/pulls) to access latest functionality. It is actively maintained and is built for interacting with Li

10 lines (7 loc) 244 B
import { getTokenAddress } from '@lido-sdk/constants'; import { useSDK } from './useSDK.js'; const useTokenAddress = (token) => { const { chainId } = useSDK(); return getTokenAddress(chainId, token); }; export { useTokenAddress };