What Happens to a Token Allowance If the Dapp’s Smart Contract Is Upgraded or Changed?

The token allowance is tied to a specific smart contract address. If a dApp upgrades to a new smart contract, any allowances granted to the old contract address are not automatically transferred.

The old allowance remains active but is now irrelevant to the new, upgraded dApp. The user must grant a new token allowance to the new smart contract address to interact with the upgraded protocol.

The old allowance should still be revoked as a security best practice.

What Is the Role of a Wallet in Interacting with a Dapp?
What Is the Benefit of a “Token Allowance” for a DeFi User?
How Does a Smart Contract Relate to a Decentralized Application (Dapp)?
How Can a User Revoke or Modify a Token Allowance for a Specific Dapp?
Can a Smart Contract Use More of a Token than What Is Specified in the Allowance?
What Is the Role of the ERC-20 Standard’s Approve() Function in Setting a Token Allowance?
What Is the “Approve-and-Pull” Race Condition Vulnerability and How Can It Be Mitigated?
How Does a Token Allowance Differ from a Direct Token Transfer in a DeFi Transaction?

Glossar