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

14 lines (9 loc) 347 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var constants = require('@lido-sdk/constants'); var useSDK = require('./useSDK.js'); const useTokenAddress = (token) => { const { chainId } = useSDK.useSDK(); return constants.getTokenAddress(chainId, token); }; exports.useTokenAddress = useTokenAddress;