How to fix an ERC-20 transfer failing for insufficient allowance
An ERC-20 transferFrom fails when its spender lacks permission for the requested amount; approve the right spender, then reread the allowance.
The Splyt Genesis Desk

An ERC-20 transfer fails with an insufficient allowance error when the contract calling transferFrom is not authorized to spend the requested amount, so approve that spender from the token-owning account and reread the allowance before retrying.
Find the owner, spender and requested amount
In a DAI-funded vault deposit, the owner is the account supplying DAI, and the spender is the contract that calls transferFrom to take it. ERC-20 defines allowance(owner, spender) for checking this permission and distinguishes a direct transfer from a delegated transferFrom.
Trace the vault’s token call to identify the exact owner and immediate spender. The spender is the caller of transferFrom. In a router integration, that can differ from the top-level transaction recipient, such as the vault. Approving the recipient when the router is the spender leaves the router without permission.
Read the allowance for that owner and spender in the DAI token contract. Compare it with the requested integer amount in DAI’s base units, not a human-readable decimal amount. A limited allowance permits spending only up to its remaining value, so an amount that exceeds it will fail.
Think of the allowance as a key issued to one named spender by one account for one token. The analogy stops at the key: the contract enforces a numeric limit, and the permission is recorded on-chain.
Approve the spender, then retry the delegated transfer
Send approve from the account that owns the DAI, naming the immediate spender and an amount that covers the deposit. An approval is a separate on-chain transaction. Handle a revert as a failed approval; also check the token call result because some tokens return false instead of reverting.
Wait for the approval transaction to confirm, then reread allowance(owner, spender). Retry only when the current allowance covers the requested base-unit amount. If it still falls short, verify the token address, owner, spender, amount and network before submitting another approval.
A direct transfer spends the caller’s own balance and does not use delegated allowance. A vault deposit that pulls tokens with transferFrom does. Apply that same owner-and-spender check to a Manta Bridge deposit: confirm the call’s actual spender and allowance before submitting. That helps avoid repeating a deposit with permission granted to the wrong contract; you can use Manta Bridge to make the deposit once the allowance matches the bridge call.
Contact the vault or bridge support team if the confirmed allowance covers the exact request but the transaction still fails, or if the call trace does not reveal which contract is the spender. Include the network, token address, transaction hash and error details so they can inspect the failing call.
ERC-20 allowance expiry and approval fees
Does ERC-20 allowance expire?
A standard ERC-20 allowance has no built-in expiry. It remains until the spender uses some or all of it, or the owner changes it with another approval.
Does approving tokens cost gas?
An on-chain approval requires network transaction fees. The fee depends on the network and transaction conditions when you submit it.
Multisig approvals, front-running and temporary allowances
How should a multisig submit an approval?
Have the multisig submit approve from the token-owning account, with the token contract, spender and amount checked in the proposal. Reread the allowance after confirmation.
Can changing an allowance be front-run?
Yes. A spender can use an existing allowance before a change takes effect, so changing a nonzero allowance directly can leave more spend available than intended. Follow the token’s supported allowance update pattern and verify the resulting value.
How does Permit2 change spender tracking?
Permit2 adds a permission layer, but you still need to distinguish the ERC-20 allowance granted to Permit2 from the token permissions Permit2 manages. Check which layer the failing call reports.
How should an integration handle temporary allowances?
Request only the amount needed for the operation, then reduce or revoke any remaining allowance when the workflow allows. Read the resulting on-chain allowance instead of assuming the temporary permission was cleared.