Disable some mints
This commit is contained in:
parent
958cf5df7a
commit
73c0e95018
|
@ -30,6 +30,8 @@ import Tab from '@material-ui/core/Tab';
|
|||
import { DialogContentText, Tooltip } from '@material-ui/core';
|
||||
import { EthFeeEstimate } from './EthFeeEstimate';
|
||||
|
||||
const DISABLED_MINTS = new Set(['ABE7D8RU1eHfCJWzHYZZeymeE8k9nPPXfqge2NQYyKoL']);
|
||||
|
||||
export default function DepositDialog({
|
||||
open,
|
||||
onClose,
|
||||
|
@ -63,7 +65,8 @@ export default function DepositDialog({
|
|||
indicatorColor="primary"
|
||||
>
|
||||
<Tab label={firstTab} />
|
||||
<Tab label={secondTab} />
|
||||
{(!DISABLED_MINTS.has(mint.toString()) ||
|
||||
localStorage.getItem('sollet-private')) && <Tab label={secondTab} />}
|
||||
</Tabs>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -48,7 +48,8 @@ const WUSDT_MINT = new PublicKey(
|
|||
|
||||
const USDT_MINT = new PublicKey('Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB');
|
||||
const DISABLED_ERC20_MINTS = new Set([
|
||||
'kinXdEcpDQeHPEuQnqmUgtYykqKGVFq6CeVX5iAHJq6'
|
||||
'kinXdEcpDQeHPEuQnqmUgtYykqKGVFq6CeVX5iAHJq6',
|
||||
'ABE7D8RU1eHfCJWzHYZZeymeE8k9nPPXfqge2NQYyKoL',
|
||||
])
|
||||
|
||||
export default function SendDialog({ open, onClose, publicKey, balanceInfo }) {
|
||||
|
|
Loading…
Reference in New Issue