UNPKG

@lido-sdk/constants

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 (11 loc) 423 B
import invariant from 'tiny-invariant'; import { CHAINS } from './chains.js'; const AGGREGATOR_BY_NETWORK = { [CHAINS.Mainnet]: '0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419', }; const getAggregatorAddress = (chainId) => { const address = AGGREGATOR_BY_NETWORK[chainId]; invariant(address != null, 'Chain is not supported'); return address; }; export { AGGREGATOR_BY_NETWORK, getAggregatorAddress };