Jump to content

How to Revoke Ethereum or Binance Smart Chain Smart Contract Spending Allowances


Ghost
 Share

Recommended Posts

How to Revoke Ethereum or Binance Smart Chain Smart Contract Spending Allowances

Many people are unaware that when you interact with defi applications/dapps you usually end up allowing the smart contract to have unlimited allowance of spending those tokens on specific smart contract. This is a dangerous practice and is extremely unsafe.

This guide will work for both Ethereum and Binance Smart Chain

To protect yourself better, simply find the token address of the specific token you want to deny spending of, in this example I will use the token BAKE

https://bscscan.com/token/0xE02dF9e3e622DeBdD69fb838bB799E3F168902c5 - BAKE BEP20 Token Contract

You want to take that token address and go to the actual Contract Page of the Token:

https://bscscan.com/address/0xE02dF9e3e622DeBdD69fb838bB799E3F168902c5#writeContract

6cf1b07821.png

Once you are on this page under the "Write Contract" option, click the "Connect to Web3" to connect your Metamask wallet to Bscscan/Etherscan.

You will then input the address of a smart contract you want to deny/revoke this token spending from, e.g. a LP contract or staking contract, etc.

You set the amount to 0

9bb54cdab0.png

Simply hit "Write" and Metamask should popup asking to complete the transaction. Done.

You have now disallowed/set the spending amount to 0 of that token to a specific smart contract. You can rest assured knowing some random smart contract you allowed last summer can't spend your fortune of aped tokens.

  • Like 2

Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n

100703395-b1ee6600-3360-11eb-82bc-96818c

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...