44} from '@walletconnect/ethereum-provider/dist/types/EthereumProvider' ;
55import { AbstractConnector } from '@web3-react/abstract-connector' ;
66import { ConnectorUpdate } from '@web3-react/types' ;
7- import { getNetworkConfig , getSupportedChainIds } from 'src/utils/marketsAndNetworksConfig' ;
7+ import { getSupportedChainIds } from 'src/utils/marketsAndNetworksConfig' ;
88import invariant from 'tiny-invariant' ;
99
1010export const URI_AVAILABLE = 'URI_AVAILABLE' ;
@@ -27,18 +27,17 @@ export class WalletConnectConnector extends AbstractConnector {
2727
2828 const supportedChainIds = getSupportedChainIds ( ) ;
2929
30- const rpcMap = supportedChainIds . reduce ( ( acc , network ) => {
31- const config = getNetworkConfig ( network ) ;
32- acc [ network ] = config . privateJsonRPCUrl || config . publicJsonRPCUrl [ 0 ] ;
33- return acc ;
34- } , { } as { [ networkId : number ] : string } ) ;
35-
3630 this . config = {
3731 chains : [ defaultChainId ] ,
3832 optionalChains : supportedChainIds ,
39- rpcMap,
4033 projectId : process . env . NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID ,
4134 showQrModal : true ,
35+ metadata : {
36+ name : 'Aave' ,
37+ description : 'Non-custodial liquidity protocol' ,
38+ url : 'https://app.aave.com' ,
39+ icons : [ 'https://avatars.githubusercontent.com/u/47617460?s=200&v=4' ] ,
40+ } ,
4241 } ;
4342
4443 this . handleChainChanged = this . handleChainChanged . bind ( this ) ;
0 commit comments