{token && token.name && token.symbol && token.name !== token.symbol
? `${token.name} (${token.symbol})`
: token.name || token.symbol}{' '}
{chainId && (
{shortenAddress(token.address)} (View on Moonbeam explorer)
)}
)
}
export default function TokenWarningModal({
isOpen,
tokens,
onConfirm
}: {
isOpen: boolean
tokens: Token[]
onConfirm: () => void
}) {
const [understandChecked, setUnderstandChecked] = useState(false)
const toggleUnderstand = useCallback(() => setUnderstandChecked(uc => !uc), [])
const handleDismiss = useCallback(() => null, [])
return (
Token imported
Anyone can create an ERC20 token on Ethereum with any name, including creating fake versions of
existing tokens and tokens that claim to represent projects that do not have a token.
This interface can load arbitrary tokens by token addresses. Please take extra caution and do your research
when interacting with arbitrary ERC20 tokens.
If you purchase an arbitrary token, you may be unable to sell it back.
{tokens.map(token => {
return
})}