Skip to content

Commit

Permalink
Simplify Connect Wallet Button as prep for Coinbase Smart Wallet (#862)
Browse files Browse the repository at this point in the history
* Simplify Connect Wallet Button as prep for Coinbase Smart Wallet

* Temp re-enable WalletConnect modal

* Fix queryClient scoping
  • Loading branch information
haydenshively authored May 20, 2024
1 parent fb33e89 commit fc17464
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 274 deletions.
3 changes: 2 additions & 1 deletion earn/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import AccountBlockedModal from 'shared/lib/components/common/AccountBlockedModa
import Footer from 'shared/lib/components/common/Footer';
import { Text } from 'shared/lib/components/common/Typography';
import { wagmiConfig } from 'shared/lib/components/WagmiConfig';
import { AccountRiskResult, screenAddress } from 'shared/lib/data/AccountRisk';
import { AccountRiskResult } from 'shared/lib/data/AccountRisk';
import { screenAddress } from 'shared/lib/data/AccountRisk';
import { PRIVACY_POLICY_URL, TERMS_OF_SERVICE_URL } from 'shared/lib/data/constants/Values';
import { fetchGeoFencing, GeoFencingInfo } from 'shared/lib/data/GeoFencing';
import { AccountRiskContext } from 'shared/lib/data/hooks/UseAccountRisk';
Expand Down
22 changes: 13 additions & 9 deletions shared/src/components/WagmiConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,31 @@ transports[scroll.id].push(
http('https://1rpc.io/scroll')
);

const projectId = process.env.REACT_APP_WALLET_CONNECT_PROJECT_ID!;
const metadata = {
name: 'Aloe',
description: 'Permissionless lending built on Uniswap',
url: 'https://aloe.capital',
icons: ['https://avatars.githubusercontent.com/u/82793388'],
};

export const wagmiConfig = createConfig({
chains: ALL_CHAINS,
connectors: [
injected({ shimDisconnect: true }),
walletConnect({
projectId: process.env.REACT_APP_WALLET_CONNECT_PROJECT_ID!,
projectId,
metadata,
showQrModal: true,
qrModalOptions: {
themeMode: 'dark',
termsOfServiceUrl: 'https://aloe.capital/legal/terms-of-service',
},
showQrModal: true,
metadata: {
name: 'Aloe',
description: 'Permissionless lending built on Uniswap',
url: 'https://app.aloe.capital',
icons: [],
},
}),
coinbaseWallet({
appName: 'Aloe',
appName: metadata.name,
// appLogoUrl: // TODO: do better than favicon
// appChainIds: [mainnet.id, optimism.id, arbitrum.id, base.id],
darkMode: true,
}),
safe(),
Expand Down
58 changes: 0 additions & 58 deletions shared/src/components/common/WelcomeModal.tsx

This file was deleted.

Loading

0 comments on commit fc17464

Please sign in to comment.