Approving an ERC-20 token lets a specific contract move up to a set amount of that token from your wallet until you change the limit.
- The token is the asset the contract may move.
- The spender is the contract receiving permission.
- The amount is the maximum that spender may use.
When you sign approve(spender, amount), the token contract records an allowance for that spender. The EIP-20 Token Standard defines allowance as the amount the spender is still permitted to withdraw from your wallet. The spender can then call transferFrom to move tokens up to that remaining amount. ERC-20 contracts require this permission before another contract can pull your tokens. Each use normally reduces the remaining allowance; setting a new amount replaces it, and setting it to zero revokes it.
A USDC vault deposit names the contract that can spend
A USDC vault deposit begins with an approval naming the vault contract as the spender. Say you plan to deposit 100 USDC through the Beefy app, an interface for a multichain yield optimizer that compounds rewards from supported DeFi strategies; compare the spender address in its approval prompt with the vault contract and choose the amount before signing. The deposit then transfers your USDC; approval alone does not.
An exact 100 USDC approval limits what the vault can pull to that amount. An unlimited approval can save another approval transaction and its gas cost when you deposit again, but it also leaves the spender able to draw from your USDC balance if its contract is compromised. That includes USDC added to your wallet later while the permission remains. Choose an exact amount when you do not need repeated deposits.
Unused allowances remain after you withdraw
Withdrawing your vault position does not cancel a remaining allowance. If you approved an unlimited amount, the vault can still use that permission after your deposit is gone; an exact approval may also leave a balance if the vault used less than you allowed. The allowance stays until it is spent, replaced, or revoked. Closing a position is a useful time to review its approval.
Use Revoke.cash or the Etherscan Token Approval Checker to see which contracts still have permission for each token. Match the token and spender address to the position you exited. Revoking requires a wallet transaction and gas; it does not withdraw funds already in a vault. After withdrawing, revoke any allowance you no longer need.