Skip to content

Commit

Permalink
feat: remove Binance Chain Wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
gleiser-oliveira committed Oct 11, 2023
1 parent 8e8e487 commit 1507f3b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/assets/img/wallets/binanceChainWalletLogo.svg

This file was deleted.

1 change: 0 additions & 1 deletion src/clients/web3/connectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ export const connectorIdByName = {
[Connector.SafePal]: 'injected',
[Connector.RabbyWallet]: 'injected',
[Connector.CoinbaseWallet]: 'coinbaseWallet',
[Connector.BinanceChainWallet]: 'bsc',
[Connector.WalletConnect]: 'walletConnect',
};
1 change: 0 additions & 1 deletion src/clients/web3/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export enum Connector {
WalletConnect = 'WalletConnect',
SafePal = 'SafePal',
CoinbaseWallet = 'CoinbaseWallet',
BinanceChainWallet = 'BinanceChainWallet',
BraveWallet = 'BraveWallet',
InfinityWallet = 'InfinityWallet',
OkxWallet = 'OkxWallet',
Expand Down
6 changes: 6 additions & 0 deletions src/components/AuthModal/WalletList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import Typography from '@mui/material/Typography';
import config from 'config';
import { VError, formatVErrorToReadableString } from 'errors';
import React from 'react';
import { Trans } from 'react-i18next';
import { useTranslation } from 'translation';

import { Connector } from 'clients/web3/types';
import { NoticeInfo } from 'components/Notice';

import { toast } from '../../Toast';
import { INTEGRATED_WALLETS, UPCOMING_WALLETS, WALLETS } from '../constants';
Expand Down Expand Up @@ -37,6 +39,10 @@ export const WalletList: React.FC<WalletListProps> = ({ onLogin }) => {

return (
<div css={styles.container}>
<NoticeInfo
className="mb-4"
description={<Trans i18nKey="authModal.binanceChainWalletMigrationInfo" />}
/>
<div css={styles.walletList}>
{WALLETS.filter(({ mainnetOnly }) => !mainnetOnly || !config.isOnTestnet).map(
({ name, connector, Logo }) => (
Expand Down
6 changes: 0 additions & 6 deletions src/components/AuthModal/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { t } from 'translation';

import { ReactComponent as BinanceChainWalletLogo } from 'assets/img/wallets/binanceChainWalletLogo.svg';
import { ReactComponent as BitKeepLogo } from 'assets/img/wallets/bitKeepLogo.svg';
import { ReactComponent as BraveWalletLogo } from 'assets/img/wallets/braveWalletLogo.svg';
import { ReactComponent as CoinbaseWalletLogo } from 'assets/img/wallets/coinbaseWalletLogo.svg';
Expand Down Expand Up @@ -50,11 +49,6 @@ export const WALLETS: Wallet[] = [
Logo: OkxWalletLogo,
connector: Connector.OkxWallet,
},
{
name: t('wallets.binanceChainWallet'),
Logo: BinanceChainWalletLogo,
connector: Connector.BinanceChainWallet,
},
{
name: t('wallets.braveWallet'),
Logo: BraveWalletLogo,
Expand Down
2 changes: 1 addition & 1 deletion src/translation/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
"accountDetails": {
"logOutButtonLabel": "Log out"
},
"binanceChainWalletMigrationInfo": "The Binance Chain Wallet extension is no longer mantained and is being migrated to Trust Wallet.",
"title": {
"connectWallet": "Connect a wallet",
"yourAccount": "Your account"
Expand Down Expand Up @@ -1070,7 +1071,6 @@
"votes": "Votes"
},
"wallets": {
"binanceChainWallet": "Binance Chain Wallet",
"bitKeep": "BitKeep",
"braveWallet": "Brave Wallet",
"coinbaseWallet": "Coinbase Wallet",
Expand Down

0 comments on commit 1507f3b

Please sign in to comment.