List every approval, execution, bridge, claim and exit step. Then ask how a failure at one step affects the assets committed to the others.
Count a complete route
| Cost | Where it arises | Avoid double counting |
|---|---|---|
| Network gas | Approval, swap, deposit, claim, repay and exit transactions | Use gas used × effective price for a settled EVM execution; add chain-specific data fees where relevant |
| Protocol or pool fee | Swap or product rules | Often already included in estimated output |
| Price impact | Your order changes available execution prices | Often already reflected in the quote |
| Slippage | Difference between quote and execution | Tolerance is a limit, not a fixed charge |
| Bridge and destination costs | Messaging, liquidity and destination execution | Check whether quoted received amount is already net |
| Exit and conversion | Redeeming positions and selling rewards | Include fees, queues and available market depth |
A multi-step plan can require several transactions in different native gas assets. A low advertised fee for one step does not describe the total route. Preserve the chain, amount, quote time and terminal asset so the comparison is reproducible.
Compare gain with round-trip costs
Separate failed-attempt fees from successful execution. A reverted call can spend gas without creating the intended position. A later replacement transaction should not be assumed to have settled merely because an earlier hash disappeared from a mempool.
Follow how risks connect
- Underlying token loses backing or market liquidity
- A pool or oracle reprices the asset
- Collateral value or receipt-token value falls
- A connected loan can become liquidatable
- Exits can compete for limited liquidity
| Risk | Specific evidence to inspect |
|---|---|
| Smart-contract vulnerability | Version, audits, upgrade history and privileged functions |
| Oracle failure | Price source, update cadence and fallback behavior |
| Liquidity shortage | Executable depth, withdrawal queues and pool balances |
| Bridge failure | Message verification, backing custody and pause controls |
| Governance or admin change | Proposal payload, timelock and key authority |
| Token failure | Backing, redemption, transfer rules and concentration |
An audit is a scoped review at a particular time, not insurance. Deposits and high TVL do not establish safety. Several protocols can depend on the same oracle, bridge or receipt token, so spreading positions among interfaces does not necessarily spread the underlying exposure.
Use a before-and-after record
- Define the final asset and route, including how to exit.
- Verify official destinations, contract versions and permission scope.
- Write explicit costs separately from costs already embedded in quotes.
- Check what a partial success leaves behind: an approval, a bridged representation or locked collateral.
- After an action, reconcile receipts, balances, allowances and remaining obligations.
- If something fails, stop repeated submissions until the chain state is understood.
Keep funds needed for legitimate exit gas outside the amount committed to the position. If you suspect fraud or leaked secrets, follow the shared incident guide; a DeFi fee calculation cannot diagnose a compromised wallet.
Frequently asked questions
Is slippage tolerance a fee?
No. It defines an execution boundary. Actual execution differences depend on the route and market conditions.
Can several DeFi apps share the same failure risk?
Yes. They can depend on the same collateral, bridge, oracle, implementation or admin system.
Risks and limits
Public records explain what a network recorded. They do not prove a counterparty’s identity, future returns, contract safety or that an exchange credited an account. Network fees and protocol rules can change. This guide is educational; no wallet connection is needed to read it or use its tools.
Sources
Verification Notes
Costs are illustrative, not live network estimates. The guide does not rank a protocol as safe. Examples labelled illustrative are calculations, not live quotes. Source review is not a test transaction or security audit. Check current network, deployment and parameters before taking action.