Learn how to enhance your security while using Gamma
In case of an emergency or if you're a proponent of good housekeeping, you may wish to revoke permissions from Gamma's dApp, or any other service that is connected to your wallet. This is becoming a common step for users to enhance their security. In this guide, we'll show you how to revoke permissions for your wallets.
1) Go to Etherscan's Token Approval Checker
The etherscan interface is very simple, it allows you to search permissions on any ethereum wallet, as well as connect your own wallet to modify those permissions.
2) Enter wallet address
Before connecting, it's a good idea to get used to the platform and check your permissions. To use the permission query tool, enter a valid address into the address box in the top left corner.
Here you can see a wallet connected for viewing. Several permissions have been granted from this wallet, including Gamma's hypervisors, Metamask, Uniswap, and bridges. Any of these permissions can be modified or removed.
3) Connect web3 wallet
Once you understand what you're looking at, you can connect a wallet to revoke permissions. To connect, click "Connect to Web3" under the address bar and follow the prompts to connect your wallet
In this example, like the other guides, we'll be using Metamask.
Choose a wallet that you'd like to connect with.
You are now connected to Etherscan's Token Approval Checker.
4) Revoke permissions
In this example, we're going to revoke a simple Uniswap V3 permission for WBTC. Click the "Revoke" next to the field you wish to revoke. A pop-up box will emerge.
The red box is the token contract address, in this case, WBTC. The blue ox is the spending address, in this case, Uniswap V3. If you wish to proceed, press the "Revoke" button and follow the prompt on your Metamask wallet.
Congratulations! You have revoked a permission from your wallet. Make sure you repeat the process to revoke all the permissions you want.
5) Confirm on Etherscan
After the transaction is complete, you can confirm the transaction by going to the specific transaction hash, as well using the token approval checker to recheck the wallet. Click the button "View your transaction" to view the transaction hash.
Viewing the transaction hash, you can see that the permission was successfully revoked.
Also, by refreshing the token approval checker, you can also see that the permission has disapeared from the wallet.
Well done! Better safe than sorry. Keep in mind that liquidity providers on Gamma will have to revoke permissions for each hypervisor. It's always good to keep some gas around for this purpose.