Disable some mints

This commit is contained in:
armaniferrante 2021-05-31 21:38:25 -07:00
parent 958cf5df7a
commit 73c0e95018
No known key found for this signature in database
GPG Key ID: 58BEF301E91F7828
2 changed files with 6 additions and 2 deletions

View File

@ -30,6 +30,8 @@ import Tab from '@material-ui/core/Tab';
import { DialogContentText, Tooltip } from '@material-ui/core'; import { DialogContentText, Tooltip } from '@material-ui/core';
import { EthFeeEstimate } from './EthFeeEstimate'; import { EthFeeEstimate } from './EthFeeEstimate';
const DISABLED_MINTS = new Set(['ABE7D8RU1eHfCJWzHYZZeymeE8k9nPPXfqge2NQYyKoL']);
export default function DepositDialog({ export default function DepositDialog({
open, open,
onClose, onClose,
@ -63,7 +65,8 @@ export default function DepositDialog({
indicatorColor="primary" indicatorColor="primary"
> >
<Tab label={firstTab} /> <Tab label={firstTab} />
<Tab label={secondTab} /> {(!DISABLED_MINTS.has(mint.toString()) ||
localStorage.getItem('sollet-private')) && <Tab label={secondTab} />}
</Tabs> </Tabs>
); );
} }

View File

@ -48,7 +48,8 @@ const WUSDT_MINT = new PublicKey(
const USDT_MINT = new PublicKey('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB'); const USDT_MINT = new PublicKey('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB');
const DISABLED_ERC20_MINTS = new Set([ const DISABLED_ERC20_MINTS = new Set([
'kinXdEcpDQeHPEuQnqmUgtYykqKGVFq6CeVX5iAHJq6' 'kinXdEcpDQeHPEuQnqmUgtYykqKGVFq6CeVX5iAHJq6',
'ABE7D8RU1eHfCJWzHYZZeymeE8k9nPPXfqge2NQYyKoL',
]) ])
export default function SendDialog({ open, onClose, publicKey, balanceInfo }) { export default function SendDialog({ open, onClose, publicKey, balanceInfo }) {