BNB Smart Chain

轻松构建Web3 DApp

BNB Beacon Chain

Sunset soon

BNB Chain生态系统的质押和治理层

文档GithubFaucetStake BNBBscScanBSCTraceDev ToolsLearn more about Fusion文档Beacon Chain浏览器Stake BNB文档GithubFaucet跨链桥GreenfieldScanDCellarDev Tools文档GithubFaucet跨链桥opBNBScanDev Tools文档GitHub

开发者

开发者

开始在BNB Chain构建

开始开发
开发者
BNB Smart ChainBNB GreenfieldOpBNBZkBNBTrading Volume Incentive ProgramDAU Incentive ProgramTVL Incentive ProgramKickstart最具价值建设者加速器项目构建者资金扶持Space BMEME Innovation Program查看全部计划
联系我们开始开发
联系我们开始开发

Binance Smart Chain Token Allowance Checker

2021.2.23  •  2 min read
Blog post image.

Background

Each time anyone tries to use a new decentralized application (DApp) on Binance Smart Chain, you need to give this DApp an allowance for it to spend your tokens on your behalf. If you’re a veteran DeFi user you’ve probably done this workflow a thousand times.


In comparison, this process is somewhat similar to when you authorize your utility provider to set up a direct debit allowing it to charge your electricity bill from your bank account on a monthly basis. However, if a malicious DApp receives a wallet address owner's approval to spend their tokens, there is no doubt that all funds will be stolen. Once a transaction is sent on the blockchain it is irreversible.

What is a token allowance and how does it work?

The BEP20 token contract has an approved method. Any dApp that you want to use needs access to yourBEP20 token in order to do something on your behalf. If you want to deposit BUSD in PancakeSwap for example, you need to first give the smart contract powering the PancakeSwap DApp access to your BUSD before you can deposit it in a second transaction. Most DApp ask for an unlimited number by default for simplifying the UX and minimizing the amount of transactions users have to make to use the application.

How to protect yourself?

The good news is that you can protect yourself against these kinds of threats by withdrawing the approvals.

How to revoke access to your tokens manually

Go and visit: https://bscscan.com/tokenapprovalchecker

Input your address

Connect MetaMask with BscScan

Confirm to revoke approval

You can also check out this Knowledge Base article.

Conclusion

Token allowances represent a huge security risk. It is clear that progress needs to be made in this area if we want to improve the user experience and security in the crypto space. With this feature rolled out, we hope the community can keep better track of token approvals and collectively reduce our funds lost to phishing!

Share