CryptoKeySafe CK bracket markCRYPTOKEYSAFE
返回博客
DeFi 安全阅读约需 2 分钟

查看并撤销代币授权

了解断开连接后可能继续生效的代币权限,以及如何在正确的网络中查看和撤销授权。

全文以英语提供。

What remains after a connection ends

An on-chain token allowance can remain after a user disconnects a website. Disconnection ends that app's wallet connection. An allowance is a separate value recorded by the token contract for an owner and spender.

Review the right address and network

For each account and network you have used, review the token, spender, and remaining allowance. For NFTs, check operator approvals too. The ERC-721 standard lets an approved operator manage all NFTs owned by an address within that contract.

Revoke an allowance you no longer need

Use your wallet's supported approval manager or a trusted approval tool to submit a transaction for the relevant account and network. Check the spender and posted fee before signing. Confirm the transaction succeeded and check the resulting permission. A new approval may be necessary if you use that service again.

Read a real incident in context

BadgerDAO reported that attackers injected a malicious front-end script in December 2021 and used it to solicit ERC-20 approvals. The incident illustrates why users should verify approval prompts even when visiting a familiar application.