@lifi/wallet-management
Version:
LI.FI Wallet Management solution.
15 lines (13 loc) • 304 B
text/typescript
const walletPriority: Record<string, number> = {
MetaMask: 1,
metaMaskSDK: 1,
'io.metamask': 1,
'io.metamask.mobile': 1,
coinbaseWalletSDK: 2,
'com.coinbase.wallet': 2,
walletConnect: 3,
safe: 4,
}
export const getWalletPriority = (id: string) => {
return walletPriority[id] || 1000
}