For many DeFi contracts, an approval is necessary to get a transfer to work. Contracts shouldn’t be able to transfer assets without their users’ permission, so they prompt the user to approve a certain allowance that is recorded and tracked on-chain. To avoid these prompts and the friction that they create, users may choose to grant unlimited approvals to contracts.
However, while this improves the user experience, it does so at the cost of security. Once an unlimited approval is granted, it can be used to drain funds from a user’s account at a later date.
How Approvals Work
In DeFi, an approval is a separate step from the actual transaction. It involves granting the application the required access to perform a transfer. Often, apps will request maximal approvals just to remove prompts and friction in the user experience.
With Permit and Permit2, approvals can be performed off-chain, implemented as a digital signature sent alongside the relevant transaction. This means that apps can frame the approval as “sign this message,” potentially without providing the context required for the user to understand what they’re agreeing to. The fact that approvals are performed off-chain may also make it seem less dangerous than something that requires a separate transaction that is independently visible on-chain.
Permit2 offers AllowanceTransfer, which specifies an amount and expiry date, and SignatureTransfer for single-use transfers. These help to manage risk, but Permit2 itself typically requires users to grant it a one-time unlimited approval.
The Risks of Standing Approvals
Standing approvals eliminate the need for a human to explicitly approve each transaction. This can be harmful in a couple of ways:
- Granted by Deception: Social engineering attacks may trick a user into granting a standing approval to a malicious smart contract. However, this type of wallet drainer attack has become less impactful over time ($494M in 2024 to $83.85M in 2025 in EVM drainer phishing losses), likely due to better warning messages and transaction simulation within wallets.
- Later Exploitation: An approval granted to a legitimate dApp may later be exploited by an attacker who compromises that app or exploits a vulnerability in its code. For example, Li.Fi experienced an $11.6 million hack in July 2024 after a vulnerability introduced during a smart contract update allowed an attacker to drain funds from the wallets of users who had previously set up an infinite approval.
Managing the Risks of DeFi Approvals
For many dApps, approvals are a necessary feature. Before a smart contract can perform a transfer, it needs approval from the sender to do so.
Many of the risks of approvals can be mitigated, either by the app designer or the user. Best practices when using a dApp include:
- Approve the exact amount of a transfer, rather than unlimited transfers
- Revoke approvals after the transfer is complete
- Use separate wallets for savings and dApps
App designers can also help to mitigate the risks for their users. Requesting minimal and expiring approvals and auditing update code before release help to minimize the risk if a smart contract is compromised.
Educational content, not legal, financial, investment, or professional security advice. Terms
New notes, roughly monthly per shift
No paywall, no membership tier — just an email when something new is published. Pick which shifts you care about.
We'll email you a link to confirm — you're only subscribed once you click it. Unsubscribe anytime. Privacy Policy