LI.FI Bridge: Four Ways to Limit Risk From Old Approvals
lifi bridge exploit lessons: limit token approvals, revoke them after use on each chain, and bridge from a wallet holding only the assets you move.
About Crypto Newsroom3 min read
For lifi bridge users, four habits reduce approval risk: approve only the amount needed, revoke it after use on each chain, use a separate wallet, and review every contract you authorize. To choose a cross-chain route, use the lifi bridge to connect your transfer or swap, then apply these wallet checks before signing. LI.FI’s March 2022 postmortem and July 2024 incident report describe exploits that used arbitrary calls to invoke transferFrom on tokens users had already approved.
What lifi bridge exploits teach about approvals
An approval lets a contract move a set amount of a token from your wallet. In both incidents, attackers used a flaw in the contract’s calls to take tokens covered by existing approvals. The 2024 flaw was in a newly added component. That makes old approvals relevant even when you are not making a transfer.
1. Approve exact amounts
Exact approvals cap how much a LI.FI cross-chain swap can move under that allowance. Choose the amount needed for the transfer instead of unlimited approval. This suits anyone who wants to keep a compromised contract from using the full token balance covered by an unlimited allowance. The allowance still creates risk up to the amount you approve.
2. Revoke after use, on each chain
Revoking after a transfer closes an allowance that can remain active after the transaction ends. Check each chain where you approved the LI.FI crypto bridge: an approval on one chain does not revoke approvals on others. Revoke.cash and the Etherscan token approval checker are examples of tools for reviewing allowances. This step suits people who have finished a transfer and do not need the allowance to stay open.
3. Use a separate wallet
A wallet holding only the assets you plan to move limits what is exposed if an approval is abused. Keep other tokens in a separate wallet, and use the transfer wallet for the bridge transaction. This suits users who want to reduce the amount at risk without relying only on remembering to revoke approvals.
4. Count every contract you approve
Review each contract address before approving it, including contracts used by an aggregator. LI.FI contracts use the EIP-2535 Diamond pattern: one contract address can route calls to separate components, or “facets,” and its code can be upgraded. Your approval remains attached to the address after the transfer and can also cover code added later. In 2024, the flaw was in a newly added facet. This lesson suits anyone who assumes an approval applies only to the code they first encountered.
The common risk in both exploits was an attacker using a contract flaw to spend tokens already covered by approvals. Exact amounts limit each allowance, revoking closes it after use, and a separate wallet limits what it can reach. Review every approved contract because upgrades can change what an approved address can do.