HomenieuwsCryptoDisconnecting a crypto wallet leaves a separate token-approval check

Disconnecting a crypto wallet leaves a separate token-approval check

Cryptofocus bron in google
Bybit - sponsored
Ontvang nu een welkomstbonus bij Bybit, maar liefst 30 USDC!

Disconnecting a wallet from a decentralised app does not revoke an existing token approval. The connection and the permission to move tokens are separate controls. If the aim is to remove a contract’s spending access, closing the connection leaves a second question unanswered: what allowance remains on-chain?

What you need to know
Disconnecting an app and revoking a token allowance are different actions.
An ERC-20 allowance records how much a specified spender may still withdraw.
An approval can permit repeated withdrawals up to the approved amount.
Revoking an on-chain approval requires an on-chain transaction and a gas fee.

MetaMask’s explanation of revoking approvals distinguishes the wallet connection from the permission granted to a smart contract. Disconnecting concerns the app’s connection to the wallet; revocation concerns its ability to move approved tokens. Treating the disconnect button as proof that both have ended confuses two different operations.

The remaining allowance belongs to a particular spender

The ERC-20 token standard makes the second permission concrete. Its allowance function returns the amount a spender is still allowed to withdraw from an owner. Its approve function lets the specified spender withdraw multiple times up to the approved value. That is why an approval is more than a one-off confirmation that a website may display a balance.

Consider an illustrative allowance of 100 tokens. If a spender has used 30 of those tokens, the remaining authorised amount is 70 under this simple example. Disconnecting the website is a separate action from changing that remaining allowance. The example describes a standard permission model, rather than a measurement of any reader’s wallet or a promise about every token implementation.

Lees ook:  Ethena activeert ENA-buyback pas bij 7,5 miljard dollar USDe

The distinction also sets the scope of a review. An ERC-20 allowance is tied to the token contract, owner and spender involved. A recognisable app name alone does not identify that entire relationship. MetaMask’s token-approval guide explains that the contract address requesting access can be inspected, and that an approval concerns a specific type of token. An allowance for one token is not a blanket description of everything held at an address.

Revocation has a network cost

MetaMask explains that an approval is recorded on-chain, so revoking it must also happen on-chain. Each revocation therefore costs gas. Its documentation points to the approval-checker section of the relevant network’s block explorer as one way to inspect existing permissions. This is a reason to establish which network and contract a record concerns before interpreting it; a disconnected-app list does not supply the same information.

Changing a permission also should not be confused with recovering assets already transferred. ERC-20’s allowance function describes what the spender is still authorised to withdraw. Reviewing that remaining permission addresses future access under the allowance; it does not describe a reversal mechanism for an earlier transfer. That limited purpose is the useful test when deciding whether a connection has merely been closed or a spending permission has actually been removed.

Partnerdeal

Bybit - Welkomstbonus 30 USDC!

Ontvang nu een welkomstbonus bij Bybit, maar liefst 30 USDC!.

Lees hier de voorwaarden
Nu naar Bybit
Voorkeur cryptofocus google nieuws
Sten Waardenburg
Sten Waardenburg
Sten Waardenburg schrijft over crypto met het tempo van de markt: snel, helder en zonder omwegen. Hij zit bovenop nieuws rond exchanges, altcoins en on-chain bewegingen, en hij prikt graag door grote claims heen met één simpele vraag: klopt dit ook in de data? Zijn stukken zijn praktisch. Minder “to the moon”, meer “wat betekent dit voor je risico”. Sten houdt van concrete voorbeelden, scherpe samenvattingen en een goede grafiek op het juiste moment. Buiten werktijd is hij vaak te vinden in de sportschool of achter zijn bureau met een playlist aan, speurend naar dat ene detail dat anderen missen. Nuchter, nieuwsgierig en altijd op zoek naar het echte verhaal achter de koers.
Lees ook