Skip to main content

Limit Unlimited Token Allowances on tEVM

It's vital to check and revoke unnecessary allowances that some dApps set by default. Now with the Telos Web Wallet, this is made incredibly easy to do! This guide will explain ERC20 allowances, their dangers, and how to manage the security of your account.

Why are ERC20 Allowances Necessary?

To use ERC20 tokens in DeFi protocols you have to grant the dApp permission to spend tokens on your behalf - this is known as an ERC20 allowance. These allowances are integral to the functioning of DeFi platforms but can be dangerous if left unchecked.

Why are Unlimited ERC20 Allowances Harmful?

When depositing a specific amount with a DeFi protocol, you can choose to set an allowance of an exact amount. But instead, many apps request an unlimited allowance from the user. This offers a superior user experience because the user does not need to approve a new allowance every time they want to deposit tokens. By setting up an unlimited allowance, the user just needs to approve it once, and not repeat the process for subsequent deposits.
However, this setup comes with significant drawbacks.

Bugs can exist and malicious exploiting opportunities can arise even in established projects. By giving these platforms an unlimited allowance, you do not only expose your deposited funds to these risks but also the tokens that you're holding "safely and protected" in your wallet.

What Can Users Do?

Now you can easily reduce or revoke allowances through the Approvals tool built directly into the Telos Web Wallet.
Keep in mind that, since ERC20 allowances are integral to the functioning of many smart contracts within DeFi protocols, it is not an option to stop approving allowances altogether. But where possible, try to avoid unlimited allowances.

Reduce Allowances

1. Go to Telos Web Wallet and connect your wallet.


Approvals

2. Navigate to the Approvals tab on the left menu, or in the hamburger menu if you are on mobile.


Approvals

3. Click on the pencil icon on the allowance you want to reduce, for this example, we will reduce the Robinos allowance.


Approvals

4. Enter the amount to reduce the allowance to.


Approvals

5. Approve the transactions.


Approvals Approvals

6. You're done! That allowance has been changed.

Revoke Allowances

1. Go to Telos Web Wallet and connect your wallet.


Approvals

2. Navigate to the Approvals tab on the left menu, or in the hamburger menu if you are on mobile.


Approvals

3. Select the allowances you want to revoke and click "Revoke Selected".


Approvals

4. A pop-up will tell you how many more revokes you have to sign.


Approvals

5. Sign all the transactions that follow.


Approvals

6. You're done! All the selected allowances have been revoked!