diff --git a/src/components/DepositDialog.js b/src/components/DepositDialog.js index 5c814ea..b8ac544 100644 --- a/src/components/DepositDialog.js +++ b/src/components/DepositDialog.js @@ -45,6 +45,11 @@ export default function DepositDialog({ const { mint, tokenName, tokenSymbol, owner } = balanceInfo; const [tab, setTab] = useState(0); + // SwapInfos to ignore. + if (swapInfo && swapInfo.coin && swapInfo.coin.erc20Contract === '0x2b2e04bf86978b45bb2edf54aca876973bdd43c0') { + swapInfo = null; + } + let tabs = null; if (swapInfo) { let firstTab = `SPL ${tokenSymbol ?? swapInfo.coin.ticker}`; diff --git a/src/components/SendDialog.js b/src/components/SendDialog.js index ca3e06f..220d020 100644 --- a/src/components/SendDialog.js +++ b/src/components/SendDialog.js @@ -58,13 +58,18 @@ export default function SendDialog({ open, onClose, publicKey, balanceInfo }) { const [tab, setTab] = useState('spl'); const onSubmitRef = useRef(); - const [swapCoinInfo] = useSwapApiGet( + let [swapCoinInfo] = useSwapApiGet( showSwapAddress && balanceInfo.mint && isProdNetwork ? `coins/sol/${balanceInfo.mint.toBase58()}` : null, ); - const ethAccount = useEthAccount(); + // SwapInfos to ignore. + if (swapCoinInfo && swapCoinInfo.erc20Contract === '0x2b2e04bf86978b45bb2edf54aca876973bdd43c0') { + swapCoinInfo = null; + } + + const ethAccount = useEthAccount(); const { mint, tokenName, tokenSymbol } = balanceInfo; const getTabs = (mint) => {