Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { atomWithStorage } from 'jotai/utils'
import { CONNECTION_PROVIDER_IDS } from 'uniswap/src/constants/web3'

/** Wallets that require separate user consent for EVM vs SVM connections (currently just MetaMask). */
const SEPARATE_PROMPT_WALLET_IDS = new Set<string>([CONNECTION_PROVIDER_IDS.METAMASK_RDNS])
const SEPARATE_PROMPT_WALLET_IDS = new Set<string>([
CONNECTION_PROVIDER_IDS.METAMASK_RDNS,
CONNECTION_PROVIDER_IDS.HINKAL_RDNS,
])

export function getWalletRequiresSeparatePrompt(walletId: string) {
return SEPARATE_PROMPT_WALLET_IDS.has(walletId)
Expand Down
1 change: 1 addition & 0 deletions packages/uniswap/src/constants/web3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const CONNECTION_PROVIDER_IDS = {
BINANCE_WALLET_CONNECTOR_ID: 'wallet.binance.com',
BINANCE_WALLET_RDNS: 'com.binance.wallet',
PORTO_CONNECTOR_ID: 'xyz.ithaca.porto',
HINKAL_RDNS: 'pro.hinkal',
MOCK_CONNECTOR_ID: 'mock',
} as const

Expand Down