export const getEthChainInfo = ( ) => { let chainId = 4 ; let rpcUrl = 'https://rinkeby.infura.io/' ; let ethscanType = 'rinkeby.' ; const href = window . location . href ; if ( /\/\/farm.lto.network/ . test ( href ) ) { chainId = 1 ; rpcUrl = 'https://mainnet.eth.aragon.network/' ; ethscanType = '' ; } return { chainId , rpcUrl , ethscanType } ; } ;