Skip to the article
Chainvane

Crypto markets, protocols and policy

Failed Bridge or Failed Swap? Calculate the Loss

A failed bridge and a failed swap leave different evidence on-chain; compare debits, destination fills, refunds and fees before calling the whole transfer a loss.

The Chainvane Desk5 min read

Failed Bridge or Failed Swap? Calculate the Loss

A failed bridge usually leaves the source-chain transfer visible while the destination asset is missing; a failed swap usually leaves the input token in place or converts it at a worse rate. The real loss is what left your control and was not returned, plus fees you cannot recover—not the full amount shown in a pending screen. Start with the transaction records on both chains, then separate principal, execution costs and price movement.

“Bridge” and “swap” describe different jobs, though one transaction can do both. A bridge moves value between networks; a swap changes one asset into another. A cross-chain route may bridge an asset, swap it on arrival, or use destination-chain liquidity to deliver the requested token quickly. For transfer timing and settlement context, see this guide to Across bridge treasury transfer timing. Its timing question is separate from whether a particular transfer has failed.

How do bridge and swap failures differ?

A bridge failure is a mismatch between the source deposit and destination delivery. The source transaction may be confirmed, but a relayer, liquidity pool, bridge contract or cross-chain message has not completed the corresponding action. Some designs lock or burn the source asset before releasing or minting the destination asset; liquidity-based routes may instead have a relayer advance funds on the destination chain and settle later. A slow destination fill is not automatically a lost deposit.

A swap failure concerns the exchange itself. A transaction that reverts generally does not execute its token exchange, though the network fee for the attempted transaction is still spent. A transaction that succeeds can still deliver less than the quote because of slippage, fees or a changed market price. In a combined route, the bridge leg may complete while the swap fails, leaving a different token on the destination chain than intended.

That distinction determines what to count. If the destination asset arrived but is worth less, the bridge did not necessarily lose the principal; the shortfall may be swap execution or market movement. If the source debit is confirmed and nothing arrived, the principal is unresolved until the route’s refund or recovery process is established. Treating both cases as “the bridge lost everything” confuses a delay, an execution cost and a genuine unrecovered balance.

How can you estimate the actual loss?

Build the estimate from wallet balances and transaction records, using the same asset and valuation time for each side. A useful accounting is: source value sent, minus destination value received, minus any refund or recoverable claim, plus fees paid. Keep gas separate from the token amount: a reverted transaction can cost gas without spending the token amount, while a completed transaction can spend both gas and protocol fees.

Check the transaction hash on the source network first. Confirm whether it succeeded, which token and amount the contract received, and whether the wallet approved more than the intended transaction required. Then check the destination network for a fill, swap output, refund, or token sitting at the destination address. A route tracker can help identify status, but the chain records show whether a transaction was actually confirmed.

  • Principal: Count tokens that left the wallet, then subtract any amount returned or delivered on the destination chain.
  • Fees: Record source and destination gas, bridge or relayer charges, and swap fees separately; do not count a quoted fee as paid unless the transaction record supports it.
  • Swap shortfall: Compare the actual output with the quoted minimum and the expected output at execution, while distinguishing price movement from an execution error.
  • Open claim: If a refund or delayed fill remains possible under the route’s rules, label that balance unresolved rather than treating it as recovered or permanently lost.

For a completed swap, value both the input and output at the same timestamp if you want to isolate execution quality. To estimate the economic result for your portfolio, value the received asset at the time you assess the loss and state that valuation time. Those are different comparisons: the first measures route execution; the second includes market movement after execution.

What should you do before retrying?

Do not send the same amount again just because the interface timed out. A timeout can mean the page stopped tracking while the transaction continued. Verify the source transaction and destination address, and check for a fill or refund before starting a second route. Retrying too soon can turn one delayed transfer into two deposits, or spend additional gas without resolving the original transaction.

If the source transaction failed, the token amount may remain in the wallet, but the attempt’s gas is generally not returned. If the source transaction succeeded and the destination is still empty, use the route’s status and recovery instructions, matching the source hash, destination chain and recipient address. If funds arrived in an unexpected token, first confirm the token contract and balance on the correct chain; a wallet display omission is not proof that the asset is gone.

For most users, the practical choice is to prefer a route whose quoted output, fees, destination asset and recovery status are clear before signing. A direct bridge can be easier to audit when the same token is wanted on the other chain. A bridge-and-swap route can save steps when a different destination asset is needed, but it adds another execution condition and another source of slippage. The cheaper quote is not automatically the lower-loss route if its refund path or destination result is harder to verify.

After a failure, keep the estimate provisional until the route reaches a terminal state: delivered, refunded, or eligible for a specific recovery action. The signals to watch are the source transaction’s confirmation, a destination fill or swap event, a refund record, and the route’s stated recovery status. Those records determine whether the remaining balance is a fee, a price shortfall, a delayed claim or a loss.