Skip to content

Commit

Permalink
Remove irrelevant and broken TokenWarnings component (wormhole-founda…
Browse files Browse the repository at this point in the history
…tion#2629)

The SDK handles ATA creation and foreign asset checking.
Connect prevents users from receiving frankenstein USDC.
Therefore the TokenWarnings component is not needed anymore.
It was an artifact from V1 that was never removed.

Fixes XLabs/portal-bridge-ui#1088
  • Loading branch information
kev1n-peters committed Sep 17, 2024
1 parent 5085808 commit ffa196a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 346 deletions.
344 changes: 0 additions & 344 deletions wormhole-connect/src/views/v2/Bridge/AssetPicker/TokenWarnings.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions wormhole-connect/src/views/v2/Bridge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { isTransferValid, useValidate } from 'utils/transferValidation';
import { TransferWallet, useConnectToLastUsedWallet } from 'utils/wallet';
import WalletConnector from 'views/v2/Bridge/WalletConnector';
import AssetPicker from 'views/v2/Bridge/AssetPicker';
import TokenWarnings from 'views/v2/Bridge/AssetPicker/TokenWarnings';
import WalletController from 'views/v2/Bridge/WalletConnector/Controller';
import AmountInput from 'views/v2/Bridge/AmountInput';
import Routes from 'views/v2/Bridge/Routes';
Expand Down Expand Up @@ -435,7 +434,6 @@ const Bridge = () => {
{bridgeHeader}
{sourceAssetPicker}
{destAssetPicker}
<TokenWarnings />
<AmountInput
supportedSourceTokens={supportedSourceTokens}
error={amountValidation.error}
Expand Down

0 comments on commit ffa196a

Please sign in to comment.