Skip to the article
Web3 Hub

Markets, protocols and policy, reported

How do you revoke DeFi loan approvals after clearing debt dust?

After closing a DeFi loan, confirm debt is zero and collateral is out, then revoke each ERC-20 allowance to the lending pool and verify it reads zero.

By Web3 Hub Newsroom3 min read

How do you revoke DeFi loan approvals after clearing debt dust?

To leave no spendable allowance behind after a DeFi loan, confirm the debt is zero and collateral is withdrawn, then set each ERC-20 allowance to the lending pool to zero. On Ethereum, SparkLend is a concrete example: its pool pulls tokens when users supply or repay, using the ERC-20 transferFrom mechanism. The Revoke.cash instructions explain how to find and revoke approvals; repayment itself does not remove one.

Have the same wallet you used for the loan and ETH for gas. Each revoke is an onchain transaction, so the allowance changes only after that transaction is submitted.

How do you revoke approvals after closing the loan?

  1. Confirm the loan is fully closed. Check that variable debt reads exactly zero and that the collateral is withdrawn. A typed repayment amount can leave a small debt balance because interest accrues between the quoted amount and the transaction. Clear that remainder before revoking: otherwise you may need to approve the repayment token again to pay it.
  2. Open an approval checker on the same network. Use Revoke.cash or the Etherscan Token Approval Checker, and enter the address of the wallet that held the loan. The list should show token approvals associated with that address.
  3. Find allowances to the lending pool. Look for the underlying ERC-20 tokens you approved, such as DAI or wstETH, and check that the spender is the pool contract. For a SparkLend position, this is the pool allowance relevant to supplying or repaying those assets.
  4. Revoke each relevant allowance. Submit the revoke action for each token and sign the transactions with the same wallet. A zero allowance removes the pool’s remaining permission to pull that token. EIP-2612 permits can also set an allowance by signature; check the resulting allowance in the approval list rather than assuming a permit expired when the loan ended.
  5. Reload the approvals list. The task is done when each allowance to the pool shows zero or disappears. Then keep the transaction confirmations with your loan records so you can verify the changes later.

What should you consider after revoking?

How can I tell if an old approval was used to drain my wallet?

Review the token’s transfer history and the wallet’s transactions for transfers you did not initiate. Compare the recipient and timing with the spender address and transaction records; an approval alone shows permission, not whether tokens were moved.

Should I keep a separate wallet just for DeFi?

A separate wallet can limit which assets are exposed to approvals from DeFi activity. Keep only the tokens needed for a position there, and review its allowances whenever you close one.