Skip to content

Commit

Permalink
disbale wallet connect (#114)
Browse files Browse the repository at this point in the history
* disbale wallet connect

* clean up
  • Loading branch information
fritzschoff authored Dec 14, 2023
1 parent a15c005 commit 53f7b62
Show file tree
Hide file tree
Showing 94 changed files with 23 additions and 963 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/lit-npm-2.8.0-92bb1333a4-aa64c1136b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion liquidity/lib/useBlockchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"@snx-v3/icons": "workspace:*",
"@web3-onboard/core": "^2.21.2",
"@web3-onboard/injected-wallets": "^2.10.9",
"@web3-onboard/walletconnect": "^2.5.0",
"ethers": "^5.7.2",
"react": "^18.2.0"
}
Expand Down
19 changes: 11 additions & 8 deletions liquidity/lib/useBlockchain/useBlockchain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BaseIcon, EthereumIcon, FailedIcon, LogoIcon, OptimismIcon } from '@snx
import { INFURA_KEY, ONBOARD_KEY } from '@snx-v3/constants';
import onboardInit, { AppState, WalletState } from '@web3-onboard/core';
import injectedModule from '@web3-onboard/injected-wallets';
import walletConnectModule from '@web3-onboard/walletconnect';
// import walletConnectModule from '@web3-onboard/walletconnect';
import SynthetixIcon from './SynthetixIcon.svg';
import SynthetixLogo from './SynthetixLogo.svg';

Expand Down Expand Up @@ -167,13 +167,16 @@ export const DEFAULT_NETWORK =
) ?? NETWORK_OPTIMISM;

const injected = injectedModule();
const walletConnect = walletConnectModule({
version: 2,
projectId: `${process.env.NEXT_PUBLIC_WC_PROJECT_ID}`,
requiredChains: [1, 10],
});

const wallets = [injected, walletConnect];
// const walletConnect = walletConnectModule({
// version: 2,
// projectId: `${process.env.NEXT_PUBLIC_WC_PROJECT_ID}`,
// requiredChains: [1, 10],
// });

const wallets = [
injected,
// walletConnect
];

const uniqueChains: Network[] = Object.values(
NETWORKS.reduce((result, network) => {
Expand Down
Loading

0 comments on commit 53f7b62

Please sign in to comment.