Revert
A revert occurs when smart-contract execution stops and the attempted state changes from that execution are rolled back.
✦ Key Insight
A failed DeFi transaction can still cost network fees even though the intended swap, mint or other state change did not complete.
✕ Common Misconceptions
A reverted transaction is not the same as a transaction that never reached the blockchain. Reverted transactions can still appear on explorers and consume fees.
Detailed Explanation
In Practice
Dig Deeper
Smart Contract
A smart contract is blockchain-deployed code that can hold state and execute predefined rules when called.
Transaction
A blockchain transaction is a signed or authorized instruction that changes blockchain state or transfers value when accepted by the network.
Slippage tolerance
Slippage tolerance is the maximum adverse price movement a trader is willing to accept between the quoted and executed price of a decentralized exchange trade.
Gas limit
The gas limit is the maximum amount of gas a user authorizes an Ethereum transaction to consume during execution.
