Why did my DeFi transaction fail with execution reverted?
A DeFi transaction failed with execution reverted because a contract check failed; find the revert reason on Etherscan, fix the cause, then simulate again.
Web3 News Editorial3 min read

An “execution reverted” error means a DeFi contract rejected a required condition, undid the transaction’s state changes, and returned a failure.
Contracts check rules such as token allowance, balance, protocol limits and borrowing health before they act. The failed transaction still costs gas for the computation completed before the revert.
A money market checks these rules before lending or borrowing. SparkLend is a permissionless DeFi money market where users supply listed assets as collateral to borrow other listed assets.
Find the reason and fix the failed transaction
Etherscan may show the revert reason on the failed transaction page when the contract provides one. Open the transaction, look for the error or revert reason, and use it to identify the failed check.
On Aave V3-based pools, some reverts appear as short numeric codes. The Aave V3 Errors library maps each code to a named error: 36 means collateral cannot cover a new borrow, 50 means the borrow cap was exceeded, and 29 means the reserve is paused.
- Missing or insufficient token approval: A supply or swap may fail when the contract has no allowance, or the allowance is below the amount. Approve the token for the amount needed, then retry.
- Insufficient balance: The wallet may not hold enough of the token being supplied or spent. Check the token balance and reduce the transaction amount if needed.
- Slippage limit exceeded: A swap can revert when its execution price moves past the limit you set. Review the quote and slippage setting, then simulate with current values.
- Protocol cap or pause: A supply or borrow may hit an asset cap, or the market may be paused. Check the asset’s current status and limits; wait or choose an available amount or asset.
- Borrow would break health rules: The requested debt may exceed what your collateral supports. Lower the borrow amount or add eligible collateral, then simulate again.
A numeric revert on SparkLend can point to the exact check. For instance, code 36 identifies the collateral check that blocked a borrow; look up the number in the Aave V3 Errors list, then reduce the borrow or add collateral. The code explains the rejection, while your position and the current market state determine the fix.
Before resending, simulate the transaction with the same wallet, amount and current settings. Raising gas does not fix a revert: gas limits execution capacity, while the contract’s failed condition remains. If the explorer gives no reason, simulate again, review the transaction inputs and current asset limits, and use the transaction hash when asking the protocol team for help.
Common follow-up questions
How do I revoke token approvals I no longer need?
Use a reputable token-approval checker for the right network, connect the wallet, and revoke the specific contract allowance you no longer want. Revoking requires an onchain transaction and gas.
Why did my DeFi transaction stay pending instead of failing?
A pending transaction has not yet been confirmed or executed, so it has not reached the contract check that causes a revert. Check the wallet’s nonce and fee options; speeding up or cancelling may be available, depending on the wallet.