revoke metamask smart contract

How to revoke contracts on your wallet?

14 May 2022

In this short tutorial, you will learn how to manage your wallet permissions. This will protect you from possible hacks.

If you are a fan of DeFi, you probably use dozens and dozens of different applications.

When you connect your wallet to an app, you give your permission to interact with the app.

What we often forget is that this authorization is not automatically deactivated. Thus, if the smart contract of the dapper is hacked, then you risk losing your assets…

This is why it is important to revoke your permissions.

Fortunately, there are ways to protect your crypto wallet. This is what we will see here. You'll see, it's very simple.

How permissions work on your wallet

When using a decentralized wallet like Metamask, you interact with several smart contracts.

For example, when you trade tokens on an exchange platform like Uniswap or Pancakeswap, you are using smart contracts. You give permission to DEX to carry out the operations you order.

(Read the article: What is a Smart contract)

Moreover, before making a transaction, you are systematically asked for an "approval" or an "allocation". This is the first operation that you are asked to validate on your wallet. You are asked to approve the spending or deposit of a certain amount of token.

Then, for the 2nd step, you are asked to confirm (the frais, etc) of your transaction.

The slightest transaction, the slightest exchange that you make on a dAPP works this way.

Let's take a closer look at the risks of not fully controlling these different approvals.

The Pros and Cons of Endorsement

Very often, to facilitate the use of Dapps on DeFi, the process is often the same. We follow the default setting that asks users for “infinite approval” to use the app. In general, we all click “ok”. This is actually very practical because it saves time for future transactions. Better yet, we also save on future fees for the same operations.

Let's take for example that you are on pancake swap. Let's say you want to trade BNB for CAKE. You will be asked for a first "infinite approval". By accepting, you will accept all approvals for your future trades of this pair. You will only have to click on the confirmation of your transaction. In fact, you save on the fees of the first approval.

You see, so far, normally, that this allows you to avoid approving every time. This is a definite advantage.

We agree.

However, there are also downsides.

Disadvantages of Unlimited Approval

There is indeed a catch. And, not least.

The downside of infinite approvals is that they provide an opportunity to exploit user assets.

For example, a user gives approval for a DEX type application (like Uniswap) to use the smart contract. However, if this same contract was exploited by a hacker and he takes control of the address, then it becomes catastrophic.

This means that he can swap all the tokens he wants on the protocol.

How to revoke permissions on Metamask

So, DeFi users are advised to check their allocations and revoke access. Frankly, it is well known in crypto: “Trust no one”. This is the golden rule that you should keep in mind.

Trust no one, once again. The different cases of Rug Pull are there to remind us of the adage.

You just need to click on the 3 vertical dots at the top right. There you click on “Connect Sites”.

You will have the list of all the applications on

revoke permissions

There is also a platform " Revoke.cash » which allows you to revoke your permissions easily.

You should know that you can do this on portfolio aggregators like Zapper.fi or Debank for example.

So much for this little tutorial that will help you better protect yourself.

-----

Note: No financial advice is given in this or any other article on zonebitcoin. This is information of which you are the sole judge and master. Be responsible with your investments and only invest as much as you are willing to lose.

Our affiliate links:

???? To buy cryptocurrencies (simple way):

✌️To generate interest on your cryptocurrencies:

  • Public chat Youhodler (Earn up to 8% interest)

👌To secure your cryptocurrencies:

🤌 To have fun and play 

Total
0
Shares

ZoneBitcoin Editorial

Passionate about Bitcoin, our editors try to democratize their knowledge through varied articles touching on different subjects.

2 Comments

  1. Vexing https://www.nothingbuthemp.net/products/thc-drink-enhancers-active has been absolutely the journey. As someone keen on idiot remedies, delving into the out of sight of hemp has been eye-opening. From CBD oil to hemp seeds and protein capacity, I've explored a diversification of goods. Notwithstanding the gallimaufry local hemp, researching and consulting experts organize helped handle this burgeoning field. Comprehensive, my knowledge with hemp has been sure, offering holistic well-being solutions and sustainable choices.

Leave comments

Your email address Will not be published.

This site uses Akismet to reduce unwanted. Learn more about how your feedback data is processed.

Total
0
Share

Trade crypto on Changelly

changelly

Crypto tracker

coinstats app

On Google

googlenews

Do not miss :

ledger recover

"Ledger Recover" raises a problem of "principle" rather than security

The Ledger company announced a new service that ignites
lose your bitcoins

The 6 ways to lose your bitcoins and how to avoid them.

There are many situations where unfortunately we can lose

Learn more about ZoneBitcoin

Subscribe to continue reading and have access to the entire archive.

Continue reading